From 03a0123fb311f946c628403b6e6b79528a92b912 Mon Sep 17 00:00:00 2001 From: Graham Jenson Date: Sun, 10 Mar 2019 10:46:24 +0000 Subject: [PATCH] refactor(generator): moving resources and policies into their own packages (#161) BREAKING CHANGE: this PR refactors the auto-generated CloudFormation resources out of the cloudformation package and into a dedicated package (resources). This helps keep the auto generated files separate from others. E.g. cloudformation.AWSSnsTopic{} becomes resources.AWSSnsTopic{} --- README.md | 27 +- cloudformation/all.go | 4417 +++++++++-------- ...udfront-distribution_legacycustomorigin.go | 36 - ...-cloudfront-distribution_legacys3origin.go | 21 - .../aws-ssm-patchbaseline_patchgroup.go | 11 - cloudformation/{ => policies}/policies.go | 2 +- cloudformation/policies_test.go | 36 +- .../{ => resources}/alexa-ask-skill.go | 13 +- ...a-ask-skill_authenticationconfiguration.go | 8 +- .../alexa-ask-skill_overrides.go | 8 +- .../alexa-ask-skill_skillpackage.go | 8 +- .../{ => resources}/aws-amazonmq-broker.go | 13 +- .../aws-amazonmq-broker_configurationid.go | 8 +- .../aws-amazonmq-broker_loglist.go | 8 +- .../aws-amazonmq-broker_maintenancewindow.go | 8 +- .../aws-amazonmq-broker_tagsentry.go | 8 +- .../aws-amazonmq-broker_user.go | 8 +- .../aws-amazonmq-configuration.go | 13 +- .../aws-amazonmq-configuration_tagsentry.go | 8 +- .../aws-amazonmq-configurationassociation.go | 13 +- ...onfigurationassociation_configurationid.go | 8 +- .../{ => resources}/aws-apigateway-account.go | 13 +- .../{ => resources}/aws-apigateway-apikey.go | 13 +- .../aws-apigateway-apikey_stagekey.go | 8 +- .../aws-apigateway-authorizer.go | 13 +- .../aws-apigateway-basepathmapping.go | 13 +- .../aws-apigateway-clientcertificate.go | 13 +- .../aws-apigateway-deployment.go | 13 +- ...-apigateway-deployment_accesslogsetting.go | 8 +- ...aws-apigateway-deployment_canarysetting.go | 8 +- ...way-deployment_deploymentcanarysettings.go | 8 +- ...aws-apigateway-deployment_methodsetting.go | 8 +- ...-apigateway-deployment_stagedescription.go | 8 +- .../aws-apigateway-documentationpart.go | 13 +- ...s-apigateway-documentationpart_location.go | 8 +- .../aws-apigateway-documentationversion.go | 13 +- .../aws-apigateway-domainname.go | 13 +- ...ateway-domainname_endpointconfiguration.go | 8 +- .../aws-apigateway-gatewayresponse.go | 13 +- .../{ => resources}/aws-apigateway-method.go | 13 +- .../aws-apigateway-method_integration.go | 8 +- ...s-apigateway-method_integrationresponse.go | 8 +- .../aws-apigateway-method_methodresponse.go | 8 +- .../{ => resources}/aws-apigateway-model.go | 13 +- .../aws-apigateway-requestvalidator.go | 13 +- .../aws-apigateway-resource.go | 13 +- .../{ => resources}/aws-apigateway-restapi.go | 13 +- ...pigateway-restapi_endpointconfiguration.go | 8 +- .../aws-apigateway-restapi_s3location.go | 8 +- .../{ => resources}/aws-apigateway-stage.go | 13 +- .../aws-apigateway-stage_accesslogsetting.go | 8 +- .../aws-apigateway-stage_canarysetting.go | 8 +- .../aws-apigateway-stage_methodsetting.go | 8 +- .../aws-apigateway-usageplan.go | 13 +- .../aws-apigateway-usageplan_apistage.go | 8 +- .../aws-apigateway-usageplan_quotasettings.go | 8 +- ...s-apigateway-usageplan_throttlesettings.go | 8 +- .../aws-apigateway-usageplankey.go | 13 +- .../{ => resources}/aws-apigateway-vpclink.go | 13 +- .../{ => resources}/aws-apigatewayv2-api.go | 13 +- .../aws-apigatewayv2-authorizer.go | 13 +- .../aws-apigatewayv2-deployment.go | 13 +- .../aws-apigatewayv2-integration.go | 13 +- .../aws-apigatewayv2-integrationresponse.go | 13 +- .../{ => resources}/aws-apigatewayv2-model.go | 13 +- .../{ => resources}/aws-apigatewayv2-route.go | 13 +- ...apigatewayv2-route_parameterconstraints.go | 8 +- .../aws-apigatewayv2-routeresponse.go | 13 +- ...ayv2-routeresponse_parameterconstraints.go | 8 +- .../{ => resources}/aws-apigatewayv2-stage.go | 13 +- ...ws-apigatewayv2-stage_accesslogsettings.go | 8 +- .../aws-apigatewayv2-stage_routesettings.go | 8 +- ...s-applicationautoscaling-scalabletarget.go | 13 +- ...ing-scalabletarget_scalabletargetaction.go | 8 +- ...oscaling-scalabletarget_scheduledaction.go | 8 +- ...ws-applicationautoscaling-scalingpolicy.go | 13 +- ...ingpolicy_customizedmetricspecification.go | 8 +- ...toscaling-scalingpolicy_metricdimension.go | 8 +- ...ingpolicy_predefinedmetricspecification.go | 8 +- ...utoscaling-scalingpolicy_stepadjustment.go | 8 +- ...ngpolicy_stepscalingpolicyconfiguration.go | 8 +- ...argettrackingscalingpolicyconfiguration.go | 8 +- .../aws-appstream-directoryconfig.go | 13 +- ...rectoryconfig_serviceaccountcredentials.go | 8 +- .../{ => resources}/aws-appstream-fleet.go | 13 +- .../aws-appstream-fleet_computecapacity.go | 8 +- .../aws-appstream-fleet_domainjoininfo.go | 8 +- .../aws-appstream-fleet_vpcconfig.go | 8 +- .../aws-appstream-imagebuilder.go | 13 +- ...s-appstream-imagebuilder_domainjoininfo.go | 8 +- .../aws-appstream-imagebuilder_vpcconfig.go | 8 +- .../{ => resources}/aws-appstream-stack.go | 13 +- ...aws-appstream-stack_applicationsettings.go | 8 +- .../aws-appstream-stack_storageconnector.go | 8 +- .../aws-appstream-stack_usersetting.go | 8 +- .../aws-appstream-stackfleetassociation.go | 13 +- .../aws-appstream-stackuserassociation.go | 13 +- .../{ => resources}/aws-appstream-user.go | 13 +- .../{ => resources}/aws-appsync-apikey.go | 13 +- .../{ => resources}/aws-appsync-datasource.go | 13 +- ...-appsync-datasource_authorizationconfig.go | 8 +- .../aws-appsync-datasource_awsiamconfig.go | 8 +- .../aws-appsync-datasource_dynamodbconfig.go | 8 +- ...-appsync-datasource_elasticsearchconfig.go | 8 +- .../aws-appsync-datasource_httpconfig.go | 8 +- .../aws-appsync-datasource_lambdaconfig.go | 8 +- ...ppsync-datasource_rdshttpendpointconfig.go | 8 +- ...ync-datasource_relationaldatabaseconfig.go | 8 +- .../aws-appsync-functionconfiguration.go | 13 +- .../{ => resources}/aws-appsync-graphqlapi.go | 13 +- .../aws-appsync-graphqlapi_logconfig.go | 8 +- ...-appsync-graphqlapi_openidconnectconfig.go | 8 +- .../aws-appsync-graphqlapi_userpoolconfig.go | 8 +- .../aws-appsync-graphqlschema.go | 13 +- .../{ => resources}/aws-appsync-resolver.go | 13 +- .../aws-appsync-resolver_pipelineconfig.go | 8 +- .../{ => resources}/aws-athena-namedquery.go | 13 +- .../aws-autoscaling-autoscalinggroup.go | 25 +- ...-autoscalinggroup_instancesdistribution.go | 8 +- ...scaling-autoscalinggroup_launchtemplate.go | 8 +- ...utoscalinggroup_launchtemplateoverrides.go | 8 +- ...calinggroup_launchtemplatespecification.go | 8 +- ...scalinggroup_lifecyclehookspecification.go | 8 +- ...ling-autoscalinggroup_metricscollection.go | 8 +- ...g-autoscalinggroup_mixedinstancespolicy.go | 8 +- ...oscalinggroup_notificationconfiguration.go | 8 +- ...utoscaling-autoscalinggroup_tagproperty.go | 8 +- .../aws-autoscaling-launchconfiguration.go | 13 +- ...scaling-launchconfiguration_blockdevice.go | 8 +- ...-launchconfiguration_blockdevicemapping.go | 8 +- .../aws-autoscaling-lifecyclehook.go | 13 +- .../aws-autoscaling-scalingpolicy.go | 13 +- ...ingpolicy_customizedmetricspecification.go | 8 +- ...toscaling-scalingpolicy_metricdimension.go | 8 +- ...ingpolicy_predefinedmetricspecification.go | 8 +- ...utoscaling-scalingpolicy_stepadjustment.go | 8 +- ...alingpolicy_targettrackingconfiguration.go | 8 +- .../aws-autoscaling-scheduledaction.go | 13 +- .../aws-autoscalingplans-scalingplan.go | 13 +- ...lingplans-scalingplan_applicationsource.go | 8 +- ...gplan_customizedloadmetricspecification.go | 8 +- ...an_customizedscalingmetricspecification.go | 8 +- ...calingplans-scalingplan_metricdimension.go | 8 +- ...gplan_predefinedloadmetricspecification.go | 8 +- ...an_predefinedscalingmetricspecification.go | 8 +- ...ingplans-scalingplan_scalinginstruction.go | 8 +- ...-autoscalingplans-scalingplan_tagfilter.go | 8 +- ...scalingplan_targettrackingconfiguration.go | 8 +- .../aws-batch-computeenvironment.go | 13 +- ...tch-computeenvironment_computeresources.go | 8 +- ...environment_launchtemplatespecification.go | 8 +- .../aws-batch-jobdefinition.go | 13 +- ...batch-jobdefinition_containerproperties.go | 8 +- .../aws-batch-jobdefinition_environment.go | 8 +- .../aws-batch-jobdefinition_mountpoints.go | 8 +- .../aws-batch-jobdefinition_nodeproperties.go | 8 +- ...s-batch-jobdefinition_noderangeproperty.go | 8 +- .../aws-batch-jobdefinition_retrystrategy.go | 8 +- .../aws-batch-jobdefinition_timeout.go | 8 +- .../aws-batch-jobdefinition_ulimit.go | 8 +- .../aws-batch-jobdefinition_volumes.go | 8 +- .../aws-batch-jobdefinition_volumeshost.go | 8 +- .../{ => resources}/aws-batch-jobqueue.go | 13 +- ...-batch-jobqueue_computeenvironmentorder.go | 8 +- .../{ => resources}/aws-budgets-budget.go | 13 +- .../aws-budgets-budget_budgetdata.go | 8 +- .../aws-budgets-budget_costtypes.go | 8 +- .../aws-budgets-budget_notification.go | 8 +- ...gets-budget_notificationwithsubscribers.go | 8 +- .../aws-budgets-budget_spend.go | 8 +- .../aws-budgets-budget_subscriber.go | 8 +- .../aws-budgets-budget_timeperiod.go | 8 +- .../aws-certificatemanager-certificate.go | 13 +- ...ager-certificate_domainvalidationoption.go | 8 +- .../aws-cloud9-environmentec2.go | 13 +- .../aws-cloud9-environmentec2_repository.go | 8 +- .../aws-cloudformation-customresource.go | 13 +- .../aws-cloudformation-macro.go | 13 +- .../aws-cloudformation-stack.go | 13 +- .../aws-cloudformation-waitcondition.go | 19 +- .../aws-cloudformation-waitconditionhandle.go | 13 +- ...oudfront-cloudfrontoriginaccessidentity.go | 13 +- ...ty_cloudfrontoriginaccessidentityconfig.go | 8 +- .../aws-cloudfront-distribution.go | 13 +- ...s-cloudfront-distribution_cachebehavior.go | 8 +- .../aws-cloudfront-distribution_cookies.go | 8 +- ...dfront-distribution_customerrorresponse.go | 8 +- ...udfront-distribution_customoriginconfig.go | 8 +- ...front-distribution_defaultcachebehavior.go | 8 +- ...udfront-distribution_distributionconfig.go | 8 +- ...cloudfront-distribution_forwardedvalues.go | 8 +- ...-cloudfront-distribution_georestriction.go | 8 +- ...-distribution_lambdafunctionassociation.go | 8 +- .../aws-cloudfront-distribution_logging.go | 8 +- .../aws-cloudfront-distribution_origin.go | 8 +- ...udfront-distribution_origincustomheader.go | 8 +- ...ws-cloudfront-distribution_restrictions.go | 8 +- ...-cloudfront-distribution_s3originconfig.go | 8 +- ...oudfront-distribution_viewercertificate.go | 8 +- .../aws-cloudfront-streamingdistribution.go | 13 +- ...loudfront-streamingdistribution_logging.go | 8 +- ...oudfront-streamingdistribution_s3origin.go | 8 +- ...istribution_streamingdistributionconfig.go | 8 +- ...nt-streamingdistribution_trustedsigners.go | 8 +- .../{ => resources}/aws-cloudtrail-trail.go | 13 +- .../aws-cloudtrail-trail_dataresource.go | 8 +- .../aws-cloudtrail-trail_eventselector.go | 8 +- .../{ => resources}/aws-cloudwatch-alarm.go | 13 +- .../aws-cloudwatch-alarm_dimension.go | 8 +- .../aws-cloudwatch-alarm_metric.go | 8 +- .../aws-cloudwatch-alarm_metricdataquery.go | 8 +- .../aws-cloudwatch-alarm_metricstat.go | 8 +- .../aws-cloudwatch-dashboard.go | 13 +- .../{ => resources}/aws-codebuild-project.go | 13 +- .../aws-codebuild-project_artifacts.go | 8 +- ...-codebuild-project_cloudwatchlogsconfig.go | 8 +- .../aws-codebuild-project_environment.go | 8 +- ...s-codebuild-project_environmentvariable.go | 8 +- .../aws-codebuild-project_filtergroup.go | 8 +- .../aws-codebuild-project_logsconfig.go | 8 +- .../aws-codebuild-project_projectcache.go | 8 +- .../aws-codebuild-project_projecttriggers.go | 8 +- ...ws-codebuild-project_registrycredential.go | 8 +- .../aws-codebuild-project_s3logsconfig.go | 8 +- .../aws-codebuild-project_source.go | 8 +- .../aws-codebuild-project_sourceauth.go | 8 +- .../aws-codebuild-project_vpcconfig.go | 8 +- .../aws-codebuild-project_webhookfilter.go | 8 +- .../aws-codecommit-repository.go | 13 +- ...codecommit-repository_repositorytrigger.go | 8 +- .../aws-codedeploy-application.go | 13 +- .../aws-codedeploy-deploymentconfig.go | 13 +- ...oy-deploymentconfig_minimumhealthyhosts.go | 8 +- .../aws-codedeploy-deploymentgroup.go | 13 +- .../aws-codedeploy-deploymentgroup_alarm.go | 8 +- ...ploy-deploymentgroup_alarmconfiguration.go | 8 +- ...ploymentgroup_autorollbackconfiguration.go | 8 +- ...s-codedeploy-deploymentgroup_deployment.go | 8 +- ...edeploy-deploymentgroup_deploymentstyle.go | 8 +- ...codedeploy-deploymentgroup_ec2tagfilter.go | 8 +- ...ws-codedeploy-deploymentgroup_ec2tagset.go | 8 +- ...loy-deploymentgroup_ec2tagsetlistobject.go | 8 +- .../aws-codedeploy-deploymentgroup_elbinfo.go | 8 +- ...dedeploy-deploymentgroup_githublocation.go | 8 +- ...deploy-deploymentgroup_loadbalancerinfo.go | 8 +- ...deploy-deploymentgroup_onpremisestagset.go | 8 +- ...loymentgroup_onpremisestagsetlistobject.go | 8 +- ...deploy-deploymentgroup_revisionlocation.go | 8 +- ...s-codedeploy-deploymentgroup_s3location.go | 8 +- ...ws-codedeploy-deploymentgroup_tagfilter.go | 8 +- ...edeploy-deploymentgroup_targetgroupinfo.go | 8 +- ...odedeploy-deploymentgroup_triggerconfig.go | 8 +- .../aws-codepipeline-customactiontype.go | 13 +- ...peline-customactiontype_artifactdetails.go | 8 +- ...ustomactiontype_configurationproperties.go | 8 +- ...-codepipeline-customactiontype_settings.go | 8 +- .../aws-codepipeline-pipeline.go | 13 +- ...codepipeline-pipeline_actiondeclaration.go | 8 +- .../aws-codepipeline-pipeline_actiontypeid.go | 8 +- ...aws-codepipeline-pipeline_artifactstore.go | 8 +- ...-codepipeline-pipeline_artifactstoremap.go | 8 +- ...odepipeline-pipeline_blockerdeclaration.go | 8 +- ...aws-codepipeline-pipeline_encryptionkey.go | 8 +- ...aws-codepipeline-pipeline_inputartifact.go | 8 +- ...ws-codepipeline-pipeline_outputartifact.go | 8 +- ...-codepipeline-pipeline_stagedeclaration.go | 8 +- ...s-codepipeline-pipeline_stagetransition.go | 8 +- .../aws-codepipeline-webhook.go | 13 +- ...peline-webhook_webhookauthconfiguration.go | 8 +- ...-codepipeline-webhook_webhookfilterrule.go | 8 +- .../aws-cognito-identitypool.go | 13 +- ...to-identitypool_cognitoidentityprovider.go | 8 +- ...aws-cognito-identitypool_cognitostreams.go | 8 +- .../aws-cognito-identitypool_pushsync.go | 8 +- .../aws-cognito-identitypoolroleattachment.go | 13 +- ...-identitypoolroleattachment_mappingrule.go | 8 +- ...-identitypoolroleattachment_rolemapping.go | 8 +- ...olroleattachment_rulesconfigurationtype.go | 8 +- .../{ => resources}/aws-cognito-userpool.go | 13 +- ...-cognito-userpool_admincreateuserconfig.go | 8 +- ...ws-cognito-userpool_deviceconfiguration.go | 8 +- ...aws-cognito-userpool_emailconfiguration.go | 8 +- ...-cognito-userpool_invitemessagetemplate.go | 8 +- .../aws-cognito-userpool_lambdaconfig.go | 8 +- ...ito-userpool_numberattributeconstraints.go | 8 +- .../aws-cognito-userpool_passwordpolicy.go | 8 +- .../aws-cognito-userpool_policies.go | 8 +- .../aws-cognito-userpool_schemaattribute.go | 8 +- .../aws-cognito-userpool_smsconfiguration.go | 8 +- ...ito-userpool_stringattributeconstraints.go | 8 +- .../aws-cognito-userpoolclient.go | 13 +- .../aws-cognito-userpoolgroup.go | 13 +- .../aws-cognito-userpooluser.go | 13 +- .../aws-cognito-userpooluser_attributetype.go | 8 +- ...s-cognito-userpoolusertogroupattachment.go | 13 +- .../aws-config-aggregationauthorization.go | 13 +- .../{ => resources}/aws-config-configrule.go | 13 +- .../aws-config-configrule_scope.go | 8 +- .../aws-config-configrule_source.go | 8 +- .../aws-config-configrule_sourcedetail.go | 8 +- .../aws-config-configurationaggregator.go | 13 +- ...tionaggregator_accountaggregationsource.go | 8 +- ...ggregator_organizationaggregationsource.go | 8 +- .../aws-config-configurationrecorder.go | 13 +- ...ig-configurationrecorder_recordinggroup.go | 8 +- .../aws-config-deliverychannel.go | 13 +- ...hannel_configsnapshotdeliveryproperties.go | 8 +- .../aws-datapipeline-pipeline.go | 13 +- .../aws-datapipeline-pipeline_field.go | 8 +- ...atapipeline-pipeline_parameterattribute.go | 8 +- ...s-datapipeline-pipeline_parameterobject.go | 8 +- ...ws-datapipeline-pipeline_parametervalue.go | 8 +- ...ws-datapipeline-pipeline_pipelineobject.go | 8 +- .../aws-datapipeline-pipeline_pipelinetag.go | 8 +- .../{ => resources}/aws-dax-cluster.go | 13 +- .../aws-dax-cluster_ssespecification.go | 8 +- .../{ => resources}/aws-dax-parametergroup.go | 13 +- .../{ => resources}/aws-dax-subnetgroup.go | 13 +- .../aws-directoryservice-microsoftad.go | 13 +- ...irectoryservice-microsoftad_vpcsettings.go | 8 +- .../aws-directoryservice-simplead.go | 13 +- ...s-directoryservice-simplead_vpcsettings.go | 8 +- .../aws-dlm-lifecyclepolicy.go | 13 +- .../aws-dlm-lifecyclepolicy_createrule.go | 8 +- .../aws-dlm-lifecyclepolicy_policydetails.go | 8 +- .../aws-dlm-lifecyclepolicy_retainrule.go | 8 +- .../aws-dlm-lifecyclepolicy_schedule.go | 8 +- .../{ => resources}/aws-dms-certificate.go | 13 +- .../{ => resources}/aws-dms-endpoint.go | 13 +- .../aws-dms-endpoint_dynamodbsettings.go | 8 +- .../aws-dms-endpoint_elasticsearchsettings.go | 8 +- .../aws-dms-endpoint_kinesissettings.go | 8 +- .../aws-dms-endpoint_mongodbsettings.go | 8 +- .../aws-dms-endpoint_s3settings.go | 8 +- .../aws-dms-eventsubscription.go | 13 +- .../aws-dms-replicationinstance.go | 13 +- .../aws-dms-replicationsubnetgroup.go | 13 +- .../aws-dms-replicationtask.go | 13 +- .../{ => resources}/aws-docdb-dbcluster.go | 13 +- .../aws-docdb-dbclusterparametergroup.go | 13 +- .../{ => resources}/aws-docdb-dbinstance.go | 13 +- .../aws-docdb-dbsubnetgroup.go | 13 +- .../{ => resources}/aws-dynamodb-table.go | 13 +- .../aws-dynamodb-table_attributedefinition.go | 8 +- ...aws-dynamodb-table_globalsecondaryindex.go | 8 +- .../aws-dynamodb-table_keyschema.go | 8 +- .../aws-dynamodb-table_localsecondaryindex.go | 8 +- ...-table_pointintimerecoveryspecification.go | 8 +- .../aws-dynamodb-table_projection.go | 8 +- ...ws-dynamodb-table_provisionedthroughput.go | 8 +- .../aws-dynamodb-table_ssespecification.go | 8 +- .../aws-dynamodb-table_streamspecification.go | 8 +- ...-dynamodb-table_timetolivespecification.go | 8 +- .../aws-ec2-customergateway.go | 13 +- .../{ => resources}/aws-ec2-dhcpoptions.go | 13 +- .../{ => resources}/aws-ec2-ec2fleet.go | 13 +- ...2fleet_fleetlaunchtemplateconfigrequest.go | 8 +- ...eet_fleetlaunchtemplateoverridesrequest.go | 8 +- ...fleetlaunchtemplatespecificationrequest.go | 8 +- ...aws-ec2-ec2fleet_ondemandoptionsrequest.go | 8 +- .../aws-ec2-ec2fleet_spotoptionsrequest.go | 8 +- .../aws-ec2-ec2fleet_tagrequest.go | 8 +- .../aws-ec2-ec2fleet_tagspecification.go | 8 +- ...leet_targetcapacityspecificationrequest.go | 8 +- .../aws-ec2-egressonlyinternetgateway.go | 13 +- cloudformation/{ => resources}/aws-ec2-eip.go | 13 +- .../{ => resources}/aws-ec2-eipassociation.go | 13 +- .../{ => resources}/aws-ec2-flowlog.go | 13 +- .../{ => resources}/aws-ec2-host.go | 13 +- .../{ => resources}/aws-ec2-instance.go | 19 +- .../aws-ec2-instance_associationparameter.go | 8 +- .../aws-ec2-instance_blockdevicemapping.go | 8 +- .../aws-ec2-instance_creditspecification.go | 8 +- .../{ => resources}/aws-ec2-instance_ebs.go | 8 +- ...ws-ec2-instance_elasticgpuspecification.go | 8 +- ...c2-instance_elasticinferenceaccelerator.go | 8 +- .../aws-ec2-instance_instanceipv6address.go | 8 +- ...c2-instance_launchtemplatespecification.go | 8 +- .../aws-ec2-instance_licensespecification.go | 8 +- .../aws-ec2-instance_networkinterface.go | 8 +- .../aws-ec2-instance_nodevice.go | 8 +- ...-instance_privateipaddressspecification.go | 8 +- .../aws-ec2-instance_ssmassociation.go | 8 +- .../aws-ec2-instance_volume.go | 8 +- .../aws-ec2-internetgateway.go | 13 +- .../{ => resources}/aws-ec2-launchtemplate.go | 13 +- ...s-ec2-launchtemplate_blockdevicemapping.go | 8 +- ...htemplate_capacityreservationpreference.go | 8 +- ...mplate_capacityreservationspecification.go | 8 +- ...aunchtemplate_capacityreservationtarget.go | 8 +- .../aws-ec2-launchtemplate_cpuoptions.go | 8 +- ...-ec2-launchtemplate_creditspecification.go | 8 +- .../aws-ec2-launchtemplate_ebs.go | 8 +- ...-launchtemplate_elasticgpuspecification.go | 8 +- ...s-ec2-launchtemplate_hibernationoptions.go | 8 +- ...s-ec2-launchtemplate_iaminstanceprofile.go | 8 +- ...c2-launchtemplate_instancemarketoptions.go | 8 +- .../aws-ec2-launchtemplate_ipv6add.go | 8 +- ...s-ec2-launchtemplate_launchtemplatedata.go | 8 +- ...unchtemplateelasticinferenceaccelerator.go | 8 +- ...ec2-launchtemplate_licensespecification.go | 8 +- .../aws-ec2-launchtemplate_monitoring.go | 8 +- ...aws-ec2-launchtemplate_networkinterface.go | 8 +- .../aws-ec2-launchtemplate_placement.go | 8 +- .../aws-ec2-launchtemplate_privateipadd.go | 8 +- .../aws-ec2-launchtemplate_spotoptions.go | 8 +- ...aws-ec2-launchtemplate_tagspecification.go | 8 +- .../{ => resources}/aws-ec2-natgateway.go | 13 +- .../{ => resources}/aws-ec2-networkacl.go | 13 +- .../aws-ec2-networkaclentry.go | 13 +- .../aws-ec2-networkaclentry_icmp.go | 8 +- .../aws-ec2-networkaclentry_portrange.go | 8 +- .../aws-ec2-networkinterface.go | 13 +- ...c2-networkinterface_instanceipv6address.go | 8 +- ...interface_privateipaddressspecification.go | 8 +- .../aws-ec2-networkinterfaceattachment.go | 13 +- .../aws-ec2-networkinterfacepermission.go | 13 +- .../{ => resources}/aws-ec2-placementgroup.go | 13 +- .../{ => resources}/aws-ec2-route.go | 13 +- .../{ => resources}/aws-ec2-routetable.go | 13 +- .../{ => resources}/aws-ec2-securitygroup.go | 13 +- .../aws-ec2-securitygroup_egress.go | 8 +- .../aws-ec2-securitygroup_ingress.go | 8 +- .../aws-ec2-securitygroupegress.go | 13 +- .../aws-ec2-securitygroupingress.go | 13 +- .../{ => resources}/aws-ec2-spotfleet.go | 13 +- .../aws-ec2-spotfleet_blockdevicemapping.go | 8 +- .../aws-ec2-spotfleet_classicloadbalancer.go | 8 +- ...c2-spotfleet_classicloadbalancersconfig.go | 8 +- .../aws-ec2-spotfleet_ebsblockdevice.go | 8 +- ...tfleet_fleetlaunchtemplatespecification.go | 8 +- .../aws-ec2-spotfleet_groupidentifier.go | 8 +- ...otfleet_iaminstanceprofilespecification.go | 8 +- .../aws-ec2-spotfleet_instanceipv6address.go | 8 +- ...t_instancenetworkinterfacespecification.go | 8 +- .../aws-ec2-spotfleet_launchtemplateconfig.go | 8 +- ...s-ec2-spotfleet_launchtemplateoverrides.go | 8 +- .../aws-ec2-spotfleet_loadbalancersconfig.go | 8 +- ...spotfleet_privateipaddressspecification.go | 8 +- ...-spotfleet_spotfleetlaunchspecification.go | 8 +- .../aws-ec2-spotfleet_spotfleetmonitoring.go | 8 +- ...c2-spotfleet_spotfleetrequestconfigdata.go | 8 +- ...ec2-spotfleet_spotfleettagspecification.go | 8 +- .../aws-ec2-spotfleet_spotplacement.go | 8 +- .../aws-ec2-spotfleet_targetgroup.go | 8 +- .../aws-ec2-spotfleet_targetgroupsconfig.go | 8 +- .../{ => resources}/aws-ec2-subnet.go | 13 +- .../aws-ec2-subnetcidrblock.go | 13 +- .../aws-ec2-subnetnetworkaclassociation.go | 13 +- .../aws-ec2-subnetroutetableassociation.go | 13 +- .../{ => resources}/aws-ec2-transitgateway.go | 13 +- .../aws-ec2-transitgatewayattachment.go | 13 +- .../aws-ec2-transitgatewayroute.go | 13 +- .../aws-ec2-transitgatewayroutetable.go | 13 +- ...ec2-transitgatewayroutetableassociation.go | 13 +- ...ec2-transitgatewayroutetablepropagation.go | 13 +- .../aws-ec2-trunkinterfaceassociation.go | 13 +- .../{ => resources}/aws-ec2-volume.go | 13 +- .../aws-ec2-volumeattachment.go | 13 +- cloudformation/{ => resources}/aws-ec2-vpc.go | 13 +- .../{ => resources}/aws-ec2-vpccidrblock.go | 13 +- .../aws-ec2-vpcdhcpoptionsassociation.go | 13 +- .../{ => resources}/aws-ec2-vpcendpoint.go | 13 +- ...s-ec2-vpcendpointconnectionnotification.go | 13 +- .../aws-ec2-vpcendpointservicepermissions.go | 13 +- .../aws-ec2-vpcgatewayattachment.go | 13 +- .../aws-ec2-vpcpeeringconnection.go | 13 +- .../{ => resources}/aws-ec2-vpnconnection.go | 13 +- ...onnection_vpntunneloptionsspecification.go | 8 +- .../aws-ec2-vpnconnectionroute.go | 13 +- .../{ => resources}/aws-ec2-vpngateway.go | 13 +- .../aws-ec2-vpngatewayroutepropagation.go | 13 +- .../{ => resources}/aws-ecr-repository.go | 13 +- .../aws-ecr-repository_lifecyclepolicy.go | 8 +- .../{ => resources}/aws-ecs-cluster.go | 13 +- .../{ => resources}/aws-ecs-service.go | 13 +- .../aws-ecs-service_awsvpcconfiguration.go | 8 +- ...aws-ecs-service_deploymentconfiguration.go | 8 +- .../aws-ecs-service_loadbalancer.go | 8 +- .../aws-ecs-service_networkconfiguration.go | 8 +- .../aws-ecs-service_placementconstraint.go | 8 +- .../aws-ecs-service_placementstrategy.go | 8 +- .../aws-ecs-service_serviceregistry.go | 8 +- .../{ => resources}/aws-ecs-taskdefinition.go | 13 +- ...-ecs-taskdefinition_containerdefinition.go | 8 +- .../aws-ecs-taskdefinition_device.go | 8 +- ...askdefinition_dockervolumeconfiguration.go | 8 +- .../aws-ecs-taskdefinition_healthcheck.go | 8 +- .../aws-ecs-taskdefinition_hostentry.go | 8 +- ...ecs-taskdefinition_hostvolumeproperties.go | 8 +- ...s-ecs-taskdefinition_kernelcapabilities.go | 8 +- .../aws-ecs-taskdefinition_keyvaluepair.go | 8 +- .../aws-ecs-taskdefinition_linuxparameters.go | 8 +- ...aws-ecs-taskdefinition_logconfiguration.go | 8 +- .../aws-ecs-taskdefinition_mountpoint.go | 8 +- .../aws-ecs-taskdefinition_portmapping.go | 8 +- ...cs-taskdefinition_repositorycredentials.go | 8 +- ...ition_taskdefinitionplacementconstraint.go | 8 +- .../aws-ecs-taskdefinition_tmpfs.go | 8 +- .../aws-ecs-taskdefinition_ulimit.go | 8 +- .../aws-ecs-taskdefinition_volume.go | 8 +- .../aws-ecs-taskdefinition_volumefrom.go | 8 +- .../{ => resources}/aws-efs-filesystem.go | 13 +- ...aws-efs-filesystem_elasticfilesystemtag.go | 8 +- .../{ => resources}/aws-efs-mounttarget.go | 13 +- .../{ => resources}/aws-eks-cluster.go | 13 +- .../aws-eks-cluster_resourcesvpcconfig.go | 8 +- .../aws-elasticache-cachecluster.go | 13 +- .../aws-elasticache-parametergroup.go | 13 +- .../aws-elasticache-replicationgroup.go | 13 +- ...replicationgroup_nodegroupconfiguration.go | 8 +- .../aws-elasticache-securitygroup.go | 13 +- .../aws-elasticache-securitygroupingress.go | 13 +- .../aws-elasticache-subnetgroup.go | 13 +- .../aws-elasticbeanstalk-application.go | 13 +- ...tion_applicationresourcelifecycleconfig.go | 8 +- ...ation_applicationversionlifecycleconfig.go | 8 +- ...elasticbeanstalk-application_maxagerule.go | 8 +- ...asticbeanstalk-application_maxcountrule.go | 8 +- ...aws-elasticbeanstalk-applicationversion.go | 13 +- ...anstalk-applicationversion_sourcebundle.go | 8 +- ...-elasticbeanstalk-configurationtemplate.go | 13 +- ...tiontemplate_configurationoptionsetting.go | 8 +- ...nfigurationtemplate_sourceconfiguration.go | 8 +- .../aws-elasticbeanstalk-environment.go | 13 +- ...sticbeanstalk-environment_optionsetting.go | 8 +- .../aws-elasticbeanstalk-environment_tier.go | 8 +- .../aws-elasticloadbalancing-loadbalancer.go | 13 +- ...ancing-loadbalancer_accessloggingpolicy.go | 8 +- ...-loadbalancer_appcookiestickinesspolicy.go | 8 +- ...g-loadbalancer_connectiondrainingpolicy.go | 8 +- ...lancing-loadbalancer_connectionsettings.go | 8 +- ...cloadbalancing-loadbalancer_healthcheck.go | 8 +- ...g-loadbalancer_lbcookiestickinesspolicy.go | 8 +- ...ticloadbalancing-loadbalancer_listeners.go | 8 +- ...sticloadbalancing-loadbalancer_policies.go | 8 +- .../aws-elasticloadbalancingv2-listener.go | 13 +- ...-elasticloadbalancingv2-listener_action.go | 8 +- ...ngv2-listener_authenticatecognitoconfig.go | 8 +- ...ncingv2-listener_authenticateoidcconfig.go | 8 +- ...ticloadbalancingv2-listener_certificate.go | 8 +- ...alancingv2-listener_fixedresponseconfig.go | 8 +- ...loadbalancingv2-listener_redirectconfig.go | 8 +- ...sticloadbalancingv2-listenercertificate.go | 13 +- ...ncingv2-listenercertificate_certificate.go | 8 +- ...aws-elasticloadbalancingv2-listenerrule.go | 13 +- ...sticloadbalancingv2-listenerrule_action.go | 8 +- ...-listenerrule_authenticatecognitoconfig.go | 8 +- ...gv2-listenerrule_authenticateoidcconfig.go | 8 +- ...cingv2-listenerrule_fixedresponseconfig.go | 8 +- ...balancingv2-listenerrule_redirectconfig.go | 8 +- ...dbalancingv2-listenerrule_rulecondition.go | 8 +- ...aws-elasticloadbalancingv2-loadbalancer.go | 13 +- ...ngv2-loadbalancer_loadbalancerattribute.go | 8 +- ...dbalancingv2-loadbalancer_subnetmapping.go | 8 +- .../aws-elasticloadbalancingv2-targetgroup.go | 13 +- ...sticloadbalancingv2-targetgroup_matcher.go | 8 +- ...lancingv2-targetgroup_targetdescription.go | 8 +- ...cingv2-targetgroup_targetgroupattribute.go | 8 +- .../aws-elasticsearch-domain.go | 13 +- .../aws-elasticsearch-domain_ebsoptions.go | 8 +- ...earch-domain_elasticsearchclusterconfig.go | 8 +- ...icsearch-domain_encryptionatrestoptions.go | 8 +- ...arch-domain_nodetonodeencryptionoptions.go | 8 +- ...ws-elasticsearch-domain_snapshotoptions.go | 8 +- .../aws-elasticsearch-domain_vpcoptions.go | 8 +- .../{ => resources}/aws-emr-cluster.go | 13 +- .../aws-emr-cluster_application.go | 8 +- .../aws-emr-cluster_autoscalingpolicy.go | 8 +- .../aws-emr-cluster_bootstrapactionconfig.go | 8 +- ...s-emr-cluster_cloudwatchalarmdefinition.go | 8 +- .../aws-emr-cluster_configuration.go | 8 +- .../aws-emr-cluster_ebsblockdeviceconfig.go | 8 +- .../aws-emr-cluster_ebsconfiguration.go | 8 +- .../aws-emr-cluster_hadoopjarstepconfig.go | 8 +- .../aws-emr-cluster_instancefleetconfig.go | 8 +- ...instancefleetprovisioningspecifications.go | 8 +- .../aws-emr-cluster_instancegroupconfig.go | 8 +- .../aws-emr-cluster_instancetypeconfig.go | 8 +- .../aws-emr-cluster_jobflowinstancesconfig.go | 8 +- .../aws-emr-cluster_kerberosattributes.go | 8 +- .../aws-emr-cluster_keyvalue.go | 8 +- .../aws-emr-cluster_metricdimension.go | 8 +- .../aws-emr-cluster_placementtype.go | 8 +- .../aws-emr-cluster_scalingaction.go | 8 +- .../aws-emr-cluster_scalingconstraints.go | 8 +- .../aws-emr-cluster_scalingrule.go | 8 +- .../aws-emr-cluster_scalingtrigger.go | 8 +- ...emr-cluster_scriptbootstrapactionconfig.go | 8 +- ...luster_simplescalingpolicyconfiguration.go | 8 +- ...r-cluster_spotprovisioningspecification.go | 8 +- .../aws-emr-cluster_stepconfig.go | 8 +- .../aws-emr-cluster_volumespecification.go | 8 +- .../aws-emr-instancefleetconfig.go | 13 +- ...s-emr-instancefleetconfig_configuration.go | 8 +- ...nstancefleetconfig_ebsblockdeviceconfig.go | 8 +- ...mr-instancefleetconfig_ebsconfiguration.go | 8 +- ...instancefleetprovisioningspecifications.go | 8 +- ...-instancefleetconfig_instancetypeconfig.go | 8 +- ...eetconfig_spotprovisioningspecification.go | 8 +- ...instancefleetconfig_volumespecification.go | 8 +- .../aws-emr-instancegroupconfig.go | 13 +- ...r-instancegroupconfig_autoscalingpolicy.go | 8 +- ...cegroupconfig_cloudwatchalarmdefinition.go | 8 +- ...s-emr-instancegroupconfig_configuration.go | 8 +- ...nstancegroupconfig_ebsblockdeviceconfig.go | 8 +- ...mr-instancegroupconfig_ebsconfiguration.go | 8 +- ...emr-instancegroupconfig_metricdimension.go | 8 +- ...s-emr-instancegroupconfig_scalingaction.go | 8 +- ...-instancegroupconfig_scalingconstraints.go | 8 +- ...aws-emr-instancegroupconfig_scalingrule.go | 8 +- ...-emr-instancegroupconfig_scalingtrigger.go | 8 +- ...config_simplescalingpolicyconfiguration.go | 8 +- ...instancegroupconfig_volumespecification.go | 8 +- .../aws-emr-securityconfiguration.go | 13 +- .../{ => resources}/aws-emr-step.go | 13 +- .../aws-emr-step_hadoopjarstepconfig.go | 8 +- .../{ => resources}/aws-emr-step_keyvalue.go | 8 +- .../aws-events-eventbuspolicy.go | 13 +- .../aws-events-eventbuspolicy_condition.go | 8 +- .../{ => resources}/aws-events-rule.go | 13 +- .../aws-events-rule_ecsparameters.go | 8 +- .../aws-events-rule_inputtransformer.go | 8 +- .../aws-events-rule_kinesisparameters.go | 8 +- .../aws-events-rule_runcommandparameters.go | 8 +- .../aws-events-rule_runcommandtarget.go | 8 +- .../aws-events-rule_sqsparameters.go | 8 +- .../{ => resources}/aws-events-rule_target.go | 8 +- .../{ => resources}/aws-fsx-filesystem.go | 13 +- .../aws-fsx-filesystem_lustreconfiguration.go | 8 +- .../aws-fsx-filesystem_tagentry.go | 8 +- ...aws-fsx-filesystem_windowsconfiguration.go | 8 +- .../{ => resources}/aws-gamelift-alias.go | 13 +- .../aws-gamelift-alias_routingstrategy.go | 8 +- .../{ => resources}/aws-gamelift-build.go | 13 +- .../aws-gamelift-build_s3location.go | 8 +- .../{ => resources}/aws-gamelift-fleet.go | 13 +- .../aws-gamelift-fleet_ippermission.go | 8 +- .../{ => resources}/aws-glue-classifier.go | 13 +- .../aws-glue-classifier_grokclassifier.go | 8 +- .../aws-glue-classifier_jsonclassifier.go | 8 +- .../aws-glue-classifier_xmlclassifier.go | 8 +- .../{ => resources}/aws-glue-connection.go | 13 +- .../aws-glue-connection_connectioninput.go | 8 +- ...nnection_physicalconnectionrequirements.go | 8 +- .../{ => resources}/aws-glue-crawler.go | 13 +- .../aws-glue-crawler_jdbctarget.go | 8 +- .../aws-glue-crawler_s3target.go | 8 +- .../aws-glue-crawler_schedule.go | 8 +- .../aws-glue-crawler_schemachangepolicy.go | 8 +- .../aws-glue-crawler_targets.go | 8 +- .../{ => resources}/aws-glue-database.go | 13 +- .../aws-glue-database_databaseinput.go | 8 +- .../{ => resources}/aws-glue-devendpoint.go | 13 +- .../{ => resources}/aws-glue-job.go | 13 +- .../aws-glue-job_connectionslist.go | 8 +- .../aws-glue-job_executionproperty.go | 8 +- .../aws-glue-job_jobcommand.go | 8 +- .../{ => resources}/aws-glue-partition.go | 13 +- .../aws-glue-partition_column.go | 8 +- .../aws-glue-partition_order.go | 8 +- .../aws-glue-partition_partitioninput.go | 8 +- .../aws-glue-partition_serdeinfo.go | 8 +- .../aws-glue-partition_skewedinfo.go | 8 +- .../aws-glue-partition_storagedescriptor.go | 8 +- .../{ => resources}/aws-glue-table.go | 13 +- .../{ => resources}/aws-glue-table_column.go | 8 +- .../{ => resources}/aws-glue-table_order.go | 8 +- .../aws-glue-table_serdeinfo.go | 8 +- .../aws-glue-table_skewedinfo.go | 8 +- .../aws-glue-table_storagedescriptor.go | 8 +- .../aws-glue-table_tableinput.go | 8 +- .../{ => resources}/aws-glue-trigger.go | 13 +- .../aws-glue-trigger_action.go | 8 +- .../aws-glue-trigger_condition.go | 8 +- .../aws-glue-trigger_predicate.go | 8 +- .../{ => resources}/aws-guardduty-detector.go | 13 +- .../{ => resources}/aws-guardduty-filter.go | 13 +- .../aws-guardduty-filter_condition.go | 8 +- .../aws-guardduty-filter_findingcriteria.go | 8 +- .../{ => resources}/aws-guardduty-ipset.go | 13 +- .../{ => resources}/aws-guardduty-master.go | 13 +- .../{ => resources}/aws-guardduty-member.go | 13 +- .../aws-guardduty-threatintelset.go | 13 +- .../{ => resources}/aws-iam-accesskey.go | 13 +- .../{ => resources}/aws-iam-group.go | 13 +- .../{ => resources}/aws-iam-group_policy.go | 8 +- .../aws-iam-instanceprofile.go | 13 +- .../{ => resources}/aws-iam-managedpolicy.go | 13 +- .../{ => resources}/aws-iam-policy.go | 13 +- .../{ => resources}/aws-iam-role.go | 13 +- .../{ => resources}/aws-iam-role_policy.go | 8 +- .../aws-iam-servicelinkedrole.go | 13 +- .../{ => resources}/aws-iam-user.go | 13 +- .../aws-iam-user_loginprofile.go | 8 +- .../{ => resources}/aws-iam-user_policy.go | 8 +- .../aws-iam-usertogroupaddition.go | 13 +- .../aws-inspector-assessmenttarget.go | 13 +- .../aws-inspector-assessmenttemplate.go | 13 +- .../aws-inspector-resourcegroup.go | 13 +- .../{ => resources}/aws-iot-certificate.go | 13 +- .../{ => resources}/aws-iot-policy.go | 13 +- .../aws-iot-policyprincipalattachment.go | 13 +- .../{ => resources}/aws-iot-thing.go | 13 +- .../aws-iot-thing_attributepayload.go | 8 +- .../aws-iot-thingprincipalattachment.go | 13 +- .../{ => resources}/aws-iot-topicrule.go | 13 +- .../aws-iot-topicrule_action.go | 8 +- ...aws-iot-topicrule_cloudwatchalarmaction.go | 8 +- ...ws-iot-topicrule_cloudwatchmetricaction.go | 8 +- .../aws-iot-topicrule_dynamodbaction.go | 8 +- .../aws-iot-topicrule_dynamodbv2action.go | 8 +- .../aws-iot-topicrule_elasticsearchaction.go | 8 +- .../aws-iot-topicrule_firehoseaction.go | 8 +- .../aws-iot-topicrule_iotanalyticsaction.go | 8 +- .../aws-iot-topicrule_kinesisaction.go | 8 +- .../aws-iot-topicrule_lambdaaction.go | 8 +- .../aws-iot-topicrule_putiteminput.go | 8 +- .../aws-iot-topicrule_republishaction.go | 8 +- .../aws-iot-topicrule_s3action.go | 8 +- .../aws-iot-topicrule_snsaction.go | 8 +- .../aws-iot-topicrule_sqsaction.go | 8 +- .../aws-iot-topicrule_stepfunctionsaction.go | 8 +- .../aws-iot-topicrule_topicrulepayload.go | 8 +- .../{ => resources}/aws-iot1click-device.go | 13 +- .../aws-iot1click-placement.go | 13 +- .../{ => resources}/aws-iot1click-project.go | 13 +- .../aws-iot1click-project_devicetemplate.go | 8 +- ...aws-iot1click-project_placementtemplate.go | 8 +- .../aws-iotanalytics-channel.go | 13 +- ...ws-iotanalytics-channel_retentionperiod.go | 8 +- .../aws-iotanalytics-dataset.go | 13 +- .../aws-iotanalytics-dataset_action.go | 8 +- ...ws-iotanalytics-dataset_containeraction.go | 8 +- ...tics-dataset_datasetcontentversionvalue.go | 8 +- .../aws-iotanalytics-dataset_deltatime.go | 8 +- .../aws-iotanalytics-dataset_filter.go | 8 +- ...iotanalytics-dataset_outputfileurivalue.go | 8 +- .../aws-iotanalytics-dataset_queryaction.go | 8 +- ...analytics-dataset_resourceconfiguration.go | 8 +- ...ws-iotanalytics-dataset_retentionperiod.go | 8 +- .../aws-iotanalytics-dataset_schedule.go | 8 +- .../aws-iotanalytics-dataset_trigger.go | 8 +- ...-iotanalytics-dataset_triggeringdataset.go | 8 +- .../aws-iotanalytics-dataset_variable.go | 8 +- .../aws-iotanalytics-datastore.go | 13 +- ...-iotanalytics-datastore_retentionperiod.go | 8 +- .../aws-iotanalytics-pipeline.go | 13 +- .../aws-iotanalytics-pipeline_activity.go | 8 +- ...aws-iotanalytics-pipeline_addattributes.go | 8 +- .../aws-iotanalytics-pipeline_channel.go | 8 +- .../aws-iotanalytics-pipeline_datastore.go | 8 +- ...analytics-pipeline_deviceregistryenrich.go | 8 +- ...otanalytics-pipeline_deviceshadowenrich.go | 8 +- .../aws-iotanalytics-pipeline_filter.go | 8 +- .../aws-iotanalytics-pipeline_lambda.go | 8 +- .../aws-iotanalytics-pipeline_math.go | 8 +- ...-iotanalytics-pipeline_removeattributes.go | 8 +- ...-iotanalytics-pipeline_selectattributes.go | 8 +- .../{ => resources}/aws-kinesis-stream.go | 13 +- .../aws-kinesis-stream_streamencryption.go | 8 +- .../aws-kinesis-streamconsumer.go | 13 +- .../aws-kinesisanalytics-application.go | 13 +- ...lytics-application_csvmappingparameters.go | 8 +- .../aws-kinesisanalytics-application_input.go | 8 +- ...lytics-application_inputlambdaprocessor.go | 8 +- ...sanalytics-application_inputparallelism.go | 8 +- ...pplication_inputprocessingconfiguration.go | 8 +- ...inesisanalytics-application_inputschema.go | 8 +- ...ytics-application_jsonmappingparameters.go | 8 +- ...lytics-application_kinesisfirehoseinput.go | 8 +- ...alytics-application_kinesisstreamsinput.go | 8 +- ...analytics-application_mappingparameters.go | 8 +- ...nesisanalytics-application_recordcolumn.go | 8 +- ...nesisanalytics-application_recordformat.go | 8 +- .../aws-kinesisanalytics-applicationoutput.go | 13 +- ...ics-applicationoutput_destinationschema.go | 8 +- ...applicationoutput_kinesisfirehoseoutput.go | 8 +- ...-applicationoutput_kinesisstreamsoutput.go | 8 +- ...nalytics-applicationoutput_lambdaoutput.go | 8 +- ...nesisanalytics-applicationoutput_output.go | 8 +- ...nalytics-applicationreferencedatasource.go | 13 +- ...eferencedatasource_csvmappingparameters.go | 8 +- ...ferencedatasource_jsonmappingparameters.go | 8 +- ...onreferencedatasource_mappingparameters.go | 8 +- ...icationreferencedatasource_recordcolumn.go | 8 +- ...icationreferencedatasource_recordformat.go | 8 +- ...referencedatasource_referencedatasource.go | 8 +- ...tionreferencedatasource_referenceschema.go | 8 +- ...ferencedatasource_s3referencedatasource.go | 8 +- .../aws-kinesisanalyticsv2-application.go | 13 +- ...pplication_applicationcodeconfiguration.go | 8 +- ...v2-application_applicationconfiguration.go | 8 +- ...cation_applicationsnapshotconfiguration.go | 8 +- ...sv2-application_checkpointconfiguration.go | 8 +- ...esisanalyticsv2-application_codecontent.go | 8 +- ...ticsv2-application_csvmappingparameters.go | 8 +- ...icsv2-application_environmentproperties.go | 8 +- ...plication_flinkapplicationconfiguration.go | 8 +- ...ws-kinesisanalyticsv2-application_input.go | 8 +- ...ticsv2-application_inputlambdaprocessor.go | 8 +- ...nalyticsv2-application_inputparallelism.go | 8 +- ...pplication_inputprocessingconfiguration.go | 8 +- ...esisanalyticsv2-application_inputschema.go | 8 +- ...icsv2-application_jsonmappingparameters.go | 8 +- ...ticsv2-application_kinesisfirehoseinput.go | 8 +- ...yticsv2-application_kinesisstreamsinput.go | 8 +- ...alyticsv2-application_mappingparameters.go | 8 +- ...sv2-application_monitoringconfiguration.go | 8 +- ...v2-application_parallelismconfiguration.go | 8 +- ...isanalyticsv2-application_propertygroup.go | 8 +- ...sisanalyticsv2-application_recordcolumn.go | 8 +- ...sisanalyticsv2-application_recordformat.go | 8 +- ...alyticsv2-application_s3contentlocation.go | 8 +- ...application_sqlapplicationconfiguration.go | 8 +- ...csv2-applicationcloudwatchloggingoption.go | 13 +- ...chloggingoption_cloudwatchloggingoption.go | 8 +- ...ws-kinesisanalyticsv2-applicationoutput.go | 13 +- ...sv2-applicationoutput_destinationschema.go | 8 +- ...applicationoutput_kinesisfirehoseoutput.go | 8 +- ...-applicationoutput_kinesisstreamsoutput.go | 8 +- ...lyticsv2-applicationoutput_lambdaoutput.go | 8 +- ...sisanalyticsv2-applicationoutput_output.go | 8 +- ...lyticsv2-applicationreferencedatasource.go | 13 +- ...eferencedatasource_csvmappingparameters.go | 8 +- ...ferencedatasource_jsonmappingparameters.go | 8 +- ...onreferencedatasource_mappingparameters.go | 8 +- ...icationreferencedatasource_recordcolumn.go | 8 +- ...icationreferencedatasource_recordformat.go | 8 +- ...referencedatasource_referencedatasource.go | 8 +- ...tionreferencedatasource_referenceschema.go | 8 +- ...ferencedatasource_s3referencedatasource.go | 8 +- .../aws-kinesisfirehose-deliverystream.go | 13 +- ...sfirehose-deliverystream_bufferinghints.go | 8 +- ...deliverystream_cloudwatchloggingoptions.go | 8 +- ...esisfirehose-deliverystream_copycommand.go | 8 +- ...iverystream_elasticsearchbufferinghints.go | 8 +- ...m_elasticsearchdestinationconfiguration.go | 8 +- ...eliverystream_elasticsearchretryoptions.go | 8 +- ...-deliverystream_encryptionconfiguration.go | 8 +- ...ream_extendeds3destinationconfiguration.go | 8 +- ...stream_kinesisstreamsourceconfiguration.go | 8 +- ...hose-deliverystream_kmsencryptionconfig.go | 8 +- ...-deliverystream_processingconfiguration.go | 8 +- ...inesisfirehose-deliverystream_processor.go | 8 +- ...ehose-deliverystream_processorparameter.go | 8 +- ...stream_redshiftdestinationconfiguration.go | 8 +- ...liverystream_s3destinationconfiguration.go | 8 +- ...rystream_splunkdestinationconfiguration.go | 8 +- ...ehose-deliverystream_splunkretryoptions.go | 8 +- .../{ => resources}/aws-kms-alias.go | 13 +- cloudformation/{ => resources}/aws-kms-key.go | 13 +- .../{ => resources}/aws-lambda-alias.go | 19 +- ...-lambda-alias_aliasroutingconfiguration.go | 8 +- .../aws-lambda-alias_versionweight.go | 8 +- .../aws-lambda-eventsourcemapping.go | 13 +- .../{ => resources}/aws-lambda-function.go | 13 +- .../aws-lambda-function_code.go | 8 +- .../aws-lambda-function_deadletterconfig.go | 8 +- .../aws-lambda-function_environment.go | 8 +- .../aws-lambda-function_tracingconfig.go | 8 +- .../aws-lambda-function_vpcconfig.go | 8 +- .../aws-lambda-layerversion.go | 13 +- .../aws-lambda-layerversion_content.go | 8 +- .../aws-lambda-layerversionpermission.go | 13 +- .../{ => resources}/aws-lambda-permission.go | 13 +- .../{ => resources}/aws-lambda-version.go | 13 +- .../{ => resources}/aws-logs-destination.go | 13 +- .../{ => resources}/aws-logs-loggroup.go | 13 +- .../{ => resources}/aws-logs-logstream.go | 13 +- .../{ => resources}/aws-logs-metricfilter.go | 13 +- ...-logs-metricfilter_metrictransformation.go | 8 +- .../aws-logs-subscriptionfilter.go | 13 +- .../{ => resources}/aws-neptune-dbcluster.go | 13 +- .../aws-neptune-dbclusterparametergroup.go | 13 +- .../{ => resources}/aws-neptune-dbinstance.go | 13 +- .../aws-neptune-dbparametergroup.go | 13 +- .../aws-neptune-dbsubnetgroup.go | 13 +- .../{ => resources}/aws-opsworks-app.go | 13 +- .../aws-opsworks-app_datasource.go | 8 +- .../aws-opsworks-app_environmentvariable.go | 8 +- .../aws-opsworks-app_source.go | 8 +- .../aws-opsworks-app_sslconfiguration.go | 8 +- ...-opsworks-elasticloadbalancerattachment.go | 13 +- .../{ => resources}/aws-opsworks-instance.go | 13 +- ...ws-opsworks-instance_blockdevicemapping.go | 8 +- .../aws-opsworks-instance_ebsblockdevice.go | 8 +- ...-opsworks-instance_timebasedautoscaling.go | 8 +- .../{ => resources}/aws-opsworks-layer.go | 13 +- ...ws-opsworks-layer_autoscalingthresholds.go | 8 +- ...works-layer_lifecycleeventconfiguration.go | 8 +- ...aws-opsworks-layer_loadbasedautoscaling.go | 8 +- .../aws-opsworks-layer_recipes.go | 8 +- ...sworks-layer_shutdowneventconfiguration.go | 8 +- .../aws-opsworks-layer_volumeconfiguration.go | 8 +- .../{ => resources}/aws-opsworks-stack.go | 13 +- .../aws-opsworks-stack_chefconfiguration.go | 8 +- .../aws-opsworks-stack_elasticip.go | 8 +- .../aws-opsworks-stack_rdsdbinstance.go | 8 +- .../aws-opsworks-stack_source.go | 8 +- ...psworks-stack_stackconfigurationmanager.go | 8 +- .../aws-opsworks-userprofile.go | 13 +- .../{ => resources}/aws-opsworks-volume.go | 13 +- .../{ => resources}/aws-opsworkscm-server.go | 13 +- .../aws-opsworkscm-server_engineattribute.go | 8 +- .../{ => resources}/aws-ram-resourceshare.go | 13 +- .../{ => resources}/aws-rds-dbcluster.go | 13 +- .../aws-rds-dbcluster_scalingconfiguration.go | 8 +- .../aws-rds-dbclusterparametergroup.go | 13 +- .../{ => resources}/aws-rds-dbinstance.go | 13 +- .../aws-rds-dbinstance_processorfeature.go | 8 +- .../aws-rds-dbparametergroup.go | 13 +- .../aws-rds-dbsecuritygroup.go | 13 +- .../aws-rds-dbsecuritygroup_ingress.go | 8 +- .../aws-rds-dbsecuritygroupingress.go | 13 +- .../{ => resources}/aws-rds-dbsubnetgroup.go | 13 +- .../aws-rds-eventsubscription.go | 13 +- .../{ => resources}/aws-rds-optiongroup.go | 13 +- ...aws-rds-optiongroup_optionconfiguration.go | 8 +- .../aws-rds-optiongroup_optionsetting.go | 8 +- .../{ => resources}/aws-redshift-cluster.go | 13 +- .../aws-redshift-cluster_loggingproperties.go | 8 +- .../aws-redshift-clusterparametergroup.go | 13 +- ...edshift-clusterparametergroup_parameter.go | 8 +- .../aws-redshift-clustersecuritygroup.go | 13 +- ...ws-redshift-clustersecuritygroupingress.go | 13 +- .../aws-redshift-clustersubnetgroup.go | 13 +- .../{ => resources}/aws-robomaker-fleet.go | 13 +- .../{ => resources}/aws-robomaker-robot.go | 13 +- .../aws-robomaker-robotapplication.go | 13 +- ...ker-robotapplication_robotsoftwaresuite.go | 8 +- ...robomaker-robotapplication_sourceconfig.go | 8 +- .../aws-robomaker-robotapplicationversion.go | 13 +- .../aws-robomaker-simulationapplication.go | 13 +- ...r-simulationapplication_renderingengine.go | 8 +- ...imulationapplication_robotsoftwaresuite.go | 8 +- ...tionapplication_simulationsoftwaresuite.go | 8 +- ...aker-simulationapplication_sourceconfig.go | 8 +- ...-robomaker-simulationapplicationversion.go | 13 +- .../aws-route53-healthcheck.go | 13 +- ...aws-route53-healthcheck_alarmidentifier.go | 8 +- ...s-route53-healthcheck_healthcheckconfig.go | 8 +- .../aws-route53-healthcheck_healthchecktag.go | 8 +- .../{ => resources}/aws-route53-hostedzone.go | 13 +- ...aws-route53-hostedzone_hostedzoneconfig.go | 8 +- .../aws-route53-hostedzone_hostedzonetag.go | 8 +- ...s-route53-hostedzone_queryloggingconfig.go | 8 +- .../aws-route53-hostedzone_vpc.go | 8 +- .../{ => resources}/aws-route53-recordset.go | 13 +- .../aws-route53-recordset_aliastarget.go | 8 +- .../aws-route53-recordset_geolocation.go | 8 +- .../aws-route53-recordsetgroup.go | 13 +- .../aws-route53-recordsetgroup_aliastarget.go | 8 +- .../aws-route53-recordsetgroup_geolocation.go | 8 +- .../aws-route53-recordsetgroup_recordset.go | 8 +- .../aws-route53resolver-resolverendpoint.go | 13 +- ...olver-resolverendpoint_ipaddressrequest.go | 8 +- .../aws-route53resolver-resolverrule.go | 13 +- ...te53resolver-resolverrule_targetaddress.go | 8 +- ...route53resolver-resolverruleassociation.go | 13 +- .../{ => resources}/aws-s3-bucket.go | 13 +- ...3-bucket_abortincompletemultipartupload.go | 8 +- .../aws-s3-bucket_accelerateconfiguration.go | 8 +- .../aws-s3-bucket_accesscontroltranslation.go | 8 +- .../aws-s3-bucket_analyticsconfiguration.go | 8 +- .../aws-s3-bucket_bucketencryption.go | 8 +- .../aws-s3-bucket_corsconfiguration.go | 8 +- .../{ => resources}/aws-s3-bucket_corsrule.go | 8 +- .../aws-s3-bucket_dataexport.go | 8 +- .../aws-s3-bucket_destination.go | 8 +- .../aws-s3-bucket_encryptionconfiguration.go | 8 +- .../aws-s3-bucket_filterrule.go | 8 +- .../aws-s3-bucket_inventoryconfiguration.go | 8 +- .../aws-s3-bucket_lambdaconfiguration.go | 8 +- .../aws-s3-bucket_lifecycleconfiguration.go | 8 +- .../aws-s3-bucket_loggingconfiguration.go | 8 +- .../aws-s3-bucket_metricsconfiguration.go | 8 +- ...s-s3-bucket_noncurrentversiontransition.go | 8 +- ...aws-s3-bucket_notificationconfiguration.go | 8 +- .../aws-s3-bucket_notificationfilter.go | 8 +- ...3-bucket_publicaccessblockconfiguration.go | 8 +- .../aws-s3-bucket_queueconfiguration.go | 8 +- .../aws-s3-bucket_redirectallrequeststo.go | 8 +- .../aws-s3-bucket_redirectrule.go | 8 +- .../aws-s3-bucket_replicationconfiguration.go | 8 +- .../aws-s3-bucket_replicationdestination.go | 8 +- .../aws-s3-bucket_replicationrule.go | 8 +- .../aws-s3-bucket_routingrule.go | 8 +- .../aws-s3-bucket_routingrulecondition.go | 8 +- .../{ => resources}/aws-s3-bucket_rule.go | 8 +- .../aws-s3-bucket_s3keyfilter.go | 8 +- ...s3-bucket_serversideencryptionbydefault.go | 8 +- .../aws-s3-bucket_serversideencryptionrule.go | 8 +- .../aws-s3-bucket_sourceselectioncriteria.go | 8 +- .../aws-s3-bucket_ssekmsencryptedobjects.go | 8 +- .../aws-s3-bucket_storageclassanalysis.go | 8 +- .../aws-s3-bucket_tagfilter.go | 8 +- .../aws-s3-bucket_topicconfiguration.go | 8 +- .../aws-s3-bucket_transition.go | 8 +- .../aws-s3-bucket_versioningconfiguration.go | 8 +- .../aws-s3-bucket_websiteconfiguration.go | 8 +- .../{ => resources}/aws-s3-bucketpolicy.go | 13 +- .../{ => resources}/aws-sagemaker-endpoint.go | 13 +- .../aws-sagemaker-endpointconfig.go | 13 +- ...emaker-endpointconfig_productionvariant.go | 8 +- .../{ => resources}/aws-sagemaker-model.go | 13 +- ...aws-sagemaker-model_containerdefinition.go | 8 +- .../aws-sagemaker-model_vpcconfig.go | 8 +- .../aws-sagemaker-notebookinstance.go | 13 +- ...gemaker-notebookinstancelifecycleconfig.go | 13 +- ...cleconfig_notebookinstancelifecyclehook.go | 8 +- .../{ => resources}/aws-sdb-domain.go | 13 +- .../aws-secretsmanager-resourcepolicy.go | 13 +- .../aws-secretsmanager-rotationschedule.go | 13 +- ...smanager-rotationschedule_rotationrules.go | 8 +- .../aws-secretsmanager-secret.go | 13 +- ...retsmanager-secret_generatesecretstring.go | 8 +- ...s-secretsmanager-secrettargetattachment.go | 13 +- .../{ => resources}/aws-serverless-api.go | 13 +- .../aws-serverless-api_auth.go | 10 +- .../aws-serverless-api_s3location.go | 8 +- .../aws-serverless-application.go | 13 +- ...verless-application_applicationlocation.go | 8 +- .../aws-serverless-function.go | 13 +- ...aws-serverless-function_alexaskillevent.go | 8 +- .../aws-serverless-function_apievent.go | 8 +- ...erverless-function_cloudwatcheventevent.go | 8 +- ...aws-serverless-function_deadletterqueue.go | 8 +- ...erverless-function_deploymentpreference.go | 8 +- .../aws-serverless-function_dynamodbevent.go | 8 +- .../aws-serverless-function_eventsource.go | 8 +- ...serverless-function_functionenvironment.go | 8 +- ...s-serverless-function_iampolicydocument.go | 8 +- .../aws-serverless-function_iotruleevent.go | 8 +- .../aws-serverless-function_kinesisevent.go | 8 +- .../aws-serverless-function_s3event.go | 8 +- .../aws-serverless-function_s3location.go | 8 +- ...erverless-function_s3notificationfilter.go | 8 +- .../aws-serverless-function_scheduleevent.go | 8 +- .../aws-serverless-function_snsevent.go | 8 +- .../aws-serverless-function_sqsevent.go | 8 +- .../aws-serverless-function_vpcconfig.go | 8 +- .../aws-serverless-layerversion.go | 13 +- .../aws-serverless-simpletable.go | 13 +- .../aws-serverless-simpletable_primarykey.go | 8 +- ...rless-simpletable_provisionedthroughput.go | 8 +- ...serverless-simpletable_ssespecification.go | 8 +- ...s-servicecatalog-acceptedportfolioshare.go | 13 +- ...ws-servicecatalog-cloudformationproduct.go | 13 +- ...nproduct_provisioningartifactproperties.go | 8 +- ...atalog-cloudformationprovisionedproduct.go | 13 +- ...rovisionedproduct_provisioningparameter.go | 8 +- ...icecatalog-launchnotificationconstraint.go | 13 +- ...aws-servicecatalog-launchroleconstraint.go | 13 +- ...servicecatalog-launchtemplateconstraint.go | 13 +- .../aws-servicecatalog-portfolio.go | 13 +- ...cecatalog-portfolioprincipalassociation.go | 13 +- ...vicecatalog-portfolioproductassociation.go | 13 +- .../aws-servicecatalog-portfolioshare.go | 13 +- .../aws-servicecatalog-tagoption.go | 13 +- ...aws-servicecatalog-tagoptionassociation.go | 13 +- .../aws-servicediscovery-httpnamespace.go | 13 +- .../aws-servicediscovery-instance.go | 13 +- ...ws-servicediscovery-privatednsnamespace.go | 13 +- ...aws-servicediscovery-publicdnsnamespace.go | 13 +- .../aws-servicediscovery-service.go | 13 +- .../aws-servicediscovery-service_dnsconfig.go | 8 +- .../aws-servicediscovery-service_dnsrecord.go | 8 +- ...vicediscovery-service_healthcheckconfig.go | 8 +- ...scovery-service_healthcheckcustomconfig.go | 8 +- .../aws-ses-configurationset.go | 13 +- ...ws-ses-configurationseteventdestination.go | 13 +- ...teventdestination_cloudwatchdestination.go | 8 +- ...eventdestination_dimensionconfiguration.go | 8 +- ...ionseteventdestination_eventdestination.go | 8 +- ...tdestination_kinesisfirehosedestination.go | 8 +- .../{ => resources}/aws-ses-receiptfilter.go | 13 +- .../aws-ses-receiptfilter_filter.go | 8 +- .../aws-ses-receiptfilter_ipfilter.go | 8 +- .../{ => resources}/aws-ses-receiptrule.go | 13 +- .../aws-ses-receiptrule_action.go | 8 +- .../aws-ses-receiptrule_addheaderaction.go | 8 +- .../aws-ses-receiptrule_bounceaction.go | 8 +- .../aws-ses-receiptrule_lambdaaction.go | 8 +- .../aws-ses-receiptrule_rule.go | 8 +- .../aws-ses-receiptrule_s3action.go | 8 +- .../aws-ses-receiptrule_snsaction.go | 8 +- .../aws-ses-receiptrule_stopaction.go | 8 +- .../aws-ses-receiptrule_workmailaction.go | 8 +- .../{ => resources}/aws-ses-receiptruleset.go | 13 +- .../{ => resources}/aws-ses-template.go | 13 +- .../aws-ses-template_template.go | 8 +- .../{ => resources}/aws-sns-subscription.go | 13 +- .../{ => resources}/aws-sns-topic.go | 13 +- .../aws-sns-topic_subscription.go | 8 +- .../{ => resources}/aws-sns-topicpolicy.go | 13 +- .../{ => resources}/aws-sqs-queue.go | 13 +- .../{ => resources}/aws-sqs-queuepolicy.go | 13 +- .../{ => resources}/aws-ssm-association.go | 13 +- ...ation_instanceassociationoutputlocation.go | 8 +- .../aws-ssm-association_parametervalues.go | 8 +- .../aws-ssm-association_s3outputlocation.go | 8 +- .../aws-ssm-association_target.go | 8 +- .../{ => resources}/aws-ssm-document.go | 13 +- .../aws-ssm-maintenancewindow.go | 13 +- .../aws-ssm-maintenancewindowtask.go | 13 +- ...s-ssm-maintenancewindowtask_logginginfo.go | 8 +- ...k_maintenancewindowautomationparameters.go | 8 +- ...wtask_maintenancewindowlambdaparameters.go | 8 +- ...k_maintenancewindowruncommandparameters.go | 8 +- ...aintenancewindowstepfunctionsparameters.go | 8 +- ...aintenancewindowtask_notificationconfig.go | 8 +- .../aws-ssm-maintenancewindowtask_target.go | 8 +- ...ancewindowtask_taskinvocationparameters.go | 8 +- .../{ => resources}/aws-ssm-parameter.go | 13 +- .../{ => resources}/aws-ssm-patchbaseline.go | 13 +- .../aws-ssm-patchbaseline_patchfilter.go | 8 +- .../aws-ssm-patchbaseline_patchfiltergroup.go | 8 +- .../aws-ssm-patchbaseline_patchsource.go | 8 +- .../aws-ssm-patchbaseline_rule.go | 8 +- .../aws-ssm-patchbaseline_rulegroup.go | 8 +- .../aws-ssm-resourcedatasync.go | 13 +- .../aws-stepfunctions-activity.go | 13 +- .../aws-stepfunctions-activity_tagsentry.go | 8 +- .../aws-stepfunctions-statemachine.go | 13 +- ...ws-stepfunctions-statemachine_tagsentry.go | 8 +- .../{ => resources}/aws-waf-bytematchset.go | 13 +- .../aws-waf-bytematchset_bytematchtuple.go | 8 +- .../aws-waf-bytematchset_fieldtomatch.go | 8 +- .../{ => resources}/aws-waf-ipset.go | 13 +- .../aws-waf-ipset_ipsetdescriptor.go | 8 +- .../{ => resources}/aws-waf-rule.go | 13 +- .../{ => resources}/aws-waf-rule_predicate.go | 8 +- .../aws-waf-sizeconstraintset.go | 13 +- .../aws-waf-sizeconstraintset_fieldtomatch.go | 8 +- ...ws-waf-sizeconstraintset_sizeconstraint.go | 8 +- .../aws-waf-sqlinjectionmatchset.go | 13 +- ...s-waf-sqlinjectionmatchset_fieldtomatch.go | 8 +- ...njectionmatchset_sqlinjectionmatchtuple.go | 8 +- .../{ => resources}/aws-waf-webacl.go | 13 +- .../aws-waf-webacl_activatedrule.go | 8 +- .../aws-waf-webacl_wafaction.go | 8 +- .../{ => resources}/aws-waf-xssmatchset.go | 13 +- .../aws-waf-xssmatchset_fieldtomatch.go | 8 +- .../aws-waf-xssmatchset_xssmatchtuple.go | 8 +- .../aws-wafregional-bytematchset.go | 13 +- ...wafregional-bytematchset_bytematchtuple.go | 8 +- ...s-wafregional-bytematchset_fieldtomatch.go | 8 +- .../{ => resources}/aws-wafregional-ipset.go | 13 +- .../aws-wafregional-ipset_ipsetdescriptor.go | 8 +- .../{ => resources}/aws-wafregional-rule.go | 13 +- .../aws-wafregional-rule_predicate.go | 8 +- .../aws-wafregional-sizeconstraintset.go | 13 +- ...regional-sizeconstraintset_fieldtomatch.go | 8 +- ...gional-sizeconstraintset_sizeconstraint.go | 8 +- .../aws-wafregional-sqlinjectionmatchset.go | 13 +- ...ional-sqlinjectionmatchset_fieldtomatch.go | 8 +- ...njectionmatchset_sqlinjectionmatchtuple.go | 8 +- .../{ => resources}/aws-wafregional-webacl.go | 13 +- .../aws-wafregional-webacl_action.go | 8 +- .../aws-wafregional-webacl_rule.go | 8 +- .../aws-wafregional-webaclassociation.go | 13 +- .../aws-wafregional-xssmatchset.go | 13 +- ...ws-wafregional-xssmatchset_fieldtomatch.go | 8 +- ...s-wafregional-xssmatchset_xssmatchtuple.go | 8 +- .../aws-workspaces-workspace.go | 13 +- ...orkspaces-workspace_workspaceproperties.go | 8 +- .../awsserverlessapi_definitionuri.go | 2 +- .../awsserverlessapplication_location.go | 2 +- .../awsserverlessfunction_codeuri.go | 2 +- .../awsserverlessfunction_events.go | 2 +- .../awsserverlessfunction_policies.go | 2 +- .../awsserverlessfunction_properties.go | 2 +- cloudformation/{ => resources}/tag.go | 8 +- example/go-to-yaml/main.go | 5 +- generate/generate.go | 4 +- generate/property_test.go | 24 +- generate/resource_test.go | 33 +- generate/templates/all.template | 13 +- .../templates/polymorphic-property.template | 2 +- generate/templates/resource.template | 23 +- goformation_test.go | 48 +- schema/sam.go | 2 +- schema/sam.schema.json | 2 +- 1184 files changed, 8887 insertions(+), 6991 deletions(-) delete mode 100644 cloudformation/aws-cloudfront-distribution_legacycustomorigin.go delete mode 100644 cloudformation/aws-cloudfront-distribution_legacys3origin.go delete mode 100644 cloudformation/aws-ssm-patchbaseline_patchgroup.go rename cloudformation/{ => policies}/policies.go (99%) rename cloudformation/{ => resources}/alexa-ask-skill.go (91%) rename cloudformation/{ => resources}/alexa-ask-skill_authenticationconfiguration.go (95%) rename cloudformation/{ => resources}/alexa-ask-skill_overrides.go (91%) rename cloudformation/{ => resources}/alexa-ask-skill_skillpackage.go (94%) rename cloudformation/{ => resources}/aws-amazonmq-broker.go (94%) rename cloudformation/{ => resources}/aws-amazonmq-broker_configurationid.go (94%) rename cloudformation/{ => resources}/aws-amazonmq-broker_loglist.go (92%) rename cloudformation/{ => resources}/aws-amazonmq-broker_maintenancewindow.go (95%) rename cloudformation/{ => resources}/aws-amazonmq-broker_tagsentry.go (92%) rename cloudformation/{ => resources}/aws-amazonmq-broker_user.go (93%) rename cloudformation/{ => resources}/aws-amazonmq-configuration.go (92%) rename cloudformation/{ => resources}/aws-amazonmq-configuration_tagsentry.go (94%) rename cloudformation/{ => resources}/aws-amazonmq-configurationassociation.go (92%) rename cloudformation/{ => resources}/aws-amazonmq-configurationassociation_configurationid.go (94%) rename cloudformation/{ => resources}/aws-apigateway-account.go (89%) rename cloudformation/{ => resources}/aws-apigateway-apikey.go (92%) rename cloudformation/{ => resources}/aws-apigateway-apikey_stagekey.go (94%) rename cloudformation/{ => resources}/aws-apigateway-authorizer.go (93%) rename cloudformation/{ => resources}/aws-apigateway-basepathmapping.go (92%) rename cloudformation/{ => resources}/aws-apigateway-clientcertificate.go (91%) rename cloudformation/{ => resources}/aws-apigateway-deployment.go (92%) rename cloudformation/{ => resources}/aws-apigateway-deployment_accesslogsetting.go (94%) rename cloudformation/{ => resources}/aws-apigateway-deployment_canarysetting.go (95%) rename cloudformation/{ => resources}/aws-apigateway-deployment_deploymentcanarysettings.go (95%) rename cloudformation/{ => resources}/aws-apigateway-deployment_methodsetting.go (97%) rename cloudformation/{ => resources}/aws-apigateway-deployment_stagedescription.go (98%) rename cloudformation/{ => resources}/aws-apigateway-documentationpart.go (92%) rename cloudformation/{ => resources}/aws-apigateway-documentationpart_location.go (95%) rename cloudformation/{ => resources}/aws-apigateway-documentationversion.go (92%) rename cloudformation/{ => resources}/aws-apigateway-domainname.go (91%) rename cloudformation/{ => resources}/aws-apigateway-domainname_endpointconfiguration.go (93%) rename cloudformation/{ => resources}/aws-apigateway-gatewayresponse.go (93%) rename cloudformation/{ => resources}/aws-apigateway-method.go (94%) rename cloudformation/{ => resources}/aws-apigateway-method_integration.go (97%) rename cloudformation/{ => resources}/aws-apigateway-method_integrationresponse.go (96%) rename cloudformation/{ => resources}/aws-apigateway-method_methodresponse.go (95%) rename cloudformation/{ => resources}/aws-apigateway-model.go (91%) rename cloudformation/{ => resources}/aws-apigateway-requestvalidator.go (93%) rename cloudformation/{ => resources}/aws-apigateway-resource.go (91%) rename cloudformation/{ => resources}/aws-apigateway-restapi.go (94%) rename cloudformation/{ => resources}/aws-apigateway-restapi_endpointconfiguration.go (93%) rename cloudformation/{ => resources}/aws-apigateway-restapi_s3location.go (95%) rename cloudformation/{ => resources}/aws-apigateway-stage.go (94%) rename cloudformation/{ => resources}/aws-apigateway-stage_accesslogsetting.go (94%) rename cloudformation/{ => resources}/aws-apigateway-stage_canarysetting.go (95%) rename cloudformation/{ => resources}/aws-apigateway-stage_methodsetting.go (97%) rename cloudformation/{ => resources}/aws-apigateway-usageplan.go (92%) rename cloudformation/{ => resources}/aws-apigateway-usageplan_apistage.go (95%) rename cloudformation/{ => resources}/aws-apigateway-usageplan_quotasettings.go (94%) rename cloudformation/{ => resources}/aws-apigateway-usageplan_throttlesettings.go (94%) rename cloudformation/{ => resources}/aws-apigateway-usageplankey.go (91%) rename cloudformation/{ => resources}/aws-apigateway-vpclink.go (91%) rename cloudformation/{ => resources}/aws-apigatewayv2-api.go (92%) rename cloudformation/{ => resources}/aws-apigatewayv2-authorizer.go (93%) rename cloudformation/{ => resources}/aws-apigatewayv2-deployment.go (91%) rename cloudformation/{ => resources}/aws-apigatewayv2-integration.go (94%) rename cloudformation/{ => resources}/aws-apigatewayv2-integrationresponse.go (94%) rename cloudformation/{ => resources}/aws-apigatewayv2-model.go (91%) rename cloudformation/{ => resources}/aws-apigatewayv2-route.go (94%) rename cloudformation/{ => resources}/aws-apigatewayv2-route_parameterconstraints.go (93%) rename cloudformation/{ => resources}/aws-apigatewayv2-routeresponse.go (93%) rename cloudformation/{ => resources}/aws-apigatewayv2-routeresponse_parameterconstraints.go (93%) rename cloudformation/{ => resources}/aws-apigatewayv2-stage.go (93%) rename cloudformation/{ => resources}/aws-apigatewayv2-stage_accesslogsettings.go (94%) rename cloudformation/{ => resources}/aws-apigatewayv2-stage_routesettings.go (95%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalabletarget.go (94%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go (94%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalabletarget_scheduledaction.go (95%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalingpolicy.go (94%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go (95%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalingpolicy_metricdimension.go (94%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go (94%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalingpolicy_stepadjustment.go (95%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go (95%) rename cloudformation/{ => resources}/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go (96%) rename cloudformation/{ => resources}/aws-appstream-directoryconfig.go (91%) rename cloudformation/{ => resources}/aws-appstream-directoryconfig_serviceaccountcredentials.go (94%) rename cloudformation/{ => resources}/aws-appstream-fleet.go (94%) rename cloudformation/{ => resources}/aws-appstream-fleet_computecapacity.go (94%) rename cloudformation/{ => resources}/aws-appstream-fleet_domainjoininfo.go (94%) rename cloudformation/{ => resources}/aws-appstream-fleet_vpcconfig.go (92%) rename cloudformation/{ => resources}/aws-appstream-imagebuilder.go (93%) rename cloudformation/{ => resources}/aws-appstream-imagebuilder_domainjoininfo.go (94%) rename cloudformation/{ => resources}/aws-appstream-imagebuilder_vpcconfig.go (94%) rename cloudformation/{ => resources}/aws-appstream-stack.go (93%) rename cloudformation/{ => resources}/aws-appstream-stack_applicationsettings.go (94%) rename cloudformation/{ => resources}/aws-appstream-stack_storageconnector.go (95%) rename cloudformation/{ => resources}/aws-appstream-stack_usersetting.go (94%) rename cloudformation/{ => resources}/aws-appstream-stackfleetassociation.go (92%) rename cloudformation/{ => resources}/aws-appstream-stackuserassociation.go (93%) rename cloudformation/{ => resources}/aws-appstream-user.go (91%) rename cloudformation/{ => resources}/aws-appsync-apikey.go (90%) rename cloudformation/{ => resources}/aws-appsync-datasource.go (93%) rename cloudformation/{ => resources}/aws-appsync-datasource_authorizationconfig.go (94%) rename cloudformation/{ => resources}/aws-appsync-datasource_awsiamconfig.go (94%) rename cloudformation/{ => resources}/aws-appsync-datasource_dynamodbconfig.go (95%) rename cloudformation/{ => resources}/aws-appsync-datasource_elasticsearchconfig.go (94%) rename cloudformation/{ => resources}/aws-appsync-datasource_httpconfig.go (94%) rename cloudformation/{ => resources}/aws-appsync-datasource_lambdaconfig.go (94%) rename cloudformation/{ => resources}/aws-appsync-datasource_rdshttpendpointconfig.go (95%) rename cloudformation/{ => resources}/aws-appsync-datasource_relationaldatabaseconfig.go (94%) rename cloudformation/{ => resources}/aws-appsync-functionconfiguration.go (94%) rename cloudformation/{ => resources}/aws-appsync-graphqlapi.go (92%) rename cloudformation/{ => resources}/aws-appsync-graphqlapi_logconfig.go (94%) rename cloudformation/{ => resources}/aws-appsync-graphqlapi_openidconnectconfig.go (95%) rename cloudformation/{ => resources}/aws-appsync-graphqlapi_userpoolconfig.go (95%) rename cloudformation/{ => resources}/aws-appsync-graphqlschema.go (91%) rename cloudformation/{ => resources}/aws-appsync-resolver.go (93%) rename cloudformation/{ => resources}/aws-appsync-resolver_pipelineconfig.go (93%) rename cloudformation/{ => resources}/aws-athena-namedquery.go (91%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_instancesdistribution.go (96%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_launchtemplate.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go (93%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go (95%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go (96%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_metricscollection.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_notificationconfiguration.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-autoscalinggroup_tagproperty.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-launchconfiguration.go (95%) rename cloudformation/{ => resources}/aws-autoscaling-launchconfiguration_blockdevice.go (95%) rename cloudformation/{ => resources}/aws-autoscaling-launchconfiguration_blockdevicemapping.go (95%) rename cloudformation/{ => resources}/aws-autoscaling-lifecyclehook.go (93%) rename cloudformation/{ => resources}/aws-autoscaling-scalingpolicy.go (93%) rename cloudformation/{ => resources}/aws-autoscaling-scalingpolicy_customizedmetricspecification.go (95%) rename cloudformation/{ => resources}/aws-autoscaling-scalingpolicy_metricdimension.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go (94%) rename cloudformation/{ => resources}/aws-autoscaling-scalingpolicy_stepadjustment.go (95%) rename cloudformation/{ => resources}/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go (95%) rename cloudformation/{ => resources}/aws-autoscaling-scheduledaction.go (93%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan.go (92%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_applicationsource.go (94%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go (95%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go (95%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_metricdimension.go (94%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go (94%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go (94%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_scalinginstruction.go (97%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_tagfilter.go (94%) rename cloudformation/{ => resources}/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go (96%) rename cloudformation/{ => resources}/aws-batch-computeenvironment.go (92%) rename cloudformation/{ => resources}/aws-batch-computeenvironment_computeresources.go (97%) rename cloudformation/{ => resources}/aws-batch-computeenvironment_launchtemplatespecification.go (95%) rename cloudformation/{ => resources}/aws-batch-jobdefinition.go (92%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_containerproperties.go (97%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_environment.go (94%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_mountpoints.go (95%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_nodeproperties.go (95%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_noderangeproperty.go (94%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_retrystrategy.go (93%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_timeout.go (94%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_ulimit.go (94%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_volumes.go (94%) rename cloudformation/{ => resources}/aws-batch-jobdefinition_volumeshost.go (93%) rename cloudformation/{ => resources}/aws-batch-jobqueue.go (91%) rename cloudformation/{ => resources}/aws-batch-jobqueue_computeenvironmentorder.go (94%) rename cloudformation/{ => resources}/aws-budgets-budget.go (90%) rename cloudformation/{ => resources}/aws-budgets-budget_budgetdata.go (94%) rename cloudformation/{ => resources}/aws-budgets-budget_costtypes.go (96%) rename cloudformation/{ => resources}/aws-budgets-budget_notification.go (95%) rename cloudformation/{ => resources}/aws-budgets-budget_notificationwithsubscribers.go (94%) rename cloudformation/{ => resources}/aws-budgets-budget_spend.go (92%) rename cloudformation/{ => resources}/aws-budgets-budget_subscriber.go (92%) rename cloudformation/{ => resources}/aws-budgets-budget_timeperiod.go (92%) rename cloudformation/{ => resources}/aws-certificatemanager-certificate.go (93%) rename cloudformation/{ => resources}/aws-certificatemanager-certificate_domainvalidationoption.go (94%) rename cloudformation/{ => resources}/aws-cloud9-environmentec2.go (92%) rename cloudformation/{ => resources}/aws-cloud9-environmentec2_repository.go (94%) rename cloudformation/{ => resources}/aws-cloudformation-customresource.go (91%) rename cloudformation/{ => resources}/aws-cloudformation-macro.go (91%) rename cloudformation/{ => resources}/aws-cloudformation-stack.go (91%) rename cloudformation/{ => resources}/aws-cloudformation-waitcondition.go (90%) rename cloudformation/{ => resources}/aws-cloudformation-waitconditionhandle.go (91%) rename cloudformation/{ => resources}/aws-cloudfront-cloudfrontoriginaccessidentity.go (92%) rename cloudformation/{ => resources}/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go (93%) rename cloudformation/{ => resources}/aws-cloudfront-distribution.go (90%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_cachebehavior.go (97%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_cookies.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_customerrorresponse.go (95%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_customoriginconfig.go (96%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_defaultcachebehavior.go (97%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_distributionconfig.go (97%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_forwardedvalues.go (95%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_georestriction.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_lambdafunctionassociation.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_logging.go (95%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_origin.go (96%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_origincustomheader.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_restrictions.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_s3originconfig.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-distribution_viewercertificate.go (95%) rename cloudformation/{ => resources}/aws-cloudfront-streamingdistribution.go (92%) rename cloudformation/{ => resources}/aws-cloudfront-streamingdistribution_logging.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-streamingdistribution_s3origin.go (94%) rename cloudformation/{ => resources}/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go (96%) rename cloudformation/{ => resources}/aws-cloudfront-streamingdistribution_trustedsigners.go (94%) rename cloudformation/{ => resources}/aws-cloudtrail-trail.go (94%) rename cloudformation/{ => resources}/aws-cloudtrail-trail_dataresource.go (94%) rename cloudformation/{ => resources}/aws-cloudtrail-trail_eventselector.go (95%) rename cloudformation/{ => resources}/aws-cloudwatch-alarm.go (95%) rename cloudformation/{ => resources}/aws-cloudwatch-alarm_dimension.go (94%) rename cloudformation/{ => resources}/aws-cloudwatch-alarm_metric.go (93%) rename cloudformation/{ => resources}/aws-cloudwatch-alarm_metricdataquery.go (95%) rename cloudformation/{ => resources}/aws-cloudwatch-alarm_metricstat.go (95%) rename cloudformation/{ => resources}/aws-cloudwatch-dashboard.go (90%) rename cloudformation/{ => resources}/aws-codebuild-project.go (95%) rename cloudformation/{ => resources}/aws-codebuild-project_artifacts.go (96%) rename cloudformation/{ => resources}/aws-codebuild-project_cloudwatchlogsconfig.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_environment.go (96%) rename cloudformation/{ => resources}/aws-codebuild-project_environmentvariable.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_filtergroup.go (93%) rename cloudformation/{ => resources}/aws-codebuild-project_logsconfig.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_projectcache.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_projecttriggers.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_registrycredential.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_s3logsconfig.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_source.go (95%) rename cloudformation/{ => resources}/aws-codebuild-project_sourceauth.go (94%) rename cloudformation/{ => resources}/aws-codebuild-project_vpcconfig.go (95%) rename cloudformation/{ => resources}/aws-codebuild-project_webhookfilter.go (95%) rename cloudformation/{ => resources}/aws-codecommit-repository.go (91%) rename cloudformation/{ => resources}/aws-codecommit-repository_repositorytrigger.go (95%) rename cloudformation/{ => resources}/aws-codedeploy-application.go (90%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentconfig.go (92%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup.go (95%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_alarm.go (93%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_alarmconfiguration.go (95%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_deployment.go (95%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_deploymentstyle.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_ec2tagfilter.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_ec2tagset.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go (93%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_elbinfo.go (93%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_githublocation.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_loadbalancerinfo.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_onpremisestagset.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go (93%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_revisionlocation.go (95%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_s3location.go (95%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_tagfilter.go (94%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_targetgroupinfo.go (93%) rename cloudformation/{ => resources}/aws-codedeploy-deploymentgroup_triggerconfig.go (95%) rename cloudformation/{ => resources}/aws-codepipeline-customactiontype.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-customactiontype_artifactdetails.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-customactiontype_configurationproperties.go (96%) rename cloudformation/{ => resources}/aws-codepipeline-customactiontype_settings.go (95%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline.go (93%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_actiondeclaration.go (96%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_actiontypeid.go (95%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_artifactstore.go (95%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_artifactstoremap.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_blockerdeclaration.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_encryptionkey.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_inputartifact.go (93%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_outputartifact.go (93%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_stagedeclaration.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-pipeline_stagetransition.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-webhook.go (93%) rename cloudformation/{ => resources}/aws-codepipeline-webhook_webhookauthconfiguration.go (94%) rename cloudformation/{ => resources}/aws-codepipeline-webhook_webhookfilterrule.go (94%) rename cloudformation/{ => resources}/aws-cognito-identitypool.go (94%) rename cloudformation/{ => resources}/aws-cognito-identitypool_cognitoidentityprovider.go (95%) rename cloudformation/{ => resources}/aws-cognito-identitypool_cognitostreams.go (95%) rename cloudformation/{ => resources}/aws-cognito-identitypool_pushsync.go (94%) rename cloudformation/{ => resources}/aws-cognito-identitypoolroleattachment.go (92%) rename cloudformation/{ => resources}/aws-cognito-identitypoolroleattachment_mappingrule.go (95%) rename cloudformation/{ => resources}/aws-cognito-identitypoolroleattachment_rolemapping.go (95%) rename cloudformation/{ => resources}/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go (93%) rename cloudformation/{ => resources}/aws-cognito-userpool.go (95%) rename cloudformation/{ => resources}/aws-cognito-userpool_admincreateuserconfig.go (95%) rename cloudformation/{ => resources}/aws-cognito-userpool_deviceconfiguration.go (94%) rename cloudformation/{ => resources}/aws-cognito-userpool_emailconfiguration.go (94%) rename cloudformation/{ => resources}/aws-cognito-userpool_invitemessagetemplate.go (95%) rename cloudformation/{ => resources}/aws-cognito-userpool_lambdaconfig.go (96%) rename cloudformation/{ => resources}/aws-cognito-userpool_numberattributeconstraints.go (94%) rename cloudformation/{ => resources}/aws-cognito-userpool_passwordpolicy.go (95%) rename cloudformation/{ => resources}/aws-cognito-userpool_policies.go (91%) rename cloudformation/{ => resources}/aws-cognito-userpool_schemaattribute.go (96%) rename cloudformation/{ => resources}/aws-cognito-userpool_smsconfiguration.go (94%) rename cloudformation/{ => resources}/aws-cognito-userpool_stringattributeconstraints.go (94%) rename cloudformation/{ => resources}/aws-cognito-userpoolclient.go (92%) rename cloudformation/{ => resources}/aws-cognito-userpoolgroup.go (91%) rename cloudformation/{ => resources}/aws-cognito-userpooluser.go (92%) rename cloudformation/{ => resources}/aws-cognito-userpooluser_attributetype.go (94%) rename cloudformation/{ => resources}/aws-cognito-userpoolusertogroupattachment.go (92%) rename cloudformation/{ => resources}/aws-config-aggregationauthorization.go (92%) rename cloudformation/{ => resources}/aws-config-configrule.go (92%) rename cloudformation/{ => resources}/aws-config-configrule_scope.go (93%) rename cloudformation/{ => resources}/aws-config-configrule_source.go (93%) rename cloudformation/{ => resources}/aws-config-configrule_sourcedetail.go (95%) rename cloudformation/{ => resources}/aws-config-configurationaggregator.go (93%) rename cloudformation/{ => resources}/aws-config-configurationaggregator_accountaggregationsource.go (94%) rename cloudformation/{ => resources}/aws-config-configurationaggregator_organizationaggregationsource.go (94%) rename cloudformation/{ => resources}/aws-config-configurationrecorder.go (92%) rename cloudformation/{ => resources}/aws-config-configurationrecorder_recordinggroup.go (95%) rename cloudformation/{ => resources}/aws-config-deliverychannel.go (92%) rename cloudformation/{ => resources}/aws-config-deliverychannel_configsnapshotdeliveryproperties.go (93%) rename cloudformation/{ => resources}/aws-datapipeline-pipeline.go (92%) rename cloudformation/{ => resources}/aws-datapipeline-pipeline_field.go (95%) rename cloudformation/{ => resources}/aws-datapipeline-pipeline_parameterattribute.go (94%) rename cloudformation/{ => resources}/aws-datapipeline-pipeline_parameterobject.go (94%) rename cloudformation/{ => resources}/aws-datapipeline-pipeline_parametervalue.go (94%) rename cloudformation/{ => resources}/aws-datapipeline-pipeline_pipelineobject.go (94%) rename cloudformation/{ => resources}/aws-datapipeline-pipeline_pipelinetag.go (94%) rename cloudformation/{ => resources}/aws-dax-cluster.go (94%) rename cloudformation/{ => resources}/aws-dax-cluster_ssespecification.go (93%) rename cloudformation/{ => resources}/aws-dax-parametergroup.go (91%) rename cloudformation/{ => resources}/aws-dax-subnetgroup.go (91%) rename cloudformation/{ => resources}/aws-directoryservice-microsoftad.go (93%) rename cloudformation/{ => resources}/aws-directoryservice-microsoftad_vpcsettings.go (94%) rename cloudformation/{ => resources}/aws-directoryservice-simplead.go (93%) rename cloudformation/{ => resources}/aws-directoryservice-simplead_vpcsettings.go (94%) rename cloudformation/{ => resources}/aws-dlm-lifecyclepolicy.go (91%) rename cloudformation/{ => resources}/aws-dlm-lifecyclepolicy_createrule.go (95%) rename cloudformation/{ => resources}/aws-dlm-lifecyclepolicy_policydetails.go (95%) rename cloudformation/{ => resources}/aws-dlm-lifecyclepolicy_retainrule.go (93%) rename cloudformation/{ => resources}/aws-dlm-lifecyclepolicy_schedule.go (95%) rename cloudformation/{ => resources}/aws-dms-certificate.go (91%) rename cloudformation/{ => resources}/aws-dms-endpoint.go (95%) rename cloudformation/{ => resources}/aws-dms-endpoint_dynamodbsettings.go (94%) rename cloudformation/{ => resources}/aws-dms-endpoint_elasticsearchsettings.go (95%) rename cloudformation/{ => resources}/aws-dms-endpoint_kinesissettings.go (95%) rename cloudformation/{ => resources}/aws-dms-endpoint_mongodbsettings.go (97%) rename cloudformation/{ => resources}/aws-dms-endpoint_s3settings.go (94%) rename cloudformation/{ => resources}/aws-dms-eventsubscription.go (92%) rename cloudformation/{ => resources}/aws-dms-replicationinstance.go (94%) rename cloudformation/{ => resources}/aws-dms-replicationsubnetgroup.go (93%) rename cloudformation/{ => resources}/aws-dms-replicationtask.go (93%) rename cloudformation/{ => resources}/aws-docdb-dbcluster.go (95%) rename cloudformation/{ => resources}/aws-docdb-dbclusterparametergroup.go (93%) rename cloudformation/{ => resources}/aws-docdb-dbinstance.go (92%) rename cloudformation/{ => resources}/aws-docdb-dbsubnetgroup.go (91%) rename cloudformation/{ => resources}/aws-dynamodb-table.go (94%) rename cloudformation/{ => resources}/aws-dynamodb-table_attributedefinition.go (94%) rename cloudformation/{ => resources}/aws-dynamodb-table_globalsecondaryindex.go (95%) rename cloudformation/{ => resources}/aws-dynamodb-table_keyschema.go (92%) rename cloudformation/{ => resources}/aws-dynamodb-table_localsecondaryindex.go (94%) rename cloudformation/{ => resources}/aws-dynamodb-table_pointintimerecoveryspecification.go (93%) rename cloudformation/{ => resources}/aws-dynamodb-table_projection.go (92%) rename cloudformation/{ => resources}/aws-dynamodb-table_provisionedthroughput.go (94%) rename cloudformation/{ => resources}/aws-dynamodb-table_ssespecification.go (93%) rename cloudformation/{ => resources}/aws-dynamodb-table_streamspecification.go (93%) rename cloudformation/{ => resources}/aws-dynamodb-table_timetolivespecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-customergateway.go (91%) rename cloudformation/{ => resources}/aws-ec2-dhcpoptions.go (92%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet.go (94%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go (94%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go (96%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go (95%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_ondemandoptionsrequest.go (94%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_spotoptionsrequest.go (95%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_tagrequest.go (92%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_tagspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go (95%) rename cloudformation/{ => resources}/aws-ec2-egressonlyinternetgateway.go (91%) rename cloudformation/{ => resources}/aws-ec2-eip.go (90%) rename cloudformation/{ => resources}/aws-ec2-eipassociation.go (92%) rename cloudformation/{ => resources}/aws-ec2-flowlog.go (92%) rename cloudformation/{ => resources}/aws-ec2-host.go (90%) rename cloudformation/{ => resources}/aws-ec2-instance.go (95%) rename cloudformation/{ => resources}/aws-ec2-instance_associationparameter.go (94%) rename cloudformation/{ => resources}/aws-ec2-instance_blockdevicemapping.go (95%) rename cloudformation/{ => resources}/aws-ec2-instance_creditspecification.go (93%) rename cloudformation/{ => resources}/aws-ec2-instance_ebs.go (94%) rename cloudformation/{ => resources}/aws-ec2-instance_elasticgpuspecification.go (93%) rename cloudformation/{ => resources}/aws-ec2-instance_elasticinferenceaccelerator.go (93%) rename cloudformation/{ => resources}/aws-ec2-instance_instanceipv6address.go (93%) rename cloudformation/{ => resources}/aws-ec2-instance_launchtemplatespecification.go (95%) rename cloudformation/{ => resources}/aws-ec2-instance_licensespecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-instance_networkinterface.go (97%) rename cloudformation/{ => resources}/aws-ec2-instance_nodevice.go (90%) rename cloudformation/{ => resources}/aws-ec2-instance_privateipaddressspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-instance_ssmassociation.go (94%) rename cloudformation/{ => resources}/aws-ec2-instance_volume.go (92%) rename cloudformation/{ => resources}/aws-ec2-internetgateway.go (89%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate.go (90%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_blockdevicemapping.go (95%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_capacityreservationpreference.go (92%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_capacityreservationspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_capacityreservationtarget.go (93%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_cpuoptions.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_creditspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_ebs.go (95%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_elasticgpuspecification.go (93%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_hibernationoptions.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_iaminstanceprofile.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_instancemarketoptions.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_ipv6add.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_launchtemplatedata.go (98%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go (93%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_licensespecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_monitoring.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_networkinterface.go (97%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_placement.go (96%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_privateipadd.go (94%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_spotoptions.go (95%) rename cloudformation/{ => resources}/aws-ec2-launchtemplate_tagspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-natgateway.go (90%) rename cloudformation/{ => resources}/aws-ec2-networkacl.go (90%) rename cloudformation/{ => resources}/aws-ec2-networkaclentry.go (93%) rename cloudformation/{ => resources}/aws-ec2-networkaclentry_icmp.go (92%) rename cloudformation/{ => resources}/aws-ec2-networkaclentry_portrange.go (94%) rename cloudformation/{ => resources}/aws-ec2-networkinterface.go (94%) rename cloudformation/{ => resources}/aws-ec2-networkinterface_instanceipv6address.go (93%) rename cloudformation/{ => resources}/aws-ec2-networkinterface_privateipaddressspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-networkinterfaceattachment.go (93%) rename cloudformation/{ => resources}/aws-ec2-networkinterfacepermission.go (92%) rename cloudformation/{ => resources}/aws-ec2-placementgroup.go (89%) rename cloudformation/{ => resources}/aws-ec2-route.go (93%) rename cloudformation/{ => resources}/aws-ec2-routetable.go (90%) rename cloudformation/{ => resources}/aws-ec2-securitygroup.go (92%) rename cloudformation/{ => resources}/aws-ec2-securitygroup_egress.go (95%) rename cloudformation/{ => resources}/aws-ec2-securitygroup_ingress.go (95%) rename cloudformation/{ => resources}/aws-ec2-securitygroupegress.go (93%) rename cloudformation/{ => resources}/aws-ec2-securitygroupingress.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet.go (90%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_blockdevicemapping.go (95%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_classicloadbalancer.go (93%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_classicloadbalancersconfig.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_ebsblockdevice.go (96%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go (95%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_groupidentifier.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_iaminstanceprofilespecification.go (93%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_instanceipv6address.go (93%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_instancenetworkinterfacespecification.go (97%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_launchtemplateconfig.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_launchtemplateoverrides.go (95%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_loadbalancersconfig.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_privateipaddressspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_spotfleetlaunchspecification.go (97%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_spotfleetmonitoring.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_spotfleetrequestconfigdata.go (97%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_spotfleettagspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_spotplacement.go (95%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_targetgroup.go (91%) rename cloudformation/{ => resources}/aws-ec2-spotfleet_targetgroupsconfig.go (94%) rename cloudformation/{ => resources}/aws-ec2-subnet.go (92%) rename cloudformation/{ => resources}/aws-ec2-subnetcidrblock.go (90%) rename cloudformation/{ => resources}/aws-ec2-subnetnetworkaclassociation.go (92%) rename cloudformation/{ => resources}/aws-ec2-subnetroutetableassociation.go (92%) rename cloudformation/{ => resources}/aws-ec2-transitgateway.go (93%) rename cloudformation/{ => resources}/aws-ec2-transitgatewayattachment.go (92%) rename cloudformation/{ => resources}/aws-ec2-transitgatewayroute.go (91%) rename cloudformation/{ => resources}/aws-ec2-transitgatewayroutetable.go (92%) rename cloudformation/{ => resources}/aws-ec2-transitgatewayroutetableassociation.go (92%) rename cloudformation/{ => resources}/aws-ec2-transitgatewayroutetablepropagation.go (92%) rename cloudformation/{ => resources}/aws-ec2-trunkinterfaceassociation.go (93%) rename cloudformation/{ => resources}/aws-ec2-volume.go (93%) rename cloudformation/{ => resources}/aws-ec2-volumeattachment.go (91%) rename cloudformation/{ => resources}/aws-ec2-vpc.go (91%) rename cloudformation/{ => resources}/aws-ec2-vpccidrblock.go (91%) rename cloudformation/{ => resources}/aws-ec2-vpcdhcpoptionsassociation.go (92%) rename cloudformation/{ => resources}/aws-ec2-vpcendpoint.go (93%) rename cloudformation/{ => resources}/aws-ec2-vpcendpointconnectionnotification.go (93%) rename cloudformation/{ => resources}/aws-ec2-vpcendpointservicepermissions.go (92%) rename cloudformation/{ => resources}/aws-ec2-vpcgatewayattachment.go (91%) rename cloudformation/{ => resources}/aws-ec2-vpcpeeringconnection.go (92%) rename cloudformation/{ => resources}/aws-ec2-vpnconnection.go (92%) rename cloudformation/{ => resources}/aws-ec2-vpnconnection_vpntunneloptionsspecification.go (94%) rename cloudformation/{ => resources}/aws-ec2-vpnconnectionroute.go (90%) rename cloudformation/{ => resources}/aws-ec2-vpngateway.go (90%) rename cloudformation/{ => resources}/aws-ec2-vpngatewayroutepropagation.go (92%) rename cloudformation/{ => resources}/aws-ecr-repository.go (91%) rename cloudformation/{ => resources}/aws-ecr-repository_lifecyclepolicy.go (94%) rename cloudformation/{ => resources}/aws-ecs-cluster.go (89%) rename cloudformation/{ => resources}/aws-ecs-service.go (94%) rename cloudformation/{ => resources}/aws-ecs-service_awsvpcconfiguration.go (95%) rename cloudformation/{ => resources}/aws-ecs-service_deploymentconfiguration.go (94%) rename cloudformation/{ => resources}/aws-ecs-service_loadbalancer.go (93%) rename cloudformation/{ => resources}/aws-ecs-service_networkconfiguration.go (94%) rename cloudformation/{ => resources}/aws-ecs-service_placementconstraint.go (94%) rename cloudformation/{ => resources}/aws-ecs-service_placementstrategy.go (94%) rename cloudformation/{ => resources}/aws-ecs-service_serviceregistry.go (95%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition.go (93%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_containerdefinition.go (98%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_device.go (93%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_dockervolumeconfiguration.go (95%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_healthcheck.go (95%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_hostentry.go (94%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_hostvolumeproperties.go (93%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_kernelcapabilities.go (94%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_keyvaluepair.go (94%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_linuxparameters.go (95%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_logconfiguration.go (94%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_mountpoint.go (95%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_portmapping.go (95%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_repositorycredentials.go (93%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go (94%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_tmpfs.go (92%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_ulimit.go (93%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_volume.go (93%) rename cloudformation/{ => resources}/aws-ecs-taskdefinition_volumefrom.go (94%) rename cloudformation/{ => resources}/aws-efs-filesystem.go (92%) rename cloudformation/{ => resources}/aws-efs-filesystem_elasticfilesystemtag.go (94%) rename cloudformation/{ => resources}/aws-efs-mounttarget.go (91%) rename cloudformation/{ => resources}/aws-eks-cluster.go (91%) rename cloudformation/{ => resources}/aws-eks-cluster_resourcesvpcconfig.go (94%) rename cloudformation/{ => resources}/aws-elasticache-cachecluster.go (95%) rename cloudformation/{ => resources}/aws-elasticache-parametergroup.go (92%) rename cloudformation/{ => resources}/aws-elasticache-replicationgroup.go (97%) rename cloudformation/{ => resources}/aws-elasticache-replicationgroup_nodegroupconfiguration.go (95%) rename cloudformation/{ => resources}/aws-elasticache-securitygroup.go (90%) rename cloudformation/{ => resources}/aws-elasticache-securitygroupingress.go (92%) rename cloudformation/{ => resources}/aws-elasticache-subnetgroup.go (91%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-application.go (92%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go (94%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go (94%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-application_maxagerule.go (95%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-application_maxcountrule.go (95%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-applicationversion.go (92%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-applicationversion_sourcebundle.go (94%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-configurationtemplate.go (94%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go (95%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go (94%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-environment.go (94%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-environment_optionsetting.go (95%) rename cloudformation/{ => resources}/aws-elasticbeanstalk-environment_tier.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer.go (95%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go (95%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_connectionsettings.go (93%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_healthcheck.go (95%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_listeners.go (95%) rename cloudformation/{ => resources}/aws-elasticloadbalancing-loadbalancer_policies.go (95%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listener.go (93%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listener_action.go (96%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go (96%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go (97%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listener_certificate.go (93%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listener_redirectconfig.go (95%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenercertificate.go (92%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenercertificate_certificate.go (93%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenerrule.go (93%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenerrule_action.go (96%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go (96%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go (97%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go (95%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-listenerrule_rulecondition.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-loadbalancer.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-targetgroup.go (96%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-targetgroup_matcher.go (93%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-targetgroup_targetdescription.go (94%) rename cloudformation/{ => resources}/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go (94%) rename cloudformation/{ => resources}/aws-elasticsearch-domain.go (94%) rename cloudformation/{ => resources}/aws-elasticsearch-domain_ebsoptions.go (95%) rename cloudformation/{ => resources}/aws-elasticsearch-domain_elasticsearchclusterconfig.go (96%) rename cloudformation/{ => resources}/aws-elasticsearch-domain_encryptionatrestoptions.go (94%) rename cloudformation/{ => resources}/aws-elasticsearch-domain_nodetonodeencryptionoptions.go (93%) rename cloudformation/{ => resources}/aws-elasticsearch-domain_snapshotoptions.go (94%) rename cloudformation/{ => resources}/aws-elasticsearch-domain_vpcoptions.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster.go (95%) rename cloudformation/{ => resources}/aws-emr-cluster_application.go (93%) rename cloudformation/{ => resources}/aws-emr-cluster_autoscalingpolicy.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_bootstrapactionconfig.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_cloudwatchalarmdefinition.go (96%) rename cloudformation/{ => resources}/aws-emr-cluster_configuration.go (93%) rename cloudformation/{ => resources}/aws-emr-cluster_ebsblockdeviceconfig.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_ebsconfiguration.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_hadoopjarstepconfig.go (95%) rename cloudformation/{ => resources}/aws-emr-cluster_instancefleetconfig.go (96%) rename cloudformation/{ => resources}/aws-emr-cluster_instancefleetprovisioningspecifications.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_instancegroupconfig.go (96%) rename cloudformation/{ => resources}/aws-emr-cluster_instancetypeconfig.go (96%) rename cloudformation/{ => resources}/aws-emr-cluster_jobflowinstancesconfig.go (97%) rename cloudformation/{ => resources}/aws-emr-cluster_kerberosattributes.go (96%) rename cloudformation/{ => resources}/aws-emr-cluster_keyvalue.go (92%) rename cloudformation/{ => resources}/aws-emr-cluster_metricdimension.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_placementtype.go (91%) rename cloudformation/{ => resources}/aws-emr-cluster_scalingaction.go (92%) rename cloudformation/{ => resources}/aws-emr-cluster_scalingconstraints.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_scalingrule.go (93%) rename cloudformation/{ => resources}/aws-emr-cluster_scalingtrigger.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_scriptbootstrapactionconfig.go (94%) rename cloudformation/{ => resources}/aws-emr-cluster_simplescalingpolicyconfiguration.go (95%) rename cloudformation/{ => resources}/aws-emr-cluster_spotprovisioningspecification.go (95%) rename cloudformation/{ => resources}/aws-emr-cluster_stepconfig.go (93%) rename cloudformation/{ => resources}/aws-emr-cluster_volumespecification.go (95%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig.go (93%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig_configuration.go (95%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go (94%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig_ebsconfiguration.go (94%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go (93%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig_instancetypeconfig.go (96%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig_spotprovisioningspecification.go (95%) rename cloudformation/{ => resources}/aws-emr-instancefleetconfig_volumespecification.go (95%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig.go (93%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_autoscalingpolicy.go (94%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go (96%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_configuration.go (95%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go (94%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_ebsconfiguration.go (94%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_metricdimension.go (94%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_scalingaction.go (94%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_scalingconstraints.go (94%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_scalingrule.go (95%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_scalingtrigger.go (94%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go (95%) rename cloudformation/{ => resources}/aws-emr-instancegroupconfig_volumespecification.go (95%) rename cloudformation/{ => resources}/aws-emr-securityconfiguration.go (90%) rename cloudformation/{ => resources}/aws-emr-step.go (91%) rename cloudformation/{ => resources}/aws-emr-step_hadoopjarstepconfig.go (95%) rename cloudformation/{ => resources}/aws-emr-step_keyvalue.go (92%) rename cloudformation/{ => resources}/aws-events-eventbuspolicy.go (91%) rename cloudformation/{ => resources}/aws-events-eventbuspolicy_condition.go (94%) rename cloudformation/{ => resources}/aws-events-rule.go (92%) rename cloudformation/{ => resources}/aws-events-rule_ecsparameters.go (92%) rename cloudformation/{ => resources}/aws-events-rule_inputtransformer.go (94%) rename cloudformation/{ => resources}/aws-events-rule_kinesisparameters.go (94%) rename cloudformation/{ => resources}/aws-events-rule_runcommandparameters.go (94%) rename cloudformation/{ => resources}/aws-events-rule_runcommandtarget.go (94%) rename cloudformation/{ => resources}/aws-events-rule_sqsparameters.go (91%) rename cloudformation/{ => resources}/aws-events-rule_target.go (95%) rename cloudformation/{ => resources}/aws-fsx-filesystem.go (93%) rename cloudformation/{ => resources}/aws-fsx-filesystem_lustreconfiguration.go (95%) rename cloudformation/{ => resources}/aws-fsx-filesystem_tagentry.go (92%) rename cloudformation/{ => resources}/aws-fsx-filesystem_windowsconfiguration.go (96%) rename cloudformation/{ => resources}/aws-gamelift-alias.go (91%) rename cloudformation/{ => resources}/aws-gamelift-alias_routingstrategy.go (94%) rename cloudformation/{ => resources}/aws-gamelift-build.go (90%) rename cloudformation/{ => resources}/aws-gamelift-build_s3location.go (92%) rename cloudformation/{ => resources}/aws-gamelift-fleet.go (93%) rename cloudformation/{ => resources}/aws-gamelift-fleet_ippermission.go (95%) rename cloudformation/{ => resources}/aws-glue-classifier.go (91%) rename cloudformation/{ => resources}/aws-glue-classifier_grokclassifier.go (95%) rename cloudformation/{ => resources}/aws-glue-classifier_jsonclassifier.go (94%) rename cloudformation/{ => resources}/aws-glue-classifier_xmlclassifier.go (95%) rename cloudformation/{ => resources}/aws-glue-connection.go (90%) rename cloudformation/{ => resources}/aws-glue-connection_connectioninput.go (96%) rename cloudformation/{ => resources}/aws-glue-connection_physicalconnectionrequirements.go (95%) rename cloudformation/{ => resources}/aws-glue-crawler.go (93%) rename cloudformation/{ => resources}/aws-glue-crawler_jdbctarget.go (92%) rename cloudformation/{ => resources}/aws-glue-crawler_s3target.go (92%) rename cloudformation/{ => resources}/aws-glue-crawler_schedule.go (91%) rename cloudformation/{ => resources}/aws-glue-crawler_schemachangepolicy.go (94%) rename cloudformation/{ => resources}/aws-glue-crawler_targets.go (92%) rename cloudformation/{ => resources}/aws-glue-database.go (90%) rename cloudformation/{ => resources}/aws-glue-database_databaseinput.go (95%) rename cloudformation/{ => resources}/aws-glue-devendpoint.go (93%) rename cloudformation/{ => resources}/aws-glue-job.go (93%) rename cloudformation/{ => resources}/aws-glue-job_connectionslist.go (91%) rename cloudformation/{ => resources}/aws-glue-job_executionproperty.go (94%) rename cloudformation/{ => resources}/aws-glue-job_jobcommand.go (92%) rename cloudformation/{ => resources}/aws-glue-partition.go (91%) rename cloudformation/{ => resources}/aws-glue-partition_column.go (92%) rename cloudformation/{ => resources}/aws-glue-partition_order.go (92%) rename cloudformation/{ => resources}/aws-glue-partition_partitioninput.go (95%) rename cloudformation/{ => resources}/aws-glue-partition_serdeinfo.go (93%) rename cloudformation/{ => resources}/aws-glue-partition_skewedinfo.go (93%) rename cloudformation/{ => resources}/aws-glue-partition_storagedescriptor.go (97%) rename cloudformation/{ => resources}/aws-glue-table.go (90%) rename cloudformation/{ => resources}/aws-glue-table_column.go (92%) rename cloudformation/{ => resources}/aws-glue-table_order.go (92%) rename cloudformation/{ => resources}/aws-glue-table_serdeinfo.go (93%) rename cloudformation/{ => resources}/aws-glue-table_skewedinfo.go (93%) rename cloudformation/{ => resources}/aws-glue-table_storagedescriptor.go (97%) rename cloudformation/{ => resources}/aws-glue-table_tableinput.go (95%) rename cloudformation/{ => resources}/aws-glue-trigger.go (92%) rename cloudformation/{ => resources}/aws-glue-trigger_action.go (92%) rename cloudformation/{ => resources}/aws-glue-trigger_condition.go (92%) rename cloudformation/{ => resources}/aws-glue-trigger_predicate.go (92%) rename cloudformation/{ => resources}/aws-guardduty-detector.go (90%) rename cloudformation/{ => resources}/aws-guardduty-filter.go (92%) rename cloudformation/{ => resources}/aws-guardduty-filter_condition.go (95%) rename cloudformation/{ => resources}/aws-guardduty-filter_findingcriteria.go (94%) rename cloudformation/{ => resources}/aws-guardduty-ipset.go (91%) rename cloudformation/{ => resources}/aws-guardduty-master.go (90%) rename cloudformation/{ => resources}/aws-guardduty-member.go (92%) rename cloudformation/{ => resources}/aws-guardduty-threatintelset.go (91%) rename cloudformation/{ => resources}/aws-iam-accesskey.go (90%) rename cloudformation/{ => resources}/aws-iam-group.go (91%) rename cloudformation/{ => resources}/aws-iam-group_policy.go (92%) rename cloudformation/{ => resources}/aws-iam-instanceprofile.go (91%) rename cloudformation/{ => resources}/aws-iam-managedpolicy.go (92%) rename cloudformation/{ => resources}/aws-iam-policy.go (91%) rename cloudformation/{ => resources}/aws-iam-role.go (92%) rename cloudformation/{ => resources}/aws-iam-role_policy.go (92%) rename cloudformation/{ => resources}/aws-iam-servicelinkedrole.go (91%) rename cloudformation/{ => resources}/aws-iam-user.go (92%) rename cloudformation/{ => resources}/aws-iam-user_loginprofile.go (92%) rename cloudformation/{ => resources}/aws-iam-user_policy.go (92%) rename cloudformation/{ => resources}/aws-iam-usertogroupaddition.go (90%) rename cloudformation/{ => resources}/aws-inspector-assessmenttarget.go (92%) rename cloudformation/{ => resources}/aws-inspector-assessmenttemplate.go (93%) rename cloudformation/{ => resources}/aws-inspector-resourcegroup.go (90%) rename cloudformation/{ => resources}/aws-iot-certificate.go (90%) rename cloudformation/{ => resources}/aws-iot-policy.go (90%) rename cloudformation/{ => resources}/aws-iot-policyprincipalattachment.go (92%) rename cloudformation/{ => resources}/aws-iot-thing.go (90%) rename cloudformation/{ => resources}/aws-iot-thing_attributepayload.go (94%) rename cloudformation/{ => resources}/aws-iot-thingprincipalattachment.go (92%) rename cloudformation/{ => resources}/aws-iot-topicrule.go (90%) rename cloudformation/{ => resources}/aws-iot-topicrule_action.go (96%) rename cloudformation/{ => resources}/aws-iot-topicrule_cloudwatchalarmaction.go (95%) rename cloudformation/{ => resources}/aws-iot-topicrule_cloudwatchmetricaction.go (96%) rename cloudformation/{ => resources}/aws-iot-topicrule_dynamodbaction.go (96%) rename cloudformation/{ => resources}/aws-iot-topicrule_dynamodbv2action.go (94%) rename cloudformation/{ => resources}/aws-iot-topicrule_elasticsearchaction.go (95%) rename cloudformation/{ => resources}/aws-iot-topicrule_firehoseaction.go (95%) rename cloudformation/{ => resources}/aws-iot-topicrule_iotanalyticsaction.go (94%) rename cloudformation/{ => resources}/aws-iot-topicrule_kinesisaction.go (95%) rename cloudformation/{ => resources}/aws-iot-topicrule_lambdaaction.go (94%) rename cloudformation/{ => resources}/aws-iot-topicrule_putiteminput.go (94%) rename cloudformation/{ => resources}/aws-iot-topicrule_republishaction.go (94%) rename cloudformation/{ => resources}/aws-iot-topicrule_s3action.go (92%) rename cloudformation/{ => resources}/aws-iot-topicrule_snsaction.go (92%) rename cloudformation/{ => resources}/aws-iot-topicrule_sqsaction.go (92%) rename cloudformation/{ => resources}/aws-iot-topicrule_stepfunctionsaction.go (95%) rename cloudformation/{ => resources}/aws-iot-topicrule_topicrulepayload.go (96%) rename cloudformation/{ => resources}/aws-iot1click-device.go (90%) rename cloudformation/{ => resources}/aws-iot1click-placement.go (91%) rename cloudformation/{ => resources}/aws-iot1click-project.go (91%) rename cloudformation/{ => resources}/aws-iot1click-project_devicetemplate.go (94%) rename cloudformation/{ => resources}/aws-iot1click-project_placementtemplate.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-channel.go (91%) rename cloudformation/{ => resources}/aws-iotanalytics-channel_retentionperiod.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset.go (92%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_action.go (95%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_containeraction.go (95%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_datasetcontentversionvalue.go (93%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_deltatime.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_filter.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_outputfileurivalue.go (93%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_queryaction.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_resourceconfiguration.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_retentionperiod.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_schedule.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_trigger.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_triggeringdataset.go (93%) rename cloudformation/{ => resources}/aws-iotanalytics-dataset_variable.go (96%) rename cloudformation/{ => resources}/aws-iotanalytics-datastore.go (91%) rename cloudformation/{ => resources}/aws-iotanalytics-datastore_retentionperiod.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline.go (91%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_activity.go (97%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_addattributes.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_channel.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_datastore.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_deviceregistryenrich.go (95%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_deviceshadowenrich.go (95%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_filter.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_lambda.go (95%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_math.go (95%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_removeattributes.go (94%) rename cloudformation/{ => resources}/aws-iotanalytics-pipeline_selectattributes.go (94%) rename cloudformation/{ => resources}/aws-kinesis-stream.go (91%) rename cloudformation/{ => resources}/aws-kinesis-stream_streamencryption.go (94%) rename cloudformation/{ => resources}/aws-kinesis-streamconsumer.go (90%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_csvmappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_input.go (96%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_inputlambdaprocessor.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_inputparallelism.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_inputprocessingconfiguration.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_inputschema.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_jsonmappingparameters.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_kinesisfirehoseinput.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_kinesisstreamsinput.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_mappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_recordcolumn.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-application_recordformat.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationoutput.go (92%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationoutput_destinationschema.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationoutput_lambdaoutput.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationoutput_output.go (96%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource.go (92%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_applicationconfiguration.go (96%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_checkpointconfiguration.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_codecontent.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_csvmappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_environmentproperties.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_input.go (96%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_inputparallelism.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_inputschema.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_jsonmappingparameters.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_mappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_monitoringconfiguration.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_parallelismconfiguration.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_propertygroup.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_recordcolumn.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_recordformat.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_s3contentlocation.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go (92%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationoutput.go (92%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationoutput_output.go (96%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource.go (92%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go (93%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go (94%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go (95%) rename cloudformation/{ => resources}/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream.go (95%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_bufferinghints.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_copycommand.go (95%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go (97%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go (93%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go (97%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go (93%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_processingconfiguration.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_processor.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_processorparameter.go (94%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go (96%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go (96%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go (96%) rename cloudformation/{ => resources}/aws-kinesisfirehose-deliverystream_splunkretryoptions.go (93%) rename cloudformation/{ => resources}/aws-kms-alias.go (90%) rename cloudformation/{ => resources}/aws-kms-key.go (92%) rename cloudformation/{ => resources}/aws-lambda-alias.go (89%) rename cloudformation/{ => resources}/aws-lambda-alias_aliasroutingconfiguration.go (94%) rename cloudformation/{ => resources}/aws-lambda-alias_versionweight.go (94%) rename cloudformation/{ => resources}/aws-lambda-eventsourcemapping.go (92%) rename cloudformation/{ => resources}/aws-lambda-function.go (94%) rename cloudformation/{ => resources}/aws-lambda-function_code.go (93%) rename cloudformation/{ => resources}/aws-lambda-function_deadletterconfig.go (93%) rename cloudformation/{ => resources}/aws-lambda-function_environment.go (94%) rename cloudformation/{ => resources}/aws-lambda-function_tracingconfig.go (93%) rename cloudformation/{ => resources}/aws-lambda-function_vpcconfig.go (92%) rename cloudformation/{ => resources}/aws-lambda-layerversion.go (92%) rename cloudformation/{ => resources}/aws-lambda-layerversion_content.go (95%) rename cloudformation/{ => resources}/aws-lambda-layerversionpermission.go (93%) rename cloudformation/{ => resources}/aws-lambda-permission.go (92%) rename cloudformation/{ => resources}/aws-lambda-version.go (90%) rename cloudformation/{ => resources}/aws-logs-destination.go (91%) rename cloudformation/{ => resources}/aws-logs-loggroup.go (90%) rename cloudformation/{ => resources}/aws-logs-logstream.go (90%) rename cloudformation/{ => resources}/aws-logs-metricfilter.go (91%) rename cloudformation/{ => resources}/aws-logs-metricfilter_metrictransformation.go (95%) rename cloudformation/{ => resources}/aws-logs-subscriptionfilter.go (91%) rename cloudformation/{ => resources}/aws-neptune-dbcluster.go (94%) rename cloudformation/{ => resources}/aws-neptune-dbclusterparametergroup.go (93%) rename cloudformation/{ => resources}/aws-neptune-dbinstance.go (94%) rename cloudformation/{ => resources}/aws-neptune-dbparametergroup.go (91%) rename cloudformation/{ => resources}/aws-neptune-dbsubnetgroup.go (91%) rename cloudformation/{ => resources}/aws-opsworks-app.go (93%) rename cloudformation/{ => resources}/aws-opsworks-app_datasource.go (92%) rename cloudformation/{ => resources}/aws-opsworks-app_environmentvariable.go (94%) rename cloudformation/{ => resources}/aws-opsworks-app_source.go (94%) rename cloudformation/{ => resources}/aws-opsworks-app_sslconfiguration.go (95%) rename cloudformation/{ => resources}/aws-opsworks-elasticloadbalancerattachment.go (92%) rename cloudformation/{ => resources}/aws-opsworks-instance.go (95%) rename cloudformation/{ => resources}/aws-opsworks-instance_blockdevicemapping.go (95%) rename cloudformation/{ => resources}/aws-opsworks-instance_ebsblockdevice.go (95%) rename cloudformation/{ => resources}/aws-opsworks-instance_timebasedautoscaling.go (96%) rename cloudformation/{ => resources}/aws-opsworks-layer.go (95%) rename cloudformation/{ => resources}/aws-opsworks-layer_autoscalingthresholds.go (96%) rename cloudformation/{ => resources}/aws-opsworks-layer_lifecycleeventconfiguration.go (94%) rename cloudformation/{ => resources}/aws-opsworks-layer_loadbasedautoscaling.go (95%) rename cloudformation/{ => resources}/aws-opsworks-layer_recipes.go (94%) rename cloudformation/{ => resources}/aws-opsworks-layer_shutdowneventconfiguration.go (94%) rename cloudformation/{ => resources}/aws-opsworks-layer_volumeconfiguration.go (96%) rename cloudformation/{ => resources}/aws-opsworks-stack.go (96%) rename cloudformation/{ => resources}/aws-opsworks-stack_chefconfiguration.go (94%) rename cloudformation/{ => resources}/aws-opsworks-stack_elasticip.go (92%) rename cloudformation/{ => resources}/aws-opsworks-stack_rdsdbinstance.go (95%) rename cloudformation/{ => resources}/aws-opsworks-stack_source.go (94%) rename cloudformation/{ => resources}/aws-opsworks-stack_stackconfigurationmanager.go (94%) rename cloudformation/{ => resources}/aws-opsworks-userprofile.go (91%) rename cloudformation/{ => resources}/aws-opsworks-volume.go (91%) rename cloudformation/{ => resources}/aws-opsworkscm-server.go (95%) rename cloudformation/{ => resources}/aws-opsworkscm-server_engineattribute.go (94%) rename cloudformation/{ => resources}/aws-ram-resourceshare.go (91%) rename cloudformation/{ => resources}/aws-rds-dbcluster.go (96%) rename cloudformation/{ => resources}/aws-rds-dbcluster_scalingconfiguration.go (95%) rename cloudformation/{ => resources}/aws-rds-dbclusterparametergroup.go (92%) rename cloudformation/{ => resources}/aws-rds-dbinstance.go (97%) rename cloudformation/{ => resources}/aws-rds-dbinstance_processorfeature.go (94%) rename cloudformation/{ => resources}/aws-rds-dbparametergroup.go (91%) rename cloudformation/{ => resources}/aws-rds-dbsecuritygroup.go (91%) rename cloudformation/{ => resources}/aws-rds-dbsecuritygroup_ingress.go (95%) rename cloudformation/{ => resources}/aws-rds-dbsecuritygroupingress.go (93%) rename cloudformation/{ => resources}/aws-rds-dbsubnetgroup.go (91%) rename cloudformation/{ => resources}/aws-rds-eventsubscription.go (92%) rename cloudformation/{ => resources}/aws-rds-optiongroup.go (92%) rename cloudformation/{ => resources}/aws-rds-optiongroup_optionconfiguration.go (96%) rename cloudformation/{ => resources}/aws-rds-optiongroup_optionsetting.go (94%) rename cloudformation/{ => resources}/aws-redshift-cluster.go (96%) rename cloudformation/{ => resources}/aws-redshift-cluster_loggingproperties.go (94%) rename cloudformation/{ => resources}/aws-redshift-clusterparametergroup.go (93%) rename cloudformation/{ => resources}/aws-redshift-clusterparametergroup_parameter.go (94%) rename cloudformation/{ => resources}/aws-redshift-clustersecuritygroup.go (92%) rename cloudformation/{ => resources}/aws-redshift-clustersecuritygroupingress.go (93%) rename cloudformation/{ => resources}/aws-redshift-clustersubnetgroup.go (92%) rename cloudformation/{ => resources}/aws-robomaker-fleet.go (90%) rename cloudformation/{ => resources}/aws-robomaker-robot.go (91%) rename cloudformation/{ => resources}/aws-robomaker-robotapplication.go (93%) rename cloudformation/{ => resources}/aws-robomaker-robotapplication_robotsoftwaresuite.go (94%) rename cloudformation/{ => resources}/aws-robomaker-robotapplication_sourceconfig.go (94%) rename cloudformation/{ => resources}/aws-robomaker-robotapplicationversion.go (92%) rename cloudformation/{ => resources}/aws-robomaker-simulationapplication.go (94%) rename cloudformation/{ => resources}/aws-robomaker-simulationapplication_renderingengine.go (94%) rename cloudformation/{ => resources}/aws-robomaker-simulationapplication_robotsoftwaresuite.go (94%) rename cloudformation/{ => resources}/aws-robomaker-simulationapplication_simulationsoftwaresuite.go (94%) rename cloudformation/{ => resources}/aws-robomaker-simulationapplication_sourceconfig.go (94%) rename cloudformation/{ => resources}/aws-robomaker-simulationapplicationversion.go (92%) rename cloudformation/{ => resources}/aws-route53-healthcheck.go (90%) rename cloudformation/{ => resources}/aws-route53-healthcheck_alarmidentifier.go (94%) rename cloudformation/{ => resources}/aws-route53-healthcheck_healthcheckconfig.go (97%) rename cloudformation/{ => resources}/aws-route53-healthcheck_healthchecktag.go (94%) rename cloudformation/{ => resources}/aws-route53-hostedzone.go (92%) rename cloudformation/{ => resources}/aws-route53-hostedzone_hostedzoneconfig.go (93%) rename cloudformation/{ => resources}/aws-route53-hostedzone_hostedzonetag.go (94%) rename cloudformation/{ => resources}/aws-route53-hostedzone_queryloggingconfig.go (94%) rename cloudformation/{ => resources}/aws-route53-hostedzone_vpc.go (92%) rename cloudformation/{ => resources}/aws-route53-recordset.go (94%) rename cloudformation/{ => resources}/aws-route53-recordset_aliastarget.go (95%) rename cloudformation/{ => resources}/aws-route53-recordset_geolocation.go (95%) rename cloudformation/{ => resources}/aws-route53-recordsetgroup.go (91%) rename cloudformation/{ => resources}/aws-route53-recordsetgroup_aliastarget.go (94%) rename cloudformation/{ => resources}/aws-route53-recordsetgroup_geolocation.go (95%) rename cloudformation/{ => resources}/aws-route53-recordsetgroup_recordset.go (97%) rename cloudformation/{ => resources}/aws-route53resolver-resolverendpoint.go (93%) rename cloudformation/{ => resources}/aws-route53resolver-resolverendpoint_ipaddressrequest.go (94%) rename cloudformation/{ => resources}/aws-route53resolver-resolverrule.go (93%) rename cloudformation/{ => resources}/aws-route53resolver-resolverrule_targetaddress.go (94%) rename cloudformation/{ => resources}/aws-route53resolver-resolverruleassociation.go (92%) rename cloudformation/{ => resources}/aws-s3-bucket.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_abortincompletemultipartupload.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_accelerateconfiguration.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_accesscontroltranslation.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_analyticsconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_bucketencryption.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_corsconfiguration.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_corsrule.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_dataexport.go (92%) rename cloudformation/{ => resources}/aws-s3-bucket_destination.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_encryptionconfiguration.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_filterrule.go (92%) rename cloudformation/{ => resources}/aws-s3-bucket_inventoryconfiguration.go (96%) rename cloudformation/{ => resources}/aws-s3-bucket_lambdaconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_lifecycleconfiguration.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_loggingconfiguration.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_metricsconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_noncurrentversiontransition.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_notificationconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_notificationfilter.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_publicaccessblockconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_queueconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_redirectallrequeststo.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_redirectrule.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_replicationconfiguration.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_replicationdestination.go (96%) rename cloudformation/{ => resources}/aws-s3-bucket_replicationrule.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_routingrule.go (92%) rename cloudformation/{ => resources}/aws-s3-bucket_routingrulecondition.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_rule.go (96%) rename cloudformation/{ => resources}/aws-s3-bucket_s3keyfilter.go (91%) rename cloudformation/{ => resources}/aws-s3-bucket_serversideencryptionbydefault.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_serversideencryptionrule.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_sourceselectioncriteria.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_ssekmsencryptedobjects.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_storageclassanalysis.go (94%) rename cloudformation/{ => resources}/aws-s3-bucket_tagfilter.go (92%) rename cloudformation/{ => resources}/aws-s3-bucket_topicconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucket_transition.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_versioningconfiguration.go (93%) rename cloudformation/{ => resources}/aws-s3-bucket_websiteconfiguration.go (95%) rename cloudformation/{ => resources}/aws-s3-bucketpolicy.go (90%) rename cloudformation/{ => resources}/aws-sagemaker-endpoint.go (91%) rename cloudformation/{ => resources}/aws-sagemaker-endpointconfig.go (91%) rename cloudformation/{ => resources}/aws-sagemaker-endpointconfig_productionvariant.go (96%) rename cloudformation/{ => resources}/aws-sagemaker-model.go (92%) rename cloudformation/{ => resources}/aws-sagemaker-model_containerdefinition.go (95%) rename cloudformation/{ => resources}/aws-sagemaker-model_vpcconfig.go (92%) rename cloudformation/{ => resources}/aws-sagemaker-notebookinstance.go (94%) rename cloudformation/{ => resources}/aws-sagemaker-notebookinstancelifecycleconfig.go (93%) rename cloudformation/{ => resources}/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go (93%) rename cloudformation/{ => resources}/aws-sdb-domain.go (89%) rename cloudformation/{ => resources}/aws-secretsmanager-resourcepolicy.go (92%) rename cloudformation/{ => resources}/aws-secretsmanager-rotationschedule.go (92%) rename cloudformation/{ => resources}/aws-secretsmanager-rotationschedule_rotationrules.go (93%) rename cloudformation/{ => resources}/aws-secretsmanager-secret.go (92%) rename cloudformation/{ => resources}/aws-secretsmanager-secret_generatesecretstring.go (97%) rename cloudformation/{ => resources}/aws-secretsmanager-secrettargetattachment.go (92%) rename cloudformation/{ => resources}/aws-serverless-api.go (93%) rename cloudformation/{ => resources}/aws-serverless-api_auth.go (90%) rename cloudformation/{ => resources}/aws-serverless-api_s3location.go (92%) rename cloudformation/{ => resources}/aws-serverless-application.go (91%) rename cloudformation/{ => resources}/aws-serverless-application_applicationlocation.go (94%) rename cloudformation/{ => resources}/aws-serverless-function.go (95%) rename cloudformation/{ => resources}/aws-serverless-function_alexaskillevent.go (93%) rename cloudformation/{ => resources}/aws-serverless-function_apievent.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_cloudwatcheventevent.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_deadletterqueue.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_deploymentpreference.go (95%) rename cloudformation/{ => resources}/aws-serverless-function_dynamodbevent.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_eventsource.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_functionenvironment.go (93%) rename cloudformation/{ => resources}/aws-serverless-function_iampolicydocument.go (93%) rename cloudformation/{ => resources}/aws-serverless-function_iotruleevent.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_kinesisevent.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_s3event.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_s3location.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_s3notificationfilter.go (93%) rename cloudformation/{ => resources}/aws-serverless-function_scheduleevent.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_snsevent.go (93%) rename cloudformation/{ => resources}/aws-serverless-function_sqsevent.go (94%) rename cloudformation/{ => resources}/aws-serverless-function_vpcconfig.go (94%) rename cloudformation/{ => resources}/aws-serverless-layerversion.go (92%) rename cloudformation/{ => resources}/aws-serverless-simpletable.go (92%) rename cloudformation/{ => resources}/aws-serverless-simpletable_primarykey.go (94%) rename cloudformation/{ => resources}/aws-serverless-simpletable_provisionedthroughput.go (94%) rename cloudformation/{ => resources}/aws-serverless-simpletable_ssespecification.go (93%) rename cloudformation/{ => resources}/aws-servicecatalog-acceptedportfolioshare.go (92%) rename cloudformation/{ => resources}/aws-servicecatalog-cloudformationproduct.go (94%) rename cloudformation/{ => resources}/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go (94%) rename cloudformation/{ => resources}/aws-servicecatalog-cloudformationprovisionedproduct.go (95%) rename cloudformation/{ => resources}/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go (94%) rename cloudformation/{ => resources}/aws-servicecatalog-launchnotificationconstraint.go (93%) rename cloudformation/{ => resources}/aws-servicecatalog-launchroleconstraint.go (93%) rename cloudformation/{ => resources}/aws-servicecatalog-launchtemplateconstraint.go (93%) rename cloudformation/{ => resources}/aws-servicecatalog-portfolio.go (92%) rename cloudformation/{ => resources}/aws-servicecatalog-portfolioprincipalassociation.go (93%) rename cloudformation/{ => resources}/aws-servicecatalog-portfolioproductassociation.go (93%) rename cloudformation/{ => resources}/aws-servicecatalog-portfolioshare.go (92%) rename cloudformation/{ => resources}/aws-servicecatalog-tagoption.go (91%) rename cloudformation/{ => resources}/aws-servicecatalog-tagoptionassociation.go (92%) rename cloudformation/{ => resources}/aws-servicediscovery-httpnamespace.go (92%) rename cloudformation/{ => resources}/aws-servicediscovery-instance.go (91%) rename cloudformation/{ => resources}/aws-servicediscovery-privatednsnamespace.go (92%) rename cloudformation/{ => resources}/aws-servicediscovery-publicdnsnamespace.go (92%) rename cloudformation/{ => resources}/aws-servicediscovery-service.go (92%) rename cloudformation/{ => resources}/aws-servicediscovery-service_dnsconfig.go (95%) rename cloudformation/{ => resources}/aws-servicediscovery-service_dnsrecord.go (94%) rename cloudformation/{ => resources}/aws-servicediscovery-service_healthcheckconfig.go (95%) rename cloudformation/{ => resources}/aws-servicediscovery-service_healthcheckcustomconfig.go (93%) rename cloudformation/{ => resources}/aws-ses-configurationset.go (89%) rename cloudformation/{ => resources}/aws-ses-configurationseteventdestination.go (92%) rename cloudformation/{ => resources}/aws-ses-configurationseteventdestination_cloudwatchdestination.go (94%) rename cloudformation/{ => resources}/aws-ses-configurationseteventdestination_dimensionconfiguration.go (95%) rename cloudformation/{ => resources}/aws-ses-configurationseteventdestination_eventdestination.go (95%) rename cloudformation/{ => resources}/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go (94%) rename cloudformation/{ => resources}/aws-ses-receiptfilter.go (89%) rename cloudformation/{ => resources}/aws-ses-receiptfilter_filter.go (92%) rename cloudformation/{ => resources}/aws-ses-receiptfilter_ipfilter.go (94%) rename cloudformation/{ => resources}/aws-ses-receiptrule.go (90%) rename cloudformation/{ => resources}/aws-ses-receiptrule_action.go (95%) rename cloudformation/{ => resources}/aws-ses-receiptrule_addheaderaction.go (94%) rename cloudformation/{ => resources}/aws-ses-receiptrule_bounceaction.go (95%) rename cloudformation/{ => resources}/aws-ses-receiptrule_lambdaaction.go (95%) rename cloudformation/{ => resources}/aws-ses-receiptrule_rule.go (94%) rename cloudformation/{ => resources}/aws-ses-receiptrule_s3action.go (93%) rename cloudformation/{ => resources}/aws-ses-receiptrule_snsaction.go (92%) rename cloudformation/{ => resources}/aws-ses-receiptrule_stopaction.go (94%) rename cloudformation/{ => resources}/aws-ses-receiptrule_workmailaction.go (94%) rename cloudformation/{ => resources}/aws-ses-receiptruleset.go (89%) rename cloudformation/{ => resources}/aws-ses-template.go (89%) rename cloudformation/{ => resources}/aws-ses-template_template.go (93%) rename cloudformation/{ => resources}/aws-sns-subscription.go (92%) rename cloudformation/{ => resources}/aws-sns-topic.go (91%) rename cloudformation/{ => resources}/aws-sns-topic_subscription.go (92%) rename cloudformation/{ => resources}/aws-sns-topicpolicy.go (90%) rename cloudformation/{ => resources}/aws-sqs-queue.go (94%) rename cloudformation/{ => resources}/aws-sqs-queuepolicy.go (90%) rename cloudformation/{ => resources}/aws-ssm-association.go (93%) rename cloudformation/{ => resources}/aws-ssm-association_instanceassociationoutputlocation.go (93%) rename cloudformation/{ => resources}/aws-ssm-association_parametervalues.go (94%) rename cloudformation/{ => resources}/aws-ssm-association_s3outputlocation.go (94%) rename cloudformation/{ => resources}/aws-ssm-association_target.go (92%) rename cloudformation/{ => resources}/aws-ssm-document.go (90%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindow.go (93%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask.go (94%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_logginginfo.go (94%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go (94%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go (94%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go (96%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go (94%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_notificationconfig.go (95%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_target.go (94%) rename cloudformation/{ => resources}/aws-ssm-maintenancewindowtask_taskinvocationparameters.go (96%) rename cloudformation/{ => resources}/aws-ssm-parameter.go (91%) rename cloudformation/{ => resources}/aws-ssm-patchbaseline.go (94%) rename cloudformation/{ => resources}/aws-ssm-patchbaseline_patchfilter.go (94%) rename cloudformation/{ => resources}/aws-ssm-patchbaseline_patchfiltergroup.go (94%) rename cloudformation/{ => resources}/aws-ssm-patchbaseline_patchsource.go (95%) rename cloudformation/{ => resources}/aws-ssm-patchbaseline_rule.go (93%) rename cloudformation/{ => resources}/aws-ssm-patchbaseline_rulegroup.go (94%) rename cloudformation/{ => resources}/aws-ssm-resourcedatasync.go (92%) rename cloudformation/{ => resources}/aws-stepfunctions-activity.go (90%) rename cloudformation/{ => resources}/aws-stepfunctions-activity_tagsentry.go (94%) rename cloudformation/{ => resources}/aws-stepfunctions-statemachine.go (93%) rename cloudformation/{ => resources}/aws-stepfunctions-statemachine_tagsentry.go (94%) rename cloudformation/{ => resources}/aws-waf-bytematchset.go (90%) rename cloudformation/{ => resources}/aws-waf-bytematchset_bytematchtuple.go (95%) rename cloudformation/{ => resources}/aws-waf-bytematchset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-waf-ipset.go (90%) rename cloudformation/{ => resources}/aws-waf-ipset_ipsetdescriptor.go (92%) rename cloudformation/{ => resources}/aws-waf-rule.go (90%) rename cloudformation/{ => resources}/aws-waf-rule_predicate.go (92%) rename cloudformation/{ => resources}/aws-waf-sizeconstraintset.go (90%) rename cloudformation/{ => resources}/aws-waf-sizeconstraintset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-waf-sizeconstraintset_sizeconstraint.go (95%) rename cloudformation/{ => resources}/aws-waf-sqlinjectionmatchset.go (90%) rename cloudformation/{ => resources}/aws-waf-sqlinjectionmatchset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go (94%) rename cloudformation/{ => resources}/aws-waf-webacl.go (91%) rename cloudformation/{ => resources}/aws-waf-webacl_activatedrule.go (92%) rename cloudformation/{ => resources}/aws-waf-webacl_wafaction.go (91%) rename cloudformation/{ => resources}/aws-waf-xssmatchset.go (90%) rename cloudformation/{ => resources}/aws-waf-xssmatchset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-waf-xssmatchset_xssmatchtuple.go (94%) rename cloudformation/{ => resources}/aws-wafregional-bytematchset.go (90%) rename cloudformation/{ => resources}/aws-wafregional-bytematchset_bytematchtuple.go (95%) rename cloudformation/{ => resources}/aws-wafregional-bytematchset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-wafregional-ipset.go (90%) rename cloudformation/{ => resources}/aws-wafregional-ipset_ipsetdescriptor.go (94%) rename cloudformation/{ => resources}/aws-wafregional-rule.go (90%) rename cloudformation/{ => resources}/aws-wafregional-rule_predicate.go (94%) rename cloudformation/{ => resources}/aws-wafregional-sizeconstraintset.go (92%) rename cloudformation/{ => resources}/aws-wafregional-sizeconstraintset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-wafregional-sizeconstraintset_sizeconstraint.go (95%) rename cloudformation/{ => resources}/aws-wafregional-sqlinjectionmatchset.go (92%) rename cloudformation/{ => resources}/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go (94%) rename cloudformation/{ => resources}/aws-wafregional-webacl.go (91%) rename cloudformation/{ => resources}/aws-wafregional-webacl_action.go (91%) rename cloudformation/{ => resources}/aws-wafregional-webacl_rule.go (92%) rename cloudformation/{ => resources}/aws-wafregional-webaclassociation.go (92%) rename cloudformation/{ => resources}/aws-wafregional-xssmatchset.go (90%) rename cloudformation/{ => resources}/aws-wafregional-xssmatchset_fieldtomatch.go (94%) rename cloudformation/{ => resources}/aws-wafregional-xssmatchset_xssmatchtuple.go (94%) rename cloudformation/{ => resources}/aws-workspaces-workspace.go (93%) rename cloudformation/{ => resources}/aws-workspaces-workspace_workspaceproperties.go (95%) rename cloudformation/{ => resources}/awsserverlessapi_definitionuri.go (97%) rename cloudformation/{ => resources}/awsserverlessapplication_location.go (98%) rename cloudformation/{ => resources}/awsserverlessfunction_codeuri.go (98%) rename cloudformation/{ => resources}/awsserverlessfunction_events.go (97%) rename cloudformation/{ => resources}/awsserverlessfunction_policies.go (98%) rename cloudformation/{ => resources}/awsserverlessfunction_properties.go (99%) rename cloudformation/{ => resources}/tag.go (92%) diff --git a/README.md b/README.md index 0c89fa99bd..7a7dfca9ad 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # AWS GoFormation -[![Build Status](https://travis-ci.org/awslabs/goformation.svg?branch=0.1.0)](https://travis-ci.org/awslabs/goformation) [![GoDoc Reference](https://godoc.org/gopkg.in/awslabs/goformation.v1?status.svg)](http://godoc.org/github.com/awslabs/goformation) ![Apache-2.0](https://img.shields.io/badge/Licence-Apache%202.0-blue.svg) +[![Build Status](https://travis-ci.org/awslabs/goformation.svg?branch=0.1.0)](https://travis-ci.org/awslabs/goformation) [![GoDoc Reference](https://godoc.org/gopkg.in/awslabs/goformation.v1?status.svg)](http://godoc.org/github.com/awslabs/goformation) ![Apache-2.0](https://img.shields.io/badge/Licence-Apache%202.0-blue.svg) -`GoFormation` is a Go library for working with AWS CloudFormation / AWS Serverless Application Model (SAM) templates. +`GoFormation` is a Go library for working with AWS CloudFormation / AWS Serverless Application Model (SAM) templates. - [Main features](#main-features) - [Installation](#installation) - [Usage](#usage) @@ -45,6 +45,7 @@ import ( "time" "github.com/awslabs/goformation/cloudformation" + "github.com/awslabs/goformation/cloudformation/resources" ) func main() { @@ -53,12 +54,12 @@ func main() { template := cloudformation.NewTemplate() // Create an Amazon SNS topic, with a unique name based off the current timestamp - template.Resources["MyTopic"] = &cloudformation.AWSSNSTopic{ + template.Resources["MyTopic"] = &resources.AWSSNSTopic{ TopicName: "my-topic-" + strconv.FormatInt(time.Now().Unix(), 10), } // Create a subscription, connected to our topic, that forwards notifications to an email address - template.Resources["MyTopicSubscription"] = &cloudformation.AWSSNSSubscription{ + template.Resources["MyTopicSubscription"] = &resources.AWSSNSSubscription{ TopicArn: cloudformation.Ref("MyTopic"), Protocol: "email", Endpoint: "some.email@example.com", @@ -146,7 +147,7 @@ When creating templates, you can use the following convenience functions to use - `Not(conditions []string)` - `Or(conditions []string)` -### Unmarshalling CloudFormation YAML/JSON into Go structs +### Unmarshalling CloudFormation YAML/JSON into Go structs GoFormation also works the other way - parsing JSON/YAML CloudFormation/SAM templates into Go structs. @@ -191,7 +192,7 @@ func main() { ``` ## Updating CloudFormation / SAM Resources in GoFormation - + AWS GoFormation contains automatically generated Go structs for every CloudFormation/SAM resource, located in the [cloudformation/](cloudformation/) directory. These can be generated, from the latest [AWS CloudFormation Resource Specification](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html) published for `us-east-1` by just running `go generate`: ``` @@ -216,13 +217,13 @@ The following [AWS CloudFormation Intrinsic Functions](http://docs.aws.amazon.co - [x] [Fn::Select](intrinsics/fnselect.go) - [x] [Fn::Split](intrinsics/fnsplit.go) - [x] [Fn::Sub](intrinsics/fnsub.go) -- [x] [Ref](intrinsics/ref.go) -- [x] [Fn::And](intrinsics/fnand.go) -- [x] [Fn::Equals](intrinsics/fnequals.go) -- [x] [Fn::If](intrinsics/fnif.go) -- [x] [Fn::Not](intrinsics/fnnot.go) -- [x] [Fn::Or](intrinsics/fnor.go) -- [ ] Fn::GetAtt +- [x] [Ref](intrinsics/ref.go) +- [x] [Fn::And](intrinsics/fnand.go) +- [x] [Fn::Equals](intrinsics/fnequals.go) +- [x] [Fn::If](intrinsics/fnif.go) +- [x] [Fn::Not](intrinsics/fnnot.go) +- [x] [Fn::Or](intrinsics/fnor.go) +- [ ] Fn::GetAtt - [x] [Fn::GetAZs](intrinsics/fngetazs.go) - [ ] Fn::ImportValue diff --git a/cloudformation/all.go b/cloudformation/all.go index ff3beb2e88..84345816f6 100644 --- a/cloudformation/all.go +++ b/cloudformation/all.go @@ -2,388 +2,389 @@ package cloudformation import ( "fmt" + "github.com/awslabs/goformation/cloudformation/resources" ) // AllResources fetches an iterable map all CloudFormation and SAM resources func AllResources() map[string]Resource { return map[string]Resource{ - "AWS::AmazonMQ::Broker": &AWSAmazonMQBroker{}, - "AWS::AmazonMQ::Configuration": &AWSAmazonMQConfiguration{}, - "AWS::AmazonMQ::ConfigurationAssociation": &AWSAmazonMQConfigurationAssociation{}, - "AWS::ApiGateway::Account": &AWSApiGatewayAccount{}, - "AWS::ApiGateway::ApiKey": &AWSApiGatewayApiKey{}, - "AWS::ApiGateway::Authorizer": &AWSApiGatewayAuthorizer{}, - "AWS::ApiGateway::BasePathMapping": &AWSApiGatewayBasePathMapping{}, - "AWS::ApiGateway::ClientCertificate": &AWSApiGatewayClientCertificate{}, - "AWS::ApiGateway::Deployment": &AWSApiGatewayDeployment{}, - "AWS::ApiGateway::DocumentationPart": &AWSApiGatewayDocumentationPart{}, - "AWS::ApiGateway::DocumentationVersion": &AWSApiGatewayDocumentationVersion{}, - "AWS::ApiGateway::DomainName": &AWSApiGatewayDomainName{}, - "AWS::ApiGateway::GatewayResponse": &AWSApiGatewayGatewayResponse{}, - "AWS::ApiGateway::Method": &AWSApiGatewayMethod{}, - "AWS::ApiGateway::Model": &AWSApiGatewayModel{}, - "AWS::ApiGateway::RequestValidator": &AWSApiGatewayRequestValidator{}, - "AWS::ApiGateway::Resource": &AWSApiGatewayResource{}, - "AWS::ApiGateway::RestApi": &AWSApiGatewayRestApi{}, - "AWS::ApiGateway::Stage": &AWSApiGatewayStage{}, - "AWS::ApiGateway::UsagePlan": &AWSApiGatewayUsagePlan{}, - "AWS::ApiGateway::UsagePlanKey": &AWSApiGatewayUsagePlanKey{}, - "AWS::ApiGateway::VpcLink": &AWSApiGatewayVpcLink{}, - "AWS::ApiGatewayV2::Api": &AWSApiGatewayV2Api{}, - "AWS::ApiGatewayV2::Authorizer": &AWSApiGatewayV2Authorizer{}, - "AWS::ApiGatewayV2::Deployment": &AWSApiGatewayV2Deployment{}, - "AWS::ApiGatewayV2::Integration": &AWSApiGatewayV2Integration{}, - "AWS::ApiGatewayV2::IntegrationResponse": &AWSApiGatewayV2IntegrationResponse{}, - "AWS::ApiGatewayV2::Model": &AWSApiGatewayV2Model{}, - "AWS::ApiGatewayV2::Route": &AWSApiGatewayV2Route{}, - "AWS::ApiGatewayV2::RouteResponse": &AWSApiGatewayV2RouteResponse{}, - "AWS::ApiGatewayV2::Stage": &AWSApiGatewayV2Stage{}, - "AWS::AppStream::DirectoryConfig": &AWSAppStreamDirectoryConfig{}, - "AWS::AppStream::Fleet": &AWSAppStreamFleet{}, - "AWS::AppStream::ImageBuilder": &AWSAppStreamImageBuilder{}, - "AWS::AppStream::Stack": &AWSAppStreamStack{}, - "AWS::AppStream::StackFleetAssociation": &AWSAppStreamStackFleetAssociation{}, - "AWS::AppStream::StackUserAssociation": &AWSAppStreamStackUserAssociation{}, - "AWS::AppStream::User": &AWSAppStreamUser{}, - "AWS::AppSync::ApiKey": &AWSAppSyncApiKey{}, - "AWS::AppSync::DataSource": &AWSAppSyncDataSource{}, - "AWS::AppSync::FunctionConfiguration": &AWSAppSyncFunctionConfiguration{}, - "AWS::AppSync::GraphQLApi": &AWSAppSyncGraphQLApi{}, - "AWS::AppSync::GraphQLSchema": &AWSAppSyncGraphQLSchema{}, - "AWS::AppSync::Resolver": &AWSAppSyncResolver{}, - "AWS::ApplicationAutoScaling::ScalableTarget": &AWSApplicationAutoScalingScalableTarget{}, - "AWS::ApplicationAutoScaling::ScalingPolicy": &AWSApplicationAutoScalingScalingPolicy{}, - "AWS::Athena::NamedQuery": &AWSAthenaNamedQuery{}, - "AWS::AutoScaling::AutoScalingGroup": &AWSAutoScalingAutoScalingGroup{}, - "AWS::AutoScaling::LaunchConfiguration": &AWSAutoScalingLaunchConfiguration{}, - "AWS::AutoScaling::LifecycleHook": &AWSAutoScalingLifecycleHook{}, - "AWS::AutoScaling::ScalingPolicy": &AWSAutoScalingScalingPolicy{}, - "AWS::AutoScaling::ScheduledAction": &AWSAutoScalingScheduledAction{}, - "AWS::AutoScalingPlans::ScalingPlan": &AWSAutoScalingPlansScalingPlan{}, - "AWS::Batch::ComputeEnvironment": &AWSBatchComputeEnvironment{}, - "AWS::Batch::JobDefinition": &AWSBatchJobDefinition{}, - "AWS::Batch::JobQueue": &AWSBatchJobQueue{}, - "AWS::Budgets::Budget": &AWSBudgetsBudget{}, - "AWS::CertificateManager::Certificate": &AWSCertificateManagerCertificate{}, - "AWS::Cloud9::EnvironmentEC2": &AWSCloud9EnvironmentEC2{}, - "AWS::CloudFormation::CustomResource": &AWSCloudFormationCustomResource{}, - "AWS::CloudFormation::Macro": &AWSCloudFormationMacro{}, - "AWS::CloudFormation::Stack": &AWSCloudFormationStack{}, - "AWS::CloudFormation::WaitCondition": &AWSCloudFormationWaitCondition{}, - "AWS::CloudFormation::WaitConditionHandle": &AWSCloudFormationWaitConditionHandle{}, - "AWS::CloudFront::CloudFrontOriginAccessIdentity": &AWSCloudFrontCloudFrontOriginAccessIdentity{}, - "AWS::CloudFront::Distribution": &AWSCloudFrontDistribution{}, - "AWS::CloudFront::StreamingDistribution": &AWSCloudFrontStreamingDistribution{}, - "AWS::CloudTrail::Trail": &AWSCloudTrailTrail{}, - "AWS::CloudWatch::Alarm": &AWSCloudWatchAlarm{}, - "AWS::CloudWatch::Dashboard": &AWSCloudWatchDashboard{}, - "AWS::CodeBuild::Project": &AWSCodeBuildProject{}, - "AWS::CodeCommit::Repository": &AWSCodeCommitRepository{}, - "AWS::CodeDeploy::Application": &AWSCodeDeployApplication{}, - "AWS::CodeDeploy::DeploymentConfig": &AWSCodeDeployDeploymentConfig{}, - "AWS::CodeDeploy::DeploymentGroup": &AWSCodeDeployDeploymentGroup{}, - "AWS::CodePipeline::CustomActionType": &AWSCodePipelineCustomActionType{}, - "AWS::CodePipeline::Pipeline": &AWSCodePipelinePipeline{}, - "AWS::CodePipeline::Webhook": &AWSCodePipelineWebhook{}, - "AWS::Cognito::IdentityPool": &AWSCognitoIdentityPool{}, - "AWS::Cognito::IdentityPoolRoleAttachment": &AWSCognitoIdentityPoolRoleAttachment{}, - "AWS::Cognito::UserPool": &AWSCognitoUserPool{}, - "AWS::Cognito::UserPoolClient": &AWSCognitoUserPoolClient{}, - "AWS::Cognito::UserPoolGroup": &AWSCognitoUserPoolGroup{}, - "AWS::Cognito::UserPoolUser": &AWSCognitoUserPoolUser{}, - "AWS::Cognito::UserPoolUserToGroupAttachment": &AWSCognitoUserPoolUserToGroupAttachment{}, - "AWS::Config::AggregationAuthorization": &AWSConfigAggregationAuthorization{}, - "AWS::Config::ConfigRule": &AWSConfigConfigRule{}, - "AWS::Config::ConfigurationAggregator": &AWSConfigConfigurationAggregator{}, - "AWS::Config::ConfigurationRecorder": &AWSConfigConfigurationRecorder{}, - "AWS::Config::DeliveryChannel": &AWSConfigDeliveryChannel{}, - "AWS::DAX::Cluster": &AWSDAXCluster{}, - "AWS::DAX::ParameterGroup": &AWSDAXParameterGroup{}, - "AWS::DAX::SubnetGroup": &AWSDAXSubnetGroup{}, - "AWS::DLM::LifecyclePolicy": &AWSDLMLifecyclePolicy{}, - "AWS::DMS::Certificate": &AWSDMSCertificate{}, - "AWS::DMS::Endpoint": &AWSDMSEndpoint{}, - "AWS::DMS::EventSubscription": &AWSDMSEventSubscription{}, - "AWS::DMS::ReplicationInstance": &AWSDMSReplicationInstance{}, - "AWS::DMS::ReplicationSubnetGroup": &AWSDMSReplicationSubnetGroup{}, - "AWS::DMS::ReplicationTask": &AWSDMSReplicationTask{}, - "AWS::DataPipeline::Pipeline": &AWSDataPipelinePipeline{}, - "AWS::DirectoryService::MicrosoftAD": &AWSDirectoryServiceMicrosoftAD{}, - "AWS::DirectoryService::SimpleAD": &AWSDirectoryServiceSimpleAD{}, - "AWS::DocDB::DBCluster": &AWSDocDBDBCluster{}, - "AWS::DocDB::DBClusterParameterGroup": &AWSDocDBDBClusterParameterGroup{}, - "AWS::DocDB::DBInstance": &AWSDocDBDBInstance{}, - "AWS::DocDB::DBSubnetGroup": &AWSDocDBDBSubnetGroup{}, - "AWS::DynamoDB::Table": &AWSDynamoDBTable{}, - "AWS::EC2::CustomerGateway": &AWSEC2CustomerGateway{}, - "AWS::EC2::DHCPOptions": &AWSEC2DHCPOptions{}, - "AWS::EC2::EC2Fleet": &AWSEC2EC2Fleet{}, - "AWS::EC2::EIP": &AWSEC2EIP{}, - "AWS::EC2::EIPAssociation": &AWSEC2EIPAssociation{}, - "AWS::EC2::EgressOnlyInternetGateway": &AWSEC2EgressOnlyInternetGateway{}, - "AWS::EC2::FlowLog": &AWSEC2FlowLog{}, - "AWS::EC2::Host": &AWSEC2Host{}, - "AWS::EC2::Instance": &AWSEC2Instance{}, - "AWS::EC2::InternetGateway": &AWSEC2InternetGateway{}, - "AWS::EC2::LaunchTemplate": &AWSEC2LaunchTemplate{}, - "AWS::EC2::NatGateway": &AWSEC2NatGateway{}, - "AWS::EC2::NetworkAcl": &AWSEC2NetworkAcl{}, - "AWS::EC2::NetworkAclEntry": &AWSEC2NetworkAclEntry{}, - "AWS::EC2::NetworkInterface": &AWSEC2NetworkInterface{}, - "AWS::EC2::NetworkInterfaceAttachment": &AWSEC2NetworkInterfaceAttachment{}, - "AWS::EC2::NetworkInterfacePermission": &AWSEC2NetworkInterfacePermission{}, - "AWS::EC2::PlacementGroup": &AWSEC2PlacementGroup{}, - "AWS::EC2::Route": &AWSEC2Route{}, - "AWS::EC2::RouteTable": &AWSEC2RouteTable{}, - "AWS::EC2::SecurityGroup": &AWSEC2SecurityGroup{}, - "AWS::EC2::SecurityGroupEgress": &AWSEC2SecurityGroupEgress{}, - "AWS::EC2::SecurityGroupIngress": &AWSEC2SecurityGroupIngress{}, - "AWS::EC2::SpotFleet": &AWSEC2SpotFleet{}, - "AWS::EC2::Subnet": &AWSEC2Subnet{}, - "AWS::EC2::SubnetCidrBlock": &AWSEC2SubnetCidrBlock{}, - "AWS::EC2::SubnetNetworkAclAssociation": &AWSEC2SubnetNetworkAclAssociation{}, - "AWS::EC2::SubnetRouteTableAssociation": &AWSEC2SubnetRouteTableAssociation{}, - "AWS::EC2::TransitGateway": &AWSEC2TransitGateway{}, - "AWS::EC2::TransitGatewayAttachment": &AWSEC2TransitGatewayAttachment{}, - "AWS::EC2::TransitGatewayRoute": &AWSEC2TransitGatewayRoute{}, - "AWS::EC2::TransitGatewayRouteTable": &AWSEC2TransitGatewayRouteTable{}, - "AWS::EC2::TransitGatewayRouteTableAssociation": &AWSEC2TransitGatewayRouteTableAssociation{}, - "AWS::EC2::TransitGatewayRouteTablePropagation": &AWSEC2TransitGatewayRouteTablePropagation{}, - "AWS::EC2::TrunkInterfaceAssociation": &AWSEC2TrunkInterfaceAssociation{}, - "AWS::EC2::VPC": &AWSEC2VPC{}, - "AWS::EC2::VPCCidrBlock": &AWSEC2VPCCidrBlock{}, - "AWS::EC2::VPCDHCPOptionsAssociation": &AWSEC2VPCDHCPOptionsAssociation{}, - "AWS::EC2::VPCEndpoint": &AWSEC2VPCEndpoint{}, - "AWS::EC2::VPCEndpointConnectionNotification": &AWSEC2VPCEndpointConnectionNotification{}, - "AWS::EC2::VPCEndpointServicePermissions": &AWSEC2VPCEndpointServicePermissions{}, - "AWS::EC2::VPCGatewayAttachment": &AWSEC2VPCGatewayAttachment{}, - "AWS::EC2::VPCPeeringConnection": &AWSEC2VPCPeeringConnection{}, - "AWS::EC2::VPNConnection": &AWSEC2VPNConnection{}, - "AWS::EC2::VPNConnectionRoute": &AWSEC2VPNConnectionRoute{}, - "AWS::EC2::VPNGateway": &AWSEC2VPNGateway{}, - "AWS::EC2::VPNGatewayRoutePropagation": &AWSEC2VPNGatewayRoutePropagation{}, - "AWS::EC2::Volume": &AWSEC2Volume{}, - "AWS::EC2::VolumeAttachment": &AWSEC2VolumeAttachment{}, - "AWS::ECR::Repository": &AWSECRRepository{}, - "AWS::ECS::Cluster": &AWSECSCluster{}, - "AWS::ECS::Service": &AWSECSService{}, - "AWS::ECS::TaskDefinition": &AWSECSTaskDefinition{}, - "AWS::EFS::FileSystem": &AWSEFSFileSystem{}, - "AWS::EFS::MountTarget": &AWSEFSMountTarget{}, - "AWS::EKS::Cluster": &AWSEKSCluster{}, - "AWS::EMR::Cluster": &AWSEMRCluster{}, - "AWS::EMR::InstanceFleetConfig": &AWSEMRInstanceFleetConfig{}, - "AWS::EMR::InstanceGroupConfig": &AWSEMRInstanceGroupConfig{}, - "AWS::EMR::SecurityConfiguration": &AWSEMRSecurityConfiguration{}, - "AWS::EMR::Step": &AWSEMRStep{}, - "AWS::ElastiCache::CacheCluster": &AWSElastiCacheCacheCluster{}, - "AWS::ElastiCache::ParameterGroup": &AWSElastiCacheParameterGroup{}, - "AWS::ElastiCache::ReplicationGroup": &AWSElastiCacheReplicationGroup{}, - "AWS::ElastiCache::SecurityGroup": &AWSElastiCacheSecurityGroup{}, - "AWS::ElastiCache::SecurityGroupIngress": &AWSElastiCacheSecurityGroupIngress{}, - "AWS::ElastiCache::SubnetGroup": &AWSElastiCacheSubnetGroup{}, - "AWS::ElasticBeanstalk::Application": &AWSElasticBeanstalkApplication{}, - "AWS::ElasticBeanstalk::ApplicationVersion": &AWSElasticBeanstalkApplicationVersion{}, - "AWS::ElasticBeanstalk::ConfigurationTemplate": &AWSElasticBeanstalkConfigurationTemplate{}, - "AWS::ElasticBeanstalk::Environment": &AWSElasticBeanstalkEnvironment{}, - "AWS::ElasticLoadBalancing::LoadBalancer": &AWSElasticLoadBalancingLoadBalancer{}, - "AWS::ElasticLoadBalancingV2::Listener": &AWSElasticLoadBalancingV2Listener{}, - "AWS::ElasticLoadBalancingV2::ListenerCertificate": &AWSElasticLoadBalancingV2ListenerCertificate{}, - "AWS::ElasticLoadBalancingV2::ListenerRule": &AWSElasticLoadBalancingV2ListenerRule{}, - "AWS::ElasticLoadBalancingV2::LoadBalancer": &AWSElasticLoadBalancingV2LoadBalancer{}, - "AWS::ElasticLoadBalancingV2::TargetGroup": &AWSElasticLoadBalancingV2TargetGroup{}, - "AWS::Elasticsearch::Domain": &AWSElasticsearchDomain{}, - "AWS::Events::EventBusPolicy": &AWSEventsEventBusPolicy{}, - "AWS::Events::Rule": &AWSEventsRule{}, - "AWS::FSx::FileSystem": &AWSFSxFileSystem{}, - "AWS::GameLift::Alias": &AWSGameLiftAlias{}, - "AWS::GameLift::Build": &AWSGameLiftBuild{}, - "AWS::GameLift::Fleet": &AWSGameLiftFleet{}, - "AWS::Glue::Classifier": &AWSGlueClassifier{}, - "AWS::Glue::Connection": &AWSGlueConnection{}, - "AWS::Glue::Crawler": &AWSGlueCrawler{}, - "AWS::Glue::Database": &AWSGlueDatabase{}, - "AWS::Glue::DevEndpoint": &AWSGlueDevEndpoint{}, - "AWS::Glue::Job": &AWSGlueJob{}, - "AWS::Glue::Partition": &AWSGluePartition{}, - "AWS::Glue::Table": &AWSGlueTable{}, - "AWS::Glue::Trigger": &AWSGlueTrigger{}, - "AWS::GuardDuty::Detector": &AWSGuardDutyDetector{}, - "AWS::GuardDuty::Filter": &AWSGuardDutyFilter{}, - "AWS::GuardDuty::IPSet": &AWSGuardDutyIPSet{}, - "AWS::GuardDuty::Master": &AWSGuardDutyMaster{}, - "AWS::GuardDuty::Member": &AWSGuardDutyMember{}, - "AWS::GuardDuty::ThreatIntelSet": &AWSGuardDutyThreatIntelSet{}, - "AWS::IAM::AccessKey": &AWSIAMAccessKey{}, - "AWS::IAM::Group": &AWSIAMGroup{}, - "AWS::IAM::InstanceProfile": &AWSIAMInstanceProfile{}, - "AWS::IAM::ManagedPolicy": &AWSIAMManagedPolicy{}, - "AWS::IAM::Policy": &AWSIAMPolicy{}, - "AWS::IAM::Role": &AWSIAMRole{}, - "AWS::IAM::ServiceLinkedRole": &AWSIAMServiceLinkedRole{}, - "AWS::IAM::User": &AWSIAMUser{}, - "AWS::IAM::UserToGroupAddition": &AWSIAMUserToGroupAddition{}, - "AWS::Inspector::AssessmentTarget": &AWSInspectorAssessmentTarget{}, - "AWS::Inspector::AssessmentTemplate": &AWSInspectorAssessmentTemplate{}, - "AWS::Inspector::ResourceGroup": &AWSInspectorResourceGroup{}, - "AWS::IoT1Click::Device": &AWSIoT1ClickDevice{}, - "AWS::IoT1Click::Placement": &AWSIoT1ClickPlacement{}, - "AWS::IoT1Click::Project": &AWSIoT1ClickProject{}, - "AWS::IoT::Certificate": &AWSIoTCertificate{}, - "AWS::IoT::Policy": &AWSIoTPolicy{}, - "AWS::IoT::PolicyPrincipalAttachment": &AWSIoTPolicyPrincipalAttachment{}, - "AWS::IoT::Thing": &AWSIoTThing{}, - "AWS::IoT::ThingPrincipalAttachment": &AWSIoTThingPrincipalAttachment{}, - "AWS::IoT::TopicRule": &AWSIoTTopicRule{}, - "AWS::IoTAnalytics::Channel": &AWSIoTAnalyticsChannel{}, - "AWS::IoTAnalytics::Dataset": &AWSIoTAnalyticsDataset{}, - "AWS::IoTAnalytics::Datastore": &AWSIoTAnalyticsDatastore{}, - "AWS::IoTAnalytics::Pipeline": &AWSIoTAnalyticsPipeline{}, - "AWS::KMS::Alias": &AWSKMSAlias{}, - "AWS::KMS::Key": &AWSKMSKey{}, - "AWS::Kinesis::Stream": &AWSKinesisStream{}, - "AWS::Kinesis::StreamConsumer": &AWSKinesisStreamConsumer{}, - "AWS::KinesisAnalytics::Application": &AWSKinesisAnalyticsApplication{}, - "AWS::KinesisAnalytics::ApplicationOutput": &AWSKinesisAnalyticsApplicationOutput{}, - "AWS::KinesisAnalytics::ApplicationReferenceDataSource": &AWSKinesisAnalyticsApplicationReferenceDataSource{}, - "AWS::KinesisAnalyticsV2::Application": &AWSKinesisAnalyticsV2Application{}, - "AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption": &AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{}, - "AWS::KinesisAnalyticsV2::ApplicationOutput": &AWSKinesisAnalyticsV2ApplicationOutput{}, - "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource": &AWSKinesisAnalyticsV2ApplicationReferenceDataSource{}, - "AWS::KinesisFirehose::DeliveryStream": &AWSKinesisFirehoseDeliveryStream{}, - "AWS::Lambda::Alias": &AWSLambdaAlias{}, - "AWS::Lambda::EventSourceMapping": &AWSLambdaEventSourceMapping{}, - "AWS::Lambda::Function": &AWSLambdaFunction{}, - "AWS::Lambda::LayerVersion": &AWSLambdaLayerVersion{}, - "AWS::Lambda::LayerVersionPermission": &AWSLambdaLayerVersionPermission{}, - "AWS::Lambda::Permission": &AWSLambdaPermission{}, - "AWS::Lambda::Version": &AWSLambdaVersion{}, - "AWS::Logs::Destination": &AWSLogsDestination{}, - "AWS::Logs::LogGroup": &AWSLogsLogGroup{}, - "AWS::Logs::LogStream": &AWSLogsLogStream{}, - "AWS::Logs::MetricFilter": &AWSLogsMetricFilter{}, - "AWS::Logs::SubscriptionFilter": &AWSLogsSubscriptionFilter{}, - "AWS::Neptune::DBCluster": &AWSNeptuneDBCluster{}, - "AWS::Neptune::DBClusterParameterGroup": &AWSNeptuneDBClusterParameterGroup{}, - "AWS::Neptune::DBInstance": &AWSNeptuneDBInstance{}, - "AWS::Neptune::DBParameterGroup": &AWSNeptuneDBParameterGroup{}, - "AWS::Neptune::DBSubnetGroup": &AWSNeptuneDBSubnetGroup{}, - "AWS::OpsWorks::App": &AWSOpsWorksApp{}, - "AWS::OpsWorks::ElasticLoadBalancerAttachment": &AWSOpsWorksElasticLoadBalancerAttachment{}, - "AWS::OpsWorks::Instance": &AWSOpsWorksInstance{}, - "AWS::OpsWorks::Layer": &AWSOpsWorksLayer{}, - "AWS::OpsWorks::Stack": &AWSOpsWorksStack{}, - "AWS::OpsWorks::UserProfile": &AWSOpsWorksUserProfile{}, - "AWS::OpsWorks::Volume": &AWSOpsWorksVolume{}, - "AWS::OpsWorksCM::Server": &AWSOpsWorksCMServer{}, - "AWS::RAM::ResourceShare": &AWSRAMResourceShare{}, - "AWS::RDS::DBCluster": &AWSRDSDBCluster{}, - "AWS::RDS::DBClusterParameterGroup": &AWSRDSDBClusterParameterGroup{}, - "AWS::RDS::DBInstance": &AWSRDSDBInstance{}, - "AWS::RDS::DBParameterGroup": &AWSRDSDBParameterGroup{}, - "AWS::RDS::DBSecurityGroup": &AWSRDSDBSecurityGroup{}, - "AWS::RDS::DBSecurityGroupIngress": &AWSRDSDBSecurityGroupIngress{}, - "AWS::RDS::DBSubnetGroup": &AWSRDSDBSubnetGroup{}, - "AWS::RDS::EventSubscription": &AWSRDSEventSubscription{}, - "AWS::RDS::OptionGroup": &AWSRDSOptionGroup{}, - "AWS::Redshift::Cluster": &AWSRedshiftCluster{}, - "AWS::Redshift::ClusterParameterGroup": &AWSRedshiftClusterParameterGroup{}, - "AWS::Redshift::ClusterSecurityGroup": &AWSRedshiftClusterSecurityGroup{}, - "AWS::Redshift::ClusterSecurityGroupIngress": &AWSRedshiftClusterSecurityGroupIngress{}, - "AWS::Redshift::ClusterSubnetGroup": &AWSRedshiftClusterSubnetGroup{}, - "AWS::RoboMaker::Fleet": &AWSRoboMakerFleet{}, - "AWS::RoboMaker::Robot": &AWSRoboMakerRobot{}, - "AWS::RoboMaker::RobotApplication": &AWSRoboMakerRobotApplication{}, - "AWS::RoboMaker::RobotApplicationVersion": &AWSRoboMakerRobotApplicationVersion{}, - "AWS::RoboMaker::SimulationApplication": &AWSRoboMakerSimulationApplication{}, - "AWS::RoboMaker::SimulationApplicationVersion": &AWSRoboMakerSimulationApplicationVersion{}, - "AWS::Route53::HealthCheck": &AWSRoute53HealthCheck{}, - "AWS::Route53::HostedZone": &AWSRoute53HostedZone{}, - "AWS::Route53::RecordSet": &AWSRoute53RecordSet{}, - "AWS::Route53::RecordSetGroup": &AWSRoute53RecordSetGroup{}, - "AWS::Route53Resolver::ResolverEndpoint": &AWSRoute53ResolverResolverEndpoint{}, - "AWS::Route53Resolver::ResolverRule": &AWSRoute53ResolverResolverRule{}, - "AWS::Route53Resolver::ResolverRuleAssociation": &AWSRoute53ResolverResolverRuleAssociation{}, - "AWS::S3::Bucket": &AWSS3Bucket{}, - "AWS::S3::BucketPolicy": &AWSS3BucketPolicy{}, - "AWS::SDB::Domain": &AWSSDBDomain{}, - "AWS::SES::ConfigurationSet": &AWSSESConfigurationSet{}, - "AWS::SES::ConfigurationSetEventDestination": &AWSSESConfigurationSetEventDestination{}, - "AWS::SES::ReceiptFilter": &AWSSESReceiptFilter{}, - "AWS::SES::ReceiptRule": &AWSSESReceiptRule{}, - "AWS::SES::ReceiptRuleSet": &AWSSESReceiptRuleSet{}, - "AWS::SES::Template": &AWSSESTemplate{}, - "AWS::SNS::Subscription": &AWSSNSSubscription{}, - "AWS::SNS::Topic": &AWSSNSTopic{}, - "AWS::SNS::TopicPolicy": &AWSSNSTopicPolicy{}, - "AWS::SQS::Queue": &AWSSQSQueue{}, - "AWS::SQS::QueuePolicy": &AWSSQSQueuePolicy{}, - "AWS::SSM::Association": &AWSSSMAssociation{}, - "AWS::SSM::Document": &AWSSSMDocument{}, - "AWS::SSM::MaintenanceWindow": &AWSSSMMaintenanceWindow{}, - "AWS::SSM::MaintenanceWindowTask": &AWSSSMMaintenanceWindowTask{}, - "AWS::SSM::Parameter": &AWSSSMParameter{}, - "AWS::SSM::PatchBaseline": &AWSSSMPatchBaseline{}, - "AWS::SSM::ResourceDataSync": &AWSSSMResourceDataSync{}, - "AWS::SageMaker::Endpoint": &AWSSageMakerEndpoint{}, - "AWS::SageMaker::EndpointConfig": &AWSSageMakerEndpointConfig{}, - "AWS::SageMaker::Model": &AWSSageMakerModel{}, - "AWS::SageMaker::NotebookInstance": &AWSSageMakerNotebookInstance{}, - "AWS::SageMaker::NotebookInstanceLifecycleConfig": &AWSSageMakerNotebookInstanceLifecycleConfig{}, - "AWS::SecretsManager::ResourcePolicy": &AWSSecretsManagerResourcePolicy{}, - "AWS::SecretsManager::RotationSchedule": &AWSSecretsManagerRotationSchedule{}, - "AWS::SecretsManager::Secret": &AWSSecretsManagerSecret{}, - "AWS::SecretsManager::SecretTargetAttachment": &AWSSecretsManagerSecretTargetAttachment{}, - "AWS::Serverless::Api": &AWSServerlessApi{}, - "AWS::Serverless::Application": &AWSServerlessApplication{}, - "AWS::Serverless::Function": &AWSServerlessFunction{}, - "AWS::Serverless::LayerVersion": &AWSServerlessLayerVersion{}, - "AWS::Serverless::SimpleTable": &AWSServerlessSimpleTable{}, - "AWS::ServiceCatalog::AcceptedPortfolioShare": &AWSServiceCatalogAcceptedPortfolioShare{}, - "AWS::ServiceCatalog::CloudFormationProduct": &AWSServiceCatalogCloudFormationProduct{}, - "AWS::ServiceCatalog::CloudFormationProvisionedProduct": &AWSServiceCatalogCloudFormationProvisionedProduct{}, - "AWS::ServiceCatalog::LaunchNotificationConstraint": &AWSServiceCatalogLaunchNotificationConstraint{}, - "AWS::ServiceCatalog::LaunchRoleConstraint": &AWSServiceCatalogLaunchRoleConstraint{}, - "AWS::ServiceCatalog::LaunchTemplateConstraint": &AWSServiceCatalogLaunchTemplateConstraint{}, - "AWS::ServiceCatalog::Portfolio": &AWSServiceCatalogPortfolio{}, - "AWS::ServiceCatalog::PortfolioPrincipalAssociation": &AWSServiceCatalogPortfolioPrincipalAssociation{}, - "AWS::ServiceCatalog::PortfolioProductAssociation": &AWSServiceCatalogPortfolioProductAssociation{}, - "AWS::ServiceCatalog::PortfolioShare": &AWSServiceCatalogPortfolioShare{}, - "AWS::ServiceCatalog::TagOption": &AWSServiceCatalogTagOption{}, - "AWS::ServiceCatalog::TagOptionAssociation": &AWSServiceCatalogTagOptionAssociation{}, - "AWS::ServiceDiscovery::HttpNamespace": &AWSServiceDiscoveryHttpNamespace{}, - "AWS::ServiceDiscovery::Instance": &AWSServiceDiscoveryInstance{}, - "AWS::ServiceDiscovery::PrivateDnsNamespace": &AWSServiceDiscoveryPrivateDnsNamespace{}, - "AWS::ServiceDiscovery::PublicDnsNamespace": &AWSServiceDiscoveryPublicDnsNamespace{}, - "AWS::ServiceDiscovery::Service": &AWSServiceDiscoveryService{}, - "AWS::StepFunctions::Activity": &AWSStepFunctionsActivity{}, - "AWS::StepFunctions::StateMachine": &AWSStepFunctionsStateMachine{}, - "AWS::WAF::ByteMatchSet": &AWSWAFByteMatchSet{}, - "AWS::WAF::IPSet": &AWSWAFIPSet{}, - "AWS::WAF::Rule": &AWSWAFRule{}, - "AWS::WAF::SizeConstraintSet": &AWSWAFSizeConstraintSet{}, - "AWS::WAF::SqlInjectionMatchSet": &AWSWAFSqlInjectionMatchSet{}, - "AWS::WAF::WebACL": &AWSWAFWebACL{}, - "AWS::WAF::XssMatchSet": &AWSWAFXssMatchSet{}, - "AWS::WAFRegional::ByteMatchSet": &AWSWAFRegionalByteMatchSet{}, - "AWS::WAFRegional::IPSet": &AWSWAFRegionalIPSet{}, - "AWS::WAFRegional::Rule": &AWSWAFRegionalRule{}, - "AWS::WAFRegional::SizeConstraintSet": &AWSWAFRegionalSizeConstraintSet{}, - "AWS::WAFRegional::SqlInjectionMatchSet": &AWSWAFRegionalSqlInjectionMatchSet{}, - "AWS::WAFRegional::WebACL": &AWSWAFRegionalWebACL{}, - "AWS::WAFRegional::WebACLAssociation": &AWSWAFRegionalWebACLAssociation{}, - "AWS::WAFRegional::XssMatchSet": &AWSWAFRegionalXssMatchSet{}, - "AWS::WorkSpaces::Workspace": &AWSWorkSpacesWorkspace{}, - "Alexa::ASK::Skill": &AlexaASKSkill{}, + "AWS::AmazonMQ::Broker": &resources.AWSAmazonMQBroker{}, + "AWS::AmazonMQ::Configuration": &resources.AWSAmazonMQConfiguration{}, + "AWS::AmazonMQ::ConfigurationAssociation": &resources.AWSAmazonMQConfigurationAssociation{}, + "AWS::ApiGateway::Account": &resources.AWSApiGatewayAccount{}, + "AWS::ApiGateway::ApiKey": &resources.AWSApiGatewayApiKey{}, + "AWS::ApiGateway::Authorizer": &resources.AWSApiGatewayAuthorizer{}, + "AWS::ApiGateway::BasePathMapping": &resources.AWSApiGatewayBasePathMapping{}, + "AWS::ApiGateway::ClientCertificate": &resources.AWSApiGatewayClientCertificate{}, + "AWS::ApiGateway::Deployment": &resources.AWSApiGatewayDeployment{}, + "AWS::ApiGateway::DocumentationPart": &resources.AWSApiGatewayDocumentationPart{}, + "AWS::ApiGateway::DocumentationVersion": &resources.AWSApiGatewayDocumentationVersion{}, + "AWS::ApiGateway::DomainName": &resources.AWSApiGatewayDomainName{}, + "AWS::ApiGateway::GatewayResponse": &resources.AWSApiGatewayGatewayResponse{}, + "AWS::ApiGateway::Method": &resources.AWSApiGatewayMethod{}, + "AWS::ApiGateway::Model": &resources.AWSApiGatewayModel{}, + "AWS::ApiGateway::RequestValidator": &resources.AWSApiGatewayRequestValidator{}, + "AWS::ApiGateway::Resource": &resources.AWSApiGatewayResource{}, + "AWS::ApiGateway::RestApi": &resources.AWSApiGatewayRestApi{}, + "AWS::ApiGateway::Stage": &resources.AWSApiGatewayStage{}, + "AWS::ApiGateway::UsagePlan": &resources.AWSApiGatewayUsagePlan{}, + "AWS::ApiGateway::UsagePlanKey": &resources.AWSApiGatewayUsagePlanKey{}, + "AWS::ApiGateway::VpcLink": &resources.AWSApiGatewayVpcLink{}, + "AWS::ApiGatewayV2::Api": &resources.AWSApiGatewayV2Api{}, + "AWS::ApiGatewayV2::Authorizer": &resources.AWSApiGatewayV2Authorizer{}, + "AWS::ApiGatewayV2::Deployment": &resources.AWSApiGatewayV2Deployment{}, + "AWS::ApiGatewayV2::Integration": &resources.AWSApiGatewayV2Integration{}, + "AWS::ApiGatewayV2::IntegrationResponse": &resources.AWSApiGatewayV2IntegrationResponse{}, + "AWS::ApiGatewayV2::Model": &resources.AWSApiGatewayV2Model{}, + "AWS::ApiGatewayV2::Route": &resources.AWSApiGatewayV2Route{}, + "AWS::ApiGatewayV2::RouteResponse": &resources.AWSApiGatewayV2RouteResponse{}, + "AWS::ApiGatewayV2::Stage": &resources.AWSApiGatewayV2Stage{}, + "AWS::AppStream::DirectoryConfig": &resources.AWSAppStreamDirectoryConfig{}, + "AWS::AppStream::Fleet": &resources.AWSAppStreamFleet{}, + "AWS::AppStream::ImageBuilder": &resources.AWSAppStreamImageBuilder{}, + "AWS::AppStream::Stack": &resources.AWSAppStreamStack{}, + "AWS::AppStream::StackFleetAssociation": &resources.AWSAppStreamStackFleetAssociation{}, + "AWS::AppStream::StackUserAssociation": &resources.AWSAppStreamStackUserAssociation{}, + "AWS::AppStream::User": &resources.AWSAppStreamUser{}, + "AWS::AppSync::ApiKey": &resources.AWSAppSyncApiKey{}, + "AWS::AppSync::DataSource": &resources.AWSAppSyncDataSource{}, + "AWS::AppSync::FunctionConfiguration": &resources.AWSAppSyncFunctionConfiguration{}, + "AWS::AppSync::GraphQLApi": &resources.AWSAppSyncGraphQLApi{}, + "AWS::AppSync::GraphQLSchema": &resources.AWSAppSyncGraphQLSchema{}, + "AWS::AppSync::Resolver": &resources.AWSAppSyncResolver{}, + "AWS::ApplicationAutoScaling::ScalableTarget": &resources.AWSApplicationAutoScalingScalableTarget{}, + "AWS::ApplicationAutoScaling::ScalingPolicy": &resources.AWSApplicationAutoScalingScalingPolicy{}, + "AWS::Athena::NamedQuery": &resources.AWSAthenaNamedQuery{}, + "AWS::AutoScaling::AutoScalingGroup": &resources.AWSAutoScalingAutoScalingGroup{}, + "AWS::AutoScaling::LaunchConfiguration": &resources.AWSAutoScalingLaunchConfiguration{}, + "AWS::AutoScaling::LifecycleHook": &resources.AWSAutoScalingLifecycleHook{}, + "AWS::AutoScaling::ScalingPolicy": &resources.AWSAutoScalingScalingPolicy{}, + "AWS::AutoScaling::ScheduledAction": &resources.AWSAutoScalingScheduledAction{}, + "AWS::AutoScalingPlans::ScalingPlan": &resources.AWSAutoScalingPlansScalingPlan{}, + "AWS::Batch::ComputeEnvironment": &resources.AWSBatchComputeEnvironment{}, + "AWS::Batch::JobDefinition": &resources.AWSBatchJobDefinition{}, + "AWS::Batch::JobQueue": &resources.AWSBatchJobQueue{}, + "AWS::Budgets::Budget": &resources.AWSBudgetsBudget{}, + "AWS::CertificateManager::Certificate": &resources.AWSCertificateManagerCertificate{}, + "AWS::Cloud9::EnvironmentEC2": &resources.AWSCloud9EnvironmentEC2{}, + "AWS::CloudFormation::CustomResource": &resources.AWSCloudFormationCustomResource{}, + "AWS::CloudFormation::Macro": &resources.AWSCloudFormationMacro{}, + "AWS::CloudFormation::Stack": &resources.AWSCloudFormationStack{}, + "AWS::CloudFormation::WaitCondition": &resources.AWSCloudFormationWaitCondition{}, + "AWS::CloudFormation::WaitConditionHandle": &resources.AWSCloudFormationWaitConditionHandle{}, + "AWS::CloudFront::CloudFrontOriginAccessIdentity": &resources.AWSCloudFrontCloudFrontOriginAccessIdentity{}, + "AWS::CloudFront::Distribution": &resources.AWSCloudFrontDistribution{}, + "AWS::CloudFront::StreamingDistribution": &resources.AWSCloudFrontStreamingDistribution{}, + "AWS::CloudTrail::Trail": &resources.AWSCloudTrailTrail{}, + "AWS::CloudWatch::Alarm": &resources.AWSCloudWatchAlarm{}, + "AWS::CloudWatch::Dashboard": &resources.AWSCloudWatchDashboard{}, + "AWS::CodeBuild::Project": &resources.AWSCodeBuildProject{}, + "AWS::CodeCommit::Repository": &resources.AWSCodeCommitRepository{}, + "AWS::CodeDeploy::Application": &resources.AWSCodeDeployApplication{}, + "AWS::CodeDeploy::DeploymentConfig": &resources.AWSCodeDeployDeploymentConfig{}, + "AWS::CodeDeploy::DeploymentGroup": &resources.AWSCodeDeployDeploymentGroup{}, + "AWS::CodePipeline::CustomActionType": &resources.AWSCodePipelineCustomActionType{}, + "AWS::CodePipeline::Pipeline": &resources.AWSCodePipelinePipeline{}, + "AWS::CodePipeline::Webhook": &resources.AWSCodePipelineWebhook{}, + "AWS::Cognito::IdentityPool": &resources.AWSCognitoIdentityPool{}, + "AWS::Cognito::IdentityPoolRoleAttachment": &resources.AWSCognitoIdentityPoolRoleAttachment{}, + "AWS::Cognito::UserPool": &resources.AWSCognitoUserPool{}, + "AWS::Cognito::UserPoolClient": &resources.AWSCognitoUserPoolClient{}, + "AWS::Cognito::UserPoolGroup": &resources.AWSCognitoUserPoolGroup{}, + "AWS::Cognito::UserPoolUser": &resources.AWSCognitoUserPoolUser{}, + "AWS::Cognito::UserPoolUserToGroupAttachment": &resources.AWSCognitoUserPoolUserToGroupAttachment{}, + "AWS::Config::AggregationAuthorization": &resources.AWSConfigAggregationAuthorization{}, + "AWS::Config::ConfigRule": &resources.AWSConfigConfigRule{}, + "AWS::Config::ConfigurationAggregator": &resources.AWSConfigConfigurationAggregator{}, + "AWS::Config::ConfigurationRecorder": &resources.AWSConfigConfigurationRecorder{}, + "AWS::Config::DeliveryChannel": &resources.AWSConfigDeliveryChannel{}, + "AWS::DAX::Cluster": &resources.AWSDAXCluster{}, + "AWS::DAX::ParameterGroup": &resources.AWSDAXParameterGroup{}, + "AWS::DAX::SubnetGroup": &resources.AWSDAXSubnetGroup{}, + "AWS::DLM::LifecyclePolicy": &resources.AWSDLMLifecyclePolicy{}, + "AWS::DMS::Certificate": &resources.AWSDMSCertificate{}, + "AWS::DMS::Endpoint": &resources.AWSDMSEndpoint{}, + "AWS::DMS::EventSubscription": &resources.AWSDMSEventSubscription{}, + "AWS::DMS::ReplicationInstance": &resources.AWSDMSReplicationInstance{}, + "AWS::DMS::ReplicationSubnetGroup": &resources.AWSDMSReplicationSubnetGroup{}, + "AWS::DMS::ReplicationTask": &resources.AWSDMSReplicationTask{}, + "AWS::DataPipeline::Pipeline": &resources.AWSDataPipelinePipeline{}, + "AWS::DirectoryService::MicrosoftAD": &resources.AWSDirectoryServiceMicrosoftAD{}, + "AWS::DirectoryService::SimpleAD": &resources.AWSDirectoryServiceSimpleAD{}, + "AWS::DocDB::DBCluster": &resources.AWSDocDBDBCluster{}, + "AWS::DocDB::DBClusterParameterGroup": &resources.AWSDocDBDBClusterParameterGroup{}, + "AWS::DocDB::DBInstance": &resources.AWSDocDBDBInstance{}, + "AWS::DocDB::DBSubnetGroup": &resources.AWSDocDBDBSubnetGroup{}, + "AWS::DynamoDB::Table": &resources.AWSDynamoDBTable{}, + "AWS::EC2::CustomerGateway": &resources.AWSEC2CustomerGateway{}, + "AWS::EC2::DHCPOptions": &resources.AWSEC2DHCPOptions{}, + "AWS::EC2::EC2Fleet": &resources.AWSEC2EC2Fleet{}, + "AWS::EC2::EIP": &resources.AWSEC2EIP{}, + "AWS::EC2::EIPAssociation": &resources.AWSEC2EIPAssociation{}, + "AWS::EC2::EgressOnlyInternetGateway": &resources.AWSEC2EgressOnlyInternetGateway{}, + "AWS::EC2::FlowLog": &resources.AWSEC2FlowLog{}, + "AWS::EC2::Host": &resources.AWSEC2Host{}, + "AWS::EC2::Instance": &resources.AWSEC2Instance{}, + "AWS::EC2::InternetGateway": &resources.AWSEC2InternetGateway{}, + "AWS::EC2::LaunchTemplate": &resources.AWSEC2LaunchTemplate{}, + "AWS::EC2::NatGateway": &resources.AWSEC2NatGateway{}, + "AWS::EC2::NetworkAcl": &resources.AWSEC2NetworkAcl{}, + "AWS::EC2::NetworkAclEntry": &resources.AWSEC2NetworkAclEntry{}, + "AWS::EC2::NetworkInterface": &resources.AWSEC2NetworkInterface{}, + "AWS::EC2::NetworkInterfaceAttachment": &resources.AWSEC2NetworkInterfaceAttachment{}, + "AWS::EC2::NetworkInterfacePermission": &resources.AWSEC2NetworkInterfacePermission{}, + "AWS::EC2::PlacementGroup": &resources.AWSEC2PlacementGroup{}, + "AWS::EC2::Route": &resources.AWSEC2Route{}, + "AWS::EC2::RouteTable": &resources.AWSEC2RouteTable{}, + "AWS::EC2::SecurityGroup": &resources.AWSEC2SecurityGroup{}, + "AWS::EC2::SecurityGroupEgress": &resources.AWSEC2SecurityGroupEgress{}, + "AWS::EC2::SecurityGroupIngress": &resources.AWSEC2SecurityGroupIngress{}, + "AWS::EC2::SpotFleet": &resources.AWSEC2SpotFleet{}, + "AWS::EC2::Subnet": &resources.AWSEC2Subnet{}, + "AWS::EC2::SubnetCidrBlock": &resources.AWSEC2SubnetCidrBlock{}, + "AWS::EC2::SubnetNetworkAclAssociation": &resources.AWSEC2SubnetNetworkAclAssociation{}, + "AWS::EC2::SubnetRouteTableAssociation": &resources.AWSEC2SubnetRouteTableAssociation{}, + "AWS::EC2::TransitGateway": &resources.AWSEC2TransitGateway{}, + "AWS::EC2::TransitGatewayAttachment": &resources.AWSEC2TransitGatewayAttachment{}, + "AWS::EC2::TransitGatewayRoute": &resources.AWSEC2TransitGatewayRoute{}, + "AWS::EC2::TransitGatewayRouteTable": &resources.AWSEC2TransitGatewayRouteTable{}, + "AWS::EC2::TransitGatewayRouteTableAssociation": &resources.AWSEC2TransitGatewayRouteTableAssociation{}, + "AWS::EC2::TransitGatewayRouteTablePropagation": &resources.AWSEC2TransitGatewayRouteTablePropagation{}, + "AWS::EC2::TrunkInterfaceAssociation": &resources.AWSEC2TrunkInterfaceAssociation{}, + "AWS::EC2::VPC": &resources.AWSEC2VPC{}, + "AWS::EC2::VPCCidrBlock": &resources.AWSEC2VPCCidrBlock{}, + "AWS::EC2::VPCDHCPOptionsAssociation": &resources.AWSEC2VPCDHCPOptionsAssociation{}, + "AWS::EC2::VPCEndpoint": &resources.AWSEC2VPCEndpoint{}, + "AWS::EC2::VPCEndpointConnectionNotification": &resources.AWSEC2VPCEndpointConnectionNotification{}, + "AWS::EC2::VPCEndpointServicePermissions": &resources.AWSEC2VPCEndpointServicePermissions{}, + "AWS::EC2::VPCGatewayAttachment": &resources.AWSEC2VPCGatewayAttachment{}, + "AWS::EC2::VPCPeeringConnection": &resources.AWSEC2VPCPeeringConnection{}, + "AWS::EC2::VPNConnection": &resources.AWSEC2VPNConnection{}, + "AWS::EC2::VPNConnectionRoute": &resources.AWSEC2VPNConnectionRoute{}, + "AWS::EC2::VPNGateway": &resources.AWSEC2VPNGateway{}, + "AWS::EC2::VPNGatewayRoutePropagation": &resources.AWSEC2VPNGatewayRoutePropagation{}, + "AWS::EC2::Volume": &resources.AWSEC2Volume{}, + "AWS::EC2::VolumeAttachment": &resources.AWSEC2VolumeAttachment{}, + "AWS::ECR::Repository": &resources.AWSECRRepository{}, + "AWS::ECS::Cluster": &resources.AWSECSCluster{}, + "AWS::ECS::Service": &resources.AWSECSService{}, + "AWS::ECS::TaskDefinition": &resources.AWSECSTaskDefinition{}, + "AWS::EFS::FileSystem": &resources.AWSEFSFileSystem{}, + "AWS::EFS::MountTarget": &resources.AWSEFSMountTarget{}, + "AWS::EKS::Cluster": &resources.AWSEKSCluster{}, + "AWS::EMR::Cluster": &resources.AWSEMRCluster{}, + "AWS::EMR::InstanceFleetConfig": &resources.AWSEMRInstanceFleetConfig{}, + "AWS::EMR::InstanceGroupConfig": &resources.AWSEMRInstanceGroupConfig{}, + "AWS::EMR::SecurityConfiguration": &resources.AWSEMRSecurityConfiguration{}, + "AWS::EMR::Step": &resources.AWSEMRStep{}, + "AWS::ElastiCache::CacheCluster": &resources.AWSElastiCacheCacheCluster{}, + "AWS::ElastiCache::ParameterGroup": &resources.AWSElastiCacheParameterGroup{}, + "AWS::ElastiCache::ReplicationGroup": &resources.AWSElastiCacheReplicationGroup{}, + "AWS::ElastiCache::SecurityGroup": &resources.AWSElastiCacheSecurityGroup{}, + "AWS::ElastiCache::SecurityGroupIngress": &resources.AWSElastiCacheSecurityGroupIngress{}, + "AWS::ElastiCache::SubnetGroup": &resources.AWSElastiCacheSubnetGroup{}, + "AWS::ElasticBeanstalk::Application": &resources.AWSElasticBeanstalkApplication{}, + "AWS::ElasticBeanstalk::ApplicationVersion": &resources.AWSElasticBeanstalkApplicationVersion{}, + "AWS::ElasticBeanstalk::ConfigurationTemplate": &resources.AWSElasticBeanstalkConfigurationTemplate{}, + "AWS::ElasticBeanstalk::Environment": &resources.AWSElasticBeanstalkEnvironment{}, + "AWS::ElasticLoadBalancing::LoadBalancer": &resources.AWSElasticLoadBalancingLoadBalancer{}, + "AWS::ElasticLoadBalancingV2::Listener": &resources.AWSElasticLoadBalancingV2Listener{}, + "AWS::ElasticLoadBalancingV2::ListenerCertificate": &resources.AWSElasticLoadBalancingV2ListenerCertificate{}, + "AWS::ElasticLoadBalancingV2::ListenerRule": &resources.AWSElasticLoadBalancingV2ListenerRule{}, + "AWS::ElasticLoadBalancingV2::LoadBalancer": &resources.AWSElasticLoadBalancingV2LoadBalancer{}, + "AWS::ElasticLoadBalancingV2::TargetGroup": &resources.AWSElasticLoadBalancingV2TargetGroup{}, + "AWS::Elasticsearch::Domain": &resources.AWSElasticsearchDomain{}, + "AWS::Events::EventBusPolicy": &resources.AWSEventsEventBusPolicy{}, + "AWS::Events::Rule": &resources.AWSEventsRule{}, + "AWS::FSx::FileSystem": &resources.AWSFSxFileSystem{}, + "AWS::GameLift::Alias": &resources.AWSGameLiftAlias{}, + "AWS::GameLift::Build": &resources.AWSGameLiftBuild{}, + "AWS::GameLift::Fleet": &resources.AWSGameLiftFleet{}, + "AWS::Glue::Classifier": &resources.AWSGlueClassifier{}, + "AWS::Glue::Connection": &resources.AWSGlueConnection{}, + "AWS::Glue::Crawler": &resources.AWSGlueCrawler{}, + "AWS::Glue::Database": &resources.AWSGlueDatabase{}, + "AWS::Glue::DevEndpoint": &resources.AWSGlueDevEndpoint{}, + "AWS::Glue::Job": &resources.AWSGlueJob{}, + "AWS::Glue::Partition": &resources.AWSGluePartition{}, + "AWS::Glue::Table": &resources.AWSGlueTable{}, + "AWS::Glue::Trigger": &resources.AWSGlueTrigger{}, + "AWS::GuardDuty::Detector": &resources.AWSGuardDutyDetector{}, + "AWS::GuardDuty::Filter": &resources.AWSGuardDutyFilter{}, + "AWS::GuardDuty::IPSet": &resources.AWSGuardDutyIPSet{}, + "AWS::GuardDuty::Master": &resources.AWSGuardDutyMaster{}, + "AWS::GuardDuty::Member": &resources.AWSGuardDutyMember{}, + "AWS::GuardDuty::ThreatIntelSet": &resources.AWSGuardDutyThreatIntelSet{}, + "AWS::IAM::AccessKey": &resources.AWSIAMAccessKey{}, + "AWS::IAM::Group": &resources.AWSIAMGroup{}, + "AWS::IAM::InstanceProfile": &resources.AWSIAMInstanceProfile{}, + "AWS::IAM::ManagedPolicy": &resources.AWSIAMManagedPolicy{}, + "AWS::IAM::Policy": &resources.AWSIAMPolicy{}, + "AWS::IAM::Role": &resources.AWSIAMRole{}, + "AWS::IAM::ServiceLinkedRole": &resources.AWSIAMServiceLinkedRole{}, + "AWS::IAM::User": &resources.AWSIAMUser{}, + "AWS::IAM::UserToGroupAddition": &resources.AWSIAMUserToGroupAddition{}, + "AWS::Inspector::AssessmentTarget": &resources.AWSInspectorAssessmentTarget{}, + "AWS::Inspector::AssessmentTemplate": &resources.AWSInspectorAssessmentTemplate{}, + "AWS::Inspector::ResourceGroup": &resources.AWSInspectorResourceGroup{}, + "AWS::IoT1Click::Device": &resources.AWSIoT1ClickDevice{}, + "AWS::IoT1Click::Placement": &resources.AWSIoT1ClickPlacement{}, + "AWS::IoT1Click::Project": &resources.AWSIoT1ClickProject{}, + "AWS::IoT::Certificate": &resources.AWSIoTCertificate{}, + "AWS::IoT::Policy": &resources.AWSIoTPolicy{}, + "AWS::IoT::PolicyPrincipalAttachment": &resources.AWSIoTPolicyPrincipalAttachment{}, + "AWS::IoT::Thing": &resources.AWSIoTThing{}, + "AWS::IoT::ThingPrincipalAttachment": &resources.AWSIoTThingPrincipalAttachment{}, + "AWS::IoT::TopicRule": &resources.AWSIoTTopicRule{}, + "AWS::IoTAnalytics::Channel": &resources.AWSIoTAnalyticsChannel{}, + "AWS::IoTAnalytics::Dataset": &resources.AWSIoTAnalyticsDataset{}, + "AWS::IoTAnalytics::Datastore": &resources.AWSIoTAnalyticsDatastore{}, + "AWS::IoTAnalytics::Pipeline": &resources.AWSIoTAnalyticsPipeline{}, + "AWS::KMS::Alias": &resources.AWSKMSAlias{}, + "AWS::KMS::Key": &resources.AWSKMSKey{}, + "AWS::Kinesis::Stream": &resources.AWSKinesisStream{}, + "AWS::Kinesis::StreamConsumer": &resources.AWSKinesisStreamConsumer{}, + "AWS::KinesisAnalytics::Application": &resources.AWSKinesisAnalyticsApplication{}, + "AWS::KinesisAnalytics::ApplicationOutput": &resources.AWSKinesisAnalyticsApplicationOutput{}, + "AWS::KinesisAnalytics::ApplicationReferenceDataSource": &resources.AWSKinesisAnalyticsApplicationReferenceDataSource{}, + "AWS::KinesisAnalyticsV2::Application": &resources.AWSKinesisAnalyticsV2Application{}, + "AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption": &resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{}, + "AWS::KinesisAnalyticsV2::ApplicationOutput": &resources.AWSKinesisAnalyticsV2ApplicationOutput{}, + "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource": &resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource{}, + "AWS::KinesisFirehose::DeliveryStream": &resources.AWSKinesisFirehoseDeliveryStream{}, + "AWS::Lambda::Alias": &resources.AWSLambdaAlias{}, + "AWS::Lambda::EventSourceMapping": &resources.AWSLambdaEventSourceMapping{}, + "AWS::Lambda::Function": &resources.AWSLambdaFunction{}, + "AWS::Lambda::LayerVersion": &resources.AWSLambdaLayerVersion{}, + "AWS::Lambda::LayerVersionPermission": &resources.AWSLambdaLayerVersionPermission{}, + "AWS::Lambda::Permission": &resources.AWSLambdaPermission{}, + "AWS::Lambda::Version": &resources.AWSLambdaVersion{}, + "AWS::Logs::Destination": &resources.AWSLogsDestination{}, + "AWS::Logs::LogGroup": &resources.AWSLogsLogGroup{}, + "AWS::Logs::LogStream": &resources.AWSLogsLogStream{}, + "AWS::Logs::MetricFilter": &resources.AWSLogsMetricFilter{}, + "AWS::Logs::SubscriptionFilter": &resources.AWSLogsSubscriptionFilter{}, + "AWS::Neptune::DBCluster": &resources.AWSNeptuneDBCluster{}, + "AWS::Neptune::DBClusterParameterGroup": &resources.AWSNeptuneDBClusterParameterGroup{}, + "AWS::Neptune::DBInstance": &resources.AWSNeptuneDBInstance{}, + "AWS::Neptune::DBParameterGroup": &resources.AWSNeptuneDBParameterGroup{}, + "AWS::Neptune::DBSubnetGroup": &resources.AWSNeptuneDBSubnetGroup{}, + "AWS::OpsWorks::App": &resources.AWSOpsWorksApp{}, + "AWS::OpsWorks::ElasticLoadBalancerAttachment": &resources.AWSOpsWorksElasticLoadBalancerAttachment{}, + "AWS::OpsWorks::Instance": &resources.AWSOpsWorksInstance{}, + "AWS::OpsWorks::Layer": &resources.AWSOpsWorksLayer{}, + "AWS::OpsWorks::Stack": &resources.AWSOpsWorksStack{}, + "AWS::OpsWorks::UserProfile": &resources.AWSOpsWorksUserProfile{}, + "AWS::OpsWorks::Volume": &resources.AWSOpsWorksVolume{}, + "AWS::OpsWorksCM::Server": &resources.AWSOpsWorksCMServer{}, + "AWS::RAM::ResourceShare": &resources.AWSRAMResourceShare{}, + "AWS::RDS::DBCluster": &resources.AWSRDSDBCluster{}, + "AWS::RDS::DBClusterParameterGroup": &resources.AWSRDSDBClusterParameterGroup{}, + "AWS::RDS::DBInstance": &resources.AWSRDSDBInstance{}, + "AWS::RDS::DBParameterGroup": &resources.AWSRDSDBParameterGroup{}, + "AWS::RDS::DBSecurityGroup": &resources.AWSRDSDBSecurityGroup{}, + "AWS::RDS::DBSecurityGroupIngress": &resources.AWSRDSDBSecurityGroupIngress{}, + "AWS::RDS::DBSubnetGroup": &resources.AWSRDSDBSubnetGroup{}, + "AWS::RDS::EventSubscription": &resources.AWSRDSEventSubscription{}, + "AWS::RDS::OptionGroup": &resources.AWSRDSOptionGroup{}, + "AWS::Redshift::Cluster": &resources.AWSRedshiftCluster{}, + "AWS::Redshift::ClusterParameterGroup": &resources.AWSRedshiftClusterParameterGroup{}, + "AWS::Redshift::ClusterSecurityGroup": &resources.AWSRedshiftClusterSecurityGroup{}, + "AWS::Redshift::ClusterSecurityGroupIngress": &resources.AWSRedshiftClusterSecurityGroupIngress{}, + "AWS::Redshift::ClusterSubnetGroup": &resources.AWSRedshiftClusterSubnetGroup{}, + "AWS::RoboMaker::Fleet": &resources.AWSRoboMakerFleet{}, + "AWS::RoboMaker::Robot": &resources.AWSRoboMakerRobot{}, + "AWS::RoboMaker::RobotApplication": &resources.AWSRoboMakerRobotApplication{}, + "AWS::RoboMaker::RobotApplicationVersion": &resources.AWSRoboMakerRobotApplicationVersion{}, + "AWS::RoboMaker::SimulationApplication": &resources.AWSRoboMakerSimulationApplication{}, + "AWS::RoboMaker::SimulationApplicationVersion": &resources.AWSRoboMakerSimulationApplicationVersion{}, + "AWS::Route53::HealthCheck": &resources.AWSRoute53HealthCheck{}, + "AWS::Route53::HostedZone": &resources.AWSRoute53HostedZone{}, + "AWS::Route53::RecordSet": &resources.AWSRoute53RecordSet{}, + "AWS::Route53::RecordSetGroup": &resources.AWSRoute53RecordSetGroup{}, + "AWS::Route53Resolver::ResolverEndpoint": &resources.AWSRoute53ResolverResolverEndpoint{}, + "AWS::Route53Resolver::ResolverRule": &resources.AWSRoute53ResolverResolverRule{}, + "AWS::Route53Resolver::ResolverRuleAssociation": &resources.AWSRoute53ResolverResolverRuleAssociation{}, + "AWS::S3::Bucket": &resources.AWSS3Bucket{}, + "AWS::S3::BucketPolicy": &resources.AWSS3BucketPolicy{}, + "AWS::SDB::Domain": &resources.AWSSDBDomain{}, + "AWS::SES::ConfigurationSet": &resources.AWSSESConfigurationSet{}, + "AWS::SES::ConfigurationSetEventDestination": &resources.AWSSESConfigurationSetEventDestination{}, + "AWS::SES::ReceiptFilter": &resources.AWSSESReceiptFilter{}, + "AWS::SES::ReceiptRule": &resources.AWSSESReceiptRule{}, + "AWS::SES::ReceiptRuleSet": &resources.AWSSESReceiptRuleSet{}, + "AWS::SES::Template": &resources.AWSSESTemplate{}, + "AWS::SNS::Subscription": &resources.AWSSNSSubscription{}, + "AWS::SNS::Topic": &resources.AWSSNSTopic{}, + "AWS::SNS::TopicPolicy": &resources.AWSSNSTopicPolicy{}, + "AWS::SQS::Queue": &resources.AWSSQSQueue{}, + "AWS::SQS::QueuePolicy": &resources.AWSSQSQueuePolicy{}, + "AWS::SSM::Association": &resources.AWSSSMAssociation{}, + "AWS::SSM::Document": &resources.AWSSSMDocument{}, + "AWS::SSM::MaintenanceWindow": &resources.AWSSSMMaintenanceWindow{}, + "AWS::SSM::MaintenanceWindowTask": &resources.AWSSSMMaintenanceWindowTask{}, + "AWS::SSM::Parameter": &resources.AWSSSMParameter{}, + "AWS::SSM::PatchBaseline": &resources.AWSSSMPatchBaseline{}, + "AWS::SSM::ResourceDataSync": &resources.AWSSSMResourceDataSync{}, + "AWS::SageMaker::Endpoint": &resources.AWSSageMakerEndpoint{}, + "AWS::SageMaker::EndpointConfig": &resources.AWSSageMakerEndpointConfig{}, + "AWS::SageMaker::Model": &resources.AWSSageMakerModel{}, + "AWS::SageMaker::NotebookInstance": &resources.AWSSageMakerNotebookInstance{}, + "AWS::SageMaker::NotebookInstanceLifecycleConfig": &resources.AWSSageMakerNotebookInstanceLifecycleConfig{}, + "AWS::SecretsManager::ResourcePolicy": &resources.AWSSecretsManagerResourcePolicy{}, + "AWS::SecretsManager::RotationSchedule": &resources.AWSSecretsManagerRotationSchedule{}, + "AWS::SecretsManager::Secret": &resources.AWSSecretsManagerSecret{}, + "AWS::SecretsManager::SecretTargetAttachment": &resources.AWSSecretsManagerSecretTargetAttachment{}, + "AWS::Serverless::Api": &resources.AWSServerlessApi{}, + "AWS::Serverless::Application": &resources.AWSServerlessApplication{}, + "AWS::Serverless::Function": &resources.AWSServerlessFunction{}, + "AWS::Serverless::LayerVersion": &resources.AWSServerlessLayerVersion{}, + "AWS::Serverless::SimpleTable": &resources.AWSServerlessSimpleTable{}, + "AWS::ServiceCatalog::AcceptedPortfolioShare": &resources.AWSServiceCatalogAcceptedPortfolioShare{}, + "AWS::ServiceCatalog::CloudFormationProduct": &resources.AWSServiceCatalogCloudFormationProduct{}, + "AWS::ServiceCatalog::CloudFormationProvisionedProduct": &resources.AWSServiceCatalogCloudFormationProvisionedProduct{}, + "AWS::ServiceCatalog::LaunchNotificationConstraint": &resources.AWSServiceCatalogLaunchNotificationConstraint{}, + "AWS::ServiceCatalog::LaunchRoleConstraint": &resources.AWSServiceCatalogLaunchRoleConstraint{}, + "AWS::ServiceCatalog::LaunchTemplateConstraint": &resources.AWSServiceCatalogLaunchTemplateConstraint{}, + "AWS::ServiceCatalog::Portfolio": &resources.AWSServiceCatalogPortfolio{}, + "AWS::ServiceCatalog::PortfolioPrincipalAssociation": &resources.AWSServiceCatalogPortfolioPrincipalAssociation{}, + "AWS::ServiceCatalog::PortfolioProductAssociation": &resources.AWSServiceCatalogPortfolioProductAssociation{}, + "AWS::ServiceCatalog::PortfolioShare": &resources.AWSServiceCatalogPortfolioShare{}, + "AWS::ServiceCatalog::TagOption": &resources.AWSServiceCatalogTagOption{}, + "AWS::ServiceCatalog::TagOptionAssociation": &resources.AWSServiceCatalogTagOptionAssociation{}, + "AWS::ServiceDiscovery::HttpNamespace": &resources.AWSServiceDiscoveryHttpNamespace{}, + "AWS::ServiceDiscovery::Instance": &resources.AWSServiceDiscoveryInstance{}, + "AWS::ServiceDiscovery::PrivateDnsNamespace": &resources.AWSServiceDiscoveryPrivateDnsNamespace{}, + "AWS::ServiceDiscovery::PublicDnsNamespace": &resources.AWSServiceDiscoveryPublicDnsNamespace{}, + "AWS::ServiceDiscovery::Service": &resources.AWSServiceDiscoveryService{}, + "AWS::StepFunctions::Activity": &resources.AWSStepFunctionsActivity{}, + "AWS::StepFunctions::StateMachine": &resources.AWSStepFunctionsStateMachine{}, + "AWS::WAF::ByteMatchSet": &resources.AWSWAFByteMatchSet{}, + "AWS::WAF::IPSet": &resources.AWSWAFIPSet{}, + "AWS::WAF::Rule": &resources.AWSWAFRule{}, + "AWS::WAF::SizeConstraintSet": &resources.AWSWAFSizeConstraintSet{}, + "AWS::WAF::SqlInjectionMatchSet": &resources.AWSWAFSqlInjectionMatchSet{}, + "AWS::WAF::WebACL": &resources.AWSWAFWebACL{}, + "AWS::WAF::XssMatchSet": &resources.AWSWAFXssMatchSet{}, + "AWS::WAFRegional::ByteMatchSet": &resources.AWSWAFRegionalByteMatchSet{}, + "AWS::WAFRegional::IPSet": &resources.AWSWAFRegionalIPSet{}, + "AWS::WAFRegional::Rule": &resources.AWSWAFRegionalRule{}, + "AWS::WAFRegional::SizeConstraintSet": &resources.AWSWAFRegionalSizeConstraintSet{}, + "AWS::WAFRegional::SqlInjectionMatchSet": &resources.AWSWAFRegionalSqlInjectionMatchSet{}, + "AWS::WAFRegional::WebACL": &resources.AWSWAFRegionalWebACL{}, + "AWS::WAFRegional::WebACLAssociation": &resources.AWSWAFRegionalWebACLAssociation{}, + "AWS::WAFRegional::XssMatchSet": &resources.AWSWAFRegionalXssMatchSet{}, + "AWS::WorkSpaces::Workspace": &resources.AWSWorkSpacesWorkspace{}, + "Alexa::ASK::Skill": &resources.AlexaASKSkill{}, } } // GetAllAWSAmazonMQBrokerResources retrieves all AWSAmazonMQBroker items from an AWS CloudFormation template -func (t *Template) GetAllAWSAmazonMQBrokerResources() map[string]*AWSAmazonMQBroker { - results := map[string]*AWSAmazonMQBroker{} +func (t *Template) GetAllAWSAmazonMQBrokerResources() map[string]*resources.AWSAmazonMQBroker { + results := map[string]*resources.AWSAmazonMQBroker{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAmazonMQBroker: + case *resources.AWSAmazonMQBroker: results[name] = resource } } @@ -392,10 +393,10 @@ func (t *Template) GetAllAWSAmazonMQBrokerResources() map[string]*AWSAmazonMQBro // GetAWSAmazonMQBrokerWithName retrieves all AWSAmazonMQBroker items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAmazonMQBrokerWithName(name string) (*AWSAmazonMQBroker, error) { +func (t *Template) GetAWSAmazonMQBrokerWithName(name string) (*resources.AWSAmazonMQBroker, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAmazonMQBroker: + case *resources.AWSAmazonMQBroker: return resource, nil } } @@ -403,11 +404,11 @@ func (t *Template) GetAWSAmazonMQBrokerWithName(name string) (*AWSAmazonMQBroker } // GetAllAWSAmazonMQConfigurationResources retrieves all AWSAmazonMQConfiguration items from an AWS CloudFormation template -func (t *Template) GetAllAWSAmazonMQConfigurationResources() map[string]*AWSAmazonMQConfiguration { - results := map[string]*AWSAmazonMQConfiguration{} +func (t *Template) GetAllAWSAmazonMQConfigurationResources() map[string]*resources.AWSAmazonMQConfiguration { + results := map[string]*resources.AWSAmazonMQConfiguration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAmazonMQConfiguration: + case *resources.AWSAmazonMQConfiguration: results[name] = resource } } @@ -416,10 +417,10 @@ func (t *Template) GetAllAWSAmazonMQConfigurationResources() map[string]*AWSAmaz // GetAWSAmazonMQConfigurationWithName retrieves all AWSAmazonMQConfiguration items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAmazonMQConfigurationWithName(name string) (*AWSAmazonMQConfiguration, error) { +func (t *Template) GetAWSAmazonMQConfigurationWithName(name string) (*resources.AWSAmazonMQConfiguration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAmazonMQConfiguration: + case *resources.AWSAmazonMQConfiguration: return resource, nil } } @@ -427,11 +428,11 @@ func (t *Template) GetAWSAmazonMQConfigurationWithName(name string) (*AWSAmazonM } // GetAllAWSAmazonMQConfigurationAssociationResources retrieves all AWSAmazonMQConfigurationAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSAmazonMQConfigurationAssociationResources() map[string]*AWSAmazonMQConfigurationAssociation { - results := map[string]*AWSAmazonMQConfigurationAssociation{} +func (t *Template) GetAllAWSAmazonMQConfigurationAssociationResources() map[string]*resources.AWSAmazonMQConfigurationAssociation { + results := map[string]*resources.AWSAmazonMQConfigurationAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAmazonMQConfigurationAssociation: + case *resources.AWSAmazonMQConfigurationAssociation: results[name] = resource } } @@ -440,10 +441,10 @@ func (t *Template) GetAllAWSAmazonMQConfigurationAssociationResources() map[stri // GetAWSAmazonMQConfigurationAssociationWithName retrieves all AWSAmazonMQConfigurationAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAmazonMQConfigurationAssociationWithName(name string) (*AWSAmazonMQConfigurationAssociation, error) { +func (t *Template) GetAWSAmazonMQConfigurationAssociationWithName(name string) (*resources.AWSAmazonMQConfigurationAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAmazonMQConfigurationAssociation: + case *resources.AWSAmazonMQConfigurationAssociation: return resource, nil } } @@ -451,11 +452,11 @@ func (t *Template) GetAWSAmazonMQConfigurationAssociationWithName(name string) ( } // GetAllAWSApiGatewayAccountResources retrieves all AWSApiGatewayAccount items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayAccountResources() map[string]*AWSApiGatewayAccount { - results := map[string]*AWSApiGatewayAccount{} +func (t *Template) GetAllAWSApiGatewayAccountResources() map[string]*resources.AWSApiGatewayAccount { + results := map[string]*resources.AWSApiGatewayAccount{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayAccount: + case *resources.AWSApiGatewayAccount: results[name] = resource } } @@ -464,10 +465,10 @@ func (t *Template) GetAllAWSApiGatewayAccountResources() map[string]*AWSApiGatew // GetAWSApiGatewayAccountWithName retrieves all AWSApiGatewayAccount items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayAccountWithName(name string) (*AWSApiGatewayAccount, error) { +func (t *Template) GetAWSApiGatewayAccountWithName(name string) (*resources.AWSApiGatewayAccount, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayAccount: + case *resources.AWSApiGatewayAccount: return resource, nil } } @@ -475,11 +476,11 @@ func (t *Template) GetAWSApiGatewayAccountWithName(name string) (*AWSApiGatewayA } // GetAllAWSApiGatewayApiKeyResources retrieves all AWSApiGatewayApiKey items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayApiKeyResources() map[string]*AWSApiGatewayApiKey { - results := map[string]*AWSApiGatewayApiKey{} +func (t *Template) GetAllAWSApiGatewayApiKeyResources() map[string]*resources.AWSApiGatewayApiKey { + results := map[string]*resources.AWSApiGatewayApiKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayApiKey: + case *resources.AWSApiGatewayApiKey: results[name] = resource } } @@ -488,10 +489,10 @@ func (t *Template) GetAllAWSApiGatewayApiKeyResources() map[string]*AWSApiGatewa // GetAWSApiGatewayApiKeyWithName retrieves all AWSApiGatewayApiKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayApiKeyWithName(name string) (*AWSApiGatewayApiKey, error) { +func (t *Template) GetAWSApiGatewayApiKeyWithName(name string) (*resources.AWSApiGatewayApiKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayApiKey: + case *resources.AWSApiGatewayApiKey: return resource, nil } } @@ -499,11 +500,11 @@ func (t *Template) GetAWSApiGatewayApiKeyWithName(name string) (*AWSApiGatewayAp } // GetAllAWSApiGatewayAuthorizerResources retrieves all AWSApiGatewayAuthorizer items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayAuthorizerResources() map[string]*AWSApiGatewayAuthorizer { - results := map[string]*AWSApiGatewayAuthorizer{} +func (t *Template) GetAllAWSApiGatewayAuthorizerResources() map[string]*resources.AWSApiGatewayAuthorizer { + results := map[string]*resources.AWSApiGatewayAuthorizer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayAuthorizer: + case *resources.AWSApiGatewayAuthorizer: results[name] = resource } } @@ -512,10 +513,10 @@ func (t *Template) GetAllAWSApiGatewayAuthorizerResources() map[string]*AWSApiGa // GetAWSApiGatewayAuthorizerWithName retrieves all AWSApiGatewayAuthorizer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayAuthorizerWithName(name string) (*AWSApiGatewayAuthorizer, error) { +func (t *Template) GetAWSApiGatewayAuthorizerWithName(name string) (*resources.AWSApiGatewayAuthorizer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayAuthorizer: + case *resources.AWSApiGatewayAuthorizer: return resource, nil } } @@ -523,11 +524,11 @@ func (t *Template) GetAWSApiGatewayAuthorizerWithName(name string) (*AWSApiGatew } // GetAllAWSApiGatewayBasePathMappingResources retrieves all AWSApiGatewayBasePathMapping items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayBasePathMappingResources() map[string]*AWSApiGatewayBasePathMapping { - results := map[string]*AWSApiGatewayBasePathMapping{} +func (t *Template) GetAllAWSApiGatewayBasePathMappingResources() map[string]*resources.AWSApiGatewayBasePathMapping { + results := map[string]*resources.AWSApiGatewayBasePathMapping{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayBasePathMapping: + case *resources.AWSApiGatewayBasePathMapping: results[name] = resource } } @@ -536,10 +537,10 @@ func (t *Template) GetAllAWSApiGatewayBasePathMappingResources() map[string]*AWS // GetAWSApiGatewayBasePathMappingWithName retrieves all AWSApiGatewayBasePathMapping items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayBasePathMappingWithName(name string) (*AWSApiGatewayBasePathMapping, error) { +func (t *Template) GetAWSApiGatewayBasePathMappingWithName(name string) (*resources.AWSApiGatewayBasePathMapping, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayBasePathMapping: + case *resources.AWSApiGatewayBasePathMapping: return resource, nil } } @@ -547,11 +548,11 @@ func (t *Template) GetAWSApiGatewayBasePathMappingWithName(name string) (*AWSApi } // GetAllAWSApiGatewayClientCertificateResources retrieves all AWSApiGatewayClientCertificate items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayClientCertificateResources() map[string]*AWSApiGatewayClientCertificate { - results := map[string]*AWSApiGatewayClientCertificate{} +func (t *Template) GetAllAWSApiGatewayClientCertificateResources() map[string]*resources.AWSApiGatewayClientCertificate { + results := map[string]*resources.AWSApiGatewayClientCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayClientCertificate: + case *resources.AWSApiGatewayClientCertificate: results[name] = resource } } @@ -560,10 +561,10 @@ func (t *Template) GetAllAWSApiGatewayClientCertificateResources() map[string]*A // GetAWSApiGatewayClientCertificateWithName retrieves all AWSApiGatewayClientCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayClientCertificateWithName(name string) (*AWSApiGatewayClientCertificate, error) { +func (t *Template) GetAWSApiGatewayClientCertificateWithName(name string) (*resources.AWSApiGatewayClientCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayClientCertificate: + case *resources.AWSApiGatewayClientCertificate: return resource, nil } } @@ -571,11 +572,11 @@ func (t *Template) GetAWSApiGatewayClientCertificateWithName(name string) (*AWSA } // GetAllAWSApiGatewayDeploymentResources retrieves all AWSApiGatewayDeployment items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayDeploymentResources() map[string]*AWSApiGatewayDeployment { - results := map[string]*AWSApiGatewayDeployment{} +func (t *Template) GetAllAWSApiGatewayDeploymentResources() map[string]*resources.AWSApiGatewayDeployment { + results := map[string]*resources.AWSApiGatewayDeployment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayDeployment: + case *resources.AWSApiGatewayDeployment: results[name] = resource } } @@ -584,10 +585,10 @@ func (t *Template) GetAllAWSApiGatewayDeploymentResources() map[string]*AWSApiGa // GetAWSApiGatewayDeploymentWithName retrieves all AWSApiGatewayDeployment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayDeploymentWithName(name string) (*AWSApiGatewayDeployment, error) { +func (t *Template) GetAWSApiGatewayDeploymentWithName(name string) (*resources.AWSApiGatewayDeployment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayDeployment: + case *resources.AWSApiGatewayDeployment: return resource, nil } } @@ -595,11 +596,11 @@ func (t *Template) GetAWSApiGatewayDeploymentWithName(name string) (*AWSApiGatew } // GetAllAWSApiGatewayDocumentationPartResources retrieves all AWSApiGatewayDocumentationPart items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayDocumentationPartResources() map[string]*AWSApiGatewayDocumentationPart { - results := map[string]*AWSApiGatewayDocumentationPart{} +func (t *Template) GetAllAWSApiGatewayDocumentationPartResources() map[string]*resources.AWSApiGatewayDocumentationPart { + results := map[string]*resources.AWSApiGatewayDocumentationPart{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayDocumentationPart: + case *resources.AWSApiGatewayDocumentationPart: results[name] = resource } } @@ -608,10 +609,10 @@ func (t *Template) GetAllAWSApiGatewayDocumentationPartResources() map[string]*A // GetAWSApiGatewayDocumentationPartWithName retrieves all AWSApiGatewayDocumentationPart items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayDocumentationPartWithName(name string) (*AWSApiGatewayDocumentationPart, error) { +func (t *Template) GetAWSApiGatewayDocumentationPartWithName(name string) (*resources.AWSApiGatewayDocumentationPart, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayDocumentationPart: + case *resources.AWSApiGatewayDocumentationPart: return resource, nil } } @@ -619,11 +620,11 @@ func (t *Template) GetAWSApiGatewayDocumentationPartWithName(name string) (*AWSA } // GetAllAWSApiGatewayDocumentationVersionResources retrieves all AWSApiGatewayDocumentationVersion items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayDocumentationVersionResources() map[string]*AWSApiGatewayDocumentationVersion { - results := map[string]*AWSApiGatewayDocumentationVersion{} +func (t *Template) GetAllAWSApiGatewayDocumentationVersionResources() map[string]*resources.AWSApiGatewayDocumentationVersion { + results := map[string]*resources.AWSApiGatewayDocumentationVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayDocumentationVersion: + case *resources.AWSApiGatewayDocumentationVersion: results[name] = resource } } @@ -632,10 +633,10 @@ func (t *Template) GetAllAWSApiGatewayDocumentationVersionResources() map[string // GetAWSApiGatewayDocumentationVersionWithName retrieves all AWSApiGatewayDocumentationVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayDocumentationVersionWithName(name string) (*AWSApiGatewayDocumentationVersion, error) { +func (t *Template) GetAWSApiGatewayDocumentationVersionWithName(name string) (*resources.AWSApiGatewayDocumentationVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayDocumentationVersion: + case *resources.AWSApiGatewayDocumentationVersion: return resource, nil } } @@ -643,11 +644,11 @@ func (t *Template) GetAWSApiGatewayDocumentationVersionWithName(name string) (*A } // GetAllAWSApiGatewayDomainNameResources retrieves all AWSApiGatewayDomainName items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayDomainNameResources() map[string]*AWSApiGatewayDomainName { - results := map[string]*AWSApiGatewayDomainName{} +func (t *Template) GetAllAWSApiGatewayDomainNameResources() map[string]*resources.AWSApiGatewayDomainName { + results := map[string]*resources.AWSApiGatewayDomainName{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayDomainName: + case *resources.AWSApiGatewayDomainName: results[name] = resource } } @@ -656,10 +657,10 @@ func (t *Template) GetAllAWSApiGatewayDomainNameResources() map[string]*AWSApiGa // GetAWSApiGatewayDomainNameWithName retrieves all AWSApiGatewayDomainName items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayDomainNameWithName(name string) (*AWSApiGatewayDomainName, error) { +func (t *Template) GetAWSApiGatewayDomainNameWithName(name string) (*resources.AWSApiGatewayDomainName, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayDomainName: + case *resources.AWSApiGatewayDomainName: return resource, nil } } @@ -667,11 +668,11 @@ func (t *Template) GetAWSApiGatewayDomainNameWithName(name string) (*AWSApiGatew } // GetAllAWSApiGatewayGatewayResponseResources retrieves all AWSApiGatewayGatewayResponse items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayGatewayResponseResources() map[string]*AWSApiGatewayGatewayResponse { - results := map[string]*AWSApiGatewayGatewayResponse{} +func (t *Template) GetAllAWSApiGatewayGatewayResponseResources() map[string]*resources.AWSApiGatewayGatewayResponse { + results := map[string]*resources.AWSApiGatewayGatewayResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayGatewayResponse: + case *resources.AWSApiGatewayGatewayResponse: results[name] = resource } } @@ -680,10 +681,10 @@ func (t *Template) GetAllAWSApiGatewayGatewayResponseResources() map[string]*AWS // GetAWSApiGatewayGatewayResponseWithName retrieves all AWSApiGatewayGatewayResponse items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayGatewayResponseWithName(name string) (*AWSApiGatewayGatewayResponse, error) { +func (t *Template) GetAWSApiGatewayGatewayResponseWithName(name string) (*resources.AWSApiGatewayGatewayResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayGatewayResponse: + case *resources.AWSApiGatewayGatewayResponse: return resource, nil } } @@ -691,11 +692,11 @@ func (t *Template) GetAWSApiGatewayGatewayResponseWithName(name string) (*AWSApi } // GetAllAWSApiGatewayMethodResources retrieves all AWSApiGatewayMethod items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayMethodResources() map[string]*AWSApiGatewayMethod { - results := map[string]*AWSApiGatewayMethod{} +func (t *Template) GetAllAWSApiGatewayMethodResources() map[string]*resources.AWSApiGatewayMethod { + results := map[string]*resources.AWSApiGatewayMethod{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayMethod: + case *resources.AWSApiGatewayMethod: results[name] = resource } } @@ -704,10 +705,10 @@ func (t *Template) GetAllAWSApiGatewayMethodResources() map[string]*AWSApiGatewa // GetAWSApiGatewayMethodWithName retrieves all AWSApiGatewayMethod items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayMethodWithName(name string) (*AWSApiGatewayMethod, error) { +func (t *Template) GetAWSApiGatewayMethodWithName(name string) (*resources.AWSApiGatewayMethod, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayMethod: + case *resources.AWSApiGatewayMethod: return resource, nil } } @@ -715,11 +716,11 @@ func (t *Template) GetAWSApiGatewayMethodWithName(name string) (*AWSApiGatewayMe } // GetAllAWSApiGatewayModelResources retrieves all AWSApiGatewayModel items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayModelResources() map[string]*AWSApiGatewayModel { - results := map[string]*AWSApiGatewayModel{} +func (t *Template) GetAllAWSApiGatewayModelResources() map[string]*resources.AWSApiGatewayModel { + results := map[string]*resources.AWSApiGatewayModel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayModel: + case *resources.AWSApiGatewayModel: results[name] = resource } } @@ -728,10 +729,10 @@ func (t *Template) GetAllAWSApiGatewayModelResources() map[string]*AWSApiGateway // GetAWSApiGatewayModelWithName retrieves all AWSApiGatewayModel items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayModelWithName(name string) (*AWSApiGatewayModel, error) { +func (t *Template) GetAWSApiGatewayModelWithName(name string) (*resources.AWSApiGatewayModel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayModel: + case *resources.AWSApiGatewayModel: return resource, nil } } @@ -739,11 +740,11 @@ func (t *Template) GetAWSApiGatewayModelWithName(name string) (*AWSApiGatewayMod } // GetAllAWSApiGatewayRequestValidatorResources retrieves all AWSApiGatewayRequestValidator items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayRequestValidatorResources() map[string]*AWSApiGatewayRequestValidator { - results := map[string]*AWSApiGatewayRequestValidator{} +func (t *Template) GetAllAWSApiGatewayRequestValidatorResources() map[string]*resources.AWSApiGatewayRequestValidator { + results := map[string]*resources.AWSApiGatewayRequestValidator{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayRequestValidator: + case *resources.AWSApiGatewayRequestValidator: results[name] = resource } } @@ -752,10 +753,10 @@ func (t *Template) GetAllAWSApiGatewayRequestValidatorResources() map[string]*AW // GetAWSApiGatewayRequestValidatorWithName retrieves all AWSApiGatewayRequestValidator items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayRequestValidatorWithName(name string) (*AWSApiGatewayRequestValidator, error) { +func (t *Template) GetAWSApiGatewayRequestValidatorWithName(name string) (*resources.AWSApiGatewayRequestValidator, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayRequestValidator: + case *resources.AWSApiGatewayRequestValidator: return resource, nil } } @@ -763,11 +764,11 @@ func (t *Template) GetAWSApiGatewayRequestValidatorWithName(name string) (*AWSAp } // GetAllAWSApiGatewayResourceResources retrieves all AWSApiGatewayResource items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayResourceResources() map[string]*AWSApiGatewayResource { - results := map[string]*AWSApiGatewayResource{} +func (t *Template) GetAllAWSApiGatewayResourceResources() map[string]*resources.AWSApiGatewayResource { + results := map[string]*resources.AWSApiGatewayResource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayResource: + case *resources.AWSApiGatewayResource: results[name] = resource } } @@ -776,10 +777,10 @@ func (t *Template) GetAllAWSApiGatewayResourceResources() map[string]*AWSApiGate // GetAWSApiGatewayResourceWithName retrieves all AWSApiGatewayResource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayResourceWithName(name string) (*AWSApiGatewayResource, error) { +func (t *Template) GetAWSApiGatewayResourceWithName(name string) (*resources.AWSApiGatewayResource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayResource: + case *resources.AWSApiGatewayResource: return resource, nil } } @@ -787,11 +788,11 @@ func (t *Template) GetAWSApiGatewayResourceWithName(name string) (*AWSApiGateway } // GetAllAWSApiGatewayRestApiResources retrieves all AWSApiGatewayRestApi items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayRestApiResources() map[string]*AWSApiGatewayRestApi { - results := map[string]*AWSApiGatewayRestApi{} +func (t *Template) GetAllAWSApiGatewayRestApiResources() map[string]*resources.AWSApiGatewayRestApi { + results := map[string]*resources.AWSApiGatewayRestApi{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayRestApi: + case *resources.AWSApiGatewayRestApi: results[name] = resource } } @@ -800,10 +801,10 @@ func (t *Template) GetAllAWSApiGatewayRestApiResources() map[string]*AWSApiGatew // GetAWSApiGatewayRestApiWithName retrieves all AWSApiGatewayRestApi items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayRestApiWithName(name string) (*AWSApiGatewayRestApi, error) { +func (t *Template) GetAWSApiGatewayRestApiWithName(name string) (*resources.AWSApiGatewayRestApi, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayRestApi: + case *resources.AWSApiGatewayRestApi: return resource, nil } } @@ -811,11 +812,11 @@ func (t *Template) GetAWSApiGatewayRestApiWithName(name string) (*AWSApiGatewayR } // GetAllAWSApiGatewayStageResources retrieves all AWSApiGatewayStage items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayStageResources() map[string]*AWSApiGatewayStage { - results := map[string]*AWSApiGatewayStage{} +func (t *Template) GetAllAWSApiGatewayStageResources() map[string]*resources.AWSApiGatewayStage { + results := map[string]*resources.AWSApiGatewayStage{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayStage: + case *resources.AWSApiGatewayStage: results[name] = resource } } @@ -824,10 +825,10 @@ func (t *Template) GetAllAWSApiGatewayStageResources() map[string]*AWSApiGateway // GetAWSApiGatewayStageWithName retrieves all AWSApiGatewayStage items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayStageWithName(name string) (*AWSApiGatewayStage, error) { +func (t *Template) GetAWSApiGatewayStageWithName(name string) (*resources.AWSApiGatewayStage, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayStage: + case *resources.AWSApiGatewayStage: return resource, nil } } @@ -835,11 +836,11 @@ func (t *Template) GetAWSApiGatewayStageWithName(name string) (*AWSApiGatewaySta } // GetAllAWSApiGatewayUsagePlanResources retrieves all AWSApiGatewayUsagePlan items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayUsagePlanResources() map[string]*AWSApiGatewayUsagePlan { - results := map[string]*AWSApiGatewayUsagePlan{} +func (t *Template) GetAllAWSApiGatewayUsagePlanResources() map[string]*resources.AWSApiGatewayUsagePlan { + results := map[string]*resources.AWSApiGatewayUsagePlan{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayUsagePlan: + case *resources.AWSApiGatewayUsagePlan: results[name] = resource } } @@ -848,10 +849,10 @@ func (t *Template) GetAllAWSApiGatewayUsagePlanResources() map[string]*AWSApiGat // GetAWSApiGatewayUsagePlanWithName retrieves all AWSApiGatewayUsagePlan items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayUsagePlanWithName(name string) (*AWSApiGatewayUsagePlan, error) { +func (t *Template) GetAWSApiGatewayUsagePlanWithName(name string) (*resources.AWSApiGatewayUsagePlan, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayUsagePlan: + case *resources.AWSApiGatewayUsagePlan: return resource, nil } } @@ -859,11 +860,11 @@ func (t *Template) GetAWSApiGatewayUsagePlanWithName(name string) (*AWSApiGatewa } // GetAllAWSApiGatewayUsagePlanKeyResources retrieves all AWSApiGatewayUsagePlanKey items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayUsagePlanKeyResources() map[string]*AWSApiGatewayUsagePlanKey { - results := map[string]*AWSApiGatewayUsagePlanKey{} +func (t *Template) GetAllAWSApiGatewayUsagePlanKeyResources() map[string]*resources.AWSApiGatewayUsagePlanKey { + results := map[string]*resources.AWSApiGatewayUsagePlanKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayUsagePlanKey: + case *resources.AWSApiGatewayUsagePlanKey: results[name] = resource } } @@ -872,10 +873,10 @@ func (t *Template) GetAllAWSApiGatewayUsagePlanKeyResources() map[string]*AWSApi // GetAWSApiGatewayUsagePlanKeyWithName retrieves all AWSApiGatewayUsagePlanKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayUsagePlanKeyWithName(name string) (*AWSApiGatewayUsagePlanKey, error) { +func (t *Template) GetAWSApiGatewayUsagePlanKeyWithName(name string) (*resources.AWSApiGatewayUsagePlanKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayUsagePlanKey: + case *resources.AWSApiGatewayUsagePlanKey: return resource, nil } } @@ -883,11 +884,11 @@ func (t *Template) GetAWSApiGatewayUsagePlanKeyWithName(name string) (*AWSApiGat } // GetAllAWSApiGatewayVpcLinkResources retrieves all AWSApiGatewayVpcLink items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayVpcLinkResources() map[string]*AWSApiGatewayVpcLink { - results := map[string]*AWSApiGatewayVpcLink{} +func (t *Template) GetAllAWSApiGatewayVpcLinkResources() map[string]*resources.AWSApiGatewayVpcLink { + results := map[string]*resources.AWSApiGatewayVpcLink{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayVpcLink: + case *resources.AWSApiGatewayVpcLink: results[name] = resource } } @@ -896,10 +897,10 @@ func (t *Template) GetAllAWSApiGatewayVpcLinkResources() map[string]*AWSApiGatew // GetAWSApiGatewayVpcLinkWithName retrieves all AWSApiGatewayVpcLink items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayVpcLinkWithName(name string) (*AWSApiGatewayVpcLink, error) { +func (t *Template) GetAWSApiGatewayVpcLinkWithName(name string) (*resources.AWSApiGatewayVpcLink, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayVpcLink: + case *resources.AWSApiGatewayVpcLink: return resource, nil } } @@ -907,11 +908,11 @@ func (t *Template) GetAWSApiGatewayVpcLinkWithName(name string) (*AWSApiGatewayV } // GetAllAWSApiGatewayV2ApiResources retrieves all AWSApiGatewayV2Api items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2ApiResources() map[string]*AWSApiGatewayV2Api { - results := map[string]*AWSApiGatewayV2Api{} +func (t *Template) GetAllAWSApiGatewayV2ApiResources() map[string]*resources.AWSApiGatewayV2Api { + results := map[string]*resources.AWSApiGatewayV2Api{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2Api: + case *resources.AWSApiGatewayV2Api: results[name] = resource } } @@ -920,10 +921,10 @@ func (t *Template) GetAllAWSApiGatewayV2ApiResources() map[string]*AWSApiGateway // GetAWSApiGatewayV2ApiWithName retrieves all AWSApiGatewayV2Api items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2ApiWithName(name string) (*AWSApiGatewayV2Api, error) { +func (t *Template) GetAWSApiGatewayV2ApiWithName(name string) (*resources.AWSApiGatewayV2Api, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2Api: + case *resources.AWSApiGatewayV2Api: return resource, nil } } @@ -931,11 +932,11 @@ func (t *Template) GetAWSApiGatewayV2ApiWithName(name string) (*AWSApiGatewayV2A } // GetAllAWSApiGatewayV2AuthorizerResources retrieves all AWSApiGatewayV2Authorizer items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2AuthorizerResources() map[string]*AWSApiGatewayV2Authorizer { - results := map[string]*AWSApiGatewayV2Authorizer{} +func (t *Template) GetAllAWSApiGatewayV2AuthorizerResources() map[string]*resources.AWSApiGatewayV2Authorizer { + results := map[string]*resources.AWSApiGatewayV2Authorizer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2Authorizer: + case *resources.AWSApiGatewayV2Authorizer: results[name] = resource } } @@ -944,10 +945,10 @@ func (t *Template) GetAllAWSApiGatewayV2AuthorizerResources() map[string]*AWSApi // GetAWSApiGatewayV2AuthorizerWithName retrieves all AWSApiGatewayV2Authorizer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2AuthorizerWithName(name string) (*AWSApiGatewayV2Authorizer, error) { +func (t *Template) GetAWSApiGatewayV2AuthorizerWithName(name string) (*resources.AWSApiGatewayV2Authorizer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2Authorizer: + case *resources.AWSApiGatewayV2Authorizer: return resource, nil } } @@ -955,11 +956,11 @@ func (t *Template) GetAWSApiGatewayV2AuthorizerWithName(name string) (*AWSApiGat } // GetAllAWSApiGatewayV2DeploymentResources retrieves all AWSApiGatewayV2Deployment items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2DeploymentResources() map[string]*AWSApiGatewayV2Deployment { - results := map[string]*AWSApiGatewayV2Deployment{} +func (t *Template) GetAllAWSApiGatewayV2DeploymentResources() map[string]*resources.AWSApiGatewayV2Deployment { + results := map[string]*resources.AWSApiGatewayV2Deployment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2Deployment: + case *resources.AWSApiGatewayV2Deployment: results[name] = resource } } @@ -968,10 +969,10 @@ func (t *Template) GetAllAWSApiGatewayV2DeploymentResources() map[string]*AWSApi // GetAWSApiGatewayV2DeploymentWithName retrieves all AWSApiGatewayV2Deployment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2DeploymentWithName(name string) (*AWSApiGatewayV2Deployment, error) { +func (t *Template) GetAWSApiGatewayV2DeploymentWithName(name string) (*resources.AWSApiGatewayV2Deployment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2Deployment: + case *resources.AWSApiGatewayV2Deployment: return resource, nil } } @@ -979,11 +980,11 @@ func (t *Template) GetAWSApiGatewayV2DeploymentWithName(name string) (*AWSApiGat } // GetAllAWSApiGatewayV2IntegrationResources retrieves all AWSApiGatewayV2Integration items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2IntegrationResources() map[string]*AWSApiGatewayV2Integration { - results := map[string]*AWSApiGatewayV2Integration{} +func (t *Template) GetAllAWSApiGatewayV2IntegrationResources() map[string]*resources.AWSApiGatewayV2Integration { + results := map[string]*resources.AWSApiGatewayV2Integration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2Integration: + case *resources.AWSApiGatewayV2Integration: results[name] = resource } } @@ -992,10 +993,10 @@ func (t *Template) GetAllAWSApiGatewayV2IntegrationResources() map[string]*AWSAp // GetAWSApiGatewayV2IntegrationWithName retrieves all AWSApiGatewayV2Integration items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2IntegrationWithName(name string) (*AWSApiGatewayV2Integration, error) { +func (t *Template) GetAWSApiGatewayV2IntegrationWithName(name string) (*resources.AWSApiGatewayV2Integration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2Integration: + case *resources.AWSApiGatewayV2Integration: return resource, nil } } @@ -1003,11 +1004,11 @@ func (t *Template) GetAWSApiGatewayV2IntegrationWithName(name string) (*AWSApiGa } // GetAllAWSApiGatewayV2IntegrationResponseResources retrieves all AWSApiGatewayV2IntegrationResponse items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2IntegrationResponseResources() map[string]*AWSApiGatewayV2IntegrationResponse { - results := map[string]*AWSApiGatewayV2IntegrationResponse{} +func (t *Template) GetAllAWSApiGatewayV2IntegrationResponseResources() map[string]*resources.AWSApiGatewayV2IntegrationResponse { + results := map[string]*resources.AWSApiGatewayV2IntegrationResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2IntegrationResponse: + case *resources.AWSApiGatewayV2IntegrationResponse: results[name] = resource } } @@ -1016,10 +1017,10 @@ func (t *Template) GetAllAWSApiGatewayV2IntegrationResponseResources() map[strin // GetAWSApiGatewayV2IntegrationResponseWithName retrieves all AWSApiGatewayV2IntegrationResponse items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2IntegrationResponseWithName(name string) (*AWSApiGatewayV2IntegrationResponse, error) { +func (t *Template) GetAWSApiGatewayV2IntegrationResponseWithName(name string) (*resources.AWSApiGatewayV2IntegrationResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2IntegrationResponse: + case *resources.AWSApiGatewayV2IntegrationResponse: return resource, nil } } @@ -1027,11 +1028,11 @@ func (t *Template) GetAWSApiGatewayV2IntegrationResponseWithName(name string) (* } // GetAllAWSApiGatewayV2ModelResources retrieves all AWSApiGatewayV2Model items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2ModelResources() map[string]*AWSApiGatewayV2Model { - results := map[string]*AWSApiGatewayV2Model{} +func (t *Template) GetAllAWSApiGatewayV2ModelResources() map[string]*resources.AWSApiGatewayV2Model { + results := map[string]*resources.AWSApiGatewayV2Model{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2Model: + case *resources.AWSApiGatewayV2Model: results[name] = resource } } @@ -1040,10 +1041,10 @@ func (t *Template) GetAllAWSApiGatewayV2ModelResources() map[string]*AWSApiGatew // GetAWSApiGatewayV2ModelWithName retrieves all AWSApiGatewayV2Model items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2ModelWithName(name string) (*AWSApiGatewayV2Model, error) { +func (t *Template) GetAWSApiGatewayV2ModelWithName(name string) (*resources.AWSApiGatewayV2Model, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2Model: + case *resources.AWSApiGatewayV2Model: return resource, nil } } @@ -1051,11 +1052,11 @@ func (t *Template) GetAWSApiGatewayV2ModelWithName(name string) (*AWSApiGatewayV } // GetAllAWSApiGatewayV2RouteResources retrieves all AWSApiGatewayV2Route items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2RouteResources() map[string]*AWSApiGatewayV2Route { - results := map[string]*AWSApiGatewayV2Route{} +func (t *Template) GetAllAWSApiGatewayV2RouteResources() map[string]*resources.AWSApiGatewayV2Route { + results := map[string]*resources.AWSApiGatewayV2Route{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2Route: + case *resources.AWSApiGatewayV2Route: results[name] = resource } } @@ -1064,10 +1065,10 @@ func (t *Template) GetAllAWSApiGatewayV2RouteResources() map[string]*AWSApiGatew // GetAWSApiGatewayV2RouteWithName retrieves all AWSApiGatewayV2Route items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2RouteWithName(name string) (*AWSApiGatewayV2Route, error) { +func (t *Template) GetAWSApiGatewayV2RouteWithName(name string) (*resources.AWSApiGatewayV2Route, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2Route: + case *resources.AWSApiGatewayV2Route: return resource, nil } } @@ -1075,11 +1076,11 @@ func (t *Template) GetAWSApiGatewayV2RouteWithName(name string) (*AWSApiGatewayV } // GetAllAWSApiGatewayV2RouteResponseResources retrieves all AWSApiGatewayV2RouteResponse items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2RouteResponseResources() map[string]*AWSApiGatewayV2RouteResponse { - results := map[string]*AWSApiGatewayV2RouteResponse{} +func (t *Template) GetAllAWSApiGatewayV2RouteResponseResources() map[string]*resources.AWSApiGatewayV2RouteResponse { + results := map[string]*resources.AWSApiGatewayV2RouteResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2RouteResponse: + case *resources.AWSApiGatewayV2RouteResponse: results[name] = resource } } @@ -1088,10 +1089,10 @@ func (t *Template) GetAllAWSApiGatewayV2RouteResponseResources() map[string]*AWS // GetAWSApiGatewayV2RouteResponseWithName retrieves all AWSApiGatewayV2RouteResponse items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2RouteResponseWithName(name string) (*AWSApiGatewayV2RouteResponse, error) { +func (t *Template) GetAWSApiGatewayV2RouteResponseWithName(name string) (*resources.AWSApiGatewayV2RouteResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2RouteResponse: + case *resources.AWSApiGatewayV2RouteResponse: return resource, nil } } @@ -1099,11 +1100,11 @@ func (t *Template) GetAWSApiGatewayV2RouteResponseWithName(name string) (*AWSApi } // GetAllAWSApiGatewayV2StageResources retrieves all AWSApiGatewayV2Stage items from an AWS CloudFormation template -func (t *Template) GetAllAWSApiGatewayV2StageResources() map[string]*AWSApiGatewayV2Stage { - results := map[string]*AWSApiGatewayV2Stage{} +func (t *Template) GetAllAWSApiGatewayV2StageResources() map[string]*resources.AWSApiGatewayV2Stage { + results := map[string]*resources.AWSApiGatewayV2Stage{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApiGatewayV2Stage: + case *resources.AWSApiGatewayV2Stage: results[name] = resource } } @@ -1112,10 +1113,10 @@ func (t *Template) GetAllAWSApiGatewayV2StageResources() map[string]*AWSApiGatew // GetAWSApiGatewayV2StageWithName retrieves all AWSApiGatewayV2Stage items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApiGatewayV2StageWithName(name string) (*AWSApiGatewayV2Stage, error) { +func (t *Template) GetAWSApiGatewayV2StageWithName(name string) (*resources.AWSApiGatewayV2Stage, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApiGatewayV2Stage: + case *resources.AWSApiGatewayV2Stage: return resource, nil } } @@ -1123,11 +1124,11 @@ func (t *Template) GetAWSApiGatewayV2StageWithName(name string) (*AWSApiGatewayV } // GetAllAWSAppStreamDirectoryConfigResources retrieves all AWSAppStreamDirectoryConfig items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppStreamDirectoryConfigResources() map[string]*AWSAppStreamDirectoryConfig { - results := map[string]*AWSAppStreamDirectoryConfig{} +func (t *Template) GetAllAWSAppStreamDirectoryConfigResources() map[string]*resources.AWSAppStreamDirectoryConfig { + results := map[string]*resources.AWSAppStreamDirectoryConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppStreamDirectoryConfig: + case *resources.AWSAppStreamDirectoryConfig: results[name] = resource } } @@ -1136,10 +1137,10 @@ func (t *Template) GetAllAWSAppStreamDirectoryConfigResources() map[string]*AWSA // GetAWSAppStreamDirectoryConfigWithName retrieves all AWSAppStreamDirectoryConfig items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppStreamDirectoryConfigWithName(name string) (*AWSAppStreamDirectoryConfig, error) { +func (t *Template) GetAWSAppStreamDirectoryConfigWithName(name string) (*resources.AWSAppStreamDirectoryConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppStreamDirectoryConfig: + case *resources.AWSAppStreamDirectoryConfig: return resource, nil } } @@ -1147,11 +1148,11 @@ func (t *Template) GetAWSAppStreamDirectoryConfigWithName(name string) (*AWSAppS } // GetAllAWSAppStreamFleetResources retrieves all AWSAppStreamFleet items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppStreamFleetResources() map[string]*AWSAppStreamFleet { - results := map[string]*AWSAppStreamFleet{} +func (t *Template) GetAllAWSAppStreamFleetResources() map[string]*resources.AWSAppStreamFleet { + results := map[string]*resources.AWSAppStreamFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppStreamFleet: + case *resources.AWSAppStreamFleet: results[name] = resource } } @@ -1160,10 +1161,10 @@ func (t *Template) GetAllAWSAppStreamFleetResources() map[string]*AWSAppStreamFl // GetAWSAppStreamFleetWithName retrieves all AWSAppStreamFleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppStreamFleetWithName(name string) (*AWSAppStreamFleet, error) { +func (t *Template) GetAWSAppStreamFleetWithName(name string) (*resources.AWSAppStreamFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppStreamFleet: + case *resources.AWSAppStreamFleet: return resource, nil } } @@ -1171,11 +1172,11 @@ func (t *Template) GetAWSAppStreamFleetWithName(name string) (*AWSAppStreamFleet } // GetAllAWSAppStreamImageBuilderResources retrieves all AWSAppStreamImageBuilder items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppStreamImageBuilderResources() map[string]*AWSAppStreamImageBuilder { - results := map[string]*AWSAppStreamImageBuilder{} +func (t *Template) GetAllAWSAppStreamImageBuilderResources() map[string]*resources.AWSAppStreamImageBuilder { + results := map[string]*resources.AWSAppStreamImageBuilder{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppStreamImageBuilder: + case *resources.AWSAppStreamImageBuilder: results[name] = resource } } @@ -1184,10 +1185,10 @@ func (t *Template) GetAllAWSAppStreamImageBuilderResources() map[string]*AWSAppS // GetAWSAppStreamImageBuilderWithName retrieves all AWSAppStreamImageBuilder items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppStreamImageBuilderWithName(name string) (*AWSAppStreamImageBuilder, error) { +func (t *Template) GetAWSAppStreamImageBuilderWithName(name string) (*resources.AWSAppStreamImageBuilder, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppStreamImageBuilder: + case *resources.AWSAppStreamImageBuilder: return resource, nil } } @@ -1195,11 +1196,11 @@ func (t *Template) GetAWSAppStreamImageBuilderWithName(name string) (*AWSAppStre } // GetAllAWSAppStreamStackResources retrieves all AWSAppStreamStack items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppStreamStackResources() map[string]*AWSAppStreamStack { - results := map[string]*AWSAppStreamStack{} +func (t *Template) GetAllAWSAppStreamStackResources() map[string]*resources.AWSAppStreamStack { + results := map[string]*resources.AWSAppStreamStack{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppStreamStack: + case *resources.AWSAppStreamStack: results[name] = resource } } @@ -1208,10 +1209,10 @@ func (t *Template) GetAllAWSAppStreamStackResources() map[string]*AWSAppStreamSt // GetAWSAppStreamStackWithName retrieves all AWSAppStreamStack items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppStreamStackWithName(name string) (*AWSAppStreamStack, error) { +func (t *Template) GetAWSAppStreamStackWithName(name string) (*resources.AWSAppStreamStack, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppStreamStack: + case *resources.AWSAppStreamStack: return resource, nil } } @@ -1219,11 +1220,11 @@ func (t *Template) GetAWSAppStreamStackWithName(name string) (*AWSAppStreamStack } // GetAllAWSAppStreamStackFleetAssociationResources retrieves all AWSAppStreamStackFleetAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppStreamStackFleetAssociationResources() map[string]*AWSAppStreamStackFleetAssociation { - results := map[string]*AWSAppStreamStackFleetAssociation{} +func (t *Template) GetAllAWSAppStreamStackFleetAssociationResources() map[string]*resources.AWSAppStreamStackFleetAssociation { + results := map[string]*resources.AWSAppStreamStackFleetAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppStreamStackFleetAssociation: + case *resources.AWSAppStreamStackFleetAssociation: results[name] = resource } } @@ -1232,10 +1233,10 @@ func (t *Template) GetAllAWSAppStreamStackFleetAssociationResources() map[string // GetAWSAppStreamStackFleetAssociationWithName retrieves all AWSAppStreamStackFleetAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppStreamStackFleetAssociationWithName(name string) (*AWSAppStreamStackFleetAssociation, error) { +func (t *Template) GetAWSAppStreamStackFleetAssociationWithName(name string) (*resources.AWSAppStreamStackFleetAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppStreamStackFleetAssociation: + case *resources.AWSAppStreamStackFleetAssociation: return resource, nil } } @@ -1243,11 +1244,11 @@ func (t *Template) GetAWSAppStreamStackFleetAssociationWithName(name string) (*A } // GetAllAWSAppStreamStackUserAssociationResources retrieves all AWSAppStreamStackUserAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppStreamStackUserAssociationResources() map[string]*AWSAppStreamStackUserAssociation { - results := map[string]*AWSAppStreamStackUserAssociation{} +func (t *Template) GetAllAWSAppStreamStackUserAssociationResources() map[string]*resources.AWSAppStreamStackUserAssociation { + results := map[string]*resources.AWSAppStreamStackUserAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppStreamStackUserAssociation: + case *resources.AWSAppStreamStackUserAssociation: results[name] = resource } } @@ -1256,10 +1257,10 @@ func (t *Template) GetAllAWSAppStreamStackUserAssociationResources() map[string] // GetAWSAppStreamStackUserAssociationWithName retrieves all AWSAppStreamStackUserAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppStreamStackUserAssociationWithName(name string) (*AWSAppStreamStackUserAssociation, error) { +func (t *Template) GetAWSAppStreamStackUserAssociationWithName(name string) (*resources.AWSAppStreamStackUserAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppStreamStackUserAssociation: + case *resources.AWSAppStreamStackUserAssociation: return resource, nil } } @@ -1267,11 +1268,11 @@ func (t *Template) GetAWSAppStreamStackUserAssociationWithName(name string) (*AW } // GetAllAWSAppStreamUserResources retrieves all AWSAppStreamUser items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppStreamUserResources() map[string]*AWSAppStreamUser { - results := map[string]*AWSAppStreamUser{} +func (t *Template) GetAllAWSAppStreamUserResources() map[string]*resources.AWSAppStreamUser { + results := map[string]*resources.AWSAppStreamUser{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppStreamUser: + case *resources.AWSAppStreamUser: results[name] = resource } } @@ -1280,10 +1281,10 @@ func (t *Template) GetAllAWSAppStreamUserResources() map[string]*AWSAppStreamUse // GetAWSAppStreamUserWithName retrieves all AWSAppStreamUser items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppStreamUserWithName(name string) (*AWSAppStreamUser, error) { +func (t *Template) GetAWSAppStreamUserWithName(name string) (*resources.AWSAppStreamUser, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppStreamUser: + case *resources.AWSAppStreamUser: return resource, nil } } @@ -1291,11 +1292,11 @@ func (t *Template) GetAWSAppStreamUserWithName(name string) (*AWSAppStreamUser, } // GetAllAWSAppSyncApiKeyResources retrieves all AWSAppSyncApiKey items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppSyncApiKeyResources() map[string]*AWSAppSyncApiKey { - results := map[string]*AWSAppSyncApiKey{} +func (t *Template) GetAllAWSAppSyncApiKeyResources() map[string]*resources.AWSAppSyncApiKey { + results := map[string]*resources.AWSAppSyncApiKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppSyncApiKey: + case *resources.AWSAppSyncApiKey: results[name] = resource } } @@ -1304,10 +1305,10 @@ func (t *Template) GetAllAWSAppSyncApiKeyResources() map[string]*AWSAppSyncApiKe // GetAWSAppSyncApiKeyWithName retrieves all AWSAppSyncApiKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppSyncApiKeyWithName(name string) (*AWSAppSyncApiKey, error) { +func (t *Template) GetAWSAppSyncApiKeyWithName(name string) (*resources.AWSAppSyncApiKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppSyncApiKey: + case *resources.AWSAppSyncApiKey: return resource, nil } } @@ -1315,11 +1316,11 @@ func (t *Template) GetAWSAppSyncApiKeyWithName(name string) (*AWSAppSyncApiKey, } // GetAllAWSAppSyncDataSourceResources retrieves all AWSAppSyncDataSource items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppSyncDataSourceResources() map[string]*AWSAppSyncDataSource { - results := map[string]*AWSAppSyncDataSource{} +func (t *Template) GetAllAWSAppSyncDataSourceResources() map[string]*resources.AWSAppSyncDataSource { + results := map[string]*resources.AWSAppSyncDataSource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppSyncDataSource: + case *resources.AWSAppSyncDataSource: results[name] = resource } } @@ -1328,10 +1329,10 @@ func (t *Template) GetAllAWSAppSyncDataSourceResources() map[string]*AWSAppSyncD // GetAWSAppSyncDataSourceWithName retrieves all AWSAppSyncDataSource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppSyncDataSourceWithName(name string) (*AWSAppSyncDataSource, error) { +func (t *Template) GetAWSAppSyncDataSourceWithName(name string) (*resources.AWSAppSyncDataSource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppSyncDataSource: + case *resources.AWSAppSyncDataSource: return resource, nil } } @@ -1339,11 +1340,11 @@ func (t *Template) GetAWSAppSyncDataSourceWithName(name string) (*AWSAppSyncData } // GetAllAWSAppSyncFunctionConfigurationResources retrieves all AWSAppSyncFunctionConfiguration items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppSyncFunctionConfigurationResources() map[string]*AWSAppSyncFunctionConfiguration { - results := map[string]*AWSAppSyncFunctionConfiguration{} +func (t *Template) GetAllAWSAppSyncFunctionConfigurationResources() map[string]*resources.AWSAppSyncFunctionConfiguration { + results := map[string]*resources.AWSAppSyncFunctionConfiguration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppSyncFunctionConfiguration: + case *resources.AWSAppSyncFunctionConfiguration: results[name] = resource } } @@ -1352,10 +1353,10 @@ func (t *Template) GetAllAWSAppSyncFunctionConfigurationResources() map[string]* // GetAWSAppSyncFunctionConfigurationWithName retrieves all AWSAppSyncFunctionConfiguration items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppSyncFunctionConfigurationWithName(name string) (*AWSAppSyncFunctionConfiguration, error) { +func (t *Template) GetAWSAppSyncFunctionConfigurationWithName(name string) (*resources.AWSAppSyncFunctionConfiguration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppSyncFunctionConfiguration: + case *resources.AWSAppSyncFunctionConfiguration: return resource, nil } } @@ -1363,11 +1364,11 @@ func (t *Template) GetAWSAppSyncFunctionConfigurationWithName(name string) (*AWS } // GetAllAWSAppSyncGraphQLApiResources retrieves all AWSAppSyncGraphQLApi items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppSyncGraphQLApiResources() map[string]*AWSAppSyncGraphQLApi { - results := map[string]*AWSAppSyncGraphQLApi{} +func (t *Template) GetAllAWSAppSyncGraphQLApiResources() map[string]*resources.AWSAppSyncGraphQLApi { + results := map[string]*resources.AWSAppSyncGraphQLApi{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppSyncGraphQLApi: + case *resources.AWSAppSyncGraphQLApi: results[name] = resource } } @@ -1376,10 +1377,10 @@ func (t *Template) GetAllAWSAppSyncGraphQLApiResources() map[string]*AWSAppSyncG // GetAWSAppSyncGraphQLApiWithName retrieves all AWSAppSyncGraphQLApi items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppSyncGraphQLApiWithName(name string) (*AWSAppSyncGraphQLApi, error) { +func (t *Template) GetAWSAppSyncGraphQLApiWithName(name string) (*resources.AWSAppSyncGraphQLApi, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppSyncGraphQLApi: + case *resources.AWSAppSyncGraphQLApi: return resource, nil } } @@ -1387,11 +1388,11 @@ func (t *Template) GetAWSAppSyncGraphQLApiWithName(name string) (*AWSAppSyncGrap } // GetAllAWSAppSyncGraphQLSchemaResources retrieves all AWSAppSyncGraphQLSchema items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppSyncGraphQLSchemaResources() map[string]*AWSAppSyncGraphQLSchema { - results := map[string]*AWSAppSyncGraphQLSchema{} +func (t *Template) GetAllAWSAppSyncGraphQLSchemaResources() map[string]*resources.AWSAppSyncGraphQLSchema { + results := map[string]*resources.AWSAppSyncGraphQLSchema{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppSyncGraphQLSchema: + case *resources.AWSAppSyncGraphQLSchema: results[name] = resource } } @@ -1400,10 +1401,10 @@ func (t *Template) GetAllAWSAppSyncGraphQLSchemaResources() map[string]*AWSAppSy // GetAWSAppSyncGraphQLSchemaWithName retrieves all AWSAppSyncGraphQLSchema items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppSyncGraphQLSchemaWithName(name string) (*AWSAppSyncGraphQLSchema, error) { +func (t *Template) GetAWSAppSyncGraphQLSchemaWithName(name string) (*resources.AWSAppSyncGraphQLSchema, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppSyncGraphQLSchema: + case *resources.AWSAppSyncGraphQLSchema: return resource, nil } } @@ -1411,11 +1412,11 @@ func (t *Template) GetAWSAppSyncGraphQLSchemaWithName(name string) (*AWSAppSyncG } // GetAllAWSAppSyncResolverResources retrieves all AWSAppSyncResolver items from an AWS CloudFormation template -func (t *Template) GetAllAWSAppSyncResolverResources() map[string]*AWSAppSyncResolver { - results := map[string]*AWSAppSyncResolver{} +func (t *Template) GetAllAWSAppSyncResolverResources() map[string]*resources.AWSAppSyncResolver { + results := map[string]*resources.AWSAppSyncResolver{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAppSyncResolver: + case *resources.AWSAppSyncResolver: results[name] = resource } } @@ -1424,10 +1425,10 @@ func (t *Template) GetAllAWSAppSyncResolverResources() map[string]*AWSAppSyncRes // GetAWSAppSyncResolverWithName retrieves all AWSAppSyncResolver items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAppSyncResolverWithName(name string) (*AWSAppSyncResolver, error) { +func (t *Template) GetAWSAppSyncResolverWithName(name string) (*resources.AWSAppSyncResolver, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAppSyncResolver: + case *resources.AWSAppSyncResolver: return resource, nil } } @@ -1435,11 +1436,11 @@ func (t *Template) GetAWSAppSyncResolverWithName(name string) (*AWSAppSyncResolv } // GetAllAWSApplicationAutoScalingScalableTargetResources retrieves all AWSApplicationAutoScalingScalableTarget items from an AWS CloudFormation template -func (t *Template) GetAllAWSApplicationAutoScalingScalableTargetResources() map[string]*AWSApplicationAutoScalingScalableTarget { - results := map[string]*AWSApplicationAutoScalingScalableTarget{} +func (t *Template) GetAllAWSApplicationAutoScalingScalableTargetResources() map[string]*resources.AWSApplicationAutoScalingScalableTarget { + results := map[string]*resources.AWSApplicationAutoScalingScalableTarget{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApplicationAutoScalingScalableTarget: + case *resources.AWSApplicationAutoScalingScalableTarget: results[name] = resource } } @@ -1448,10 +1449,10 @@ func (t *Template) GetAllAWSApplicationAutoScalingScalableTargetResources() map[ // GetAWSApplicationAutoScalingScalableTargetWithName retrieves all AWSApplicationAutoScalingScalableTarget items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApplicationAutoScalingScalableTargetWithName(name string) (*AWSApplicationAutoScalingScalableTarget, error) { +func (t *Template) GetAWSApplicationAutoScalingScalableTargetWithName(name string) (*resources.AWSApplicationAutoScalingScalableTarget, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApplicationAutoScalingScalableTarget: + case *resources.AWSApplicationAutoScalingScalableTarget: return resource, nil } } @@ -1459,11 +1460,11 @@ func (t *Template) GetAWSApplicationAutoScalingScalableTargetWithName(name strin } // GetAllAWSApplicationAutoScalingScalingPolicyResources retrieves all AWSApplicationAutoScalingScalingPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSApplicationAutoScalingScalingPolicyResources() map[string]*AWSApplicationAutoScalingScalingPolicy { - results := map[string]*AWSApplicationAutoScalingScalingPolicy{} +func (t *Template) GetAllAWSApplicationAutoScalingScalingPolicyResources() map[string]*resources.AWSApplicationAutoScalingScalingPolicy { + results := map[string]*resources.AWSApplicationAutoScalingScalingPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSApplicationAutoScalingScalingPolicy: + case *resources.AWSApplicationAutoScalingScalingPolicy: results[name] = resource } } @@ -1472,10 +1473,10 @@ func (t *Template) GetAllAWSApplicationAutoScalingScalingPolicyResources() map[s // GetAWSApplicationAutoScalingScalingPolicyWithName retrieves all AWSApplicationAutoScalingScalingPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSApplicationAutoScalingScalingPolicyWithName(name string) (*AWSApplicationAutoScalingScalingPolicy, error) { +func (t *Template) GetAWSApplicationAutoScalingScalingPolicyWithName(name string) (*resources.AWSApplicationAutoScalingScalingPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSApplicationAutoScalingScalingPolicy: + case *resources.AWSApplicationAutoScalingScalingPolicy: return resource, nil } } @@ -1483,11 +1484,11 @@ func (t *Template) GetAWSApplicationAutoScalingScalingPolicyWithName(name string } // GetAllAWSAthenaNamedQueryResources retrieves all AWSAthenaNamedQuery items from an AWS CloudFormation template -func (t *Template) GetAllAWSAthenaNamedQueryResources() map[string]*AWSAthenaNamedQuery { - results := map[string]*AWSAthenaNamedQuery{} +func (t *Template) GetAllAWSAthenaNamedQueryResources() map[string]*resources.AWSAthenaNamedQuery { + results := map[string]*resources.AWSAthenaNamedQuery{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAthenaNamedQuery: + case *resources.AWSAthenaNamedQuery: results[name] = resource } } @@ -1496,10 +1497,10 @@ func (t *Template) GetAllAWSAthenaNamedQueryResources() map[string]*AWSAthenaNam // GetAWSAthenaNamedQueryWithName retrieves all AWSAthenaNamedQuery items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAthenaNamedQueryWithName(name string) (*AWSAthenaNamedQuery, error) { +func (t *Template) GetAWSAthenaNamedQueryWithName(name string) (*resources.AWSAthenaNamedQuery, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAthenaNamedQuery: + case *resources.AWSAthenaNamedQuery: return resource, nil } } @@ -1507,11 +1508,11 @@ func (t *Template) GetAWSAthenaNamedQueryWithName(name string) (*AWSAthenaNamedQ } // GetAllAWSAutoScalingAutoScalingGroupResources retrieves all AWSAutoScalingAutoScalingGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSAutoScalingAutoScalingGroupResources() map[string]*AWSAutoScalingAutoScalingGroup { - results := map[string]*AWSAutoScalingAutoScalingGroup{} +func (t *Template) GetAllAWSAutoScalingAutoScalingGroupResources() map[string]*resources.AWSAutoScalingAutoScalingGroup { + results := map[string]*resources.AWSAutoScalingAutoScalingGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAutoScalingAutoScalingGroup: + case *resources.AWSAutoScalingAutoScalingGroup: results[name] = resource } } @@ -1520,10 +1521,10 @@ func (t *Template) GetAllAWSAutoScalingAutoScalingGroupResources() map[string]*A // GetAWSAutoScalingAutoScalingGroupWithName retrieves all AWSAutoScalingAutoScalingGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAutoScalingAutoScalingGroupWithName(name string) (*AWSAutoScalingAutoScalingGroup, error) { +func (t *Template) GetAWSAutoScalingAutoScalingGroupWithName(name string) (*resources.AWSAutoScalingAutoScalingGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAutoScalingAutoScalingGroup: + case *resources.AWSAutoScalingAutoScalingGroup: return resource, nil } } @@ -1531,11 +1532,11 @@ func (t *Template) GetAWSAutoScalingAutoScalingGroupWithName(name string) (*AWSA } // GetAllAWSAutoScalingLaunchConfigurationResources retrieves all AWSAutoScalingLaunchConfiguration items from an AWS CloudFormation template -func (t *Template) GetAllAWSAutoScalingLaunchConfigurationResources() map[string]*AWSAutoScalingLaunchConfiguration { - results := map[string]*AWSAutoScalingLaunchConfiguration{} +func (t *Template) GetAllAWSAutoScalingLaunchConfigurationResources() map[string]*resources.AWSAutoScalingLaunchConfiguration { + results := map[string]*resources.AWSAutoScalingLaunchConfiguration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAutoScalingLaunchConfiguration: + case *resources.AWSAutoScalingLaunchConfiguration: results[name] = resource } } @@ -1544,10 +1545,10 @@ func (t *Template) GetAllAWSAutoScalingLaunchConfigurationResources() map[string // GetAWSAutoScalingLaunchConfigurationWithName retrieves all AWSAutoScalingLaunchConfiguration items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAutoScalingLaunchConfigurationWithName(name string) (*AWSAutoScalingLaunchConfiguration, error) { +func (t *Template) GetAWSAutoScalingLaunchConfigurationWithName(name string) (*resources.AWSAutoScalingLaunchConfiguration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAutoScalingLaunchConfiguration: + case *resources.AWSAutoScalingLaunchConfiguration: return resource, nil } } @@ -1555,11 +1556,11 @@ func (t *Template) GetAWSAutoScalingLaunchConfigurationWithName(name string) (*A } // GetAllAWSAutoScalingLifecycleHookResources retrieves all AWSAutoScalingLifecycleHook items from an AWS CloudFormation template -func (t *Template) GetAllAWSAutoScalingLifecycleHookResources() map[string]*AWSAutoScalingLifecycleHook { - results := map[string]*AWSAutoScalingLifecycleHook{} +func (t *Template) GetAllAWSAutoScalingLifecycleHookResources() map[string]*resources.AWSAutoScalingLifecycleHook { + results := map[string]*resources.AWSAutoScalingLifecycleHook{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAutoScalingLifecycleHook: + case *resources.AWSAutoScalingLifecycleHook: results[name] = resource } } @@ -1568,10 +1569,10 @@ func (t *Template) GetAllAWSAutoScalingLifecycleHookResources() map[string]*AWSA // GetAWSAutoScalingLifecycleHookWithName retrieves all AWSAutoScalingLifecycleHook items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAutoScalingLifecycleHookWithName(name string) (*AWSAutoScalingLifecycleHook, error) { +func (t *Template) GetAWSAutoScalingLifecycleHookWithName(name string) (*resources.AWSAutoScalingLifecycleHook, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAutoScalingLifecycleHook: + case *resources.AWSAutoScalingLifecycleHook: return resource, nil } } @@ -1579,11 +1580,11 @@ func (t *Template) GetAWSAutoScalingLifecycleHookWithName(name string) (*AWSAuto } // GetAllAWSAutoScalingScalingPolicyResources retrieves all AWSAutoScalingScalingPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSAutoScalingScalingPolicyResources() map[string]*AWSAutoScalingScalingPolicy { - results := map[string]*AWSAutoScalingScalingPolicy{} +func (t *Template) GetAllAWSAutoScalingScalingPolicyResources() map[string]*resources.AWSAutoScalingScalingPolicy { + results := map[string]*resources.AWSAutoScalingScalingPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAutoScalingScalingPolicy: + case *resources.AWSAutoScalingScalingPolicy: results[name] = resource } } @@ -1592,10 +1593,10 @@ func (t *Template) GetAllAWSAutoScalingScalingPolicyResources() map[string]*AWSA // GetAWSAutoScalingScalingPolicyWithName retrieves all AWSAutoScalingScalingPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAutoScalingScalingPolicyWithName(name string) (*AWSAutoScalingScalingPolicy, error) { +func (t *Template) GetAWSAutoScalingScalingPolicyWithName(name string) (*resources.AWSAutoScalingScalingPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAutoScalingScalingPolicy: + case *resources.AWSAutoScalingScalingPolicy: return resource, nil } } @@ -1603,11 +1604,11 @@ func (t *Template) GetAWSAutoScalingScalingPolicyWithName(name string) (*AWSAuto } // GetAllAWSAutoScalingScheduledActionResources retrieves all AWSAutoScalingScheduledAction items from an AWS CloudFormation template -func (t *Template) GetAllAWSAutoScalingScheduledActionResources() map[string]*AWSAutoScalingScheduledAction { - results := map[string]*AWSAutoScalingScheduledAction{} +func (t *Template) GetAllAWSAutoScalingScheduledActionResources() map[string]*resources.AWSAutoScalingScheduledAction { + results := map[string]*resources.AWSAutoScalingScheduledAction{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAutoScalingScheduledAction: + case *resources.AWSAutoScalingScheduledAction: results[name] = resource } } @@ -1616,10 +1617,10 @@ func (t *Template) GetAllAWSAutoScalingScheduledActionResources() map[string]*AW // GetAWSAutoScalingScheduledActionWithName retrieves all AWSAutoScalingScheduledAction items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAutoScalingScheduledActionWithName(name string) (*AWSAutoScalingScheduledAction, error) { +func (t *Template) GetAWSAutoScalingScheduledActionWithName(name string) (*resources.AWSAutoScalingScheduledAction, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAutoScalingScheduledAction: + case *resources.AWSAutoScalingScheduledAction: return resource, nil } } @@ -1627,11 +1628,11 @@ func (t *Template) GetAWSAutoScalingScheduledActionWithName(name string) (*AWSAu } // GetAllAWSAutoScalingPlansScalingPlanResources retrieves all AWSAutoScalingPlansScalingPlan items from an AWS CloudFormation template -func (t *Template) GetAllAWSAutoScalingPlansScalingPlanResources() map[string]*AWSAutoScalingPlansScalingPlan { - results := map[string]*AWSAutoScalingPlansScalingPlan{} +func (t *Template) GetAllAWSAutoScalingPlansScalingPlanResources() map[string]*resources.AWSAutoScalingPlansScalingPlan { + results := map[string]*resources.AWSAutoScalingPlansScalingPlan{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSAutoScalingPlansScalingPlan: + case *resources.AWSAutoScalingPlansScalingPlan: results[name] = resource } } @@ -1640,10 +1641,10 @@ func (t *Template) GetAllAWSAutoScalingPlansScalingPlanResources() map[string]*A // GetAWSAutoScalingPlansScalingPlanWithName retrieves all AWSAutoScalingPlansScalingPlan items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSAutoScalingPlansScalingPlanWithName(name string) (*AWSAutoScalingPlansScalingPlan, error) { +func (t *Template) GetAWSAutoScalingPlansScalingPlanWithName(name string) (*resources.AWSAutoScalingPlansScalingPlan, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSAutoScalingPlansScalingPlan: + case *resources.AWSAutoScalingPlansScalingPlan: return resource, nil } } @@ -1651,11 +1652,11 @@ func (t *Template) GetAWSAutoScalingPlansScalingPlanWithName(name string) (*AWSA } // GetAllAWSBatchComputeEnvironmentResources retrieves all AWSBatchComputeEnvironment items from an AWS CloudFormation template -func (t *Template) GetAllAWSBatchComputeEnvironmentResources() map[string]*AWSBatchComputeEnvironment { - results := map[string]*AWSBatchComputeEnvironment{} +func (t *Template) GetAllAWSBatchComputeEnvironmentResources() map[string]*resources.AWSBatchComputeEnvironment { + results := map[string]*resources.AWSBatchComputeEnvironment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSBatchComputeEnvironment: + case *resources.AWSBatchComputeEnvironment: results[name] = resource } } @@ -1664,10 +1665,10 @@ func (t *Template) GetAllAWSBatchComputeEnvironmentResources() map[string]*AWSBa // GetAWSBatchComputeEnvironmentWithName retrieves all AWSBatchComputeEnvironment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSBatchComputeEnvironmentWithName(name string) (*AWSBatchComputeEnvironment, error) { +func (t *Template) GetAWSBatchComputeEnvironmentWithName(name string) (*resources.AWSBatchComputeEnvironment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSBatchComputeEnvironment: + case *resources.AWSBatchComputeEnvironment: return resource, nil } } @@ -1675,11 +1676,11 @@ func (t *Template) GetAWSBatchComputeEnvironmentWithName(name string) (*AWSBatch } // GetAllAWSBatchJobDefinitionResources retrieves all AWSBatchJobDefinition items from an AWS CloudFormation template -func (t *Template) GetAllAWSBatchJobDefinitionResources() map[string]*AWSBatchJobDefinition { - results := map[string]*AWSBatchJobDefinition{} +func (t *Template) GetAllAWSBatchJobDefinitionResources() map[string]*resources.AWSBatchJobDefinition { + results := map[string]*resources.AWSBatchJobDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSBatchJobDefinition: + case *resources.AWSBatchJobDefinition: results[name] = resource } } @@ -1688,10 +1689,10 @@ func (t *Template) GetAllAWSBatchJobDefinitionResources() map[string]*AWSBatchJo // GetAWSBatchJobDefinitionWithName retrieves all AWSBatchJobDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSBatchJobDefinitionWithName(name string) (*AWSBatchJobDefinition, error) { +func (t *Template) GetAWSBatchJobDefinitionWithName(name string) (*resources.AWSBatchJobDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSBatchJobDefinition: + case *resources.AWSBatchJobDefinition: return resource, nil } } @@ -1699,11 +1700,11 @@ func (t *Template) GetAWSBatchJobDefinitionWithName(name string) (*AWSBatchJobDe } // GetAllAWSBatchJobQueueResources retrieves all AWSBatchJobQueue items from an AWS CloudFormation template -func (t *Template) GetAllAWSBatchJobQueueResources() map[string]*AWSBatchJobQueue { - results := map[string]*AWSBatchJobQueue{} +func (t *Template) GetAllAWSBatchJobQueueResources() map[string]*resources.AWSBatchJobQueue { + results := map[string]*resources.AWSBatchJobQueue{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSBatchJobQueue: + case *resources.AWSBatchJobQueue: results[name] = resource } } @@ -1712,10 +1713,10 @@ func (t *Template) GetAllAWSBatchJobQueueResources() map[string]*AWSBatchJobQueu // GetAWSBatchJobQueueWithName retrieves all AWSBatchJobQueue items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSBatchJobQueueWithName(name string) (*AWSBatchJobQueue, error) { +func (t *Template) GetAWSBatchJobQueueWithName(name string) (*resources.AWSBatchJobQueue, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSBatchJobQueue: + case *resources.AWSBatchJobQueue: return resource, nil } } @@ -1723,11 +1724,11 @@ func (t *Template) GetAWSBatchJobQueueWithName(name string) (*AWSBatchJobQueue, } // GetAllAWSBudgetsBudgetResources retrieves all AWSBudgetsBudget items from an AWS CloudFormation template -func (t *Template) GetAllAWSBudgetsBudgetResources() map[string]*AWSBudgetsBudget { - results := map[string]*AWSBudgetsBudget{} +func (t *Template) GetAllAWSBudgetsBudgetResources() map[string]*resources.AWSBudgetsBudget { + results := map[string]*resources.AWSBudgetsBudget{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSBudgetsBudget: + case *resources.AWSBudgetsBudget: results[name] = resource } } @@ -1736,10 +1737,10 @@ func (t *Template) GetAllAWSBudgetsBudgetResources() map[string]*AWSBudgetsBudge // GetAWSBudgetsBudgetWithName retrieves all AWSBudgetsBudget items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSBudgetsBudgetWithName(name string) (*AWSBudgetsBudget, error) { +func (t *Template) GetAWSBudgetsBudgetWithName(name string) (*resources.AWSBudgetsBudget, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSBudgetsBudget: + case *resources.AWSBudgetsBudget: return resource, nil } } @@ -1747,11 +1748,11 @@ func (t *Template) GetAWSBudgetsBudgetWithName(name string) (*AWSBudgetsBudget, } // GetAllAWSCertificateManagerCertificateResources retrieves all AWSCertificateManagerCertificate items from an AWS CloudFormation template -func (t *Template) GetAllAWSCertificateManagerCertificateResources() map[string]*AWSCertificateManagerCertificate { - results := map[string]*AWSCertificateManagerCertificate{} +func (t *Template) GetAllAWSCertificateManagerCertificateResources() map[string]*resources.AWSCertificateManagerCertificate { + results := map[string]*resources.AWSCertificateManagerCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCertificateManagerCertificate: + case *resources.AWSCertificateManagerCertificate: results[name] = resource } } @@ -1760,10 +1761,10 @@ func (t *Template) GetAllAWSCertificateManagerCertificateResources() map[string] // GetAWSCertificateManagerCertificateWithName retrieves all AWSCertificateManagerCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCertificateManagerCertificateWithName(name string) (*AWSCertificateManagerCertificate, error) { +func (t *Template) GetAWSCertificateManagerCertificateWithName(name string) (*resources.AWSCertificateManagerCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCertificateManagerCertificate: + case *resources.AWSCertificateManagerCertificate: return resource, nil } } @@ -1771,11 +1772,11 @@ func (t *Template) GetAWSCertificateManagerCertificateWithName(name string) (*AW } // GetAllAWSCloud9EnvironmentEC2Resources retrieves all AWSCloud9EnvironmentEC2 items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloud9EnvironmentEC2Resources() map[string]*AWSCloud9EnvironmentEC2 { - results := map[string]*AWSCloud9EnvironmentEC2{} +func (t *Template) GetAllAWSCloud9EnvironmentEC2Resources() map[string]*resources.AWSCloud9EnvironmentEC2 { + results := map[string]*resources.AWSCloud9EnvironmentEC2{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloud9EnvironmentEC2: + case *resources.AWSCloud9EnvironmentEC2: results[name] = resource } } @@ -1784,10 +1785,10 @@ func (t *Template) GetAllAWSCloud9EnvironmentEC2Resources() map[string]*AWSCloud // GetAWSCloud9EnvironmentEC2WithName retrieves all AWSCloud9EnvironmentEC2 items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloud9EnvironmentEC2WithName(name string) (*AWSCloud9EnvironmentEC2, error) { +func (t *Template) GetAWSCloud9EnvironmentEC2WithName(name string) (*resources.AWSCloud9EnvironmentEC2, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloud9EnvironmentEC2: + case *resources.AWSCloud9EnvironmentEC2: return resource, nil } } @@ -1795,11 +1796,11 @@ func (t *Template) GetAWSCloud9EnvironmentEC2WithName(name string) (*AWSCloud9En } // GetAllAWSCloudFormationCustomResourceResources retrieves all AWSCloudFormationCustomResource items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFormationCustomResourceResources() map[string]*AWSCloudFormationCustomResource { - results := map[string]*AWSCloudFormationCustomResource{} +func (t *Template) GetAllAWSCloudFormationCustomResourceResources() map[string]*resources.AWSCloudFormationCustomResource { + results := map[string]*resources.AWSCloudFormationCustomResource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFormationCustomResource: + case *resources.AWSCloudFormationCustomResource: results[name] = resource } } @@ -1808,10 +1809,10 @@ func (t *Template) GetAllAWSCloudFormationCustomResourceResources() map[string]* // GetAWSCloudFormationCustomResourceWithName retrieves all AWSCloudFormationCustomResource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFormationCustomResourceWithName(name string) (*AWSCloudFormationCustomResource, error) { +func (t *Template) GetAWSCloudFormationCustomResourceWithName(name string) (*resources.AWSCloudFormationCustomResource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFormationCustomResource: + case *resources.AWSCloudFormationCustomResource: return resource, nil } } @@ -1819,11 +1820,11 @@ func (t *Template) GetAWSCloudFormationCustomResourceWithName(name string) (*AWS } // GetAllAWSCloudFormationMacroResources retrieves all AWSCloudFormationMacro items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFormationMacroResources() map[string]*AWSCloudFormationMacro { - results := map[string]*AWSCloudFormationMacro{} +func (t *Template) GetAllAWSCloudFormationMacroResources() map[string]*resources.AWSCloudFormationMacro { + results := map[string]*resources.AWSCloudFormationMacro{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFormationMacro: + case *resources.AWSCloudFormationMacro: results[name] = resource } } @@ -1832,10 +1833,10 @@ func (t *Template) GetAllAWSCloudFormationMacroResources() map[string]*AWSCloudF // GetAWSCloudFormationMacroWithName retrieves all AWSCloudFormationMacro items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFormationMacroWithName(name string) (*AWSCloudFormationMacro, error) { +func (t *Template) GetAWSCloudFormationMacroWithName(name string) (*resources.AWSCloudFormationMacro, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFormationMacro: + case *resources.AWSCloudFormationMacro: return resource, nil } } @@ -1843,11 +1844,11 @@ func (t *Template) GetAWSCloudFormationMacroWithName(name string) (*AWSCloudForm } // GetAllAWSCloudFormationStackResources retrieves all AWSCloudFormationStack items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFormationStackResources() map[string]*AWSCloudFormationStack { - results := map[string]*AWSCloudFormationStack{} +func (t *Template) GetAllAWSCloudFormationStackResources() map[string]*resources.AWSCloudFormationStack { + results := map[string]*resources.AWSCloudFormationStack{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFormationStack: + case *resources.AWSCloudFormationStack: results[name] = resource } } @@ -1856,10 +1857,10 @@ func (t *Template) GetAllAWSCloudFormationStackResources() map[string]*AWSCloudF // GetAWSCloudFormationStackWithName retrieves all AWSCloudFormationStack items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFormationStackWithName(name string) (*AWSCloudFormationStack, error) { +func (t *Template) GetAWSCloudFormationStackWithName(name string) (*resources.AWSCloudFormationStack, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFormationStack: + case *resources.AWSCloudFormationStack: return resource, nil } } @@ -1867,11 +1868,11 @@ func (t *Template) GetAWSCloudFormationStackWithName(name string) (*AWSCloudForm } // GetAllAWSCloudFormationWaitConditionResources retrieves all AWSCloudFormationWaitCondition items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFormationWaitConditionResources() map[string]*AWSCloudFormationWaitCondition { - results := map[string]*AWSCloudFormationWaitCondition{} +func (t *Template) GetAllAWSCloudFormationWaitConditionResources() map[string]*resources.AWSCloudFormationWaitCondition { + results := map[string]*resources.AWSCloudFormationWaitCondition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFormationWaitCondition: + case *resources.AWSCloudFormationWaitCondition: results[name] = resource } } @@ -1880,10 +1881,10 @@ func (t *Template) GetAllAWSCloudFormationWaitConditionResources() map[string]*A // GetAWSCloudFormationWaitConditionWithName retrieves all AWSCloudFormationWaitCondition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFormationWaitConditionWithName(name string) (*AWSCloudFormationWaitCondition, error) { +func (t *Template) GetAWSCloudFormationWaitConditionWithName(name string) (*resources.AWSCloudFormationWaitCondition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFormationWaitCondition: + case *resources.AWSCloudFormationWaitCondition: return resource, nil } } @@ -1891,11 +1892,11 @@ func (t *Template) GetAWSCloudFormationWaitConditionWithName(name string) (*AWSC } // GetAllAWSCloudFormationWaitConditionHandleResources retrieves all AWSCloudFormationWaitConditionHandle items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFormationWaitConditionHandleResources() map[string]*AWSCloudFormationWaitConditionHandle { - results := map[string]*AWSCloudFormationWaitConditionHandle{} +func (t *Template) GetAllAWSCloudFormationWaitConditionHandleResources() map[string]*resources.AWSCloudFormationWaitConditionHandle { + results := map[string]*resources.AWSCloudFormationWaitConditionHandle{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFormationWaitConditionHandle: + case *resources.AWSCloudFormationWaitConditionHandle: results[name] = resource } } @@ -1904,10 +1905,10 @@ func (t *Template) GetAllAWSCloudFormationWaitConditionHandleResources() map[str // GetAWSCloudFormationWaitConditionHandleWithName retrieves all AWSCloudFormationWaitConditionHandle items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFormationWaitConditionHandleWithName(name string) (*AWSCloudFormationWaitConditionHandle, error) { +func (t *Template) GetAWSCloudFormationWaitConditionHandleWithName(name string) (*resources.AWSCloudFormationWaitConditionHandle, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFormationWaitConditionHandle: + case *resources.AWSCloudFormationWaitConditionHandle: return resource, nil } } @@ -1915,11 +1916,11 @@ func (t *Template) GetAWSCloudFormationWaitConditionHandleWithName(name string) } // GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources retrieves all AWSCloudFrontCloudFrontOriginAccessIdentity items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources() map[string]*AWSCloudFrontCloudFrontOriginAccessIdentity { - results := map[string]*AWSCloudFrontCloudFrontOriginAccessIdentity{} +func (t *Template) GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources() map[string]*resources.AWSCloudFrontCloudFrontOriginAccessIdentity { + results := map[string]*resources.AWSCloudFrontCloudFrontOriginAccessIdentity{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFrontCloudFrontOriginAccessIdentity: + case *resources.AWSCloudFrontCloudFrontOriginAccessIdentity: results[name] = resource } } @@ -1928,10 +1929,10 @@ func (t *Template) GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources() // GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName retrieves all AWSCloudFrontCloudFrontOriginAccessIdentity items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName(name string) (*AWSCloudFrontCloudFrontOriginAccessIdentity, error) { +func (t *Template) GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName(name string) (*resources.AWSCloudFrontCloudFrontOriginAccessIdentity, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFrontCloudFrontOriginAccessIdentity: + case *resources.AWSCloudFrontCloudFrontOriginAccessIdentity: return resource, nil } } @@ -1939,11 +1940,11 @@ func (t *Template) GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName(name s } // GetAllAWSCloudFrontDistributionResources retrieves all AWSCloudFrontDistribution items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFrontDistributionResources() map[string]*AWSCloudFrontDistribution { - results := map[string]*AWSCloudFrontDistribution{} +func (t *Template) GetAllAWSCloudFrontDistributionResources() map[string]*resources.AWSCloudFrontDistribution { + results := map[string]*resources.AWSCloudFrontDistribution{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFrontDistribution: + case *resources.AWSCloudFrontDistribution: results[name] = resource } } @@ -1952,10 +1953,10 @@ func (t *Template) GetAllAWSCloudFrontDistributionResources() map[string]*AWSClo // GetAWSCloudFrontDistributionWithName retrieves all AWSCloudFrontDistribution items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFrontDistributionWithName(name string) (*AWSCloudFrontDistribution, error) { +func (t *Template) GetAWSCloudFrontDistributionWithName(name string) (*resources.AWSCloudFrontDistribution, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFrontDistribution: + case *resources.AWSCloudFrontDistribution: return resource, nil } } @@ -1963,11 +1964,11 @@ func (t *Template) GetAWSCloudFrontDistributionWithName(name string) (*AWSCloudF } // GetAllAWSCloudFrontStreamingDistributionResources retrieves all AWSCloudFrontStreamingDistribution items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudFrontStreamingDistributionResources() map[string]*AWSCloudFrontStreamingDistribution { - results := map[string]*AWSCloudFrontStreamingDistribution{} +func (t *Template) GetAllAWSCloudFrontStreamingDistributionResources() map[string]*resources.AWSCloudFrontStreamingDistribution { + results := map[string]*resources.AWSCloudFrontStreamingDistribution{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudFrontStreamingDistribution: + case *resources.AWSCloudFrontStreamingDistribution: results[name] = resource } } @@ -1976,10 +1977,10 @@ func (t *Template) GetAllAWSCloudFrontStreamingDistributionResources() map[strin // GetAWSCloudFrontStreamingDistributionWithName retrieves all AWSCloudFrontStreamingDistribution items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudFrontStreamingDistributionWithName(name string) (*AWSCloudFrontStreamingDistribution, error) { +func (t *Template) GetAWSCloudFrontStreamingDistributionWithName(name string) (*resources.AWSCloudFrontStreamingDistribution, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudFrontStreamingDistribution: + case *resources.AWSCloudFrontStreamingDistribution: return resource, nil } } @@ -1987,11 +1988,11 @@ func (t *Template) GetAWSCloudFrontStreamingDistributionWithName(name string) (* } // GetAllAWSCloudTrailTrailResources retrieves all AWSCloudTrailTrail items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudTrailTrailResources() map[string]*AWSCloudTrailTrail { - results := map[string]*AWSCloudTrailTrail{} +func (t *Template) GetAllAWSCloudTrailTrailResources() map[string]*resources.AWSCloudTrailTrail { + results := map[string]*resources.AWSCloudTrailTrail{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudTrailTrail: + case *resources.AWSCloudTrailTrail: results[name] = resource } } @@ -2000,10 +2001,10 @@ func (t *Template) GetAllAWSCloudTrailTrailResources() map[string]*AWSCloudTrail // GetAWSCloudTrailTrailWithName retrieves all AWSCloudTrailTrail items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudTrailTrailWithName(name string) (*AWSCloudTrailTrail, error) { +func (t *Template) GetAWSCloudTrailTrailWithName(name string) (*resources.AWSCloudTrailTrail, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudTrailTrail: + case *resources.AWSCloudTrailTrail: return resource, nil } } @@ -2011,11 +2012,11 @@ func (t *Template) GetAWSCloudTrailTrailWithName(name string) (*AWSCloudTrailTra } // GetAllAWSCloudWatchAlarmResources retrieves all AWSCloudWatchAlarm items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudWatchAlarmResources() map[string]*AWSCloudWatchAlarm { - results := map[string]*AWSCloudWatchAlarm{} +func (t *Template) GetAllAWSCloudWatchAlarmResources() map[string]*resources.AWSCloudWatchAlarm { + results := map[string]*resources.AWSCloudWatchAlarm{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudWatchAlarm: + case *resources.AWSCloudWatchAlarm: results[name] = resource } } @@ -2024,10 +2025,10 @@ func (t *Template) GetAllAWSCloudWatchAlarmResources() map[string]*AWSCloudWatch // GetAWSCloudWatchAlarmWithName retrieves all AWSCloudWatchAlarm items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudWatchAlarmWithName(name string) (*AWSCloudWatchAlarm, error) { +func (t *Template) GetAWSCloudWatchAlarmWithName(name string) (*resources.AWSCloudWatchAlarm, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudWatchAlarm: + case *resources.AWSCloudWatchAlarm: return resource, nil } } @@ -2035,11 +2036,11 @@ func (t *Template) GetAWSCloudWatchAlarmWithName(name string) (*AWSCloudWatchAla } // GetAllAWSCloudWatchDashboardResources retrieves all AWSCloudWatchDashboard items from an AWS CloudFormation template -func (t *Template) GetAllAWSCloudWatchDashboardResources() map[string]*AWSCloudWatchDashboard { - results := map[string]*AWSCloudWatchDashboard{} +func (t *Template) GetAllAWSCloudWatchDashboardResources() map[string]*resources.AWSCloudWatchDashboard { + results := map[string]*resources.AWSCloudWatchDashboard{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCloudWatchDashboard: + case *resources.AWSCloudWatchDashboard: results[name] = resource } } @@ -2048,10 +2049,10 @@ func (t *Template) GetAllAWSCloudWatchDashboardResources() map[string]*AWSCloudW // GetAWSCloudWatchDashboardWithName retrieves all AWSCloudWatchDashboard items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCloudWatchDashboardWithName(name string) (*AWSCloudWatchDashboard, error) { +func (t *Template) GetAWSCloudWatchDashboardWithName(name string) (*resources.AWSCloudWatchDashboard, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCloudWatchDashboard: + case *resources.AWSCloudWatchDashboard: return resource, nil } } @@ -2059,11 +2060,11 @@ func (t *Template) GetAWSCloudWatchDashboardWithName(name string) (*AWSCloudWatc } // GetAllAWSCodeBuildProjectResources retrieves all AWSCodeBuildProject items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodeBuildProjectResources() map[string]*AWSCodeBuildProject { - results := map[string]*AWSCodeBuildProject{} +func (t *Template) GetAllAWSCodeBuildProjectResources() map[string]*resources.AWSCodeBuildProject { + results := map[string]*resources.AWSCodeBuildProject{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodeBuildProject: + case *resources.AWSCodeBuildProject: results[name] = resource } } @@ -2072,10 +2073,10 @@ func (t *Template) GetAllAWSCodeBuildProjectResources() map[string]*AWSCodeBuild // GetAWSCodeBuildProjectWithName retrieves all AWSCodeBuildProject items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodeBuildProjectWithName(name string) (*AWSCodeBuildProject, error) { +func (t *Template) GetAWSCodeBuildProjectWithName(name string) (*resources.AWSCodeBuildProject, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodeBuildProject: + case *resources.AWSCodeBuildProject: return resource, nil } } @@ -2083,11 +2084,11 @@ func (t *Template) GetAWSCodeBuildProjectWithName(name string) (*AWSCodeBuildPro } // GetAllAWSCodeCommitRepositoryResources retrieves all AWSCodeCommitRepository items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodeCommitRepositoryResources() map[string]*AWSCodeCommitRepository { - results := map[string]*AWSCodeCommitRepository{} +func (t *Template) GetAllAWSCodeCommitRepositoryResources() map[string]*resources.AWSCodeCommitRepository { + results := map[string]*resources.AWSCodeCommitRepository{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodeCommitRepository: + case *resources.AWSCodeCommitRepository: results[name] = resource } } @@ -2096,10 +2097,10 @@ func (t *Template) GetAllAWSCodeCommitRepositoryResources() map[string]*AWSCodeC // GetAWSCodeCommitRepositoryWithName retrieves all AWSCodeCommitRepository items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodeCommitRepositoryWithName(name string) (*AWSCodeCommitRepository, error) { +func (t *Template) GetAWSCodeCommitRepositoryWithName(name string) (*resources.AWSCodeCommitRepository, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodeCommitRepository: + case *resources.AWSCodeCommitRepository: return resource, nil } } @@ -2107,11 +2108,11 @@ func (t *Template) GetAWSCodeCommitRepositoryWithName(name string) (*AWSCodeComm } // GetAllAWSCodeDeployApplicationResources retrieves all AWSCodeDeployApplication items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodeDeployApplicationResources() map[string]*AWSCodeDeployApplication { - results := map[string]*AWSCodeDeployApplication{} +func (t *Template) GetAllAWSCodeDeployApplicationResources() map[string]*resources.AWSCodeDeployApplication { + results := map[string]*resources.AWSCodeDeployApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodeDeployApplication: + case *resources.AWSCodeDeployApplication: results[name] = resource } } @@ -2120,10 +2121,10 @@ func (t *Template) GetAllAWSCodeDeployApplicationResources() map[string]*AWSCode // GetAWSCodeDeployApplicationWithName retrieves all AWSCodeDeployApplication items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodeDeployApplicationWithName(name string) (*AWSCodeDeployApplication, error) { +func (t *Template) GetAWSCodeDeployApplicationWithName(name string) (*resources.AWSCodeDeployApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodeDeployApplication: + case *resources.AWSCodeDeployApplication: return resource, nil } } @@ -2131,11 +2132,11 @@ func (t *Template) GetAWSCodeDeployApplicationWithName(name string) (*AWSCodeDep } // GetAllAWSCodeDeployDeploymentConfigResources retrieves all AWSCodeDeployDeploymentConfig items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodeDeployDeploymentConfigResources() map[string]*AWSCodeDeployDeploymentConfig { - results := map[string]*AWSCodeDeployDeploymentConfig{} +func (t *Template) GetAllAWSCodeDeployDeploymentConfigResources() map[string]*resources.AWSCodeDeployDeploymentConfig { + results := map[string]*resources.AWSCodeDeployDeploymentConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodeDeployDeploymentConfig: + case *resources.AWSCodeDeployDeploymentConfig: results[name] = resource } } @@ -2144,10 +2145,10 @@ func (t *Template) GetAllAWSCodeDeployDeploymentConfigResources() map[string]*AW // GetAWSCodeDeployDeploymentConfigWithName retrieves all AWSCodeDeployDeploymentConfig items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodeDeployDeploymentConfigWithName(name string) (*AWSCodeDeployDeploymentConfig, error) { +func (t *Template) GetAWSCodeDeployDeploymentConfigWithName(name string) (*resources.AWSCodeDeployDeploymentConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodeDeployDeploymentConfig: + case *resources.AWSCodeDeployDeploymentConfig: return resource, nil } } @@ -2155,11 +2156,11 @@ func (t *Template) GetAWSCodeDeployDeploymentConfigWithName(name string) (*AWSCo } // GetAllAWSCodeDeployDeploymentGroupResources retrieves all AWSCodeDeployDeploymentGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodeDeployDeploymentGroupResources() map[string]*AWSCodeDeployDeploymentGroup { - results := map[string]*AWSCodeDeployDeploymentGroup{} +func (t *Template) GetAllAWSCodeDeployDeploymentGroupResources() map[string]*resources.AWSCodeDeployDeploymentGroup { + results := map[string]*resources.AWSCodeDeployDeploymentGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodeDeployDeploymentGroup: + case *resources.AWSCodeDeployDeploymentGroup: results[name] = resource } } @@ -2168,10 +2169,10 @@ func (t *Template) GetAllAWSCodeDeployDeploymentGroupResources() map[string]*AWS // GetAWSCodeDeployDeploymentGroupWithName retrieves all AWSCodeDeployDeploymentGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodeDeployDeploymentGroupWithName(name string) (*AWSCodeDeployDeploymentGroup, error) { +func (t *Template) GetAWSCodeDeployDeploymentGroupWithName(name string) (*resources.AWSCodeDeployDeploymentGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodeDeployDeploymentGroup: + case *resources.AWSCodeDeployDeploymentGroup: return resource, nil } } @@ -2179,11 +2180,11 @@ func (t *Template) GetAWSCodeDeployDeploymentGroupWithName(name string) (*AWSCod } // GetAllAWSCodePipelineCustomActionTypeResources retrieves all AWSCodePipelineCustomActionType items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodePipelineCustomActionTypeResources() map[string]*AWSCodePipelineCustomActionType { - results := map[string]*AWSCodePipelineCustomActionType{} +func (t *Template) GetAllAWSCodePipelineCustomActionTypeResources() map[string]*resources.AWSCodePipelineCustomActionType { + results := map[string]*resources.AWSCodePipelineCustomActionType{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodePipelineCustomActionType: + case *resources.AWSCodePipelineCustomActionType: results[name] = resource } } @@ -2192,10 +2193,10 @@ func (t *Template) GetAllAWSCodePipelineCustomActionTypeResources() map[string]* // GetAWSCodePipelineCustomActionTypeWithName retrieves all AWSCodePipelineCustomActionType items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodePipelineCustomActionTypeWithName(name string) (*AWSCodePipelineCustomActionType, error) { +func (t *Template) GetAWSCodePipelineCustomActionTypeWithName(name string) (*resources.AWSCodePipelineCustomActionType, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodePipelineCustomActionType: + case *resources.AWSCodePipelineCustomActionType: return resource, nil } } @@ -2203,11 +2204,11 @@ func (t *Template) GetAWSCodePipelineCustomActionTypeWithName(name string) (*AWS } // GetAllAWSCodePipelinePipelineResources retrieves all AWSCodePipelinePipeline items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodePipelinePipelineResources() map[string]*AWSCodePipelinePipeline { - results := map[string]*AWSCodePipelinePipeline{} +func (t *Template) GetAllAWSCodePipelinePipelineResources() map[string]*resources.AWSCodePipelinePipeline { + results := map[string]*resources.AWSCodePipelinePipeline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodePipelinePipeline: + case *resources.AWSCodePipelinePipeline: results[name] = resource } } @@ -2216,10 +2217,10 @@ func (t *Template) GetAllAWSCodePipelinePipelineResources() map[string]*AWSCodeP // GetAWSCodePipelinePipelineWithName retrieves all AWSCodePipelinePipeline items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodePipelinePipelineWithName(name string) (*AWSCodePipelinePipeline, error) { +func (t *Template) GetAWSCodePipelinePipelineWithName(name string) (*resources.AWSCodePipelinePipeline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodePipelinePipeline: + case *resources.AWSCodePipelinePipeline: return resource, nil } } @@ -2227,11 +2228,11 @@ func (t *Template) GetAWSCodePipelinePipelineWithName(name string) (*AWSCodePipe } // GetAllAWSCodePipelineWebhookResources retrieves all AWSCodePipelineWebhook items from an AWS CloudFormation template -func (t *Template) GetAllAWSCodePipelineWebhookResources() map[string]*AWSCodePipelineWebhook { - results := map[string]*AWSCodePipelineWebhook{} +func (t *Template) GetAllAWSCodePipelineWebhookResources() map[string]*resources.AWSCodePipelineWebhook { + results := map[string]*resources.AWSCodePipelineWebhook{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCodePipelineWebhook: + case *resources.AWSCodePipelineWebhook: results[name] = resource } } @@ -2240,10 +2241,10 @@ func (t *Template) GetAllAWSCodePipelineWebhookResources() map[string]*AWSCodePi // GetAWSCodePipelineWebhookWithName retrieves all AWSCodePipelineWebhook items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCodePipelineWebhookWithName(name string) (*AWSCodePipelineWebhook, error) { +func (t *Template) GetAWSCodePipelineWebhookWithName(name string) (*resources.AWSCodePipelineWebhook, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCodePipelineWebhook: + case *resources.AWSCodePipelineWebhook: return resource, nil } } @@ -2251,11 +2252,11 @@ func (t *Template) GetAWSCodePipelineWebhookWithName(name string) (*AWSCodePipel } // GetAllAWSCognitoIdentityPoolResources retrieves all AWSCognitoIdentityPool items from an AWS CloudFormation template -func (t *Template) GetAllAWSCognitoIdentityPoolResources() map[string]*AWSCognitoIdentityPool { - results := map[string]*AWSCognitoIdentityPool{} +func (t *Template) GetAllAWSCognitoIdentityPoolResources() map[string]*resources.AWSCognitoIdentityPool { + results := map[string]*resources.AWSCognitoIdentityPool{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCognitoIdentityPool: + case *resources.AWSCognitoIdentityPool: results[name] = resource } } @@ -2264,10 +2265,10 @@ func (t *Template) GetAllAWSCognitoIdentityPoolResources() map[string]*AWSCognit // GetAWSCognitoIdentityPoolWithName retrieves all AWSCognitoIdentityPool items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCognitoIdentityPoolWithName(name string) (*AWSCognitoIdentityPool, error) { +func (t *Template) GetAWSCognitoIdentityPoolWithName(name string) (*resources.AWSCognitoIdentityPool, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCognitoIdentityPool: + case *resources.AWSCognitoIdentityPool: return resource, nil } } @@ -2275,11 +2276,11 @@ func (t *Template) GetAWSCognitoIdentityPoolWithName(name string) (*AWSCognitoId } // GetAllAWSCognitoIdentityPoolRoleAttachmentResources retrieves all AWSCognitoIdentityPoolRoleAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSCognitoIdentityPoolRoleAttachmentResources() map[string]*AWSCognitoIdentityPoolRoleAttachment { - results := map[string]*AWSCognitoIdentityPoolRoleAttachment{} +func (t *Template) GetAllAWSCognitoIdentityPoolRoleAttachmentResources() map[string]*resources.AWSCognitoIdentityPoolRoleAttachment { + results := map[string]*resources.AWSCognitoIdentityPoolRoleAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCognitoIdentityPoolRoleAttachment: + case *resources.AWSCognitoIdentityPoolRoleAttachment: results[name] = resource } } @@ -2288,10 +2289,10 @@ func (t *Template) GetAllAWSCognitoIdentityPoolRoleAttachmentResources() map[str // GetAWSCognitoIdentityPoolRoleAttachmentWithName retrieves all AWSCognitoIdentityPoolRoleAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCognitoIdentityPoolRoleAttachmentWithName(name string) (*AWSCognitoIdentityPoolRoleAttachment, error) { +func (t *Template) GetAWSCognitoIdentityPoolRoleAttachmentWithName(name string) (*resources.AWSCognitoIdentityPoolRoleAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCognitoIdentityPoolRoleAttachment: + case *resources.AWSCognitoIdentityPoolRoleAttachment: return resource, nil } } @@ -2299,11 +2300,11 @@ func (t *Template) GetAWSCognitoIdentityPoolRoleAttachmentWithName(name string) } // GetAllAWSCognitoUserPoolResources retrieves all AWSCognitoUserPool items from an AWS CloudFormation template -func (t *Template) GetAllAWSCognitoUserPoolResources() map[string]*AWSCognitoUserPool { - results := map[string]*AWSCognitoUserPool{} +func (t *Template) GetAllAWSCognitoUserPoolResources() map[string]*resources.AWSCognitoUserPool { + results := map[string]*resources.AWSCognitoUserPool{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCognitoUserPool: + case *resources.AWSCognitoUserPool: results[name] = resource } } @@ -2312,10 +2313,10 @@ func (t *Template) GetAllAWSCognitoUserPoolResources() map[string]*AWSCognitoUse // GetAWSCognitoUserPoolWithName retrieves all AWSCognitoUserPool items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCognitoUserPoolWithName(name string) (*AWSCognitoUserPool, error) { +func (t *Template) GetAWSCognitoUserPoolWithName(name string) (*resources.AWSCognitoUserPool, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCognitoUserPool: + case *resources.AWSCognitoUserPool: return resource, nil } } @@ -2323,11 +2324,11 @@ func (t *Template) GetAWSCognitoUserPoolWithName(name string) (*AWSCognitoUserPo } // GetAllAWSCognitoUserPoolClientResources retrieves all AWSCognitoUserPoolClient items from an AWS CloudFormation template -func (t *Template) GetAllAWSCognitoUserPoolClientResources() map[string]*AWSCognitoUserPoolClient { - results := map[string]*AWSCognitoUserPoolClient{} +func (t *Template) GetAllAWSCognitoUserPoolClientResources() map[string]*resources.AWSCognitoUserPoolClient { + results := map[string]*resources.AWSCognitoUserPoolClient{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCognitoUserPoolClient: + case *resources.AWSCognitoUserPoolClient: results[name] = resource } } @@ -2336,10 +2337,10 @@ func (t *Template) GetAllAWSCognitoUserPoolClientResources() map[string]*AWSCogn // GetAWSCognitoUserPoolClientWithName retrieves all AWSCognitoUserPoolClient items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCognitoUserPoolClientWithName(name string) (*AWSCognitoUserPoolClient, error) { +func (t *Template) GetAWSCognitoUserPoolClientWithName(name string) (*resources.AWSCognitoUserPoolClient, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCognitoUserPoolClient: + case *resources.AWSCognitoUserPoolClient: return resource, nil } } @@ -2347,11 +2348,11 @@ func (t *Template) GetAWSCognitoUserPoolClientWithName(name string) (*AWSCognito } // GetAllAWSCognitoUserPoolGroupResources retrieves all AWSCognitoUserPoolGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSCognitoUserPoolGroupResources() map[string]*AWSCognitoUserPoolGroup { - results := map[string]*AWSCognitoUserPoolGroup{} +func (t *Template) GetAllAWSCognitoUserPoolGroupResources() map[string]*resources.AWSCognitoUserPoolGroup { + results := map[string]*resources.AWSCognitoUserPoolGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCognitoUserPoolGroup: + case *resources.AWSCognitoUserPoolGroup: results[name] = resource } } @@ -2360,10 +2361,10 @@ func (t *Template) GetAllAWSCognitoUserPoolGroupResources() map[string]*AWSCogni // GetAWSCognitoUserPoolGroupWithName retrieves all AWSCognitoUserPoolGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCognitoUserPoolGroupWithName(name string) (*AWSCognitoUserPoolGroup, error) { +func (t *Template) GetAWSCognitoUserPoolGroupWithName(name string) (*resources.AWSCognitoUserPoolGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCognitoUserPoolGroup: + case *resources.AWSCognitoUserPoolGroup: return resource, nil } } @@ -2371,11 +2372,11 @@ func (t *Template) GetAWSCognitoUserPoolGroupWithName(name string) (*AWSCognitoU } // GetAllAWSCognitoUserPoolUserResources retrieves all AWSCognitoUserPoolUser items from an AWS CloudFormation template -func (t *Template) GetAllAWSCognitoUserPoolUserResources() map[string]*AWSCognitoUserPoolUser { - results := map[string]*AWSCognitoUserPoolUser{} +func (t *Template) GetAllAWSCognitoUserPoolUserResources() map[string]*resources.AWSCognitoUserPoolUser { + results := map[string]*resources.AWSCognitoUserPoolUser{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCognitoUserPoolUser: + case *resources.AWSCognitoUserPoolUser: results[name] = resource } } @@ -2384,10 +2385,10 @@ func (t *Template) GetAllAWSCognitoUserPoolUserResources() map[string]*AWSCognit // GetAWSCognitoUserPoolUserWithName retrieves all AWSCognitoUserPoolUser items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCognitoUserPoolUserWithName(name string) (*AWSCognitoUserPoolUser, error) { +func (t *Template) GetAWSCognitoUserPoolUserWithName(name string) (*resources.AWSCognitoUserPoolUser, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCognitoUserPoolUser: + case *resources.AWSCognitoUserPoolUser: return resource, nil } } @@ -2395,11 +2396,11 @@ func (t *Template) GetAWSCognitoUserPoolUserWithName(name string) (*AWSCognitoUs } // GetAllAWSCognitoUserPoolUserToGroupAttachmentResources retrieves all AWSCognitoUserPoolUserToGroupAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSCognitoUserPoolUserToGroupAttachmentResources() map[string]*AWSCognitoUserPoolUserToGroupAttachment { - results := map[string]*AWSCognitoUserPoolUserToGroupAttachment{} +func (t *Template) GetAllAWSCognitoUserPoolUserToGroupAttachmentResources() map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment { + results := map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSCognitoUserPoolUserToGroupAttachment: + case *resources.AWSCognitoUserPoolUserToGroupAttachment: results[name] = resource } } @@ -2408,10 +2409,10 @@ func (t *Template) GetAllAWSCognitoUserPoolUserToGroupAttachmentResources() map[ // GetAWSCognitoUserPoolUserToGroupAttachmentWithName retrieves all AWSCognitoUserPoolUserToGroupAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSCognitoUserPoolUserToGroupAttachmentWithName(name string) (*AWSCognitoUserPoolUserToGroupAttachment, error) { +func (t *Template) GetAWSCognitoUserPoolUserToGroupAttachmentWithName(name string) (*resources.AWSCognitoUserPoolUserToGroupAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSCognitoUserPoolUserToGroupAttachment: + case *resources.AWSCognitoUserPoolUserToGroupAttachment: return resource, nil } } @@ -2419,11 +2420,11 @@ func (t *Template) GetAWSCognitoUserPoolUserToGroupAttachmentWithName(name strin } // GetAllAWSConfigAggregationAuthorizationResources retrieves all AWSConfigAggregationAuthorization items from an AWS CloudFormation template -func (t *Template) GetAllAWSConfigAggregationAuthorizationResources() map[string]*AWSConfigAggregationAuthorization { - results := map[string]*AWSConfigAggregationAuthorization{} +func (t *Template) GetAllAWSConfigAggregationAuthorizationResources() map[string]*resources.AWSConfigAggregationAuthorization { + results := map[string]*resources.AWSConfigAggregationAuthorization{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSConfigAggregationAuthorization: + case *resources.AWSConfigAggregationAuthorization: results[name] = resource } } @@ -2432,10 +2433,10 @@ func (t *Template) GetAllAWSConfigAggregationAuthorizationResources() map[string // GetAWSConfigAggregationAuthorizationWithName retrieves all AWSConfigAggregationAuthorization items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSConfigAggregationAuthorizationWithName(name string) (*AWSConfigAggregationAuthorization, error) { +func (t *Template) GetAWSConfigAggregationAuthorizationWithName(name string) (*resources.AWSConfigAggregationAuthorization, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSConfigAggregationAuthorization: + case *resources.AWSConfigAggregationAuthorization: return resource, nil } } @@ -2443,11 +2444,11 @@ func (t *Template) GetAWSConfigAggregationAuthorizationWithName(name string) (*A } // GetAllAWSConfigConfigRuleResources retrieves all AWSConfigConfigRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSConfigConfigRuleResources() map[string]*AWSConfigConfigRule { - results := map[string]*AWSConfigConfigRule{} +func (t *Template) GetAllAWSConfigConfigRuleResources() map[string]*resources.AWSConfigConfigRule { + results := map[string]*resources.AWSConfigConfigRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSConfigConfigRule: + case *resources.AWSConfigConfigRule: results[name] = resource } } @@ -2456,10 +2457,10 @@ func (t *Template) GetAllAWSConfigConfigRuleResources() map[string]*AWSConfigCon // GetAWSConfigConfigRuleWithName retrieves all AWSConfigConfigRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSConfigConfigRuleWithName(name string) (*AWSConfigConfigRule, error) { +func (t *Template) GetAWSConfigConfigRuleWithName(name string) (*resources.AWSConfigConfigRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSConfigConfigRule: + case *resources.AWSConfigConfigRule: return resource, nil } } @@ -2467,11 +2468,11 @@ func (t *Template) GetAWSConfigConfigRuleWithName(name string) (*AWSConfigConfig } // GetAllAWSConfigConfigurationAggregatorResources retrieves all AWSConfigConfigurationAggregator items from an AWS CloudFormation template -func (t *Template) GetAllAWSConfigConfigurationAggregatorResources() map[string]*AWSConfigConfigurationAggregator { - results := map[string]*AWSConfigConfigurationAggregator{} +func (t *Template) GetAllAWSConfigConfigurationAggregatorResources() map[string]*resources.AWSConfigConfigurationAggregator { + results := map[string]*resources.AWSConfigConfigurationAggregator{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSConfigConfigurationAggregator: + case *resources.AWSConfigConfigurationAggregator: results[name] = resource } } @@ -2480,10 +2481,10 @@ func (t *Template) GetAllAWSConfigConfigurationAggregatorResources() map[string] // GetAWSConfigConfigurationAggregatorWithName retrieves all AWSConfigConfigurationAggregator items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSConfigConfigurationAggregatorWithName(name string) (*AWSConfigConfigurationAggregator, error) { +func (t *Template) GetAWSConfigConfigurationAggregatorWithName(name string) (*resources.AWSConfigConfigurationAggregator, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSConfigConfigurationAggregator: + case *resources.AWSConfigConfigurationAggregator: return resource, nil } } @@ -2491,11 +2492,11 @@ func (t *Template) GetAWSConfigConfigurationAggregatorWithName(name string) (*AW } // GetAllAWSConfigConfigurationRecorderResources retrieves all AWSConfigConfigurationRecorder items from an AWS CloudFormation template -func (t *Template) GetAllAWSConfigConfigurationRecorderResources() map[string]*AWSConfigConfigurationRecorder { - results := map[string]*AWSConfigConfigurationRecorder{} +func (t *Template) GetAllAWSConfigConfigurationRecorderResources() map[string]*resources.AWSConfigConfigurationRecorder { + results := map[string]*resources.AWSConfigConfigurationRecorder{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSConfigConfigurationRecorder: + case *resources.AWSConfigConfigurationRecorder: results[name] = resource } } @@ -2504,10 +2505,10 @@ func (t *Template) GetAllAWSConfigConfigurationRecorderResources() map[string]*A // GetAWSConfigConfigurationRecorderWithName retrieves all AWSConfigConfigurationRecorder items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSConfigConfigurationRecorderWithName(name string) (*AWSConfigConfigurationRecorder, error) { +func (t *Template) GetAWSConfigConfigurationRecorderWithName(name string) (*resources.AWSConfigConfigurationRecorder, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSConfigConfigurationRecorder: + case *resources.AWSConfigConfigurationRecorder: return resource, nil } } @@ -2515,11 +2516,11 @@ func (t *Template) GetAWSConfigConfigurationRecorderWithName(name string) (*AWSC } // GetAllAWSConfigDeliveryChannelResources retrieves all AWSConfigDeliveryChannel items from an AWS CloudFormation template -func (t *Template) GetAllAWSConfigDeliveryChannelResources() map[string]*AWSConfigDeliveryChannel { - results := map[string]*AWSConfigDeliveryChannel{} +func (t *Template) GetAllAWSConfigDeliveryChannelResources() map[string]*resources.AWSConfigDeliveryChannel { + results := map[string]*resources.AWSConfigDeliveryChannel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSConfigDeliveryChannel: + case *resources.AWSConfigDeliveryChannel: results[name] = resource } } @@ -2528,10 +2529,10 @@ func (t *Template) GetAllAWSConfigDeliveryChannelResources() map[string]*AWSConf // GetAWSConfigDeliveryChannelWithName retrieves all AWSConfigDeliveryChannel items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSConfigDeliveryChannelWithName(name string) (*AWSConfigDeliveryChannel, error) { +func (t *Template) GetAWSConfigDeliveryChannelWithName(name string) (*resources.AWSConfigDeliveryChannel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSConfigDeliveryChannel: + case *resources.AWSConfigDeliveryChannel: return resource, nil } } @@ -2539,11 +2540,11 @@ func (t *Template) GetAWSConfigDeliveryChannelWithName(name string) (*AWSConfigD } // GetAllAWSDAXClusterResources retrieves all AWSDAXCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSDAXClusterResources() map[string]*AWSDAXCluster { - results := map[string]*AWSDAXCluster{} +func (t *Template) GetAllAWSDAXClusterResources() map[string]*resources.AWSDAXCluster { + results := map[string]*resources.AWSDAXCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDAXCluster: + case *resources.AWSDAXCluster: results[name] = resource } } @@ -2552,10 +2553,10 @@ func (t *Template) GetAllAWSDAXClusterResources() map[string]*AWSDAXCluster { // GetAWSDAXClusterWithName retrieves all AWSDAXCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDAXClusterWithName(name string) (*AWSDAXCluster, error) { +func (t *Template) GetAWSDAXClusterWithName(name string) (*resources.AWSDAXCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDAXCluster: + case *resources.AWSDAXCluster: return resource, nil } } @@ -2563,11 +2564,11 @@ func (t *Template) GetAWSDAXClusterWithName(name string) (*AWSDAXCluster, error) } // GetAllAWSDAXParameterGroupResources retrieves all AWSDAXParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSDAXParameterGroupResources() map[string]*AWSDAXParameterGroup { - results := map[string]*AWSDAXParameterGroup{} +func (t *Template) GetAllAWSDAXParameterGroupResources() map[string]*resources.AWSDAXParameterGroup { + results := map[string]*resources.AWSDAXParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDAXParameterGroup: + case *resources.AWSDAXParameterGroup: results[name] = resource } } @@ -2576,10 +2577,10 @@ func (t *Template) GetAllAWSDAXParameterGroupResources() map[string]*AWSDAXParam // GetAWSDAXParameterGroupWithName retrieves all AWSDAXParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDAXParameterGroupWithName(name string) (*AWSDAXParameterGroup, error) { +func (t *Template) GetAWSDAXParameterGroupWithName(name string) (*resources.AWSDAXParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDAXParameterGroup: + case *resources.AWSDAXParameterGroup: return resource, nil } } @@ -2587,11 +2588,11 @@ func (t *Template) GetAWSDAXParameterGroupWithName(name string) (*AWSDAXParamete } // GetAllAWSDAXSubnetGroupResources retrieves all AWSDAXSubnetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSDAXSubnetGroupResources() map[string]*AWSDAXSubnetGroup { - results := map[string]*AWSDAXSubnetGroup{} +func (t *Template) GetAllAWSDAXSubnetGroupResources() map[string]*resources.AWSDAXSubnetGroup { + results := map[string]*resources.AWSDAXSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDAXSubnetGroup: + case *resources.AWSDAXSubnetGroup: results[name] = resource } } @@ -2600,10 +2601,10 @@ func (t *Template) GetAllAWSDAXSubnetGroupResources() map[string]*AWSDAXSubnetGr // GetAWSDAXSubnetGroupWithName retrieves all AWSDAXSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDAXSubnetGroupWithName(name string) (*AWSDAXSubnetGroup, error) { +func (t *Template) GetAWSDAXSubnetGroupWithName(name string) (*resources.AWSDAXSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDAXSubnetGroup: + case *resources.AWSDAXSubnetGroup: return resource, nil } } @@ -2611,11 +2612,11 @@ func (t *Template) GetAWSDAXSubnetGroupWithName(name string) (*AWSDAXSubnetGroup } // GetAllAWSDLMLifecyclePolicyResources retrieves all AWSDLMLifecyclePolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSDLMLifecyclePolicyResources() map[string]*AWSDLMLifecyclePolicy { - results := map[string]*AWSDLMLifecyclePolicy{} +func (t *Template) GetAllAWSDLMLifecyclePolicyResources() map[string]*resources.AWSDLMLifecyclePolicy { + results := map[string]*resources.AWSDLMLifecyclePolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDLMLifecyclePolicy: + case *resources.AWSDLMLifecyclePolicy: results[name] = resource } } @@ -2624,10 +2625,10 @@ func (t *Template) GetAllAWSDLMLifecyclePolicyResources() map[string]*AWSDLMLife // GetAWSDLMLifecyclePolicyWithName retrieves all AWSDLMLifecyclePolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDLMLifecyclePolicyWithName(name string) (*AWSDLMLifecyclePolicy, error) { +func (t *Template) GetAWSDLMLifecyclePolicyWithName(name string) (*resources.AWSDLMLifecyclePolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDLMLifecyclePolicy: + case *resources.AWSDLMLifecyclePolicy: return resource, nil } } @@ -2635,11 +2636,11 @@ func (t *Template) GetAWSDLMLifecyclePolicyWithName(name string) (*AWSDLMLifecyc } // GetAllAWSDMSCertificateResources retrieves all AWSDMSCertificate items from an AWS CloudFormation template -func (t *Template) GetAllAWSDMSCertificateResources() map[string]*AWSDMSCertificate { - results := map[string]*AWSDMSCertificate{} +func (t *Template) GetAllAWSDMSCertificateResources() map[string]*resources.AWSDMSCertificate { + results := map[string]*resources.AWSDMSCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDMSCertificate: + case *resources.AWSDMSCertificate: results[name] = resource } } @@ -2648,10 +2649,10 @@ func (t *Template) GetAllAWSDMSCertificateResources() map[string]*AWSDMSCertific // GetAWSDMSCertificateWithName retrieves all AWSDMSCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDMSCertificateWithName(name string) (*AWSDMSCertificate, error) { +func (t *Template) GetAWSDMSCertificateWithName(name string) (*resources.AWSDMSCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDMSCertificate: + case *resources.AWSDMSCertificate: return resource, nil } } @@ -2659,11 +2660,11 @@ func (t *Template) GetAWSDMSCertificateWithName(name string) (*AWSDMSCertificate } // GetAllAWSDMSEndpointResources retrieves all AWSDMSEndpoint items from an AWS CloudFormation template -func (t *Template) GetAllAWSDMSEndpointResources() map[string]*AWSDMSEndpoint { - results := map[string]*AWSDMSEndpoint{} +func (t *Template) GetAllAWSDMSEndpointResources() map[string]*resources.AWSDMSEndpoint { + results := map[string]*resources.AWSDMSEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDMSEndpoint: + case *resources.AWSDMSEndpoint: results[name] = resource } } @@ -2672,10 +2673,10 @@ func (t *Template) GetAllAWSDMSEndpointResources() map[string]*AWSDMSEndpoint { // GetAWSDMSEndpointWithName retrieves all AWSDMSEndpoint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDMSEndpointWithName(name string) (*AWSDMSEndpoint, error) { +func (t *Template) GetAWSDMSEndpointWithName(name string) (*resources.AWSDMSEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDMSEndpoint: + case *resources.AWSDMSEndpoint: return resource, nil } } @@ -2683,11 +2684,11 @@ func (t *Template) GetAWSDMSEndpointWithName(name string) (*AWSDMSEndpoint, erro } // GetAllAWSDMSEventSubscriptionResources retrieves all AWSDMSEventSubscription items from an AWS CloudFormation template -func (t *Template) GetAllAWSDMSEventSubscriptionResources() map[string]*AWSDMSEventSubscription { - results := map[string]*AWSDMSEventSubscription{} +func (t *Template) GetAllAWSDMSEventSubscriptionResources() map[string]*resources.AWSDMSEventSubscription { + results := map[string]*resources.AWSDMSEventSubscription{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDMSEventSubscription: + case *resources.AWSDMSEventSubscription: results[name] = resource } } @@ -2696,10 +2697,10 @@ func (t *Template) GetAllAWSDMSEventSubscriptionResources() map[string]*AWSDMSEv // GetAWSDMSEventSubscriptionWithName retrieves all AWSDMSEventSubscription items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDMSEventSubscriptionWithName(name string) (*AWSDMSEventSubscription, error) { +func (t *Template) GetAWSDMSEventSubscriptionWithName(name string) (*resources.AWSDMSEventSubscription, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDMSEventSubscription: + case *resources.AWSDMSEventSubscription: return resource, nil } } @@ -2707,11 +2708,11 @@ func (t *Template) GetAWSDMSEventSubscriptionWithName(name string) (*AWSDMSEvent } // GetAllAWSDMSReplicationInstanceResources retrieves all AWSDMSReplicationInstance items from an AWS CloudFormation template -func (t *Template) GetAllAWSDMSReplicationInstanceResources() map[string]*AWSDMSReplicationInstance { - results := map[string]*AWSDMSReplicationInstance{} +func (t *Template) GetAllAWSDMSReplicationInstanceResources() map[string]*resources.AWSDMSReplicationInstance { + results := map[string]*resources.AWSDMSReplicationInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDMSReplicationInstance: + case *resources.AWSDMSReplicationInstance: results[name] = resource } } @@ -2720,10 +2721,10 @@ func (t *Template) GetAllAWSDMSReplicationInstanceResources() map[string]*AWSDMS // GetAWSDMSReplicationInstanceWithName retrieves all AWSDMSReplicationInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDMSReplicationInstanceWithName(name string) (*AWSDMSReplicationInstance, error) { +func (t *Template) GetAWSDMSReplicationInstanceWithName(name string) (*resources.AWSDMSReplicationInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDMSReplicationInstance: + case *resources.AWSDMSReplicationInstance: return resource, nil } } @@ -2731,11 +2732,11 @@ func (t *Template) GetAWSDMSReplicationInstanceWithName(name string) (*AWSDMSRep } // GetAllAWSDMSReplicationSubnetGroupResources retrieves all AWSDMSReplicationSubnetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSDMSReplicationSubnetGroupResources() map[string]*AWSDMSReplicationSubnetGroup { - results := map[string]*AWSDMSReplicationSubnetGroup{} +func (t *Template) GetAllAWSDMSReplicationSubnetGroupResources() map[string]*resources.AWSDMSReplicationSubnetGroup { + results := map[string]*resources.AWSDMSReplicationSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDMSReplicationSubnetGroup: + case *resources.AWSDMSReplicationSubnetGroup: results[name] = resource } } @@ -2744,10 +2745,10 @@ func (t *Template) GetAllAWSDMSReplicationSubnetGroupResources() map[string]*AWS // GetAWSDMSReplicationSubnetGroupWithName retrieves all AWSDMSReplicationSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDMSReplicationSubnetGroupWithName(name string) (*AWSDMSReplicationSubnetGroup, error) { +func (t *Template) GetAWSDMSReplicationSubnetGroupWithName(name string) (*resources.AWSDMSReplicationSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDMSReplicationSubnetGroup: + case *resources.AWSDMSReplicationSubnetGroup: return resource, nil } } @@ -2755,11 +2756,11 @@ func (t *Template) GetAWSDMSReplicationSubnetGroupWithName(name string) (*AWSDMS } // GetAllAWSDMSReplicationTaskResources retrieves all AWSDMSReplicationTask items from an AWS CloudFormation template -func (t *Template) GetAllAWSDMSReplicationTaskResources() map[string]*AWSDMSReplicationTask { - results := map[string]*AWSDMSReplicationTask{} +func (t *Template) GetAllAWSDMSReplicationTaskResources() map[string]*resources.AWSDMSReplicationTask { + results := map[string]*resources.AWSDMSReplicationTask{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDMSReplicationTask: + case *resources.AWSDMSReplicationTask: results[name] = resource } } @@ -2768,10 +2769,10 @@ func (t *Template) GetAllAWSDMSReplicationTaskResources() map[string]*AWSDMSRepl // GetAWSDMSReplicationTaskWithName retrieves all AWSDMSReplicationTask items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDMSReplicationTaskWithName(name string) (*AWSDMSReplicationTask, error) { +func (t *Template) GetAWSDMSReplicationTaskWithName(name string) (*resources.AWSDMSReplicationTask, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDMSReplicationTask: + case *resources.AWSDMSReplicationTask: return resource, nil } } @@ -2779,11 +2780,11 @@ func (t *Template) GetAWSDMSReplicationTaskWithName(name string) (*AWSDMSReplica } // GetAllAWSDataPipelinePipelineResources retrieves all AWSDataPipelinePipeline items from an AWS CloudFormation template -func (t *Template) GetAllAWSDataPipelinePipelineResources() map[string]*AWSDataPipelinePipeline { - results := map[string]*AWSDataPipelinePipeline{} +func (t *Template) GetAllAWSDataPipelinePipelineResources() map[string]*resources.AWSDataPipelinePipeline { + results := map[string]*resources.AWSDataPipelinePipeline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDataPipelinePipeline: + case *resources.AWSDataPipelinePipeline: results[name] = resource } } @@ -2792,10 +2793,10 @@ func (t *Template) GetAllAWSDataPipelinePipelineResources() map[string]*AWSDataP // GetAWSDataPipelinePipelineWithName retrieves all AWSDataPipelinePipeline items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDataPipelinePipelineWithName(name string) (*AWSDataPipelinePipeline, error) { +func (t *Template) GetAWSDataPipelinePipelineWithName(name string) (*resources.AWSDataPipelinePipeline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDataPipelinePipeline: + case *resources.AWSDataPipelinePipeline: return resource, nil } } @@ -2803,11 +2804,11 @@ func (t *Template) GetAWSDataPipelinePipelineWithName(name string) (*AWSDataPipe } // GetAllAWSDirectoryServiceMicrosoftADResources retrieves all AWSDirectoryServiceMicrosoftAD items from an AWS CloudFormation template -func (t *Template) GetAllAWSDirectoryServiceMicrosoftADResources() map[string]*AWSDirectoryServiceMicrosoftAD { - results := map[string]*AWSDirectoryServiceMicrosoftAD{} +func (t *Template) GetAllAWSDirectoryServiceMicrosoftADResources() map[string]*resources.AWSDirectoryServiceMicrosoftAD { + results := map[string]*resources.AWSDirectoryServiceMicrosoftAD{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDirectoryServiceMicrosoftAD: + case *resources.AWSDirectoryServiceMicrosoftAD: results[name] = resource } } @@ -2816,10 +2817,10 @@ func (t *Template) GetAllAWSDirectoryServiceMicrosoftADResources() map[string]*A // GetAWSDirectoryServiceMicrosoftADWithName retrieves all AWSDirectoryServiceMicrosoftAD items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDirectoryServiceMicrosoftADWithName(name string) (*AWSDirectoryServiceMicrosoftAD, error) { +func (t *Template) GetAWSDirectoryServiceMicrosoftADWithName(name string) (*resources.AWSDirectoryServiceMicrosoftAD, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDirectoryServiceMicrosoftAD: + case *resources.AWSDirectoryServiceMicrosoftAD: return resource, nil } } @@ -2827,11 +2828,11 @@ func (t *Template) GetAWSDirectoryServiceMicrosoftADWithName(name string) (*AWSD } // GetAllAWSDirectoryServiceSimpleADResources retrieves all AWSDirectoryServiceSimpleAD items from an AWS CloudFormation template -func (t *Template) GetAllAWSDirectoryServiceSimpleADResources() map[string]*AWSDirectoryServiceSimpleAD { - results := map[string]*AWSDirectoryServiceSimpleAD{} +func (t *Template) GetAllAWSDirectoryServiceSimpleADResources() map[string]*resources.AWSDirectoryServiceSimpleAD { + results := map[string]*resources.AWSDirectoryServiceSimpleAD{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDirectoryServiceSimpleAD: + case *resources.AWSDirectoryServiceSimpleAD: results[name] = resource } } @@ -2840,10 +2841,10 @@ func (t *Template) GetAllAWSDirectoryServiceSimpleADResources() map[string]*AWSD // GetAWSDirectoryServiceSimpleADWithName retrieves all AWSDirectoryServiceSimpleAD items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDirectoryServiceSimpleADWithName(name string) (*AWSDirectoryServiceSimpleAD, error) { +func (t *Template) GetAWSDirectoryServiceSimpleADWithName(name string) (*resources.AWSDirectoryServiceSimpleAD, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDirectoryServiceSimpleAD: + case *resources.AWSDirectoryServiceSimpleAD: return resource, nil } } @@ -2851,11 +2852,11 @@ func (t *Template) GetAWSDirectoryServiceSimpleADWithName(name string) (*AWSDire } // GetAllAWSDocDBDBClusterResources retrieves all AWSDocDBDBCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSDocDBDBClusterResources() map[string]*AWSDocDBDBCluster { - results := map[string]*AWSDocDBDBCluster{} +func (t *Template) GetAllAWSDocDBDBClusterResources() map[string]*resources.AWSDocDBDBCluster { + results := map[string]*resources.AWSDocDBDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDocDBDBCluster: + case *resources.AWSDocDBDBCluster: results[name] = resource } } @@ -2864,10 +2865,10 @@ func (t *Template) GetAllAWSDocDBDBClusterResources() map[string]*AWSDocDBDBClus // GetAWSDocDBDBClusterWithName retrieves all AWSDocDBDBCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDocDBDBClusterWithName(name string) (*AWSDocDBDBCluster, error) { +func (t *Template) GetAWSDocDBDBClusterWithName(name string) (*resources.AWSDocDBDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDocDBDBCluster: + case *resources.AWSDocDBDBCluster: return resource, nil } } @@ -2875,11 +2876,11 @@ func (t *Template) GetAWSDocDBDBClusterWithName(name string) (*AWSDocDBDBCluster } // GetAllAWSDocDBDBClusterParameterGroupResources retrieves all AWSDocDBDBClusterParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSDocDBDBClusterParameterGroupResources() map[string]*AWSDocDBDBClusterParameterGroup { - results := map[string]*AWSDocDBDBClusterParameterGroup{} +func (t *Template) GetAllAWSDocDBDBClusterParameterGroupResources() map[string]*resources.AWSDocDBDBClusterParameterGroup { + results := map[string]*resources.AWSDocDBDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDocDBDBClusterParameterGroup: + case *resources.AWSDocDBDBClusterParameterGroup: results[name] = resource } } @@ -2888,10 +2889,10 @@ func (t *Template) GetAllAWSDocDBDBClusterParameterGroupResources() map[string]* // GetAWSDocDBDBClusterParameterGroupWithName retrieves all AWSDocDBDBClusterParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDocDBDBClusterParameterGroupWithName(name string) (*AWSDocDBDBClusterParameterGroup, error) { +func (t *Template) GetAWSDocDBDBClusterParameterGroupWithName(name string) (*resources.AWSDocDBDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDocDBDBClusterParameterGroup: + case *resources.AWSDocDBDBClusterParameterGroup: return resource, nil } } @@ -2899,11 +2900,11 @@ func (t *Template) GetAWSDocDBDBClusterParameterGroupWithName(name string) (*AWS } // GetAllAWSDocDBDBInstanceResources retrieves all AWSDocDBDBInstance items from an AWS CloudFormation template -func (t *Template) GetAllAWSDocDBDBInstanceResources() map[string]*AWSDocDBDBInstance { - results := map[string]*AWSDocDBDBInstance{} +func (t *Template) GetAllAWSDocDBDBInstanceResources() map[string]*resources.AWSDocDBDBInstance { + results := map[string]*resources.AWSDocDBDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDocDBDBInstance: + case *resources.AWSDocDBDBInstance: results[name] = resource } } @@ -2912,10 +2913,10 @@ func (t *Template) GetAllAWSDocDBDBInstanceResources() map[string]*AWSDocDBDBIns // GetAWSDocDBDBInstanceWithName retrieves all AWSDocDBDBInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDocDBDBInstanceWithName(name string) (*AWSDocDBDBInstance, error) { +func (t *Template) GetAWSDocDBDBInstanceWithName(name string) (*resources.AWSDocDBDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDocDBDBInstance: + case *resources.AWSDocDBDBInstance: return resource, nil } } @@ -2923,11 +2924,11 @@ func (t *Template) GetAWSDocDBDBInstanceWithName(name string) (*AWSDocDBDBInstan } // GetAllAWSDocDBDBSubnetGroupResources retrieves all AWSDocDBDBSubnetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSDocDBDBSubnetGroupResources() map[string]*AWSDocDBDBSubnetGroup { - results := map[string]*AWSDocDBDBSubnetGroup{} +func (t *Template) GetAllAWSDocDBDBSubnetGroupResources() map[string]*resources.AWSDocDBDBSubnetGroup { + results := map[string]*resources.AWSDocDBDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDocDBDBSubnetGroup: + case *resources.AWSDocDBDBSubnetGroup: results[name] = resource } } @@ -2936,10 +2937,10 @@ func (t *Template) GetAllAWSDocDBDBSubnetGroupResources() map[string]*AWSDocDBDB // GetAWSDocDBDBSubnetGroupWithName retrieves all AWSDocDBDBSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDocDBDBSubnetGroupWithName(name string) (*AWSDocDBDBSubnetGroup, error) { +func (t *Template) GetAWSDocDBDBSubnetGroupWithName(name string) (*resources.AWSDocDBDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDocDBDBSubnetGroup: + case *resources.AWSDocDBDBSubnetGroup: return resource, nil } } @@ -2947,11 +2948,11 @@ func (t *Template) GetAWSDocDBDBSubnetGroupWithName(name string) (*AWSDocDBDBSub } // GetAllAWSDynamoDBTableResources retrieves all AWSDynamoDBTable items from an AWS CloudFormation template -func (t *Template) GetAllAWSDynamoDBTableResources() map[string]*AWSDynamoDBTable { - results := map[string]*AWSDynamoDBTable{} +func (t *Template) GetAllAWSDynamoDBTableResources() map[string]*resources.AWSDynamoDBTable { + results := map[string]*resources.AWSDynamoDBTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSDynamoDBTable: + case *resources.AWSDynamoDBTable: results[name] = resource } } @@ -2960,10 +2961,10 @@ func (t *Template) GetAllAWSDynamoDBTableResources() map[string]*AWSDynamoDBTabl // GetAWSDynamoDBTableWithName retrieves all AWSDynamoDBTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSDynamoDBTableWithName(name string) (*AWSDynamoDBTable, error) { +func (t *Template) GetAWSDynamoDBTableWithName(name string) (*resources.AWSDynamoDBTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSDynamoDBTable: + case *resources.AWSDynamoDBTable: return resource, nil } } @@ -2971,11 +2972,11 @@ func (t *Template) GetAWSDynamoDBTableWithName(name string) (*AWSDynamoDBTable, } // GetAllAWSEC2CustomerGatewayResources retrieves all AWSEC2CustomerGateway items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2CustomerGatewayResources() map[string]*AWSEC2CustomerGateway { - results := map[string]*AWSEC2CustomerGateway{} +func (t *Template) GetAllAWSEC2CustomerGatewayResources() map[string]*resources.AWSEC2CustomerGateway { + results := map[string]*resources.AWSEC2CustomerGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2CustomerGateway: + case *resources.AWSEC2CustomerGateway: results[name] = resource } } @@ -2984,10 +2985,10 @@ func (t *Template) GetAllAWSEC2CustomerGatewayResources() map[string]*AWSEC2Cust // GetAWSEC2CustomerGatewayWithName retrieves all AWSEC2CustomerGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2CustomerGatewayWithName(name string) (*AWSEC2CustomerGateway, error) { +func (t *Template) GetAWSEC2CustomerGatewayWithName(name string) (*resources.AWSEC2CustomerGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2CustomerGateway: + case *resources.AWSEC2CustomerGateway: return resource, nil } } @@ -2995,11 +2996,11 @@ func (t *Template) GetAWSEC2CustomerGatewayWithName(name string) (*AWSEC2Custome } // GetAllAWSEC2DHCPOptionsResources retrieves all AWSEC2DHCPOptions items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2DHCPOptionsResources() map[string]*AWSEC2DHCPOptions { - results := map[string]*AWSEC2DHCPOptions{} +func (t *Template) GetAllAWSEC2DHCPOptionsResources() map[string]*resources.AWSEC2DHCPOptions { + results := map[string]*resources.AWSEC2DHCPOptions{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2DHCPOptions: + case *resources.AWSEC2DHCPOptions: results[name] = resource } } @@ -3008,10 +3009,10 @@ func (t *Template) GetAllAWSEC2DHCPOptionsResources() map[string]*AWSEC2DHCPOpti // GetAWSEC2DHCPOptionsWithName retrieves all AWSEC2DHCPOptions items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2DHCPOptionsWithName(name string) (*AWSEC2DHCPOptions, error) { +func (t *Template) GetAWSEC2DHCPOptionsWithName(name string) (*resources.AWSEC2DHCPOptions, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2DHCPOptions: + case *resources.AWSEC2DHCPOptions: return resource, nil } } @@ -3019,11 +3020,11 @@ func (t *Template) GetAWSEC2DHCPOptionsWithName(name string) (*AWSEC2DHCPOptions } // GetAllAWSEC2EC2FleetResources retrieves all AWSEC2EC2Fleet items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2EC2FleetResources() map[string]*AWSEC2EC2Fleet { - results := map[string]*AWSEC2EC2Fleet{} +func (t *Template) GetAllAWSEC2EC2FleetResources() map[string]*resources.AWSEC2EC2Fleet { + results := map[string]*resources.AWSEC2EC2Fleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2EC2Fleet: + case *resources.AWSEC2EC2Fleet: results[name] = resource } } @@ -3032,10 +3033,10 @@ func (t *Template) GetAllAWSEC2EC2FleetResources() map[string]*AWSEC2EC2Fleet { // GetAWSEC2EC2FleetWithName retrieves all AWSEC2EC2Fleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2EC2FleetWithName(name string) (*AWSEC2EC2Fleet, error) { +func (t *Template) GetAWSEC2EC2FleetWithName(name string) (*resources.AWSEC2EC2Fleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2EC2Fleet: + case *resources.AWSEC2EC2Fleet: return resource, nil } } @@ -3043,11 +3044,11 @@ func (t *Template) GetAWSEC2EC2FleetWithName(name string) (*AWSEC2EC2Fleet, erro } // GetAllAWSEC2EIPResources retrieves all AWSEC2EIP items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2EIPResources() map[string]*AWSEC2EIP { - results := map[string]*AWSEC2EIP{} +func (t *Template) GetAllAWSEC2EIPResources() map[string]*resources.AWSEC2EIP { + results := map[string]*resources.AWSEC2EIP{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2EIP: + case *resources.AWSEC2EIP: results[name] = resource } } @@ -3056,10 +3057,10 @@ func (t *Template) GetAllAWSEC2EIPResources() map[string]*AWSEC2EIP { // GetAWSEC2EIPWithName retrieves all AWSEC2EIP items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2EIPWithName(name string) (*AWSEC2EIP, error) { +func (t *Template) GetAWSEC2EIPWithName(name string) (*resources.AWSEC2EIP, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2EIP: + case *resources.AWSEC2EIP: return resource, nil } } @@ -3067,11 +3068,11 @@ func (t *Template) GetAWSEC2EIPWithName(name string) (*AWSEC2EIP, error) { } // GetAllAWSEC2EIPAssociationResources retrieves all AWSEC2EIPAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2EIPAssociationResources() map[string]*AWSEC2EIPAssociation { - results := map[string]*AWSEC2EIPAssociation{} +func (t *Template) GetAllAWSEC2EIPAssociationResources() map[string]*resources.AWSEC2EIPAssociation { + results := map[string]*resources.AWSEC2EIPAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2EIPAssociation: + case *resources.AWSEC2EIPAssociation: results[name] = resource } } @@ -3080,10 +3081,10 @@ func (t *Template) GetAllAWSEC2EIPAssociationResources() map[string]*AWSEC2EIPAs // GetAWSEC2EIPAssociationWithName retrieves all AWSEC2EIPAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2EIPAssociationWithName(name string) (*AWSEC2EIPAssociation, error) { +func (t *Template) GetAWSEC2EIPAssociationWithName(name string) (*resources.AWSEC2EIPAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2EIPAssociation: + case *resources.AWSEC2EIPAssociation: return resource, nil } } @@ -3091,11 +3092,11 @@ func (t *Template) GetAWSEC2EIPAssociationWithName(name string) (*AWSEC2EIPAssoc } // GetAllAWSEC2EgressOnlyInternetGatewayResources retrieves all AWSEC2EgressOnlyInternetGateway items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2EgressOnlyInternetGatewayResources() map[string]*AWSEC2EgressOnlyInternetGateway { - results := map[string]*AWSEC2EgressOnlyInternetGateway{} +func (t *Template) GetAllAWSEC2EgressOnlyInternetGatewayResources() map[string]*resources.AWSEC2EgressOnlyInternetGateway { + results := map[string]*resources.AWSEC2EgressOnlyInternetGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2EgressOnlyInternetGateway: + case *resources.AWSEC2EgressOnlyInternetGateway: results[name] = resource } } @@ -3104,10 +3105,10 @@ func (t *Template) GetAllAWSEC2EgressOnlyInternetGatewayResources() map[string]* // GetAWSEC2EgressOnlyInternetGatewayWithName retrieves all AWSEC2EgressOnlyInternetGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2EgressOnlyInternetGatewayWithName(name string) (*AWSEC2EgressOnlyInternetGateway, error) { +func (t *Template) GetAWSEC2EgressOnlyInternetGatewayWithName(name string) (*resources.AWSEC2EgressOnlyInternetGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2EgressOnlyInternetGateway: + case *resources.AWSEC2EgressOnlyInternetGateway: return resource, nil } } @@ -3115,11 +3116,11 @@ func (t *Template) GetAWSEC2EgressOnlyInternetGatewayWithName(name string) (*AWS } // GetAllAWSEC2FlowLogResources retrieves all AWSEC2FlowLog items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2FlowLogResources() map[string]*AWSEC2FlowLog { - results := map[string]*AWSEC2FlowLog{} +func (t *Template) GetAllAWSEC2FlowLogResources() map[string]*resources.AWSEC2FlowLog { + results := map[string]*resources.AWSEC2FlowLog{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2FlowLog: + case *resources.AWSEC2FlowLog: results[name] = resource } } @@ -3128,10 +3129,10 @@ func (t *Template) GetAllAWSEC2FlowLogResources() map[string]*AWSEC2FlowLog { // GetAWSEC2FlowLogWithName retrieves all AWSEC2FlowLog items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2FlowLogWithName(name string) (*AWSEC2FlowLog, error) { +func (t *Template) GetAWSEC2FlowLogWithName(name string) (*resources.AWSEC2FlowLog, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2FlowLog: + case *resources.AWSEC2FlowLog: return resource, nil } } @@ -3139,11 +3140,11 @@ func (t *Template) GetAWSEC2FlowLogWithName(name string) (*AWSEC2FlowLog, error) } // GetAllAWSEC2HostResources retrieves all AWSEC2Host items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2HostResources() map[string]*AWSEC2Host { - results := map[string]*AWSEC2Host{} +func (t *Template) GetAllAWSEC2HostResources() map[string]*resources.AWSEC2Host { + results := map[string]*resources.AWSEC2Host{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2Host: + case *resources.AWSEC2Host: results[name] = resource } } @@ -3152,10 +3153,10 @@ func (t *Template) GetAllAWSEC2HostResources() map[string]*AWSEC2Host { // GetAWSEC2HostWithName retrieves all AWSEC2Host items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2HostWithName(name string) (*AWSEC2Host, error) { +func (t *Template) GetAWSEC2HostWithName(name string) (*resources.AWSEC2Host, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2Host: + case *resources.AWSEC2Host: return resource, nil } } @@ -3163,11 +3164,11 @@ func (t *Template) GetAWSEC2HostWithName(name string) (*AWSEC2Host, error) { } // GetAllAWSEC2InstanceResources retrieves all AWSEC2Instance items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2InstanceResources() map[string]*AWSEC2Instance { - results := map[string]*AWSEC2Instance{} +func (t *Template) GetAllAWSEC2InstanceResources() map[string]*resources.AWSEC2Instance { + results := map[string]*resources.AWSEC2Instance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2Instance: + case *resources.AWSEC2Instance: results[name] = resource } } @@ -3176,10 +3177,10 @@ func (t *Template) GetAllAWSEC2InstanceResources() map[string]*AWSEC2Instance { // GetAWSEC2InstanceWithName retrieves all AWSEC2Instance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2InstanceWithName(name string) (*AWSEC2Instance, error) { +func (t *Template) GetAWSEC2InstanceWithName(name string) (*resources.AWSEC2Instance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2Instance: + case *resources.AWSEC2Instance: return resource, nil } } @@ -3187,11 +3188,11 @@ func (t *Template) GetAWSEC2InstanceWithName(name string) (*AWSEC2Instance, erro } // GetAllAWSEC2InternetGatewayResources retrieves all AWSEC2InternetGateway items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2InternetGatewayResources() map[string]*AWSEC2InternetGateway { - results := map[string]*AWSEC2InternetGateway{} +func (t *Template) GetAllAWSEC2InternetGatewayResources() map[string]*resources.AWSEC2InternetGateway { + results := map[string]*resources.AWSEC2InternetGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2InternetGateway: + case *resources.AWSEC2InternetGateway: results[name] = resource } } @@ -3200,10 +3201,10 @@ func (t *Template) GetAllAWSEC2InternetGatewayResources() map[string]*AWSEC2Inte // GetAWSEC2InternetGatewayWithName retrieves all AWSEC2InternetGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2InternetGatewayWithName(name string) (*AWSEC2InternetGateway, error) { +func (t *Template) GetAWSEC2InternetGatewayWithName(name string) (*resources.AWSEC2InternetGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2InternetGateway: + case *resources.AWSEC2InternetGateway: return resource, nil } } @@ -3211,11 +3212,11 @@ func (t *Template) GetAWSEC2InternetGatewayWithName(name string) (*AWSEC2Interne } // GetAllAWSEC2LaunchTemplateResources retrieves all AWSEC2LaunchTemplate items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2LaunchTemplateResources() map[string]*AWSEC2LaunchTemplate { - results := map[string]*AWSEC2LaunchTemplate{} +func (t *Template) GetAllAWSEC2LaunchTemplateResources() map[string]*resources.AWSEC2LaunchTemplate { + results := map[string]*resources.AWSEC2LaunchTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2LaunchTemplate: + case *resources.AWSEC2LaunchTemplate: results[name] = resource } } @@ -3224,10 +3225,10 @@ func (t *Template) GetAllAWSEC2LaunchTemplateResources() map[string]*AWSEC2Launc // GetAWSEC2LaunchTemplateWithName retrieves all AWSEC2LaunchTemplate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2LaunchTemplateWithName(name string) (*AWSEC2LaunchTemplate, error) { +func (t *Template) GetAWSEC2LaunchTemplateWithName(name string) (*resources.AWSEC2LaunchTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2LaunchTemplate: + case *resources.AWSEC2LaunchTemplate: return resource, nil } } @@ -3235,11 +3236,11 @@ func (t *Template) GetAWSEC2LaunchTemplateWithName(name string) (*AWSEC2LaunchTe } // GetAllAWSEC2NatGatewayResources retrieves all AWSEC2NatGateway items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2NatGatewayResources() map[string]*AWSEC2NatGateway { - results := map[string]*AWSEC2NatGateway{} +func (t *Template) GetAllAWSEC2NatGatewayResources() map[string]*resources.AWSEC2NatGateway { + results := map[string]*resources.AWSEC2NatGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2NatGateway: + case *resources.AWSEC2NatGateway: results[name] = resource } } @@ -3248,10 +3249,10 @@ func (t *Template) GetAllAWSEC2NatGatewayResources() map[string]*AWSEC2NatGatewa // GetAWSEC2NatGatewayWithName retrieves all AWSEC2NatGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2NatGatewayWithName(name string) (*AWSEC2NatGateway, error) { +func (t *Template) GetAWSEC2NatGatewayWithName(name string) (*resources.AWSEC2NatGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2NatGateway: + case *resources.AWSEC2NatGateway: return resource, nil } } @@ -3259,11 +3260,11 @@ func (t *Template) GetAWSEC2NatGatewayWithName(name string) (*AWSEC2NatGateway, } // GetAllAWSEC2NetworkAclResources retrieves all AWSEC2NetworkAcl items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2NetworkAclResources() map[string]*AWSEC2NetworkAcl { - results := map[string]*AWSEC2NetworkAcl{} +func (t *Template) GetAllAWSEC2NetworkAclResources() map[string]*resources.AWSEC2NetworkAcl { + results := map[string]*resources.AWSEC2NetworkAcl{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2NetworkAcl: + case *resources.AWSEC2NetworkAcl: results[name] = resource } } @@ -3272,10 +3273,10 @@ func (t *Template) GetAllAWSEC2NetworkAclResources() map[string]*AWSEC2NetworkAc // GetAWSEC2NetworkAclWithName retrieves all AWSEC2NetworkAcl items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2NetworkAclWithName(name string) (*AWSEC2NetworkAcl, error) { +func (t *Template) GetAWSEC2NetworkAclWithName(name string) (*resources.AWSEC2NetworkAcl, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2NetworkAcl: + case *resources.AWSEC2NetworkAcl: return resource, nil } } @@ -3283,11 +3284,11 @@ func (t *Template) GetAWSEC2NetworkAclWithName(name string) (*AWSEC2NetworkAcl, } // GetAllAWSEC2NetworkAclEntryResources retrieves all AWSEC2NetworkAclEntry items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2NetworkAclEntryResources() map[string]*AWSEC2NetworkAclEntry { - results := map[string]*AWSEC2NetworkAclEntry{} +func (t *Template) GetAllAWSEC2NetworkAclEntryResources() map[string]*resources.AWSEC2NetworkAclEntry { + results := map[string]*resources.AWSEC2NetworkAclEntry{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2NetworkAclEntry: + case *resources.AWSEC2NetworkAclEntry: results[name] = resource } } @@ -3296,10 +3297,10 @@ func (t *Template) GetAllAWSEC2NetworkAclEntryResources() map[string]*AWSEC2Netw // GetAWSEC2NetworkAclEntryWithName retrieves all AWSEC2NetworkAclEntry items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2NetworkAclEntryWithName(name string) (*AWSEC2NetworkAclEntry, error) { +func (t *Template) GetAWSEC2NetworkAclEntryWithName(name string) (*resources.AWSEC2NetworkAclEntry, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2NetworkAclEntry: + case *resources.AWSEC2NetworkAclEntry: return resource, nil } } @@ -3307,11 +3308,11 @@ func (t *Template) GetAWSEC2NetworkAclEntryWithName(name string) (*AWSEC2Network } // GetAllAWSEC2NetworkInterfaceResources retrieves all AWSEC2NetworkInterface items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2NetworkInterfaceResources() map[string]*AWSEC2NetworkInterface { - results := map[string]*AWSEC2NetworkInterface{} +func (t *Template) GetAllAWSEC2NetworkInterfaceResources() map[string]*resources.AWSEC2NetworkInterface { + results := map[string]*resources.AWSEC2NetworkInterface{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2NetworkInterface: + case *resources.AWSEC2NetworkInterface: results[name] = resource } } @@ -3320,10 +3321,10 @@ func (t *Template) GetAllAWSEC2NetworkInterfaceResources() map[string]*AWSEC2Net // GetAWSEC2NetworkInterfaceWithName retrieves all AWSEC2NetworkInterface items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2NetworkInterfaceWithName(name string) (*AWSEC2NetworkInterface, error) { +func (t *Template) GetAWSEC2NetworkInterfaceWithName(name string) (*resources.AWSEC2NetworkInterface, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2NetworkInterface: + case *resources.AWSEC2NetworkInterface: return resource, nil } } @@ -3331,11 +3332,11 @@ func (t *Template) GetAWSEC2NetworkInterfaceWithName(name string) (*AWSEC2Networ } // GetAllAWSEC2NetworkInterfaceAttachmentResources retrieves all AWSEC2NetworkInterfaceAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2NetworkInterfaceAttachmentResources() map[string]*AWSEC2NetworkInterfaceAttachment { - results := map[string]*AWSEC2NetworkInterfaceAttachment{} +func (t *Template) GetAllAWSEC2NetworkInterfaceAttachmentResources() map[string]*resources.AWSEC2NetworkInterfaceAttachment { + results := map[string]*resources.AWSEC2NetworkInterfaceAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2NetworkInterfaceAttachment: + case *resources.AWSEC2NetworkInterfaceAttachment: results[name] = resource } } @@ -3344,10 +3345,10 @@ func (t *Template) GetAllAWSEC2NetworkInterfaceAttachmentResources() map[string] // GetAWSEC2NetworkInterfaceAttachmentWithName retrieves all AWSEC2NetworkInterfaceAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2NetworkInterfaceAttachmentWithName(name string) (*AWSEC2NetworkInterfaceAttachment, error) { +func (t *Template) GetAWSEC2NetworkInterfaceAttachmentWithName(name string) (*resources.AWSEC2NetworkInterfaceAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2NetworkInterfaceAttachment: + case *resources.AWSEC2NetworkInterfaceAttachment: return resource, nil } } @@ -3355,11 +3356,11 @@ func (t *Template) GetAWSEC2NetworkInterfaceAttachmentWithName(name string) (*AW } // GetAllAWSEC2NetworkInterfacePermissionResources retrieves all AWSEC2NetworkInterfacePermission items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2NetworkInterfacePermissionResources() map[string]*AWSEC2NetworkInterfacePermission { - results := map[string]*AWSEC2NetworkInterfacePermission{} +func (t *Template) GetAllAWSEC2NetworkInterfacePermissionResources() map[string]*resources.AWSEC2NetworkInterfacePermission { + results := map[string]*resources.AWSEC2NetworkInterfacePermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2NetworkInterfacePermission: + case *resources.AWSEC2NetworkInterfacePermission: results[name] = resource } } @@ -3368,10 +3369,10 @@ func (t *Template) GetAllAWSEC2NetworkInterfacePermissionResources() map[string] // GetAWSEC2NetworkInterfacePermissionWithName retrieves all AWSEC2NetworkInterfacePermission items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2NetworkInterfacePermissionWithName(name string) (*AWSEC2NetworkInterfacePermission, error) { +func (t *Template) GetAWSEC2NetworkInterfacePermissionWithName(name string) (*resources.AWSEC2NetworkInterfacePermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2NetworkInterfacePermission: + case *resources.AWSEC2NetworkInterfacePermission: return resource, nil } } @@ -3379,11 +3380,11 @@ func (t *Template) GetAWSEC2NetworkInterfacePermissionWithName(name string) (*AW } // GetAllAWSEC2PlacementGroupResources retrieves all AWSEC2PlacementGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2PlacementGroupResources() map[string]*AWSEC2PlacementGroup { - results := map[string]*AWSEC2PlacementGroup{} +func (t *Template) GetAllAWSEC2PlacementGroupResources() map[string]*resources.AWSEC2PlacementGroup { + results := map[string]*resources.AWSEC2PlacementGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2PlacementGroup: + case *resources.AWSEC2PlacementGroup: results[name] = resource } } @@ -3392,10 +3393,10 @@ func (t *Template) GetAllAWSEC2PlacementGroupResources() map[string]*AWSEC2Place // GetAWSEC2PlacementGroupWithName retrieves all AWSEC2PlacementGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2PlacementGroupWithName(name string) (*AWSEC2PlacementGroup, error) { +func (t *Template) GetAWSEC2PlacementGroupWithName(name string) (*resources.AWSEC2PlacementGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2PlacementGroup: + case *resources.AWSEC2PlacementGroup: return resource, nil } } @@ -3403,11 +3404,11 @@ func (t *Template) GetAWSEC2PlacementGroupWithName(name string) (*AWSEC2Placemen } // GetAllAWSEC2RouteResources retrieves all AWSEC2Route items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2RouteResources() map[string]*AWSEC2Route { - results := map[string]*AWSEC2Route{} +func (t *Template) GetAllAWSEC2RouteResources() map[string]*resources.AWSEC2Route { + results := map[string]*resources.AWSEC2Route{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2Route: + case *resources.AWSEC2Route: results[name] = resource } } @@ -3416,10 +3417,10 @@ func (t *Template) GetAllAWSEC2RouteResources() map[string]*AWSEC2Route { // GetAWSEC2RouteWithName retrieves all AWSEC2Route items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2RouteWithName(name string) (*AWSEC2Route, error) { +func (t *Template) GetAWSEC2RouteWithName(name string) (*resources.AWSEC2Route, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2Route: + case *resources.AWSEC2Route: return resource, nil } } @@ -3427,11 +3428,11 @@ func (t *Template) GetAWSEC2RouteWithName(name string) (*AWSEC2Route, error) { } // GetAllAWSEC2RouteTableResources retrieves all AWSEC2RouteTable items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2RouteTableResources() map[string]*AWSEC2RouteTable { - results := map[string]*AWSEC2RouteTable{} +func (t *Template) GetAllAWSEC2RouteTableResources() map[string]*resources.AWSEC2RouteTable { + results := map[string]*resources.AWSEC2RouteTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2RouteTable: + case *resources.AWSEC2RouteTable: results[name] = resource } } @@ -3440,10 +3441,10 @@ func (t *Template) GetAllAWSEC2RouteTableResources() map[string]*AWSEC2RouteTabl // GetAWSEC2RouteTableWithName retrieves all AWSEC2RouteTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2RouteTableWithName(name string) (*AWSEC2RouteTable, error) { +func (t *Template) GetAWSEC2RouteTableWithName(name string) (*resources.AWSEC2RouteTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2RouteTable: + case *resources.AWSEC2RouteTable: return resource, nil } } @@ -3451,11 +3452,11 @@ func (t *Template) GetAWSEC2RouteTableWithName(name string) (*AWSEC2RouteTable, } // GetAllAWSEC2SecurityGroupResources retrieves all AWSEC2SecurityGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SecurityGroupResources() map[string]*AWSEC2SecurityGroup { - results := map[string]*AWSEC2SecurityGroup{} +func (t *Template) GetAllAWSEC2SecurityGroupResources() map[string]*resources.AWSEC2SecurityGroup { + results := map[string]*resources.AWSEC2SecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2SecurityGroup: + case *resources.AWSEC2SecurityGroup: results[name] = resource } } @@ -3464,10 +3465,10 @@ func (t *Template) GetAllAWSEC2SecurityGroupResources() map[string]*AWSEC2Securi // GetAWSEC2SecurityGroupWithName retrieves all AWSEC2SecurityGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SecurityGroupWithName(name string) (*AWSEC2SecurityGroup, error) { +func (t *Template) GetAWSEC2SecurityGroupWithName(name string) (*resources.AWSEC2SecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2SecurityGroup: + case *resources.AWSEC2SecurityGroup: return resource, nil } } @@ -3475,11 +3476,11 @@ func (t *Template) GetAWSEC2SecurityGroupWithName(name string) (*AWSEC2SecurityG } // GetAllAWSEC2SecurityGroupEgressResources retrieves all AWSEC2SecurityGroupEgress items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SecurityGroupEgressResources() map[string]*AWSEC2SecurityGroupEgress { - results := map[string]*AWSEC2SecurityGroupEgress{} +func (t *Template) GetAllAWSEC2SecurityGroupEgressResources() map[string]*resources.AWSEC2SecurityGroupEgress { + results := map[string]*resources.AWSEC2SecurityGroupEgress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2SecurityGroupEgress: + case *resources.AWSEC2SecurityGroupEgress: results[name] = resource } } @@ -3488,10 +3489,10 @@ func (t *Template) GetAllAWSEC2SecurityGroupEgressResources() map[string]*AWSEC2 // GetAWSEC2SecurityGroupEgressWithName retrieves all AWSEC2SecurityGroupEgress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SecurityGroupEgressWithName(name string) (*AWSEC2SecurityGroupEgress, error) { +func (t *Template) GetAWSEC2SecurityGroupEgressWithName(name string) (*resources.AWSEC2SecurityGroupEgress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2SecurityGroupEgress: + case *resources.AWSEC2SecurityGroupEgress: return resource, nil } } @@ -3499,11 +3500,11 @@ func (t *Template) GetAWSEC2SecurityGroupEgressWithName(name string) (*AWSEC2Sec } // GetAllAWSEC2SecurityGroupIngressResources retrieves all AWSEC2SecurityGroupIngress items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SecurityGroupIngressResources() map[string]*AWSEC2SecurityGroupIngress { - results := map[string]*AWSEC2SecurityGroupIngress{} +func (t *Template) GetAllAWSEC2SecurityGroupIngressResources() map[string]*resources.AWSEC2SecurityGroupIngress { + results := map[string]*resources.AWSEC2SecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2SecurityGroupIngress: + case *resources.AWSEC2SecurityGroupIngress: results[name] = resource } } @@ -3512,10 +3513,10 @@ func (t *Template) GetAllAWSEC2SecurityGroupIngressResources() map[string]*AWSEC // GetAWSEC2SecurityGroupIngressWithName retrieves all AWSEC2SecurityGroupIngress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SecurityGroupIngressWithName(name string) (*AWSEC2SecurityGroupIngress, error) { +func (t *Template) GetAWSEC2SecurityGroupIngressWithName(name string) (*resources.AWSEC2SecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2SecurityGroupIngress: + case *resources.AWSEC2SecurityGroupIngress: return resource, nil } } @@ -3523,11 +3524,11 @@ func (t *Template) GetAWSEC2SecurityGroupIngressWithName(name string) (*AWSEC2Se } // GetAllAWSEC2SpotFleetResources retrieves all AWSEC2SpotFleet items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SpotFleetResources() map[string]*AWSEC2SpotFleet { - results := map[string]*AWSEC2SpotFleet{} +func (t *Template) GetAllAWSEC2SpotFleetResources() map[string]*resources.AWSEC2SpotFleet { + results := map[string]*resources.AWSEC2SpotFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2SpotFleet: + case *resources.AWSEC2SpotFleet: results[name] = resource } } @@ -3536,10 +3537,10 @@ func (t *Template) GetAllAWSEC2SpotFleetResources() map[string]*AWSEC2SpotFleet // GetAWSEC2SpotFleetWithName retrieves all AWSEC2SpotFleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SpotFleetWithName(name string) (*AWSEC2SpotFleet, error) { +func (t *Template) GetAWSEC2SpotFleetWithName(name string) (*resources.AWSEC2SpotFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2SpotFleet: + case *resources.AWSEC2SpotFleet: return resource, nil } } @@ -3547,11 +3548,11 @@ func (t *Template) GetAWSEC2SpotFleetWithName(name string) (*AWSEC2SpotFleet, er } // GetAllAWSEC2SubnetResources retrieves all AWSEC2Subnet items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SubnetResources() map[string]*AWSEC2Subnet { - results := map[string]*AWSEC2Subnet{} +func (t *Template) GetAllAWSEC2SubnetResources() map[string]*resources.AWSEC2Subnet { + results := map[string]*resources.AWSEC2Subnet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2Subnet: + case *resources.AWSEC2Subnet: results[name] = resource } } @@ -3560,10 +3561,10 @@ func (t *Template) GetAllAWSEC2SubnetResources() map[string]*AWSEC2Subnet { // GetAWSEC2SubnetWithName retrieves all AWSEC2Subnet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SubnetWithName(name string) (*AWSEC2Subnet, error) { +func (t *Template) GetAWSEC2SubnetWithName(name string) (*resources.AWSEC2Subnet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2Subnet: + case *resources.AWSEC2Subnet: return resource, nil } } @@ -3571,11 +3572,11 @@ func (t *Template) GetAWSEC2SubnetWithName(name string) (*AWSEC2Subnet, error) { } // GetAllAWSEC2SubnetCidrBlockResources retrieves all AWSEC2SubnetCidrBlock items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SubnetCidrBlockResources() map[string]*AWSEC2SubnetCidrBlock { - results := map[string]*AWSEC2SubnetCidrBlock{} +func (t *Template) GetAllAWSEC2SubnetCidrBlockResources() map[string]*resources.AWSEC2SubnetCidrBlock { + results := map[string]*resources.AWSEC2SubnetCidrBlock{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2SubnetCidrBlock: + case *resources.AWSEC2SubnetCidrBlock: results[name] = resource } } @@ -3584,10 +3585,10 @@ func (t *Template) GetAllAWSEC2SubnetCidrBlockResources() map[string]*AWSEC2Subn // GetAWSEC2SubnetCidrBlockWithName retrieves all AWSEC2SubnetCidrBlock items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SubnetCidrBlockWithName(name string) (*AWSEC2SubnetCidrBlock, error) { +func (t *Template) GetAWSEC2SubnetCidrBlockWithName(name string) (*resources.AWSEC2SubnetCidrBlock, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2SubnetCidrBlock: + case *resources.AWSEC2SubnetCidrBlock: return resource, nil } } @@ -3595,11 +3596,11 @@ func (t *Template) GetAWSEC2SubnetCidrBlockWithName(name string) (*AWSEC2SubnetC } // GetAllAWSEC2SubnetNetworkAclAssociationResources retrieves all AWSEC2SubnetNetworkAclAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SubnetNetworkAclAssociationResources() map[string]*AWSEC2SubnetNetworkAclAssociation { - results := map[string]*AWSEC2SubnetNetworkAclAssociation{} +func (t *Template) GetAllAWSEC2SubnetNetworkAclAssociationResources() map[string]*resources.AWSEC2SubnetNetworkAclAssociation { + results := map[string]*resources.AWSEC2SubnetNetworkAclAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2SubnetNetworkAclAssociation: + case *resources.AWSEC2SubnetNetworkAclAssociation: results[name] = resource } } @@ -3608,10 +3609,10 @@ func (t *Template) GetAllAWSEC2SubnetNetworkAclAssociationResources() map[string // GetAWSEC2SubnetNetworkAclAssociationWithName retrieves all AWSEC2SubnetNetworkAclAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SubnetNetworkAclAssociationWithName(name string) (*AWSEC2SubnetNetworkAclAssociation, error) { +func (t *Template) GetAWSEC2SubnetNetworkAclAssociationWithName(name string) (*resources.AWSEC2SubnetNetworkAclAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2SubnetNetworkAclAssociation: + case *resources.AWSEC2SubnetNetworkAclAssociation: return resource, nil } } @@ -3619,11 +3620,11 @@ func (t *Template) GetAWSEC2SubnetNetworkAclAssociationWithName(name string) (*A } // GetAllAWSEC2SubnetRouteTableAssociationResources retrieves all AWSEC2SubnetRouteTableAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2SubnetRouteTableAssociationResources() map[string]*AWSEC2SubnetRouteTableAssociation { - results := map[string]*AWSEC2SubnetRouteTableAssociation{} +func (t *Template) GetAllAWSEC2SubnetRouteTableAssociationResources() map[string]*resources.AWSEC2SubnetRouteTableAssociation { + results := map[string]*resources.AWSEC2SubnetRouteTableAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2SubnetRouteTableAssociation: + case *resources.AWSEC2SubnetRouteTableAssociation: results[name] = resource } } @@ -3632,10 +3633,10 @@ func (t *Template) GetAllAWSEC2SubnetRouteTableAssociationResources() map[string // GetAWSEC2SubnetRouteTableAssociationWithName retrieves all AWSEC2SubnetRouteTableAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2SubnetRouteTableAssociationWithName(name string) (*AWSEC2SubnetRouteTableAssociation, error) { +func (t *Template) GetAWSEC2SubnetRouteTableAssociationWithName(name string) (*resources.AWSEC2SubnetRouteTableAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2SubnetRouteTableAssociation: + case *resources.AWSEC2SubnetRouteTableAssociation: return resource, nil } } @@ -3643,11 +3644,11 @@ func (t *Template) GetAWSEC2SubnetRouteTableAssociationWithName(name string) (*A } // GetAllAWSEC2TransitGatewayResources retrieves all AWSEC2TransitGateway items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2TransitGatewayResources() map[string]*AWSEC2TransitGateway { - results := map[string]*AWSEC2TransitGateway{} +func (t *Template) GetAllAWSEC2TransitGatewayResources() map[string]*resources.AWSEC2TransitGateway { + results := map[string]*resources.AWSEC2TransitGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2TransitGateway: + case *resources.AWSEC2TransitGateway: results[name] = resource } } @@ -3656,10 +3657,10 @@ func (t *Template) GetAllAWSEC2TransitGatewayResources() map[string]*AWSEC2Trans // GetAWSEC2TransitGatewayWithName retrieves all AWSEC2TransitGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2TransitGatewayWithName(name string) (*AWSEC2TransitGateway, error) { +func (t *Template) GetAWSEC2TransitGatewayWithName(name string) (*resources.AWSEC2TransitGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2TransitGateway: + case *resources.AWSEC2TransitGateway: return resource, nil } } @@ -3667,11 +3668,11 @@ func (t *Template) GetAWSEC2TransitGatewayWithName(name string) (*AWSEC2TransitG } // GetAllAWSEC2TransitGatewayAttachmentResources retrieves all AWSEC2TransitGatewayAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2TransitGatewayAttachmentResources() map[string]*AWSEC2TransitGatewayAttachment { - results := map[string]*AWSEC2TransitGatewayAttachment{} +func (t *Template) GetAllAWSEC2TransitGatewayAttachmentResources() map[string]*resources.AWSEC2TransitGatewayAttachment { + results := map[string]*resources.AWSEC2TransitGatewayAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayAttachment: + case *resources.AWSEC2TransitGatewayAttachment: results[name] = resource } } @@ -3680,10 +3681,10 @@ func (t *Template) GetAllAWSEC2TransitGatewayAttachmentResources() map[string]*A // GetAWSEC2TransitGatewayAttachmentWithName retrieves all AWSEC2TransitGatewayAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2TransitGatewayAttachmentWithName(name string) (*AWSEC2TransitGatewayAttachment, error) { +func (t *Template) GetAWSEC2TransitGatewayAttachmentWithName(name string) (*resources.AWSEC2TransitGatewayAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayAttachment: + case *resources.AWSEC2TransitGatewayAttachment: return resource, nil } } @@ -3691,11 +3692,11 @@ func (t *Template) GetAWSEC2TransitGatewayAttachmentWithName(name string) (*AWSE } // GetAllAWSEC2TransitGatewayRouteResources retrieves all AWSEC2TransitGatewayRoute items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*AWSEC2TransitGatewayRoute { - results := map[string]*AWSEC2TransitGatewayRoute{} +func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*resources.AWSEC2TransitGatewayRoute { + results := map[string]*resources.AWSEC2TransitGatewayRoute{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRoute: + case *resources.AWSEC2TransitGatewayRoute: results[name] = resource } } @@ -3704,10 +3705,10 @@ func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*AWSEC2 // GetAWSEC2TransitGatewayRouteWithName retrieves all AWSEC2TransitGatewayRoute items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2TransitGatewayRouteWithName(name string) (*AWSEC2TransitGatewayRoute, error) { +func (t *Template) GetAWSEC2TransitGatewayRouteWithName(name string) (*resources.AWSEC2TransitGatewayRoute, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRoute: + case *resources.AWSEC2TransitGatewayRoute: return resource, nil } } @@ -3715,11 +3716,11 @@ func (t *Template) GetAWSEC2TransitGatewayRouteWithName(name string) (*AWSEC2Tra } // GetAllAWSEC2TransitGatewayRouteTableResources retrieves all AWSEC2TransitGatewayRouteTable items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2TransitGatewayRouteTableResources() map[string]*AWSEC2TransitGatewayRouteTable { - results := map[string]*AWSEC2TransitGatewayRouteTable{} +func (t *Template) GetAllAWSEC2TransitGatewayRouteTableResources() map[string]*resources.AWSEC2TransitGatewayRouteTable { + results := map[string]*resources.AWSEC2TransitGatewayRouteTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRouteTable: + case *resources.AWSEC2TransitGatewayRouteTable: results[name] = resource } } @@ -3728,10 +3729,10 @@ func (t *Template) GetAllAWSEC2TransitGatewayRouteTableResources() map[string]*A // GetAWSEC2TransitGatewayRouteTableWithName retrieves all AWSEC2TransitGatewayRouteTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2TransitGatewayRouteTableWithName(name string) (*AWSEC2TransitGatewayRouteTable, error) { +func (t *Template) GetAWSEC2TransitGatewayRouteTableWithName(name string) (*resources.AWSEC2TransitGatewayRouteTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRouteTable: + case *resources.AWSEC2TransitGatewayRouteTable: return resource, nil } } @@ -3739,11 +3740,11 @@ func (t *Template) GetAWSEC2TransitGatewayRouteTableWithName(name string) (*AWSE } // GetAllAWSEC2TransitGatewayRouteTableAssociationResources retrieves all AWSEC2TransitGatewayRouteTableAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2TransitGatewayRouteTableAssociationResources() map[string]*AWSEC2TransitGatewayRouteTableAssociation { - results := map[string]*AWSEC2TransitGatewayRouteTableAssociation{} +func (t *Template) GetAllAWSEC2TransitGatewayRouteTableAssociationResources() map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation { + results := map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRouteTableAssociation: + case *resources.AWSEC2TransitGatewayRouteTableAssociation: results[name] = resource } } @@ -3752,10 +3753,10 @@ func (t *Template) GetAllAWSEC2TransitGatewayRouteTableAssociationResources() ma // GetAWSEC2TransitGatewayRouteTableAssociationWithName retrieves all AWSEC2TransitGatewayRouteTableAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2TransitGatewayRouteTableAssociationWithName(name string) (*AWSEC2TransitGatewayRouteTableAssociation, error) { +func (t *Template) GetAWSEC2TransitGatewayRouteTableAssociationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTableAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRouteTableAssociation: + case *resources.AWSEC2TransitGatewayRouteTableAssociation: return resource, nil } } @@ -3763,11 +3764,11 @@ func (t *Template) GetAWSEC2TransitGatewayRouteTableAssociationWithName(name str } // GetAllAWSEC2TransitGatewayRouteTablePropagationResources retrieves all AWSEC2TransitGatewayRouteTablePropagation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2TransitGatewayRouteTablePropagationResources() map[string]*AWSEC2TransitGatewayRouteTablePropagation { - results := map[string]*AWSEC2TransitGatewayRouteTablePropagation{} +func (t *Template) GetAllAWSEC2TransitGatewayRouteTablePropagationResources() map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation { + results := map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRouteTablePropagation: + case *resources.AWSEC2TransitGatewayRouteTablePropagation: results[name] = resource } } @@ -3776,10 +3777,10 @@ func (t *Template) GetAllAWSEC2TransitGatewayRouteTablePropagationResources() ma // GetAWSEC2TransitGatewayRouteTablePropagationWithName retrieves all AWSEC2TransitGatewayRouteTablePropagation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2TransitGatewayRouteTablePropagationWithName(name string) (*AWSEC2TransitGatewayRouteTablePropagation, error) { +func (t *Template) GetAWSEC2TransitGatewayRouteTablePropagationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTablePropagation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2TransitGatewayRouteTablePropagation: + case *resources.AWSEC2TransitGatewayRouteTablePropagation: return resource, nil } } @@ -3787,11 +3788,11 @@ func (t *Template) GetAWSEC2TransitGatewayRouteTablePropagationWithName(name str } // GetAllAWSEC2TrunkInterfaceAssociationResources retrieves all AWSEC2TrunkInterfaceAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2TrunkInterfaceAssociationResources() map[string]*AWSEC2TrunkInterfaceAssociation { - results := map[string]*AWSEC2TrunkInterfaceAssociation{} +func (t *Template) GetAllAWSEC2TrunkInterfaceAssociationResources() map[string]*resources.AWSEC2TrunkInterfaceAssociation { + results := map[string]*resources.AWSEC2TrunkInterfaceAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2TrunkInterfaceAssociation: + case *resources.AWSEC2TrunkInterfaceAssociation: results[name] = resource } } @@ -3800,10 +3801,10 @@ func (t *Template) GetAllAWSEC2TrunkInterfaceAssociationResources() map[string]* // GetAWSEC2TrunkInterfaceAssociationWithName retrieves all AWSEC2TrunkInterfaceAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2TrunkInterfaceAssociationWithName(name string) (*AWSEC2TrunkInterfaceAssociation, error) { +func (t *Template) GetAWSEC2TrunkInterfaceAssociationWithName(name string) (*resources.AWSEC2TrunkInterfaceAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2TrunkInterfaceAssociation: + case *resources.AWSEC2TrunkInterfaceAssociation: return resource, nil } } @@ -3811,11 +3812,11 @@ func (t *Template) GetAWSEC2TrunkInterfaceAssociationWithName(name string) (*AWS } // GetAllAWSEC2VPCResources retrieves all AWSEC2VPC items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCResources() map[string]*AWSEC2VPC { - results := map[string]*AWSEC2VPC{} +func (t *Template) GetAllAWSEC2VPCResources() map[string]*resources.AWSEC2VPC { + results := map[string]*resources.AWSEC2VPC{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPC: + case *resources.AWSEC2VPC: results[name] = resource } } @@ -3824,10 +3825,10 @@ func (t *Template) GetAllAWSEC2VPCResources() map[string]*AWSEC2VPC { // GetAWSEC2VPCWithName retrieves all AWSEC2VPC items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCWithName(name string) (*AWSEC2VPC, error) { +func (t *Template) GetAWSEC2VPCWithName(name string) (*resources.AWSEC2VPC, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPC: + case *resources.AWSEC2VPC: return resource, nil } } @@ -3835,11 +3836,11 @@ func (t *Template) GetAWSEC2VPCWithName(name string) (*AWSEC2VPC, error) { } // GetAllAWSEC2VPCCidrBlockResources retrieves all AWSEC2VPCCidrBlock items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCCidrBlockResources() map[string]*AWSEC2VPCCidrBlock { - results := map[string]*AWSEC2VPCCidrBlock{} +func (t *Template) GetAllAWSEC2VPCCidrBlockResources() map[string]*resources.AWSEC2VPCCidrBlock { + results := map[string]*resources.AWSEC2VPCCidrBlock{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPCCidrBlock: + case *resources.AWSEC2VPCCidrBlock: results[name] = resource } } @@ -3848,10 +3849,10 @@ func (t *Template) GetAllAWSEC2VPCCidrBlockResources() map[string]*AWSEC2VPCCidr // GetAWSEC2VPCCidrBlockWithName retrieves all AWSEC2VPCCidrBlock items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCCidrBlockWithName(name string) (*AWSEC2VPCCidrBlock, error) { +func (t *Template) GetAWSEC2VPCCidrBlockWithName(name string) (*resources.AWSEC2VPCCidrBlock, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPCCidrBlock: + case *resources.AWSEC2VPCCidrBlock: return resource, nil } } @@ -3859,11 +3860,11 @@ func (t *Template) GetAWSEC2VPCCidrBlockWithName(name string) (*AWSEC2VPCCidrBlo } // GetAllAWSEC2VPCDHCPOptionsAssociationResources retrieves all AWSEC2VPCDHCPOptionsAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCDHCPOptionsAssociationResources() map[string]*AWSEC2VPCDHCPOptionsAssociation { - results := map[string]*AWSEC2VPCDHCPOptionsAssociation{} +func (t *Template) GetAllAWSEC2VPCDHCPOptionsAssociationResources() map[string]*resources.AWSEC2VPCDHCPOptionsAssociation { + results := map[string]*resources.AWSEC2VPCDHCPOptionsAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPCDHCPOptionsAssociation: + case *resources.AWSEC2VPCDHCPOptionsAssociation: results[name] = resource } } @@ -3872,10 +3873,10 @@ func (t *Template) GetAllAWSEC2VPCDHCPOptionsAssociationResources() map[string]* // GetAWSEC2VPCDHCPOptionsAssociationWithName retrieves all AWSEC2VPCDHCPOptionsAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCDHCPOptionsAssociationWithName(name string) (*AWSEC2VPCDHCPOptionsAssociation, error) { +func (t *Template) GetAWSEC2VPCDHCPOptionsAssociationWithName(name string) (*resources.AWSEC2VPCDHCPOptionsAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPCDHCPOptionsAssociation: + case *resources.AWSEC2VPCDHCPOptionsAssociation: return resource, nil } } @@ -3883,11 +3884,11 @@ func (t *Template) GetAWSEC2VPCDHCPOptionsAssociationWithName(name string) (*AWS } // GetAllAWSEC2VPCEndpointResources retrieves all AWSEC2VPCEndpoint items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCEndpointResources() map[string]*AWSEC2VPCEndpoint { - results := map[string]*AWSEC2VPCEndpoint{} +func (t *Template) GetAllAWSEC2VPCEndpointResources() map[string]*resources.AWSEC2VPCEndpoint { + results := map[string]*resources.AWSEC2VPCEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPCEndpoint: + case *resources.AWSEC2VPCEndpoint: results[name] = resource } } @@ -3896,10 +3897,10 @@ func (t *Template) GetAllAWSEC2VPCEndpointResources() map[string]*AWSEC2VPCEndpo // GetAWSEC2VPCEndpointWithName retrieves all AWSEC2VPCEndpoint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCEndpointWithName(name string) (*AWSEC2VPCEndpoint, error) { +func (t *Template) GetAWSEC2VPCEndpointWithName(name string) (*resources.AWSEC2VPCEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPCEndpoint: + case *resources.AWSEC2VPCEndpoint: return resource, nil } } @@ -3907,11 +3908,11 @@ func (t *Template) GetAWSEC2VPCEndpointWithName(name string) (*AWSEC2VPCEndpoint } // GetAllAWSEC2VPCEndpointConnectionNotificationResources retrieves all AWSEC2VPCEndpointConnectionNotification items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCEndpointConnectionNotificationResources() map[string]*AWSEC2VPCEndpointConnectionNotification { - results := map[string]*AWSEC2VPCEndpointConnectionNotification{} +func (t *Template) GetAllAWSEC2VPCEndpointConnectionNotificationResources() map[string]*resources.AWSEC2VPCEndpointConnectionNotification { + results := map[string]*resources.AWSEC2VPCEndpointConnectionNotification{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPCEndpointConnectionNotification: + case *resources.AWSEC2VPCEndpointConnectionNotification: results[name] = resource } } @@ -3920,10 +3921,10 @@ func (t *Template) GetAllAWSEC2VPCEndpointConnectionNotificationResources() map[ // GetAWSEC2VPCEndpointConnectionNotificationWithName retrieves all AWSEC2VPCEndpointConnectionNotification items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCEndpointConnectionNotificationWithName(name string) (*AWSEC2VPCEndpointConnectionNotification, error) { +func (t *Template) GetAWSEC2VPCEndpointConnectionNotificationWithName(name string) (*resources.AWSEC2VPCEndpointConnectionNotification, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPCEndpointConnectionNotification: + case *resources.AWSEC2VPCEndpointConnectionNotification: return resource, nil } } @@ -3931,11 +3932,11 @@ func (t *Template) GetAWSEC2VPCEndpointConnectionNotificationWithName(name strin } // GetAllAWSEC2VPCEndpointServicePermissionsResources retrieves all AWSEC2VPCEndpointServicePermissions items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCEndpointServicePermissionsResources() map[string]*AWSEC2VPCEndpointServicePermissions { - results := map[string]*AWSEC2VPCEndpointServicePermissions{} +func (t *Template) GetAllAWSEC2VPCEndpointServicePermissionsResources() map[string]*resources.AWSEC2VPCEndpointServicePermissions { + results := map[string]*resources.AWSEC2VPCEndpointServicePermissions{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPCEndpointServicePermissions: + case *resources.AWSEC2VPCEndpointServicePermissions: results[name] = resource } } @@ -3944,10 +3945,10 @@ func (t *Template) GetAllAWSEC2VPCEndpointServicePermissionsResources() map[stri // GetAWSEC2VPCEndpointServicePermissionsWithName retrieves all AWSEC2VPCEndpointServicePermissions items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCEndpointServicePermissionsWithName(name string) (*AWSEC2VPCEndpointServicePermissions, error) { +func (t *Template) GetAWSEC2VPCEndpointServicePermissionsWithName(name string) (*resources.AWSEC2VPCEndpointServicePermissions, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPCEndpointServicePermissions: + case *resources.AWSEC2VPCEndpointServicePermissions: return resource, nil } } @@ -3955,11 +3956,11 @@ func (t *Template) GetAWSEC2VPCEndpointServicePermissionsWithName(name string) ( } // GetAllAWSEC2VPCGatewayAttachmentResources retrieves all AWSEC2VPCGatewayAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCGatewayAttachmentResources() map[string]*AWSEC2VPCGatewayAttachment { - results := map[string]*AWSEC2VPCGatewayAttachment{} +func (t *Template) GetAllAWSEC2VPCGatewayAttachmentResources() map[string]*resources.AWSEC2VPCGatewayAttachment { + results := map[string]*resources.AWSEC2VPCGatewayAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPCGatewayAttachment: + case *resources.AWSEC2VPCGatewayAttachment: results[name] = resource } } @@ -3968,10 +3969,10 @@ func (t *Template) GetAllAWSEC2VPCGatewayAttachmentResources() map[string]*AWSEC // GetAWSEC2VPCGatewayAttachmentWithName retrieves all AWSEC2VPCGatewayAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCGatewayAttachmentWithName(name string) (*AWSEC2VPCGatewayAttachment, error) { +func (t *Template) GetAWSEC2VPCGatewayAttachmentWithName(name string) (*resources.AWSEC2VPCGatewayAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPCGatewayAttachment: + case *resources.AWSEC2VPCGatewayAttachment: return resource, nil } } @@ -3979,11 +3980,11 @@ func (t *Template) GetAWSEC2VPCGatewayAttachmentWithName(name string) (*AWSEC2VP } // GetAllAWSEC2VPCPeeringConnectionResources retrieves all AWSEC2VPCPeeringConnection items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPCPeeringConnectionResources() map[string]*AWSEC2VPCPeeringConnection { - results := map[string]*AWSEC2VPCPeeringConnection{} +func (t *Template) GetAllAWSEC2VPCPeeringConnectionResources() map[string]*resources.AWSEC2VPCPeeringConnection { + results := map[string]*resources.AWSEC2VPCPeeringConnection{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPCPeeringConnection: + case *resources.AWSEC2VPCPeeringConnection: results[name] = resource } } @@ -3992,10 +3993,10 @@ func (t *Template) GetAllAWSEC2VPCPeeringConnectionResources() map[string]*AWSEC // GetAWSEC2VPCPeeringConnectionWithName retrieves all AWSEC2VPCPeeringConnection items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPCPeeringConnectionWithName(name string) (*AWSEC2VPCPeeringConnection, error) { +func (t *Template) GetAWSEC2VPCPeeringConnectionWithName(name string) (*resources.AWSEC2VPCPeeringConnection, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPCPeeringConnection: + case *resources.AWSEC2VPCPeeringConnection: return resource, nil } } @@ -4003,11 +4004,11 @@ func (t *Template) GetAWSEC2VPCPeeringConnectionWithName(name string) (*AWSEC2VP } // GetAllAWSEC2VPNConnectionResources retrieves all AWSEC2VPNConnection items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPNConnectionResources() map[string]*AWSEC2VPNConnection { - results := map[string]*AWSEC2VPNConnection{} +func (t *Template) GetAllAWSEC2VPNConnectionResources() map[string]*resources.AWSEC2VPNConnection { + results := map[string]*resources.AWSEC2VPNConnection{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPNConnection: + case *resources.AWSEC2VPNConnection: results[name] = resource } } @@ -4016,10 +4017,10 @@ func (t *Template) GetAllAWSEC2VPNConnectionResources() map[string]*AWSEC2VPNCon // GetAWSEC2VPNConnectionWithName retrieves all AWSEC2VPNConnection items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPNConnectionWithName(name string) (*AWSEC2VPNConnection, error) { +func (t *Template) GetAWSEC2VPNConnectionWithName(name string) (*resources.AWSEC2VPNConnection, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPNConnection: + case *resources.AWSEC2VPNConnection: return resource, nil } } @@ -4027,11 +4028,11 @@ func (t *Template) GetAWSEC2VPNConnectionWithName(name string) (*AWSEC2VPNConnec } // GetAllAWSEC2VPNConnectionRouteResources retrieves all AWSEC2VPNConnectionRoute items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPNConnectionRouteResources() map[string]*AWSEC2VPNConnectionRoute { - results := map[string]*AWSEC2VPNConnectionRoute{} +func (t *Template) GetAllAWSEC2VPNConnectionRouteResources() map[string]*resources.AWSEC2VPNConnectionRoute { + results := map[string]*resources.AWSEC2VPNConnectionRoute{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPNConnectionRoute: + case *resources.AWSEC2VPNConnectionRoute: results[name] = resource } } @@ -4040,10 +4041,10 @@ func (t *Template) GetAllAWSEC2VPNConnectionRouteResources() map[string]*AWSEC2V // GetAWSEC2VPNConnectionRouteWithName retrieves all AWSEC2VPNConnectionRoute items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPNConnectionRouteWithName(name string) (*AWSEC2VPNConnectionRoute, error) { +func (t *Template) GetAWSEC2VPNConnectionRouteWithName(name string) (*resources.AWSEC2VPNConnectionRoute, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPNConnectionRoute: + case *resources.AWSEC2VPNConnectionRoute: return resource, nil } } @@ -4051,11 +4052,11 @@ func (t *Template) GetAWSEC2VPNConnectionRouteWithName(name string) (*AWSEC2VPNC } // GetAllAWSEC2VPNGatewayResources retrieves all AWSEC2VPNGateway items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPNGatewayResources() map[string]*AWSEC2VPNGateway { - results := map[string]*AWSEC2VPNGateway{} +func (t *Template) GetAllAWSEC2VPNGatewayResources() map[string]*resources.AWSEC2VPNGateway { + results := map[string]*resources.AWSEC2VPNGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPNGateway: + case *resources.AWSEC2VPNGateway: results[name] = resource } } @@ -4064,10 +4065,10 @@ func (t *Template) GetAllAWSEC2VPNGatewayResources() map[string]*AWSEC2VPNGatewa // GetAWSEC2VPNGatewayWithName retrieves all AWSEC2VPNGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPNGatewayWithName(name string) (*AWSEC2VPNGateway, error) { +func (t *Template) GetAWSEC2VPNGatewayWithName(name string) (*resources.AWSEC2VPNGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPNGateway: + case *resources.AWSEC2VPNGateway: return resource, nil } } @@ -4075,11 +4076,11 @@ func (t *Template) GetAWSEC2VPNGatewayWithName(name string) (*AWSEC2VPNGateway, } // GetAllAWSEC2VPNGatewayRoutePropagationResources retrieves all AWSEC2VPNGatewayRoutePropagation items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VPNGatewayRoutePropagationResources() map[string]*AWSEC2VPNGatewayRoutePropagation { - results := map[string]*AWSEC2VPNGatewayRoutePropagation{} +func (t *Template) GetAllAWSEC2VPNGatewayRoutePropagationResources() map[string]*resources.AWSEC2VPNGatewayRoutePropagation { + results := map[string]*resources.AWSEC2VPNGatewayRoutePropagation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VPNGatewayRoutePropagation: + case *resources.AWSEC2VPNGatewayRoutePropagation: results[name] = resource } } @@ -4088,10 +4089,10 @@ func (t *Template) GetAllAWSEC2VPNGatewayRoutePropagationResources() map[string] // GetAWSEC2VPNGatewayRoutePropagationWithName retrieves all AWSEC2VPNGatewayRoutePropagation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VPNGatewayRoutePropagationWithName(name string) (*AWSEC2VPNGatewayRoutePropagation, error) { +func (t *Template) GetAWSEC2VPNGatewayRoutePropagationWithName(name string) (*resources.AWSEC2VPNGatewayRoutePropagation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VPNGatewayRoutePropagation: + case *resources.AWSEC2VPNGatewayRoutePropagation: return resource, nil } } @@ -4099,11 +4100,11 @@ func (t *Template) GetAWSEC2VPNGatewayRoutePropagationWithName(name string) (*AW } // GetAllAWSEC2VolumeResources retrieves all AWSEC2Volume items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VolumeResources() map[string]*AWSEC2Volume { - results := map[string]*AWSEC2Volume{} +func (t *Template) GetAllAWSEC2VolumeResources() map[string]*resources.AWSEC2Volume { + results := map[string]*resources.AWSEC2Volume{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2Volume: + case *resources.AWSEC2Volume: results[name] = resource } } @@ -4112,10 +4113,10 @@ func (t *Template) GetAllAWSEC2VolumeResources() map[string]*AWSEC2Volume { // GetAWSEC2VolumeWithName retrieves all AWSEC2Volume items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VolumeWithName(name string) (*AWSEC2Volume, error) { +func (t *Template) GetAWSEC2VolumeWithName(name string) (*resources.AWSEC2Volume, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2Volume: + case *resources.AWSEC2Volume: return resource, nil } } @@ -4123,11 +4124,11 @@ func (t *Template) GetAWSEC2VolumeWithName(name string) (*AWSEC2Volume, error) { } // GetAllAWSEC2VolumeAttachmentResources retrieves all AWSEC2VolumeAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSEC2VolumeAttachmentResources() map[string]*AWSEC2VolumeAttachment { - results := map[string]*AWSEC2VolumeAttachment{} +func (t *Template) GetAllAWSEC2VolumeAttachmentResources() map[string]*resources.AWSEC2VolumeAttachment { + results := map[string]*resources.AWSEC2VolumeAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEC2VolumeAttachment: + case *resources.AWSEC2VolumeAttachment: results[name] = resource } } @@ -4136,10 +4137,10 @@ func (t *Template) GetAllAWSEC2VolumeAttachmentResources() map[string]*AWSEC2Vol // GetAWSEC2VolumeAttachmentWithName retrieves all AWSEC2VolumeAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEC2VolumeAttachmentWithName(name string) (*AWSEC2VolumeAttachment, error) { +func (t *Template) GetAWSEC2VolumeAttachmentWithName(name string) (*resources.AWSEC2VolumeAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEC2VolumeAttachment: + case *resources.AWSEC2VolumeAttachment: return resource, nil } } @@ -4147,11 +4148,11 @@ func (t *Template) GetAWSEC2VolumeAttachmentWithName(name string) (*AWSEC2Volume } // GetAllAWSECRRepositoryResources retrieves all AWSECRRepository items from an AWS CloudFormation template -func (t *Template) GetAllAWSECRRepositoryResources() map[string]*AWSECRRepository { - results := map[string]*AWSECRRepository{} +func (t *Template) GetAllAWSECRRepositoryResources() map[string]*resources.AWSECRRepository { + results := map[string]*resources.AWSECRRepository{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSECRRepository: + case *resources.AWSECRRepository: results[name] = resource } } @@ -4160,10 +4161,10 @@ func (t *Template) GetAllAWSECRRepositoryResources() map[string]*AWSECRRepositor // GetAWSECRRepositoryWithName retrieves all AWSECRRepository items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSECRRepositoryWithName(name string) (*AWSECRRepository, error) { +func (t *Template) GetAWSECRRepositoryWithName(name string) (*resources.AWSECRRepository, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSECRRepository: + case *resources.AWSECRRepository: return resource, nil } } @@ -4171,11 +4172,11 @@ func (t *Template) GetAWSECRRepositoryWithName(name string) (*AWSECRRepository, } // GetAllAWSECSClusterResources retrieves all AWSECSCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSECSClusterResources() map[string]*AWSECSCluster { - results := map[string]*AWSECSCluster{} +func (t *Template) GetAllAWSECSClusterResources() map[string]*resources.AWSECSCluster { + results := map[string]*resources.AWSECSCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSECSCluster: + case *resources.AWSECSCluster: results[name] = resource } } @@ -4184,10 +4185,10 @@ func (t *Template) GetAllAWSECSClusterResources() map[string]*AWSECSCluster { // GetAWSECSClusterWithName retrieves all AWSECSCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSECSClusterWithName(name string) (*AWSECSCluster, error) { +func (t *Template) GetAWSECSClusterWithName(name string) (*resources.AWSECSCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSECSCluster: + case *resources.AWSECSCluster: return resource, nil } } @@ -4195,11 +4196,11 @@ func (t *Template) GetAWSECSClusterWithName(name string) (*AWSECSCluster, error) } // GetAllAWSECSServiceResources retrieves all AWSECSService items from an AWS CloudFormation template -func (t *Template) GetAllAWSECSServiceResources() map[string]*AWSECSService { - results := map[string]*AWSECSService{} +func (t *Template) GetAllAWSECSServiceResources() map[string]*resources.AWSECSService { + results := map[string]*resources.AWSECSService{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSECSService: + case *resources.AWSECSService: results[name] = resource } } @@ -4208,10 +4209,10 @@ func (t *Template) GetAllAWSECSServiceResources() map[string]*AWSECSService { // GetAWSECSServiceWithName retrieves all AWSECSService items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSECSServiceWithName(name string) (*AWSECSService, error) { +func (t *Template) GetAWSECSServiceWithName(name string) (*resources.AWSECSService, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSECSService: + case *resources.AWSECSService: return resource, nil } } @@ -4219,11 +4220,11 @@ func (t *Template) GetAWSECSServiceWithName(name string) (*AWSECSService, error) } // GetAllAWSECSTaskDefinitionResources retrieves all AWSECSTaskDefinition items from an AWS CloudFormation template -func (t *Template) GetAllAWSECSTaskDefinitionResources() map[string]*AWSECSTaskDefinition { - results := map[string]*AWSECSTaskDefinition{} +func (t *Template) GetAllAWSECSTaskDefinitionResources() map[string]*resources.AWSECSTaskDefinition { + results := map[string]*resources.AWSECSTaskDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSECSTaskDefinition: + case *resources.AWSECSTaskDefinition: results[name] = resource } } @@ -4232,10 +4233,10 @@ func (t *Template) GetAllAWSECSTaskDefinitionResources() map[string]*AWSECSTaskD // GetAWSECSTaskDefinitionWithName retrieves all AWSECSTaskDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSECSTaskDefinitionWithName(name string) (*AWSECSTaskDefinition, error) { +func (t *Template) GetAWSECSTaskDefinitionWithName(name string) (*resources.AWSECSTaskDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSECSTaskDefinition: + case *resources.AWSECSTaskDefinition: return resource, nil } } @@ -4243,11 +4244,11 @@ func (t *Template) GetAWSECSTaskDefinitionWithName(name string) (*AWSECSTaskDefi } // GetAllAWSEFSFileSystemResources retrieves all AWSEFSFileSystem items from an AWS CloudFormation template -func (t *Template) GetAllAWSEFSFileSystemResources() map[string]*AWSEFSFileSystem { - results := map[string]*AWSEFSFileSystem{} +func (t *Template) GetAllAWSEFSFileSystemResources() map[string]*resources.AWSEFSFileSystem { + results := map[string]*resources.AWSEFSFileSystem{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEFSFileSystem: + case *resources.AWSEFSFileSystem: results[name] = resource } } @@ -4256,10 +4257,10 @@ func (t *Template) GetAllAWSEFSFileSystemResources() map[string]*AWSEFSFileSyste // GetAWSEFSFileSystemWithName retrieves all AWSEFSFileSystem items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEFSFileSystemWithName(name string) (*AWSEFSFileSystem, error) { +func (t *Template) GetAWSEFSFileSystemWithName(name string) (*resources.AWSEFSFileSystem, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEFSFileSystem: + case *resources.AWSEFSFileSystem: return resource, nil } } @@ -4267,11 +4268,11 @@ func (t *Template) GetAWSEFSFileSystemWithName(name string) (*AWSEFSFileSystem, } // GetAllAWSEFSMountTargetResources retrieves all AWSEFSMountTarget items from an AWS CloudFormation template -func (t *Template) GetAllAWSEFSMountTargetResources() map[string]*AWSEFSMountTarget { - results := map[string]*AWSEFSMountTarget{} +func (t *Template) GetAllAWSEFSMountTargetResources() map[string]*resources.AWSEFSMountTarget { + results := map[string]*resources.AWSEFSMountTarget{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEFSMountTarget: + case *resources.AWSEFSMountTarget: results[name] = resource } } @@ -4280,10 +4281,10 @@ func (t *Template) GetAllAWSEFSMountTargetResources() map[string]*AWSEFSMountTar // GetAWSEFSMountTargetWithName retrieves all AWSEFSMountTarget items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEFSMountTargetWithName(name string) (*AWSEFSMountTarget, error) { +func (t *Template) GetAWSEFSMountTargetWithName(name string) (*resources.AWSEFSMountTarget, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEFSMountTarget: + case *resources.AWSEFSMountTarget: return resource, nil } } @@ -4291,11 +4292,11 @@ func (t *Template) GetAWSEFSMountTargetWithName(name string) (*AWSEFSMountTarget } // GetAllAWSEKSClusterResources retrieves all AWSEKSCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSEKSClusterResources() map[string]*AWSEKSCluster { - results := map[string]*AWSEKSCluster{} +func (t *Template) GetAllAWSEKSClusterResources() map[string]*resources.AWSEKSCluster { + results := map[string]*resources.AWSEKSCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEKSCluster: + case *resources.AWSEKSCluster: results[name] = resource } } @@ -4304,10 +4305,10 @@ func (t *Template) GetAllAWSEKSClusterResources() map[string]*AWSEKSCluster { // GetAWSEKSClusterWithName retrieves all AWSEKSCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEKSClusterWithName(name string) (*AWSEKSCluster, error) { +func (t *Template) GetAWSEKSClusterWithName(name string) (*resources.AWSEKSCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEKSCluster: + case *resources.AWSEKSCluster: return resource, nil } } @@ -4315,11 +4316,11 @@ func (t *Template) GetAWSEKSClusterWithName(name string) (*AWSEKSCluster, error) } // GetAllAWSEMRClusterResources retrieves all AWSEMRCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSEMRClusterResources() map[string]*AWSEMRCluster { - results := map[string]*AWSEMRCluster{} +func (t *Template) GetAllAWSEMRClusterResources() map[string]*resources.AWSEMRCluster { + results := map[string]*resources.AWSEMRCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEMRCluster: + case *resources.AWSEMRCluster: results[name] = resource } } @@ -4328,10 +4329,10 @@ func (t *Template) GetAllAWSEMRClusterResources() map[string]*AWSEMRCluster { // GetAWSEMRClusterWithName retrieves all AWSEMRCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEMRClusterWithName(name string) (*AWSEMRCluster, error) { +func (t *Template) GetAWSEMRClusterWithName(name string) (*resources.AWSEMRCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEMRCluster: + case *resources.AWSEMRCluster: return resource, nil } } @@ -4339,11 +4340,11 @@ func (t *Template) GetAWSEMRClusterWithName(name string) (*AWSEMRCluster, error) } // GetAllAWSEMRInstanceFleetConfigResources retrieves all AWSEMRInstanceFleetConfig items from an AWS CloudFormation template -func (t *Template) GetAllAWSEMRInstanceFleetConfigResources() map[string]*AWSEMRInstanceFleetConfig { - results := map[string]*AWSEMRInstanceFleetConfig{} +func (t *Template) GetAllAWSEMRInstanceFleetConfigResources() map[string]*resources.AWSEMRInstanceFleetConfig { + results := map[string]*resources.AWSEMRInstanceFleetConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEMRInstanceFleetConfig: + case *resources.AWSEMRInstanceFleetConfig: results[name] = resource } } @@ -4352,10 +4353,10 @@ func (t *Template) GetAllAWSEMRInstanceFleetConfigResources() map[string]*AWSEMR // GetAWSEMRInstanceFleetConfigWithName retrieves all AWSEMRInstanceFleetConfig items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEMRInstanceFleetConfigWithName(name string) (*AWSEMRInstanceFleetConfig, error) { +func (t *Template) GetAWSEMRInstanceFleetConfigWithName(name string) (*resources.AWSEMRInstanceFleetConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEMRInstanceFleetConfig: + case *resources.AWSEMRInstanceFleetConfig: return resource, nil } } @@ -4363,11 +4364,11 @@ func (t *Template) GetAWSEMRInstanceFleetConfigWithName(name string) (*AWSEMRIns } // GetAllAWSEMRInstanceGroupConfigResources retrieves all AWSEMRInstanceGroupConfig items from an AWS CloudFormation template -func (t *Template) GetAllAWSEMRInstanceGroupConfigResources() map[string]*AWSEMRInstanceGroupConfig { - results := map[string]*AWSEMRInstanceGroupConfig{} +func (t *Template) GetAllAWSEMRInstanceGroupConfigResources() map[string]*resources.AWSEMRInstanceGroupConfig { + results := map[string]*resources.AWSEMRInstanceGroupConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEMRInstanceGroupConfig: + case *resources.AWSEMRInstanceGroupConfig: results[name] = resource } } @@ -4376,10 +4377,10 @@ func (t *Template) GetAllAWSEMRInstanceGroupConfigResources() map[string]*AWSEMR // GetAWSEMRInstanceGroupConfigWithName retrieves all AWSEMRInstanceGroupConfig items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEMRInstanceGroupConfigWithName(name string) (*AWSEMRInstanceGroupConfig, error) { +func (t *Template) GetAWSEMRInstanceGroupConfigWithName(name string) (*resources.AWSEMRInstanceGroupConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEMRInstanceGroupConfig: + case *resources.AWSEMRInstanceGroupConfig: return resource, nil } } @@ -4387,11 +4388,11 @@ func (t *Template) GetAWSEMRInstanceGroupConfigWithName(name string) (*AWSEMRIns } // GetAllAWSEMRSecurityConfigurationResources retrieves all AWSEMRSecurityConfiguration items from an AWS CloudFormation template -func (t *Template) GetAllAWSEMRSecurityConfigurationResources() map[string]*AWSEMRSecurityConfiguration { - results := map[string]*AWSEMRSecurityConfiguration{} +func (t *Template) GetAllAWSEMRSecurityConfigurationResources() map[string]*resources.AWSEMRSecurityConfiguration { + results := map[string]*resources.AWSEMRSecurityConfiguration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEMRSecurityConfiguration: + case *resources.AWSEMRSecurityConfiguration: results[name] = resource } } @@ -4400,10 +4401,10 @@ func (t *Template) GetAllAWSEMRSecurityConfigurationResources() map[string]*AWSE // GetAWSEMRSecurityConfigurationWithName retrieves all AWSEMRSecurityConfiguration items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEMRSecurityConfigurationWithName(name string) (*AWSEMRSecurityConfiguration, error) { +func (t *Template) GetAWSEMRSecurityConfigurationWithName(name string) (*resources.AWSEMRSecurityConfiguration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEMRSecurityConfiguration: + case *resources.AWSEMRSecurityConfiguration: return resource, nil } } @@ -4411,11 +4412,11 @@ func (t *Template) GetAWSEMRSecurityConfigurationWithName(name string) (*AWSEMRS } // GetAllAWSEMRStepResources retrieves all AWSEMRStep items from an AWS CloudFormation template -func (t *Template) GetAllAWSEMRStepResources() map[string]*AWSEMRStep { - results := map[string]*AWSEMRStep{} +func (t *Template) GetAllAWSEMRStepResources() map[string]*resources.AWSEMRStep { + results := map[string]*resources.AWSEMRStep{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEMRStep: + case *resources.AWSEMRStep: results[name] = resource } } @@ -4424,10 +4425,10 @@ func (t *Template) GetAllAWSEMRStepResources() map[string]*AWSEMRStep { // GetAWSEMRStepWithName retrieves all AWSEMRStep items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEMRStepWithName(name string) (*AWSEMRStep, error) { +func (t *Template) GetAWSEMRStepWithName(name string) (*resources.AWSEMRStep, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEMRStep: + case *resources.AWSEMRStep: return resource, nil } } @@ -4435,11 +4436,11 @@ func (t *Template) GetAWSEMRStepWithName(name string) (*AWSEMRStep, error) { } // GetAllAWSElastiCacheCacheClusterResources retrieves all AWSElastiCacheCacheCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSElastiCacheCacheClusterResources() map[string]*AWSElastiCacheCacheCluster { - results := map[string]*AWSElastiCacheCacheCluster{} +func (t *Template) GetAllAWSElastiCacheCacheClusterResources() map[string]*resources.AWSElastiCacheCacheCluster { + results := map[string]*resources.AWSElastiCacheCacheCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElastiCacheCacheCluster: + case *resources.AWSElastiCacheCacheCluster: results[name] = resource } } @@ -4448,10 +4449,10 @@ func (t *Template) GetAllAWSElastiCacheCacheClusterResources() map[string]*AWSEl // GetAWSElastiCacheCacheClusterWithName retrieves all AWSElastiCacheCacheCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElastiCacheCacheClusterWithName(name string) (*AWSElastiCacheCacheCluster, error) { +func (t *Template) GetAWSElastiCacheCacheClusterWithName(name string) (*resources.AWSElastiCacheCacheCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElastiCacheCacheCluster: + case *resources.AWSElastiCacheCacheCluster: return resource, nil } } @@ -4459,11 +4460,11 @@ func (t *Template) GetAWSElastiCacheCacheClusterWithName(name string) (*AWSElast } // GetAllAWSElastiCacheParameterGroupResources retrieves all AWSElastiCacheParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSElastiCacheParameterGroupResources() map[string]*AWSElastiCacheParameterGroup { - results := map[string]*AWSElastiCacheParameterGroup{} +func (t *Template) GetAllAWSElastiCacheParameterGroupResources() map[string]*resources.AWSElastiCacheParameterGroup { + results := map[string]*resources.AWSElastiCacheParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElastiCacheParameterGroup: + case *resources.AWSElastiCacheParameterGroup: results[name] = resource } } @@ -4472,10 +4473,10 @@ func (t *Template) GetAllAWSElastiCacheParameterGroupResources() map[string]*AWS // GetAWSElastiCacheParameterGroupWithName retrieves all AWSElastiCacheParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElastiCacheParameterGroupWithName(name string) (*AWSElastiCacheParameterGroup, error) { +func (t *Template) GetAWSElastiCacheParameterGroupWithName(name string) (*resources.AWSElastiCacheParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElastiCacheParameterGroup: + case *resources.AWSElastiCacheParameterGroup: return resource, nil } } @@ -4483,11 +4484,11 @@ func (t *Template) GetAWSElastiCacheParameterGroupWithName(name string) (*AWSEla } // GetAllAWSElastiCacheReplicationGroupResources retrieves all AWSElastiCacheReplicationGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSElastiCacheReplicationGroupResources() map[string]*AWSElastiCacheReplicationGroup { - results := map[string]*AWSElastiCacheReplicationGroup{} +func (t *Template) GetAllAWSElastiCacheReplicationGroupResources() map[string]*resources.AWSElastiCacheReplicationGroup { + results := map[string]*resources.AWSElastiCacheReplicationGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElastiCacheReplicationGroup: + case *resources.AWSElastiCacheReplicationGroup: results[name] = resource } } @@ -4496,10 +4497,10 @@ func (t *Template) GetAllAWSElastiCacheReplicationGroupResources() map[string]*A // GetAWSElastiCacheReplicationGroupWithName retrieves all AWSElastiCacheReplicationGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElastiCacheReplicationGroupWithName(name string) (*AWSElastiCacheReplicationGroup, error) { +func (t *Template) GetAWSElastiCacheReplicationGroupWithName(name string) (*resources.AWSElastiCacheReplicationGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElastiCacheReplicationGroup: + case *resources.AWSElastiCacheReplicationGroup: return resource, nil } } @@ -4507,11 +4508,11 @@ func (t *Template) GetAWSElastiCacheReplicationGroupWithName(name string) (*AWSE } // GetAllAWSElastiCacheSecurityGroupResources retrieves all AWSElastiCacheSecurityGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSElastiCacheSecurityGroupResources() map[string]*AWSElastiCacheSecurityGroup { - results := map[string]*AWSElastiCacheSecurityGroup{} +func (t *Template) GetAllAWSElastiCacheSecurityGroupResources() map[string]*resources.AWSElastiCacheSecurityGroup { + results := map[string]*resources.AWSElastiCacheSecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElastiCacheSecurityGroup: + case *resources.AWSElastiCacheSecurityGroup: results[name] = resource } } @@ -4520,10 +4521,10 @@ func (t *Template) GetAllAWSElastiCacheSecurityGroupResources() map[string]*AWSE // GetAWSElastiCacheSecurityGroupWithName retrieves all AWSElastiCacheSecurityGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElastiCacheSecurityGroupWithName(name string) (*AWSElastiCacheSecurityGroup, error) { +func (t *Template) GetAWSElastiCacheSecurityGroupWithName(name string) (*resources.AWSElastiCacheSecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElastiCacheSecurityGroup: + case *resources.AWSElastiCacheSecurityGroup: return resource, nil } } @@ -4531,11 +4532,11 @@ func (t *Template) GetAWSElastiCacheSecurityGroupWithName(name string) (*AWSElas } // GetAllAWSElastiCacheSecurityGroupIngressResources retrieves all AWSElastiCacheSecurityGroupIngress items from an AWS CloudFormation template -func (t *Template) GetAllAWSElastiCacheSecurityGroupIngressResources() map[string]*AWSElastiCacheSecurityGroupIngress { - results := map[string]*AWSElastiCacheSecurityGroupIngress{} +func (t *Template) GetAllAWSElastiCacheSecurityGroupIngressResources() map[string]*resources.AWSElastiCacheSecurityGroupIngress { + results := map[string]*resources.AWSElastiCacheSecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElastiCacheSecurityGroupIngress: + case *resources.AWSElastiCacheSecurityGroupIngress: results[name] = resource } } @@ -4544,10 +4545,10 @@ func (t *Template) GetAllAWSElastiCacheSecurityGroupIngressResources() map[strin // GetAWSElastiCacheSecurityGroupIngressWithName retrieves all AWSElastiCacheSecurityGroupIngress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElastiCacheSecurityGroupIngressWithName(name string) (*AWSElastiCacheSecurityGroupIngress, error) { +func (t *Template) GetAWSElastiCacheSecurityGroupIngressWithName(name string) (*resources.AWSElastiCacheSecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElastiCacheSecurityGroupIngress: + case *resources.AWSElastiCacheSecurityGroupIngress: return resource, nil } } @@ -4555,11 +4556,11 @@ func (t *Template) GetAWSElastiCacheSecurityGroupIngressWithName(name string) (* } // GetAllAWSElastiCacheSubnetGroupResources retrieves all AWSElastiCacheSubnetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSElastiCacheSubnetGroupResources() map[string]*AWSElastiCacheSubnetGroup { - results := map[string]*AWSElastiCacheSubnetGroup{} +func (t *Template) GetAllAWSElastiCacheSubnetGroupResources() map[string]*resources.AWSElastiCacheSubnetGroup { + results := map[string]*resources.AWSElastiCacheSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElastiCacheSubnetGroup: + case *resources.AWSElastiCacheSubnetGroup: results[name] = resource } } @@ -4568,10 +4569,10 @@ func (t *Template) GetAllAWSElastiCacheSubnetGroupResources() map[string]*AWSEla // GetAWSElastiCacheSubnetGroupWithName retrieves all AWSElastiCacheSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElastiCacheSubnetGroupWithName(name string) (*AWSElastiCacheSubnetGroup, error) { +func (t *Template) GetAWSElastiCacheSubnetGroupWithName(name string) (*resources.AWSElastiCacheSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElastiCacheSubnetGroup: + case *resources.AWSElastiCacheSubnetGroup: return resource, nil } } @@ -4579,11 +4580,11 @@ func (t *Template) GetAWSElastiCacheSubnetGroupWithName(name string) (*AWSElasti } // GetAllAWSElasticBeanstalkApplicationResources retrieves all AWSElasticBeanstalkApplication items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticBeanstalkApplicationResources() map[string]*AWSElasticBeanstalkApplication { - results := map[string]*AWSElasticBeanstalkApplication{} +func (t *Template) GetAllAWSElasticBeanstalkApplicationResources() map[string]*resources.AWSElasticBeanstalkApplication { + results := map[string]*resources.AWSElasticBeanstalkApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticBeanstalkApplication: + case *resources.AWSElasticBeanstalkApplication: results[name] = resource } } @@ -4592,10 +4593,10 @@ func (t *Template) GetAllAWSElasticBeanstalkApplicationResources() map[string]*A // GetAWSElasticBeanstalkApplicationWithName retrieves all AWSElasticBeanstalkApplication items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticBeanstalkApplicationWithName(name string) (*AWSElasticBeanstalkApplication, error) { +func (t *Template) GetAWSElasticBeanstalkApplicationWithName(name string) (*resources.AWSElasticBeanstalkApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticBeanstalkApplication: + case *resources.AWSElasticBeanstalkApplication: return resource, nil } } @@ -4603,11 +4604,11 @@ func (t *Template) GetAWSElasticBeanstalkApplicationWithName(name string) (*AWSE } // GetAllAWSElasticBeanstalkApplicationVersionResources retrieves all AWSElasticBeanstalkApplicationVersion items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticBeanstalkApplicationVersionResources() map[string]*AWSElasticBeanstalkApplicationVersion { - results := map[string]*AWSElasticBeanstalkApplicationVersion{} +func (t *Template) GetAllAWSElasticBeanstalkApplicationVersionResources() map[string]*resources.AWSElasticBeanstalkApplicationVersion { + results := map[string]*resources.AWSElasticBeanstalkApplicationVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticBeanstalkApplicationVersion: + case *resources.AWSElasticBeanstalkApplicationVersion: results[name] = resource } } @@ -4616,10 +4617,10 @@ func (t *Template) GetAllAWSElasticBeanstalkApplicationVersionResources() map[st // GetAWSElasticBeanstalkApplicationVersionWithName retrieves all AWSElasticBeanstalkApplicationVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticBeanstalkApplicationVersionWithName(name string) (*AWSElasticBeanstalkApplicationVersion, error) { +func (t *Template) GetAWSElasticBeanstalkApplicationVersionWithName(name string) (*resources.AWSElasticBeanstalkApplicationVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticBeanstalkApplicationVersion: + case *resources.AWSElasticBeanstalkApplicationVersion: return resource, nil } } @@ -4627,11 +4628,11 @@ func (t *Template) GetAWSElasticBeanstalkApplicationVersionWithName(name string) } // GetAllAWSElasticBeanstalkConfigurationTemplateResources retrieves all AWSElasticBeanstalkConfigurationTemplate items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticBeanstalkConfigurationTemplateResources() map[string]*AWSElasticBeanstalkConfigurationTemplate { - results := map[string]*AWSElasticBeanstalkConfigurationTemplate{} +func (t *Template) GetAllAWSElasticBeanstalkConfigurationTemplateResources() map[string]*resources.AWSElasticBeanstalkConfigurationTemplate { + results := map[string]*resources.AWSElasticBeanstalkConfigurationTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticBeanstalkConfigurationTemplate: + case *resources.AWSElasticBeanstalkConfigurationTemplate: results[name] = resource } } @@ -4640,10 +4641,10 @@ func (t *Template) GetAllAWSElasticBeanstalkConfigurationTemplateResources() map // GetAWSElasticBeanstalkConfigurationTemplateWithName retrieves all AWSElasticBeanstalkConfigurationTemplate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticBeanstalkConfigurationTemplateWithName(name string) (*AWSElasticBeanstalkConfigurationTemplate, error) { +func (t *Template) GetAWSElasticBeanstalkConfigurationTemplateWithName(name string) (*resources.AWSElasticBeanstalkConfigurationTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticBeanstalkConfigurationTemplate: + case *resources.AWSElasticBeanstalkConfigurationTemplate: return resource, nil } } @@ -4651,11 +4652,11 @@ func (t *Template) GetAWSElasticBeanstalkConfigurationTemplateWithName(name stri } // GetAllAWSElasticBeanstalkEnvironmentResources retrieves all AWSElasticBeanstalkEnvironment items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticBeanstalkEnvironmentResources() map[string]*AWSElasticBeanstalkEnvironment { - results := map[string]*AWSElasticBeanstalkEnvironment{} +func (t *Template) GetAllAWSElasticBeanstalkEnvironmentResources() map[string]*resources.AWSElasticBeanstalkEnvironment { + results := map[string]*resources.AWSElasticBeanstalkEnvironment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticBeanstalkEnvironment: + case *resources.AWSElasticBeanstalkEnvironment: results[name] = resource } } @@ -4664,10 +4665,10 @@ func (t *Template) GetAllAWSElasticBeanstalkEnvironmentResources() map[string]*A // GetAWSElasticBeanstalkEnvironmentWithName retrieves all AWSElasticBeanstalkEnvironment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticBeanstalkEnvironmentWithName(name string) (*AWSElasticBeanstalkEnvironment, error) { +func (t *Template) GetAWSElasticBeanstalkEnvironmentWithName(name string) (*resources.AWSElasticBeanstalkEnvironment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticBeanstalkEnvironment: + case *resources.AWSElasticBeanstalkEnvironment: return resource, nil } } @@ -4675,11 +4676,11 @@ func (t *Template) GetAWSElasticBeanstalkEnvironmentWithName(name string) (*AWSE } // GetAllAWSElasticLoadBalancingLoadBalancerResources retrieves all AWSElasticLoadBalancingLoadBalancer items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticLoadBalancingLoadBalancerResources() map[string]*AWSElasticLoadBalancingLoadBalancer { - results := map[string]*AWSElasticLoadBalancingLoadBalancer{} +func (t *Template) GetAllAWSElasticLoadBalancingLoadBalancerResources() map[string]*resources.AWSElasticLoadBalancingLoadBalancer { + results := map[string]*resources.AWSElasticLoadBalancingLoadBalancer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingLoadBalancer: + case *resources.AWSElasticLoadBalancingLoadBalancer: results[name] = resource } } @@ -4688,10 +4689,10 @@ func (t *Template) GetAllAWSElasticLoadBalancingLoadBalancerResources() map[stri // GetAWSElasticLoadBalancingLoadBalancerWithName retrieves all AWSElasticLoadBalancingLoadBalancer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticLoadBalancingLoadBalancerWithName(name string) (*AWSElasticLoadBalancingLoadBalancer, error) { +func (t *Template) GetAWSElasticLoadBalancingLoadBalancerWithName(name string) (*resources.AWSElasticLoadBalancingLoadBalancer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingLoadBalancer: + case *resources.AWSElasticLoadBalancingLoadBalancer: return resource, nil } } @@ -4699,11 +4700,11 @@ func (t *Template) GetAWSElasticLoadBalancingLoadBalancerWithName(name string) ( } // GetAllAWSElasticLoadBalancingV2ListenerResources retrieves all AWSElasticLoadBalancingV2Listener items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerResources() map[string]*AWSElasticLoadBalancingV2Listener { - results := map[string]*AWSElasticLoadBalancingV2Listener{} +func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerResources() map[string]*resources.AWSElasticLoadBalancingV2Listener { + results := map[string]*resources.AWSElasticLoadBalancingV2Listener{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2Listener: + case *resources.AWSElasticLoadBalancingV2Listener: results[name] = resource } } @@ -4712,10 +4713,10 @@ func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerResources() map[string // GetAWSElasticLoadBalancingV2ListenerWithName retrieves all AWSElasticLoadBalancingV2Listener items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticLoadBalancingV2ListenerWithName(name string) (*AWSElasticLoadBalancingV2Listener, error) { +func (t *Template) GetAWSElasticLoadBalancingV2ListenerWithName(name string) (*resources.AWSElasticLoadBalancingV2Listener, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2Listener: + case *resources.AWSElasticLoadBalancingV2Listener: return resource, nil } } @@ -4723,11 +4724,11 @@ func (t *Template) GetAWSElasticLoadBalancingV2ListenerWithName(name string) (*A } // GetAllAWSElasticLoadBalancingV2ListenerCertificateResources retrieves all AWSElasticLoadBalancingV2ListenerCertificate items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerCertificateResources() map[string]*AWSElasticLoadBalancingV2ListenerCertificate { - results := map[string]*AWSElasticLoadBalancingV2ListenerCertificate{} +func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerCertificateResources() map[string]*resources.AWSElasticLoadBalancingV2ListenerCertificate { + results := map[string]*resources.AWSElasticLoadBalancingV2ListenerCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2ListenerCertificate: + case *resources.AWSElasticLoadBalancingV2ListenerCertificate: results[name] = resource } } @@ -4736,10 +4737,10 @@ func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerCertificateResources() // GetAWSElasticLoadBalancingV2ListenerCertificateWithName retrieves all AWSElasticLoadBalancingV2ListenerCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticLoadBalancingV2ListenerCertificateWithName(name string) (*AWSElasticLoadBalancingV2ListenerCertificate, error) { +func (t *Template) GetAWSElasticLoadBalancingV2ListenerCertificateWithName(name string) (*resources.AWSElasticLoadBalancingV2ListenerCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2ListenerCertificate: + case *resources.AWSElasticLoadBalancingV2ListenerCertificate: return resource, nil } } @@ -4747,11 +4748,11 @@ func (t *Template) GetAWSElasticLoadBalancingV2ListenerCertificateWithName(name } // GetAllAWSElasticLoadBalancingV2ListenerRuleResources retrieves all AWSElasticLoadBalancingV2ListenerRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerRuleResources() map[string]*AWSElasticLoadBalancingV2ListenerRule { - results := map[string]*AWSElasticLoadBalancingV2ListenerRule{} +func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerRuleResources() map[string]*resources.AWSElasticLoadBalancingV2ListenerRule { + results := map[string]*resources.AWSElasticLoadBalancingV2ListenerRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2ListenerRule: + case *resources.AWSElasticLoadBalancingV2ListenerRule: results[name] = resource } } @@ -4760,10 +4761,10 @@ func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerRuleResources() map[st // GetAWSElasticLoadBalancingV2ListenerRuleWithName retrieves all AWSElasticLoadBalancingV2ListenerRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticLoadBalancingV2ListenerRuleWithName(name string) (*AWSElasticLoadBalancingV2ListenerRule, error) { +func (t *Template) GetAWSElasticLoadBalancingV2ListenerRuleWithName(name string) (*resources.AWSElasticLoadBalancingV2ListenerRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2ListenerRule: + case *resources.AWSElasticLoadBalancingV2ListenerRule: return resource, nil } } @@ -4771,11 +4772,11 @@ func (t *Template) GetAWSElasticLoadBalancingV2ListenerRuleWithName(name string) } // GetAllAWSElasticLoadBalancingV2LoadBalancerResources retrieves all AWSElasticLoadBalancingV2LoadBalancer items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticLoadBalancingV2LoadBalancerResources() map[string]*AWSElasticLoadBalancingV2LoadBalancer { - results := map[string]*AWSElasticLoadBalancingV2LoadBalancer{} +func (t *Template) GetAllAWSElasticLoadBalancingV2LoadBalancerResources() map[string]*resources.AWSElasticLoadBalancingV2LoadBalancer { + results := map[string]*resources.AWSElasticLoadBalancingV2LoadBalancer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2LoadBalancer: + case *resources.AWSElasticLoadBalancingV2LoadBalancer: results[name] = resource } } @@ -4784,10 +4785,10 @@ func (t *Template) GetAllAWSElasticLoadBalancingV2LoadBalancerResources() map[st // GetAWSElasticLoadBalancingV2LoadBalancerWithName retrieves all AWSElasticLoadBalancingV2LoadBalancer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticLoadBalancingV2LoadBalancerWithName(name string) (*AWSElasticLoadBalancingV2LoadBalancer, error) { +func (t *Template) GetAWSElasticLoadBalancingV2LoadBalancerWithName(name string) (*resources.AWSElasticLoadBalancingV2LoadBalancer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2LoadBalancer: + case *resources.AWSElasticLoadBalancingV2LoadBalancer: return resource, nil } } @@ -4795,11 +4796,11 @@ func (t *Template) GetAWSElasticLoadBalancingV2LoadBalancerWithName(name string) } // GetAllAWSElasticLoadBalancingV2TargetGroupResources retrieves all AWSElasticLoadBalancingV2TargetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticLoadBalancingV2TargetGroupResources() map[string]*AWSElasticLoadBalancingV2TargetGroup { - results := map[string]*AWSElasticLoadBalancingV2TargetGroup{} +func (t *Template) GetAllAWSElasticLoadBalancingV2TargetGroupResources() map[string]*resources.AWSElasticLoadBalancingV2TargetGroup { + results := map[string]*resources.AWSElasticLoadBalancingV2TargetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2TargetGroup: + case *resources.AWSElasticLoadBalancingV2TargetGroup: results[name] = resource } } @@ -4808,10 +4809,10 @@ func (t *Template) GetAllAWSElasticLoadBalancingV2TargetGroupResources() map[str // GetAWSElasticLoadBalancingV2TargetGroupWithName retrieves all AWSElasticLoadBalancingV2TargetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticLoadBalancingV2TargetGroupWithName(name string) (*AWSElasticLoadBalancingV2TargetGroup, error) { +func (t *Template) GetAWSElasticLoadBalancingV2TargetGroupWithName(name string) (*resources.AWSElasticLoadBalancingV2TargetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticLoadBalancingV2TargetGroup: + case *resources.AWSElasticLoadBalancingV2TargetGroup: return resource, nil } } @@ -4819,11 +4820,11 @@ func (t *Template) GetAWSElasticLoadBalancingV2TargetGroupWithName(name string) } // GetAllAWSElasticsearchDomainResources retrieves all AWSElasticsearchDomain items from an AWS CloudFormation template -func (t *Template) GetAllAWSElasticsearchDomainResources() map[string]*AWSElasticsearchDomain { - results := map[string]*AWSElasticsearchDomain{} +func (t *Template) GetAllAWSElasticsearchDomainResources() map[string]*resources.AWSElasticsearchDomain { + results := map[string]*resources.AWSElasticsearchDomain{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSElasticsearchDomain: + case *resources.AWSElasticsearchDomain: results[name] = resource } } @@ -4832,10 +4833,10 @@ func (t *Template) GetAllAWSElasticsearchDomainResources() map[string]*AWSElasti // GetAWSElasticsearchDomainWithName retrieves all AWSElasticsearchDomain items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSElasticsearchDomainWithName(name string) (*AWSElasticsearchDomain, error) { +func (t *Template) GetAWSElasticsearchDomainWithName(name string) (*resources.AWSElasticsearchDomain, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSElasticsearchDomain: + case *resources.AWSElasticsearchDomain: return resource, nil } } @@ -4843,11 +4844,11 @@ func (t *Template) GetAWSElasticsearchDomainWithName(name string) (*AWSElasticse } // GetAllAWSEventsEventBusPolicyResources retrieves all AWSEventsEventBusPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSEventsEventBusPolicyResources() map[string]*AWSEventsEventBusPolicy { - results := map[string]*AWSEventsEventBusPolicy{} +func (t *Template) GetAllAWSEventsEventBusPolicyResources() map[string]*resources.AWSEventsEventBusPolicy { + results := map[string]*resources.AWSEventsEventBusPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEventsEventBusPolicy: + case *resources.AWSEventsEventBusPolicy: results[name] = resource } } @@ -4856,10 +4857,10 @@ func (t *Template) GetAllAWSEventsEventBusPolicyResources() map[string]*AWSEvent // GetAWSEventsEventBusPolicyWithName retrieves all AWSEventsEventBusPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEventsEventBusPolicyWithName(name string) (*AWSEventsEventBusPolicy, error) { +func (t *Template) GetAWSEventsEventBusPolicyWithName(name string) (*resources.AWSEventsEventBusPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEventsEventBusPolicy: + case *resources.AWSEventsEventBusPolicy: return resource, nil } } @@ -4867,11 +4868,11 @@ func (t *Template) GetAWSEventsEventBusPolicyWithName(name string) (*AWSEventsEv } // GetAllAWSEventsRuleResources retrieves all AWSEventsRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSEventsRuleResources() map[string]*AWSEventsRule { - results := map[string]*AWSEventsRule{} +func (t *Template) GetAllAWSEventsRuleResources() map[string]*resources.AWSEventsRule { + results := map[string]*resources.AWSEventsRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSEventsRule: + case *resources.AWSEventsRule: results[name] = resource } } @@ -4880,10 +4881,10 @@ func (t *Template) GetAllAWSEventsRuleResources() map[string]*AWSEventsRule { // GetAWSEventsRuleWithName retrieves all AWSEventsRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSEventsRuleWithName(name string) (*AWSEventsRule, error) { +func (t *Template) GetAWSEventsRuleWithName(name string) (*resources.AWSEventsRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSEventsRule: + case *resources.AWSEventsRule: return resource, nil } } @@ -4891,11 +4892,11 @@ func (t *Template) GetAWSEventsRuleWithName(name string) (*AWSEventsRule, error) } // GetAllAWSFSxFileSystemResources retrieves all AWSFSxFileSystem items from an AWS CloudFormation template -func (t *Template) GetAllAWSFSxFileSystemResources() map[string]*AWSFSxFileSystem { - results := map[string]*AWSFSxFileSystem{} +func (t *Template) GetAllAWSFSxFileSystemResources() map[string]*resources.AWSFSxFileSystem { + results := map[string]*resources.AWSFSxFileSystem{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSFSxFileSystem: + case *resources.AWSFSxFileSystem: results[name] = resource } } @@ -4904,10 +4905,10 @@ func (t *Template) GetAllAWSFSxFileSystemResources() map[string]*AWSFSxFileSyste // GetAWSFSxFileSystemWithName retrieves all AWSFSxFileSystem items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSFSxFileSystemWithName(name string) (*AWSFSxFileSystem, error) { +func (t *Template) GetAWSFSxFileSystemWithName(name string) (*resources.AWSFSxFileSystem, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSFSxFileSystem: + case *resources.AWSFSxFileSystem: return resource, nil } } @@ -4915,11 +4916,11 @@ func (t *Template) GetAWSFSxFileSystemWithName(name string) (*AWSFSxFileSystem, } // GetAllAWSGameLiftAliasResources retrieves all AWSGameLiftAlias items from an AWS CloudFormation template -func (t *Template) GetAllAWSGameLiftAliasResources() map[string]*AWSGameLiftAlias { - results := map[string]*AWSGameLiftAlias{} +func (t *Template) GetAllAWSGameLiftAliasResources() map[string]*resources.AWSGameLiftAlias { + results := map[string]*resources.AWSGameLiftAlias{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGameLiftAlias: + case *resources.AWSGameLiftAlias: results[name] = resource } } @@ -4928,10 +4929,10 @@ func (t *Template) GetAllAWSGameLiftAliasResources() map[string]*AWSGameLiftAlia // GetAWSGameLiftAliasWithName retrieves all AWSGameLiftAlias items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGameLiftAliasWithName(name string) (*AWSGameLiftAlias, error) { +func (t *Template) GetAWSGameLiftAliasWithName(name string) (*resources.AWSGameLiftAlias, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGameLiftAlias: + case *resources.AWSGameLiftAlias: return resource, nil } } @@ -4939,11 +4940,11 @@ func (t *Template) GetAWSGameLiftAliasWithName(name string) (*AWSGameLiftAlias, } // GetAllAWSGameLiftBuildResources retrieves all AWSGameLiftBuild items from an AWS CloudFormation template -func (t *Template) GetAllAWSGameLiftBuildResources() map[string]*AWSGameLiftBuild { - results := map[string]*AWSGameLiftBuild{} +func (t *Template) GetAllAWSGameLiftBuildResources() map[string]*resources.AWSGameLiftBuild { + results := map[string]*resources.AWSGameLiftBuild{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGameLiftBuild: + case *resources.AWSGameLiftBuild: results[name] = resource } } @@ -4952,10 +4953,10 @@ func (t *Template) GetAllAWSGameLiftBuildResources() map[string]*AWSGameLiftBuil // GetAWSGameLiftBuildWithName retrieves all AWSGameLiftBuild items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGameLiftBuildWithName(name string) (*AWSGameLiftBuild, error) { +func (t *Template) GetAWSGameLiftBuildWithName(name string) (*resources.AWSGameLiftBuild, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGameLiftBuild: + case *resources.AWSGameLiftBuild: return resource, nil } } @@ -4963,11 +4964,11 @@ func (t *Template) GetAWSGameLiftBuildWithName(name string) (*AWSGameLiftBuild, } // GetAllAWSGameLiftFleetResources retrieves all AWSGameLiftFleet items from an AWS CloudFormation template -func (t *Template) GetAllAWSGameLiftFleetResources() map[string]*AWSGameLiftFleet { - results := map[string]*AWSGameLiftFleet{} +func (t *Template) GetAllAWSGameLiftFleetResources() map[string]*resources.AWSGameLiftFleet { + results := map[string]*resources.AWSGameLiftFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGameLiftFleet: + case *resources.AWSGameLiftFleet: results[name] = resource } } @@ -4976,10 +4977,10 @@ func (t *Template) GetAllAWSGameLiftFleetResources() map[string]*AWSGameLiftFlee // GetAWSGameLiftFleetWithName retrieves all AWSGameLiftFleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGameLiftFleetWithName(name string) (*AWSGameLiftFleet, error) { +func (t *Template) GetAWSGameLiftFleetWithName(name string) (*resources.AWSGameLiftFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGameLiftFleet: + case *resources.AWSGameLiftFleet: return resource, nil } } @@ -4987,11 +4988,11 @@ func (t *Template) GetAWSGameLiftFleetWithName(name string) (*AWSGameLiftFleet, } // GetAllAWSGlueClassifierResources retrieves all AWSGlueClassifier items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueClassifierResources() map[string]*AWSGlueClassifier { - results := map[string]*AWSGlueClassifier{} +func (t *Template) GetAllAWSGlueClassifierResources() map[string]*resources.AWSGlueClassifier { + results := map[string]*resources.AWSGlueClassifier{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueClassifier: + case *resources.AWSGlueClassifier: results[name] = resource } } @@ -5000,10 +5001,10 @@ func (t *Template) GetAllAWSGlueClassifierResources() map[string]*AWSGlueClassif // GetAWSGlueClassifierWithName retrieves all AWSGlueClassifier items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueClassifierWithName(name string) (*AWSGlueClassifier, error) { +func (t *Template) GetAWSGlueClassifierWithName(name string) (*resources.AWSGlueClassifier, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueClassifier: + case *resources.AWSGlueClassifier: return resource, nil } } @@ -5011,11 +5012,11 @@ func (t *Template) GetAWSGlueClassifierWithName(name string) (*AWSGlueClassifier } // GetAllAWSGlueConnectionResources retrieves all AWSGlueConnection items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueConnectionResources() map[string]*AWSGlueConnection { - results := map[string]*AWSGlueConnection{} +func (t *Template) GetAllAWSGlueConnectionResources() map[string]*resources.AWSGlueConnection { + results := map[string]*resources.AWSGlueConnection{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueConnection: + case *resources.AWSGlueConnection: results[name] = resource } } @@ -5024,10 +5025,10 @@ func (t *Template) GetAllAWSGlueConnectionResources() map[string]*AWSGlueConnect // GetAWSGlueConnectionWithName retrieves all AWSGlueConnection items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueConnectionWithName(name string) (*AWSGlueConnection, error) { +func (t *Template) GetAWSGlueConnectionWithName(name string) (*resources.AWSGlueConnection, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueConnection: + case *resources.AWSGlueConnection: return resource, nil } } @@ -5035,11 +5036,11 @@ func (t *Template) GetAWSGlueConnectionWithName(name string) (*AWSGlueConnection } // GetAllAWSGlueCrawlerResources retrieves all AWSGlueCrawler items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueCrawlerResources() map[string]*AWSGlueCrawler { - results := map[string]*AWSGlueCrawler{} +func (t *Template) GetAllAWSGlueCrawlerResources() map[string]*resources.AWSGlueCrawler { + results := map[string]*resources.AWSGlueCrawler{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueCrawler: + case *resources.AWSGlueCrawler: results[name] = resource } } @@ -5048,10 +5049,10 @@ func (t *Template) GetAllAWSGlueCrawlerResources() map[string]*AWSGlueCrawler { // GetAWSGlueCrawlerWithName retrieves all AWSGlueCrawler items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueCrawlerWithName(name string) (*AWSGlueCrawler, error) { +func (t *Template) GetAWSGlueCrawlerWithName(name string) (*resources.AWSGlueCrawler, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueCrawler: + case *resources.AWSGlueCrawler: return resource, nil } } @@ -5059,11 +5060,11 @@ func (t *Template) GetAWSGlueCrawlerWithName(name string) (*AWSGlueCrawler, erro } // GetAllAWSGlueDatabaseResources retrieves all AWSGlueDatabase items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueDatabaseResources() map[string]*AWSGlueDatabase { - results := map[string]*AWSGlueDatabase{} +func (t *Template) GetAllAWSGlueDatabaseResources() map[string]*resources.AWSGlueDatabase { + results := map[string]*resources.AWSGlueDatabase{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueDatabase: + case *resources.AWSGlueDatabase: results[name] = resource } } @@ -5072,10 +5073,10 @@ func (t *Template) GetAllAWSGlueDatabaseResources() map[string]*AWSGlueDatabase // GetAWSGlueDatabaseWithName retrieves all AWSGlueDatabase items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueDatabaseWithName(name string) (*AWSGlueDatabase, error) { +func (t *Template) GetAWSGlueDatabaseWithName(name string) (*resources.AWSGlueDatabase, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueDatabase: + case *resources.AWSGlueDatabase: return resource, nil } } @@ -5083,11 +5084,11 @@ func (t *Template) GetAWSGlueDatabaseWithName(name string) (*AWSGlueDatabase, er } // GetAllAWSGlueDevEndpointResources retrieves all AWSGlueDevEndpoint items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueDevEndpointResources() map[string]*AWSGlueDevEndpoint { - results := map[string]*AWSGlueDevEndpoint{} +func (t *Template) GetAllAWSGlueDevEndpointResources() map[string]*resources.AWSGlueDevEndpoint { + results := map[string]*resources.AWSGlueDevEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueDevEndpoint: + case *resources.AWSGlueDevEndpoint: results[name] = resource } } @@ -5096,10 +5097,10 @@ func (t *Template) GetAllAWSGlueDevEndpointResources() map[string]*AWSGlueDevEnd // GetAWSGlueDevEndpointWithName retrieves all AWSGlueDevEndpoint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueDevEndpointWithName(name string) (*AWSGlueDevEndpoint, error) { +func (t *Template) GetAWSGlueDevEndpointWithName(name string) (*resources.AWSGlueDevEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueDevEndpoint: + case *resources.AWSGlueDevEndpoint: return resource, nil } } @@ -5107,11 +5108,11 @@ func (t *Template) GetAWSGlueDevEndpointWithName(name string) (*AWSGlueDevEndpoi } // GetAllAWSGlueJobResources retrieves all AWSGlueJob items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueJobResources() map[string]*AWSGlueJob { - results := map[string]*AWSGlueJob{} +func (t *Template) GetAllAWSGlueJobResources() map[string]*resources.AWSGlueJob { + results := map[string]*resources.AWSGlueJob{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueJob: + case *resources.AWSGlueJob: results[name] = resource } } @@ -5120,10 +5121,10 @@ func (t *Template) GetAllAWSGlueJobResources() map[string]*AWSGlueJob { // GetAWSGlueJobWithName retrieves all AWSGlueJob items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueJobWithName(name string) (*AWSGlueJob, error) { +func (t *Template) GetAWSGlueJobWithName(name string) (*resources.AWSGlueJob, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueJob: + case *resources.AWSGlueJob: return resource, nil } } @@ -5131,11 +5132,11 @@ func (t *Template) GetAWSGlueJobWithName(name string) (*AWSGlueJob, error) { } // GetAllAWSGluePartitionResources retrieves all AWSGluePartition items from an AWS CloudFormation template -func (t *Template) GetAllAWSGluePartitionResources() map[string]*AWSGluePartition { - results := map[string]*AWSGluePartition{} +func (t *Template) GetAllAWSGluePartitionResources() map[string]*resources.AWSGluePartition { + results := map[string]*resources.AWSGluePartition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGluePartition: + case *resources.AWSGluePartition: results[name] = resource } } @@ -5144,10 +5145,10 @@ func (t *Template) GetAllAWSGluePartitionResources() map[string]*AWSGluePartitio // GetAWSGluePartitionWithName retrieves all AWSGluePartition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGluePartitionWithName(name string) (*AWSGluePartition, error) { +func (t *Template) GetAWSGluePartitionWithName(name string) (*resources.AWSGluePartition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGluePartition: + case *resources.AWSGluePartition: return resource, nil } } @@ -5155,11 +5156,11 @@ func (t *Template) GetAWSGluePartitionWithName(name string) (*AWSGluePartition, } // GetAllAWSGlueTableResources retrieves all AWSGlueTable items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueTableResources() map[string]*AWSGlueTable { - results := map[string]*AWSGlueTable{} +func (t *Template) GetAllAWSGlueTableResources() map[string]*resources.AWSGlueTable { + results := map[string]*resources.AWSGlueTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueTable: + case *resources.AWSGlueTable: results[name] = resource } } @@ -5168,10 +5169,10 @@ func (t *Template) GetAllAWSGlueTableResources() map[string]*AWSGlueTable { // GetAWSGlueTableWithName retrieves all AWSGlueTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueTableWithName(name string) (*AWSGlueTable, error) { +func (t *Template) GetAWSGlueTableWithName(name string) (*resources.AWSGlueTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueTable: + case *resources.AWSGlueTable: return resource, nil } } @@ -5179,11 +5180,11 @@ func (t *Template) GetAWSGlueTableWithName(name string) (*AWSGlueTable, error) { } // GetAllAWSGlueTriggerResources retrieves all AWSGlueTrigger items from an AWS CloudFormation template -func (t *Template) GetAllAWSGlueTriggerResources() map[string]*AWSGlueTrigger { - results := map[string]*AWSGlueTrigger{} +func (t *Template) GetAllAWSGlueTriggerResources() map[string]*resources.AWSGlueTrigger { + results := map[string]*resources.AWSGlueTrigger{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGlueTrigger: + case *resources.AWSGlueTrigger: results[name] = resource } } @@ -5192,10 +5193,10 @@ func (t *Template) GetAllAWSGlueTriggerResources() map[string]*AWSGlueTrigger { // GetAWSGlueTriggerWithName retrieves all AWSGlueTrigger items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGlueTriggerWithName(name string) (*AWSGlueTrigger, error) { +func (t *Template) GetAWSGlueTriggerWithName(name string) (*resources.AWSGlueTrigger, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGlueTrigger: + case *resources.AWSGlueTrigger: return resource, nil } } @@ -5203,11 +5204,11 @@ func (t *Template) GetAWSGlueTriggerWithName(name string) (*AWSGlueTrigger, erro } // GetAllAWSGuardDutyDetectorResources retrieves all AWSGuardDutyDetector items from an AWS CloudFormation template -func (t *Template) GetAllAWSGuardDutyDetectorResources() map[string]*AWSGuardDutyDetector { - results := map[string]*AWSGuardDutyDetector{} +func (t *Template) GetAllAWSGuardDutyDetectorResources() map[string]*resources.AWSGuardDutyDetector { + results := map[string]*resources.AWSGuardDutyDetector{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGuardDutyDetector: + case *resources.AWSGuardDutyDetector: results[name] = resource } } @@ -5216,10 +5217,10 @@ func (t *Template) GetAllAWSGuardDutyDetectorResources() map[string]*AWSGuardDut // GetAWSGuardDutyDetectorWithName retrieves all AWSGuardDutyDetector items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGuardDutyDetectorWithName(name string) (*AWSGuardDutyDetector, error) { +func (t *Template) GetAWSGuardDutyDetectorWithName(name string) (*resources.AWSGuardDutyDetector, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGuardDutyDetector: + case *resources.AWSGuardDutyDetector: return resource, nil } } @@ -5227,11 +5228,11 @@ func (t *Template) GetAWSGuardDutyDetectorWithName(name string) (*AWSGuardDutyDe } // GetAllAWSGuardDutyFilterResources retrieves all AWSGuardDutyFilter items from an AWS CloudFormation template -func (t *Template) GetAllAWSGuardDutyFilterResources() map[string]*AWSGuardDutyFilter { - results := map[string]*AWSGuardDutyFilter{} +func (t *Template) GetAllAWSGuardDutyFilterResources() map[string]*resources.AWSGuardDutyFilter { + results := map[string]*resources.AWSGuardDutyFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGuardDutyFilter: + case *resources.AWSGuardDutyFilter: results[name] = resource } } @@ -5240,10 +5241,10 @@ func (t *Template) GetAllAWSGuardDutyFilterResources() map[string]*AWSGuardDutyF // GetAWSGuardDutyFilterWithName retrieves all AWSGuardDutyFilter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGuardDutyFilterWithName(name string) (*AWSGuardDutyFilter, error) { +func (t *Template) GetAWSGuardDutyFilterWithName(name string) (*resources.AWSGuardDutyFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGuardDutyFilter: + case *resources.AWSGuardDutyFilter: return resource, nil } } @@ -5251,11 +5252,11 @@ func (t *Template) GetAWSGuardDutyFilterWithName(name string) (*AWSGuardDutyFilt } // GetAllAWSGuardDutyIPSetResources retrieves all AWSGuardDutyIPSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSGuardDutyIPSetResources() map[string]*AWSGuardDutyIPSet { - results := map[string]*AWSGuardDutyIPSet{} +func (t *Template) GetAllAWSGuardDutyIPSetResources() map[string]*resources.AWSGuardDutyIPSet { + results := map[string]*resources.AWSGuardDutyIPSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGuardDutyIPSet: + case *resources.AWSGuardDutyIPSet: results[name] = resource } } @@ -5264,10 +5265,10 @@ func (t *Template) GetAllAWSGuardDutyIPSetResources() map[string]*AWSGuardDutyIP // GetAWSGuardDutyIPSetWithName retrieves all AWSGuardDutyIPSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGuardDutyIPSetWithName(name string) (*AWSGuardDutyIPSet, error) { +func (t *Template) GetAWSGuardDutyIPSetWithName(name string) (*resources.AWSGuardDutyIPSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGuardDutyIPSet: + case *resources.AWSGuardDutyIPSet: return resource, nil } } @@ -5275,11 +5276,11 @@ func (t *Template) GetAWSGuardDutyIPSetWithName(name string) (*AWSGuardDutyIPSet } // GetAllAWSGuardDutyMasterResources retrieves all AWSGuardDutyMaster items from an AWS CloudFormation template -func (t *Template) GetAllAWSGuardDutyMasterResources() map[string]*AWSGuardDutyMaster { - results := map[string]*AWSGuardDutyMaster{} +func (t *Template) GetAllAWSGuardDutyMasterResources() map[string]*resources.AWSGuardDutyMaster { + results := map[string]*resources.AWSGuardDutyMaster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGuardDutyMaster: + case *resources.AWSGuardDutyMaster: results[name] = resource } } @@ -5288,10 +5289,10 @@ func (t *Template) GetAllAWSGuardDutyMasterResources() map[string]*AWSGuardDutyM // GetAWSGuardDutyMasterWithName retrieves all AWSGuardDutyMaster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGuardDutyMasterWithName(name string) (*AWSGuardDutyMaster, error) { +func (t *Template) GetAWSGuardDutyMasterWithName(name string) (*resources.AWSGuardDutyMaster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGuardDutyMaster: + case *resources.AWSGuardDutyMaster: return resource, nil } } @@ -5299,11 +5300,11 @@ func (t *Template) GetAWSGuardDutyMasterWithName(name string) (*AWSGuardDutyMast } // GetAllAWSGuardDutyMemberResources retrieves all AWSGuardDutyMember items from an AWS CloudFormation template -func (t *Template) GetAllAWSGuardDutyMemberResources() map[string]*AWSGuardDutyMember { - results := map[string]*AWSGuardDutyMember{} +func (t *Template) GetAllAWSGuardDutyMemberResources() map[string]*resources.AWSGuardDutyMember { + results := map[string]*resources.AWSGuardDutyMember{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGuardDutyMember: + case *resources.AWSGuardDutyMember: results[name] = resource } } @@ -5312,10 +5313,10 @@ func (t *Template) GetAllAWSGuardDutyMemberResources() map[string]*AWSGuardDutyM // GetAWSGuardDutyMemberWithName retrieves all AWSGuardDutyMember items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGuardDutyMemberWithName(name string) (*AWSGuardDutyMember, error) { +func (t *Template) GetAWSGuardDutyMemberWithName(name string) (*resources.AWSGuardDutyMember, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGuardDutyMember: + case *resources.AWSGuardDutyMember: return resource, nil } } @@ -5323,11 +5324,11 @@ func (t *Template) GetAWSGuardDutyMemberWithName(name string) (*AWSGuardDutyMemb } // GetAllAWSGuardDutyThreatIntelSetResources retrieves all AWSGuardDutyThreatIntelSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSGuardDutyThreatIntelSetResources() map[string]*AWSGuardDutyThreatIntelSet { - results := map[string]*AWSGuardDutyThreatIntelSet{} +func (t *Template) GetAllAWSGuardDutyThreatIntelSetResources() map[string]*resources.AWSGuardDutyThreatIntelSet { + results := map[string]*resources.AWSGuardDutyThreatIntelSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSGuardDutyThreatIntelSet: + case *resources.AWSGuardDutyThreatIntelSet: results[name] = resource } } @@ -5336,10 +5337,10 @@ func (t *Template) GetAllAWSGuardDutyThreatIntelSetResources() map[string]*AWSGu // GetAWSGuardDutyThreatIntelSetWithName retrieves all AWSGuardDutyThreatIntelSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSGuardDutyThreatIntelSetWithName(name string) (*AWSGuardDutyThreatIntelSet, error) { +func (t *Template) GetAWSGuardDutyThreatIntelSetWithName(name string) (*resources.AWSGuardDutyThreatIntelSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSGuardDutyThreatIntelSet: + case *resources.AWSGuardDutyThreatIntelSet: return resource, nil } } @@ -5347,11 +5348,11 @@ func (t *Template) GetAWSGuardDutyThreatIntelSetWithName(name string) (*AWSGuard } // GetAllAWSIAMAccessKeyResources retrieves all AWSIAMAccessKey items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMAccessKeyResources() map[string]*AWSIAMAccessKey { - results := map[string]*AWSIAMAccessKey{} +func (t *Template) GetAllAWSIAMAccessKeyResources() map[string]*resources.AWSIAMAccessKey { + results := map[string]*resources.AWSIAMAccessKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMAccessKey: + case *resources.AWSIAMAccessKey: results[name] = resource } } @@ -5360,10 +5361,10 @@ func (t *Template) GetAllAWSIAMAccessKeyResources() map[string]*AWSIAMAccessKey // GetAWSIAMAccessKeyWithName retrieves all AWSIAMAccessKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMAccessKeyWithName(name string) (*AWSIAMAccessKey, error) { +func (t *Template) GetAWSIAMAccessKeyWithName(name string) (*resources.AWSIAMAccessKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMAccessKey: + case *resources.AWSIAMAccessKey: return resource, nil } } @@ -5371,11 +5372,11 @@ func (t *Template) GetAWSIAMAccessKeyWithName(name string) (*AWSIAMAccessKey, er } // GetAllAWSIAMGroupResources retrieves all AWSIAMGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMGroupResources() map[string]*AWSIAMGroup { - results := map[string]*AWSIAMGroup{} +func (t *Template) GetAllAWSIAMGroupResources() map[string]*resources.AWSIAMGroup { + results := map[string]*resources.AWSIAMGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMGroup: + case *resources.AWSIAMGroup: results[name] = resource } } @@ -5384,10 +5385,10 @@ func (t *Template) GetAllAWSIAMGroupResources() map[string]*AWSIAMGroup { // GetAWSIAMGroupWithName retrieves all AWSIAMGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMGroupWithName(name string) (*AWSIAMGroup, error) { +func (t *Template) GetAWSIAMGroupWithName(name string) (*resources.AWSIAMGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMGroup: + case *resources.AWSIAMGroup: return resource, nil } } @@ -5395,11 +5396,11 @@ func (t *Template) GetAWSIAMGroupWithName(name string) (*AWSIAMGroup, error) { } // GetAllAWSIAMInstanceProfileResources retrieves all AWSIAMInstanceProfile items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMInstanceProfileResources() map[string]*AWSIAMInstanceProfile { - results := map[string]*AWSIAMInstanceProfile{} +func (t *Template) GetAllAWSIAMInstanceProfileResources() map[string]*resources.AWSIAMInstanceProfile { + results := map[string]*resources.AWSIAMInstanceProfile{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMInstanceProfile: + case *resources.AWSIAMInstanceProfile: results[name] = resource } } @@ -5408,10 +5409,10 @@ func (t *Template) GetAllAWSIAMInstanceProfileResources() map[string]*AWSIAMInst // GetAWSIAMInstanceProfileWithName retrieves all AWSIAMInstanceProfile items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMInstanceProfileWithName(name string) (*AWSIAMInstanceProfile, error) { +func (t *Template) GetAWSIAMInstanceProfileWithName(name string) (*resources.AWSIAMInstanceProfile, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMInstanceProfile: + case *resources.AWSIAMInstanceProfile: return resource, nil } } @@ -5419,11 +5420,11 @@ func (t *Template) GetAWSIAMInstanceProfileWithName(name string) (*AWSIAMInstanc } // GetAllAWSIAMManagedPolicyResources retrieves all AWSIAMManagedPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMManagedPolicyResources() map[string]*AWSIAMManagedPolicy { - results := map[string]*AWSIAMManagedPolicy{} +func (t *Template) GetAllAWSIAMManagedPolicyResources() map[string]*resources.AWSIAMManagedPolicy { + results := map[string]*resources.AWSIAMManagedPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMManagedPolicy: + case *resources.AWSIAMManagedPolicy: results[name] = resource } } @@ -5432,10 +5433,10 @@ func (t *Template) GetAllAWSIAMManagedPolicyResources() map[string]*AWSIAMManage // GetAWSIAMManagedPolicyWithName retrieves all AWSIAMManagedPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMManagedPolicyWithName(name string) (*AWSIAMManagedPolicy, error) { +func (t *Template) GetAWSIAMManagedPolicyWithName(name string) (*resources.AWSIAMManagedPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMManagedPolicy: + case *resources.AWSIAMManagedPolicy: return resource, nil } } @@ -5443,11 +5444,11 @@ func (t *Template) GetAWSIAMManagedPolicyWithName(name string) (*AWSIAMManagedPo } // GetAllAWSIAMPolicyResources retrieves all AWSIAMPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMPolicyResources() map[string]*AWSIAMPolicy { - results := map[string]*AWSIAMPolicy{} +func (t *Template) GetAllAWSIAMPolicyResources() map[string]*resources.AWSIAMPolicy { + results := map[string]*resources.AWSIAMPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMPolicy: + case *resources.AWSIAMPolicy: results[name] = resource } } @@ -5456,10 +5457,10 @@ func (t *Template) GetAllAWSIAMPolicyResources() map[string]*AWSIAMPolicy { // GetAWSIAMPolicyWithName retrieves all AWSIAMPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMPolicyWithName(name string) (*AWSIAMPolicy, error) { +func (t *Template) GetAWSIAMPolicyWithName(name string) (*resources.AWSIAMPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMPolicy: + case *resources.AWSIAMPolicy: return resource, nil } } @@ -5467,11 +5468,11 @@ func (t *Template) GetAWSIAMPolicyWithName(name string) (*AWSIAMPolicy, error) { } // GetAllAWSIAMRoleResources retrieves all AWSIAMRole items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMRoleResources() map[string]*AWSIAMRole { - results := map[string]*AWSIAMRole{} +func (t *Template) GetAllAWSIAMRoleResources() map[string]*resources.AWSIAMRole { + results := map[string]*resources.AWSIAMRole{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMRole: + case *resources.AWSIAMRole: results[name] = resource } } @@ -5480,10 +5481,10 @@ func (t *Template) GetAllAWSIAMRoleResources() map[string]*AWSIAMRole { // GetAWSIAMRoleWithName retrieves all AWSIAMRole items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMRoleWithName(name string) (*AWSIAMRole, error) { +func (t *Template) GetAWSIAMRoleWithName(name string) (*resources.AWSIAMRole, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMRole: + case *resources.AWSIAMRole: return resource, nil } } @@ -5491,11 +5492,11 @@ func (t *Template) GetAWSIAMRoleWithName(name string) (*AWSIAMRole, error) { } // GetAllAWSIAMServiceLinkedRoleResources retrieves all AWSIAMServiceLinkedRole items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMServiceLinkedRoleResources() map[string]*AWSIAMServiceLinkedRole { - results := map[string]*AWSIAMServiceLinkedRole{} +func (t *Template) GetAllAWSIAMServiceLinkedRoleResources() map[string]*resources.AWSIAMServiceLinkedRole { + results := map[string]*resources.AWSIAMServiceLinkedRole{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMServiceLinkedRole: + case *resources.AWSIAMServiceLinkedRole: results[name] = resource } } @@ -5504,10 +5505,10 @@ func (t *Template) GetAllAWSIAMServiceLinkedRoleResources() map[string]*AWSIAMSe // GetAWSIAMServiceLinkedRoleWithName retrieves all AWSIAMServiceLinkedRole items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMServiceLinkedRoleWithName(name string) (*AWSIAMServiceLinkedRole, error) { +func (t *Template) GetAWSIAMServiceLinkedRoleWithName(name string) (*resources.AWSIAMServiceLinkedRole, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMServiceLinkedRole: + case *resources.AWSIAMServiceLinkedRole: return resource, nil } } @@ -5515,11 +5516,11 @@ func (t *Template) GetAWSIAMServiceLinkedRoleWithName(name string) (*AWSIAMServi } // GetAllAWSIAMUserResources retrieves all AWSIAMUser items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMUserResources() map[string]*AWSIAMUser { - results := map[string]*AWSIAMUser{} +func (t *Template) GetAllAWSIAMUserResources() map[string]*resources.AWSIAMUser { + results := map[string]*resources.AWSIAMUser{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMUser: + case *resources.AWSIAMUser: results[name] = resource } } @@ -5528,10 +5529,10 @@ func (t *Template) GetAllAWSIAMUserResources() map[string]*AWSIAMUser { // GetAWSIAMUserWithName retrieves all AWSIAMUser items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMUserWithName(name string) (*AWSIAMUser, error) { +func (t *Template) GetAWSIAMUserWithName(name string) (*resources.AWSIAMUser, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMUser: + case *resources.AWSIAMUser: return resource, nil } } @@ -5539,11 +5540,11 @@ func (t *Template) GetAWSIAMUserWithName(name string) (*AWSIAMUser, error) { } // GetAllAWSIAMUserToGroupAdditionResources retrieves all AWSIAMUserToGroupAddition items from an AWS CloudFormation template -func (t *Template) GetAllAWSIAMUserToGroupAdditionResources() map[string]*AWSIAMUserToGroupAddition { - results := map[string]*AWSIAMUserToGroupAddition{} +func (t *Template) GetAllAWSIAMUserToGroupAdditionResources() map[string]*resources.AWSIAMUserToGroupAddition { + results := map[string]*resources.AWSIAMUserToGroupAddition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIAMUserToGroupAddition: + case *resources.AWSIAMUserToGroupAddition: results[name] = resource } } @@ -5552,10 +5553,10 @@ func (t *Template) GetAllAWSIAMUserToGroupAdditionResources() map[string]*AWSIAM // GetAWSIAMUserToGroupAdditionWithName retrieves all AWSIAMUserToGroupAddition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIAMUserToGroupAdditionWithName(name string) (*AWSIAMUserToGroupAddition, error) { +func (t *Template) GetAWSIAMUserToGroupAdditionWithName(name string) (*resources.AWSIAMUserToGroupAddition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIAMUserToGroupAddition: + case *resources.AWSIAMUserToGroupAddition: return resource, nil } } @@ -5563,11 +5564,11 @@ func (t *Template) GetAWSIAMUserToGroupAdditionWithName(name string) (*AWSIAMUse } // GetAllAWSInspectorAssessmentTargetResources retrieves all AWSInspectorAssessmentTarget items from an AWS CloudFormation template -func (t *Template) GetAllAWSInspectorAssessmentTargetResources() map[string]*AWSInspectorAssessmentTarget { - results := map[string]*AWSInspectorAssessmentTarget{} +func (t *Template) GetAllAWSInspectorAssessmentTargetResources() map[string]*resources.AWSInspectorAssessmentTarget { + results := map[string]*resources.AWSInspectorAssessmentTarget{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSInspectorAssessmentTarget: + case *resources.AWSInspectorAssessmentTarget: results[name] = resource } } @@ -5576,10 +5577,10 @@ func (t *Template) GetAllAWSInspectorAssessmentTargetResources() map[string]*AWS // GetAWSInspectorAssessmentTargetWithName retrieves all AWSInspectorAssessmentTarget items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSInspectorAssessmentTargetWithName(name string) (*AWSInspectorAssessmentTarget, error) { +func (t *Template) GetAWSInspectorAssessmentTargetWithName(name string) (*resources.AWSInspectorAssessmentTarget, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSInspectorAssessmentTarget: + case *resources.AWSInspectorAssessmentTarget: return resource, nil } } @@ -5587,11 +5588,11 @@ func (t *Template) GetAWSInspectorAssessmentTargetWithName(name string) (*AWSIns } // GetAllAWSInspectorAssessmentTemplateResources retrieves all AWSInspectorAssessmentTemplate items from an AWS CloudFormation template -func (t *Template) GetAllAWSInspectorAssessmentTemplateResources() map[string]*AWSInspectorAssessmentTemplate { - results := map[string]*AWSInspectorAssessmentTemplate{} +func (t *Template) GetAllAWSInspectorAssessmentTemplateResources() map[string]*resources.AWSInspectorAssessmentTemplate { + results := map[string]*resources.AWSInspectorAssessmentTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSInspectorAssessmentTemplate: + case *resources.AWSInspectorAssessmentTemplate: results[name] = resource } } @@ -5600,10 +5601,10 @@ func (t *Template) GetAllAWSInspectorAssessmentTemplateResources() map[string]*A // GetAWSInspectorAssessmentTemplateWithName retrieves all AWSInspectorAssessmentTemplate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSInspectorAssessmentTemplateWithName(name string) (*AWSInspectorAssessmentTemplate, error) { +func (t *Template) GetAWSInspectorAssessmentTemplateWithName(name string) (*resources.AWSInspectorAssessmentTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSInspectorAssessmentTemplate: + case *resources.AWSInspectorAssessmentTemplate: return resource, nil } } @@ -5611,11 +5612,11 @@ func (t *Template) GetAWSInspectorAssessmentTemplateWithName(name string) (*AWSI } // GetAllAWSInspectorResourceGroupResources retrieves all AWSInspectorResourceGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSInspectorResourceGroupResources() map[string]*AWSInspectorResourceGroup { - results := map[string]*AWSInspectorResourceGroup{} +func (t *Template) GetAllAWSInspectorResourceGroupResources() map[string]*resources.AWSInspectorResourceGroup { + results := map[string]*resources.AWSInspectorResourceGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSInspectorResourceGroup: + case *resources.AWSInspectorResourceGroup: results[name] = resource } } @@ -5624,10 +5625,10 @@ func (t *Template) GetAllAWSInspectorResourceGroupResources() map[string]*AWSIns // GetAWSInspectorResourceGroupWithName retrieves all AWSInspectorResourceGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSInspectorResourceGroupWithName(name string) (*AWSInspectorResourceGroup, error) { +func (t *Template) GetAWSInspectorResourceGroupWithName(name string) (*resources.AWSInspectorResourceGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSInspectorResourceGroup: + case *resources.AWSInspectorResourceGroup: return resource, nil } } @@ -5635,11 +5636,11 @@ func (t *Template) GetAWSInspectorResourceGroupWithName(name string) (*AWSInspec } // GetAllAWSIoT1ClickDeviceResources retrieves all AWSIoT1ClickDevice items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoT1ClickDeviceResources() map[string]*AWSIoT1ClickDevice { - results := map[string]*AWSIoT1ClickDevice{} +func (t *Template) GetAllAWSIoT1ClickDeviceResources() map[string]*resources.AWSIoT1ClickDevice { + results := map[string]*resources.AWSIoT1ClickDevice{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoT1ClickDevice: + case *resources.AWSIoT1ClickDevice: results[name] = resource } } @@ -5648,10 +5649,10 @@ func (t *Template) GetAllAWSIoT1ClickDeviceResources() map[string]*AWSIoT1ClickD // GetAWSIoT1ClickDeviceWithName retrieves all AWSIoT1ClickDevice items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoT1ClickDeviceWithName(name string) (*AWSIoT1ClickDevice, error) { +func (t *Template) GetAWSIoT1ClickDeviceWithName(name string) (*resources.AWSIoT1ClickDevice, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoT1ClickDevice: + case *resources.AWSIoT1ClickDevice: return resource, nil } } @@ -5659,11 +5660,11 @@ func (t *Template) GetAWSIoT1ClickDeviceWithName(name string) (*AWSIoT1ClickDevi } // GetAllAWSIoT1ClickPlacementResources retrieves all AWSIoT1ClickPlacement items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoT1ClickPlacementResources() map[string]*AWSIoT1ClickPlacement { - results := map[string]*AWSIoT1ClickPlacement{} +func (t *Template) GetAllAWSIoT1ClickPlacementResources() map[string]*resources.AWSIoT1ClickPlacement { + results := map[string]*resources.AWSIoT1ClickPlacement{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoT1ClickPlacement: + case *resources.AWSIoT1ClickPlacement: results[name] = resource } } @@ -5672,10 +5673,10 @@ func (t *Template) GetAllAWSIoT1ClickPlacementResources() map[string]*AWSIoT1Cli // GetAWSIoT1ClickPlacementWithName retrieves all AWSIoT1ClickPlacement items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoT1ClickPlacementWithName(name string) (*AWSIoT1ClickPlacement, error) { +func (t *Template) GetAWSIoT1ClickPlacementWithName(name string) (*resources.AWSIoT1ClickPlacement, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoT1ClickPlacement: + case *resources.AWSIoT1ClickPlacement: return resource, nil } } @@ -5683,11 +5684,11 @@ func (t *Template) GetAWSIoT1ClickPlacementWithName(name string) (*AWSIoT1ClickP } // GetAllAWSIoT1ClickProjectResources retrieves all AWSIoT1ClickProject items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoT1ClickProjectResources() map[string]*AWSIoT1ClickProject { - results := map[string]*AWSIoT1ClickProject{} +func (t *Template) GetAllAWSIoT1ClickProjectResources() map[string]*resources.AWSIoT1ClickProject { + results := map[string]*resources.AWSIoT1ClickProject{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoT1ClickProject: + case *resources.AWSIoT1ClickProject: results[name] = resource } } @@ -5696,10 +5697,10 @@ func (t *Template) GetAllAWSIoT1ClickProjectResources() map[string]*AWSIoT1Click // GetAWSIoT1ClickProjectWithName retrieves all AWSIoT1ClickProject items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoT1ClickProjectWithName(name string) (*AWSIoT1ClickProject, error) { +func (t *Template) GetAWSIoT1ClickProjectWithName(name string) (*resources.AWSIoT1ClickProject, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoT1ClickProject: + case *resources.AWSIoT1ClickProject: return resource, nil } } @@ -5707,11 +5708,11 @@ func (t *Template) GetAWSIoT1ClickProjectWithName(name string) (*AWSIoT1ClickPro } // GetAllAWSIoTCertificateResources retrieves all AWSIoTCertificate items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTCertificateResources() map[string]*AWSIoTCertificate { - results := map[string]*AWSIoTCertificate{} +func (t *Template) GetAllAWSIoTCertificateResources() map[string]*resources.AWSIoTCertificate { + results := map[string]*resources.AWSIoTCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTCertificate: + case *resources.AWSIoTCertificate: results[name] = resource } } @@ -5720,10 +5721,10 @@ func (t *Template) GetAllAWSIoTCertificateResources() map[string]*AWSIoTCertific // GetAWSIoTCertificateWithName retrieves all AWSIoTCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTCertificateWithName(name string) (*AWSIoTCertificate, error) { +func (t *Template) GetAWSIoTCertificateWithName(name string) (*resources.AWSIoTCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTCertificate: + case *resources.AWSIoTCertificate: return resource, nil } } @@ -5731,11 +5732,11 @@ func (t *Template) GetAWSIoTCertificateWithName(name string) (*AWSIoTCertificate } // GetAllAWSIoTPolicyResources retrieves all AWSIoTPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTPolicyResources() map[string]*AWSIoTPolicy { - results := map[string]*AWSIoTPolicy{} +func (t *Template) GetAllAWSIoTPolicyResources() map[string]*resources.AWSIoTPolicy { + results := map[string]*resources.AWSIoTPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTPolicy: + case *resources.AWSIoTPolicy: results[name] = resource } } @@ -5744,10 +5745,10 @@ func (t *Template) GetAllAWSIoTPolicyResources() map[string]*AWSIoTPolicy { // GetAWSIoTPolicyWithName retrieves all AWSIoTPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTPolicyWithName(name string) (*AWSIoTPolicy, error) { +func (t *Template) GetAWSIoTPolicyWithName(name string) (*resources.AWSIoTPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTPolicy: + case *resources.AWSIoTPolicy: return resource, nil } } @@ -5755,11 +5756,11 @@ func (t *Template) GetAWSIoTPolicyWithName(name string) (*AWSIoTPolicy, error) { } // GetAllAWSIoTPolicyPrincipalAttachmentResources retrieves all AWSIoTPolicyPrincipalAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTPolicyPrincipalAttachmentResources() map[string]*AWSIoTPolicyPrincipalAttachment { - results := map[string]*AWSIoTPolicyPrincipalAttachment{} +func (t *Template) GetAllAWSIoTPolicyPrincipalAttachmentResources() map[string]*resources.AWSIoTPolicyPrincipalAttachment { + results := map[string]*resources.AWSIoTPolicyPrincipalAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTPolicyPrincipalAttachment: + case *resources.AWSIoTPolicyPrincipalAttachment: results[name] = resource } } @@ -5768,10 +5769,10 @@ func (t *Template) GetAllAWSIoTPolicyPrincipalAttachmentResources() map[string]* // GetAWSIoTPolicyPrincipalAttachmentWithName retrieves all AWSIoTPolicyPrincipalAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTPolicyPrincipalAttachmentWithName(name string) (*AWSIoTPolicyPrincipalAttachment, error) { +func (t *Template) GetAWSIoTPolicyPrincipalAttachmentWithName(name string) (*resources.AWSIoTPolicyPrincipalAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTPolicyPrincipalAttachment: + case *resources.AWSIoTPolicyPrincipalAttachment: return resource, nil } } @@ -5779,11 +5780,11 @@ func (t *Template) GetAWSIoTPolicyPrincipalAttachmentWithName(name string) (*AWS } // GetAllAWSIoTThingResources retrieves all AWSIoTThing items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTThingResources() map[string]*AWSIoTThing { - results := map[string]*AWSIoTThing{} +func (t *Template) GetAllAWSIoTThingResources() map[string]*resources.AWSIoTThing { + results := map[string]*resources.AWSIoTThing{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTThing: + case *resources.AWSIoTThing: results[name] = resource } } @@ -5792,10 +5793,10 @@ func (t *Template) GetAllAWSIoTThingResources() map[string]*AWSIoTThing { // GetAWSIoTThingWithName retrieves all AWSIoTThing items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTThingWithName(name string) (*AWSIoTThing, error) { +func (t *Template) GetAWSIoTThingWithName(name string) (*resources.AWSIoTThing, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTThing: + case *resources.AWSIoTThing: return resource, nil } } @@ -5803,11 +5804,11 @@ func (t *Template) GetAWSIoTThingWithName(name string) (*AWSIoTThing, error) { } // GetAllAWSIoTThingPrincipalAttachmentResources retrieves all AWSIoTThingPrincipalAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTThingPrincipalAttachmentResources() map[string]*AWSIoTThingPrincipalAttachment { - results := map[string]*AWSIoTThingPrincipalAttachment{} +func (t *Template) GetAllAWSIoTThingPrincipalAttachmentResources() map[string]*resources.AWSIoTThingPrincipalAttachment { + results := map[string]*resources.AWSIoTThingPrincipalAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTThingPrincipalAttachment: + case *resources.AWSIoTThingPrincipalAttachment: results[name] = resource } } @@ -5816,10 +5817,10 @@ func (t *Template) GetAllAWSIoTThingPrincipalAttachmentResources() map[string]*A // GetAWSIoTThingPrincipalAttachmentWithName retrieves all AWSIoTThingPrincipalAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTThingPrincipalAttachmentWithName(name string) (*AWSIoTThingPrincipalAttachment, error) { +func (t *Template) GetAWSIoTThingPrincipalAttachmentWithName(name string) (*resources.AWSIoTThingPrincipalAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTThingPrincipalAttachment: + case *resources.AWSIoTThingPrincipalAttachment: return resource, nil } } @@ -5827,11 +5828,11 @@ func (t *Template) GetAWSIoTThingPrincipalAttachmentWithName(name string) (*AWSI } // GetAllAWSIoTTopicRuleResources retrieves all AWSIoTTopicRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTTopicRuleResources() map[string]*AWSIoTTopicRule { - results := map[string]*AWSIoTTopicRule{} +func (t *Template) GetAllAWSIoTTopicRuleResources() map[string]*resources.AWSIoTTopicRule { + results := map[string]*resources.AWSIoTTopicRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTTopicRule: + case *resources.AWSIoTTopicRule: results[name] = resource } } @@ -5840,10 +5841,10 @@ func (t *Template) GetAllAWSIoTTopicRuleResources() map[string]*AWSIoTTopicRule // GetAWSIoTTopicRuleWithName retrieves all AWSIoTTopicRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTTopicRuleWithName(name string) (*AWSIoTTopicRule, error) { +func (t *Template) GetAWSIoTTopicRuleWithName(name string) (*resources.AWSIoTTopicRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTTopicRule: + case *resources.AWSIoTTopicRule: return resource, nil } } @@ -5851,11 +5852,11 @@ func (t *Template) GetAWSIoTTopicRuleWithName(name string) (*AWSIoTTopicRule, er } // GetAllAWSIoTAnalyticsChannelResources retrieves all AWSIoTAnalyticsChannel items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTAnalyticsChannelResources() map[string]*AWSIoTAnalyticsChannel { - results := map[string]*AWSIoTAnalyticsChannel{} +func (t *Template) GetAllAWSIoTAnalyticsChannelResources() map[string]*resources.AWSIoTAnalyticsChannel { + results := map[string]*resources.AWSIoTAnalyticsChannel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTAnalyticsChannel: + case *resources.AWSIoTAnalyticsChannel: results[name] = resource } } @@ -5864,10 +5865,10 @@ func (t *Template) GetAllAWSIoTAnalyticsChannelResources() map[string]*AWSIoTAna // GetAWSIoTAnalyticsChannelWithName retrieves all AWSIoTAnalyticsChannel items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTAnalyticsChannelWithName(name string) (*AWSIoTAnalyticsChannel, error) { +func (t *Template) GetAWSIoTAnalyticsChannelWithName(name string) (*resources.AWSIoTAnalyticsChannel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTAnalyticsChannel: + case *resources.AWSIoTAnalyticsChannel: return resource, nil } } @@ -5875,11 +5876,11 @@ func (t *Template) GetAWSIoTAnalyticsChannelWithName(name string) (*AWSIoTAnalyt } // GetAllAWSIoTAnalyticsDatasetResources retrieves all AWSIoTAnalyticsDataset items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTAnalyticsDatasetResources() map[string]*AWSIoTAnalyticsDataset { - results := map[string]*AWSIoTAnalyticsDataset{} +func (t *Template) GetAllAWSIoTAnalyticsDatasetResources() map[string]*resources.AWSIoTAnalyticsDataset { + results := map[string]*resources.AWSIoTAnalyticsDataset{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTAnalyticsDataset: + case *resources.AWSIoTAnalyticsDataset: results[name] = resource } } @@ -5888,10 +5889,10 @@ func (t *Template) GetAllAWSIoTAnalyticsDatasetResources() map[string]*AWSIoTAna // GetAWSIoTAnalyticsDatasetWithName retrieves all AWSIoTAnalyticsDataset items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTAnalyticsDatasetWithName(name string) (*AWSIoTAnalyticsDataset, error) { +func (t *Template) GetAWSIoTAnalyticsDatasetWithName(name string) (*resources.AWSIoTAnalyticsDataset, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTAnalyticsDataset: + case *resources.AWSIoTAnalyticsDataset: return resource, nil } } @@ -5899,11 +5900,11 @@ func (t *Template) GetAWSIoTAnalyticsDatasetWithName(name string) (*AWSIoTAnalyt } // GetAllAWSIoTAnalyticsDatastoreResources retrieves all AWSIoTAnalyticsDatastore items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTAnalyticsDatastoreResources() map[string]*AWSIoTAnalyticsDatastore { - results := map[string]*AWSIoTAnalyticsDatastore{} +func (t *Template) GetAllAWSIoTAnalyticsDatastoreResources() map[string]*resources.AWSIoTAnalyticsDatastore { + results := map[string]*resources.AWSIoTAnalyticsDatastore{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTAnalyticsDatastore: + case *resources.AWSIoTAnalyticsDatastore: results[name] = resource } } @@ -5912,10 +5913,10 @@ func (t *Template) GetAllAWSIoTAnalyticsDatastoreResources() map[string]*AWSIoTA // GetAWSIoTAnalyticsDatastoreWithName retrieves all AWSIoTAnalyticsDatastore items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTAnalyticsDatastoreWithName(name string) (*AWSIoTAnalyticsDatastore, error) { +func (t *Template) GetAWSIoTAnalyticsDatastoreWithName(name string) (*resources.AWSIoTAnalyticsDatastore, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTAnalyticsDatastore: + case *resources.AWSIoTAnalyticsDatastore: return resource, nil } } @@ -5923,11 +5924,11 @@ func (t *Template) GetAWSIoTAnalyticsDatastoreWithName(name string) (*AWSIoTAnal } // GetAllAWSIoTAnalyticsPipelineResources retrieves all AWSIoTAnalyticsPipeline items from an AWS CloudFormation template -func (t *Template) GetAllAWSIoTAnalyticsPipelineResources() map[string]*AWSIoTAnalyticsPipeline { - results := map[string]*AWSIoTAnalyticsPipeline{} +func (t *Template) GetAllAWSIoTAnalyticsPipelineResources() map[string]*resources.AWSIoTAnalyticsPipeline { + results := map[string]*resources.AWSIoTAnalyticsPipeline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSIoTAnalyticsPipeline: + case *resources.AWSIoTAnalyticsPipeline: results[name] = resource } } @@ -5936,10 +5937,10 @@ func (t *Template) GetAllAWSIoTAnalyticsPipelineResources() map[string]*AWSIoTAn // GetAWSIoTAnalyticsPipelineWithName retrieves all AWSIoTAnalyticsPipeline items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSIoTAnalyticsPipelineWithName(name string) (*AWSIoTAnalyticsPipeline, error) { +func (t *Template) GetAWSIoTAnalyticsPipelineWithName(name string) (*resources.AWSIoTAnalyticsPipeline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSIoTAnalyticsPipeline: + case *resources.AWSIoTAnalyticsPipeline: return resource, nil } } @@ -5947,11 +5948,11 @@ func (t *Template) GetAWSIoTAnalyticsPipelineWithName(name string) (*AWSIoTAnaly } // GetAllAWSKMSAliasResources retrieves all AWSKMSAlias items from an AWS CloudFormation template -func (t *Template) GetAllAWSKMSAliasResources() map[string]*AWSKMSAlias { - results := map[string]*AWSKMSAlias{} +func (t *Template) GetAllAWSKMSAliasResources() map[string]*resources.AWSKMSAlias { + results := map[string]*resources.AWSKMSAlias{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKMSAlias: + case *resources.AWSKMSAlias: results[name] = resource } } @@ -5960,10 +5961,10 @@ func (t *Template) GetAllAWSKMSAliasResources() map[string]*AWSKMSAlias { // GetAWSKMSAliasWithName retrieves all AWSKMSAlias items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKMSAliasWithName(name string) (*AWSKMSAlias, error) { +func (t *Template) GetAWSKMSAliasWithName(name string) (*resources.AWSKMSAlias, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKMSAlias: + case *resources.AWSKMSAlias: return resource, nil } } @@ -5971,11 +5972,11 @@ func (t *Template) GetAWSKMSAliasWithName(name string) (*AWSKMSAlias, error) { } // GetAllAWSKMSKeyResources retrieves all AWSKMSKey items from an AWS CloudFormation template -func (t *Template) GetAllAWSKMSKeyResources() map[string]*AWSKMSKey { - results := map[string]*AWSKMSKey{} +func (t *Template) GetAllAWSKMSKeyResources() map[string]*resources.AWSKMSKey { + results := map[string]*resources.AWSKMSKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKMSKey: + case *resources.AWSKMSKey: results[name] = resource } } @@ -5984,10 +5985,10 @@ func (t *Template) GetAllAWSKMSKeyResources() map[string]*AWSKMSKey { // GetAWSKMSKeyWithName retrieves all AWSKMSKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKMSKeyWithName(name string) (*AWSKMSKey, error) { +func (t *Template) GetAWSKMSKeyWithName(name string) (*resources.AWSKMSKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKMSKey: + case *resources.AWSKMSKey: return resource, nil } } @@ -5995,11 +5996,11 @@ func (t *Template) GetAWSKMSKeyWithName(name string) (*AWSKMSKey, error) { } // GetAllAWSKinesisStreamResources retrieves all AWSKinesisStream items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisStreamResources() map[string]*AWSKinesisStream { - results := map[string]*AWSKinesisStream{} +func (t *Template) GetAllAWSKinesisStreamResources() map[string]*resources.AWSKinesisStream { + results := map[string]*resources.AWSKinesisStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisStream: + case *resources.AWSKinesisStream: results[name] = resource } } @@ -6008,10 +6009,10 @@ func (t *Template) GetAllAWSKinesisStreamResources() map[string]*AWSKinesisStrea // GetAWSKinesisStreamWithName retrieves all AWSKinesisStream items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisStreamWithName(name string) (*AWSKinesisStream, error) { +func (t *Template) GetAWSKinesisStreamWithName(name string) (*resources.AWSKinesisStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisStream: + case *resources.AWSKinesisStream: return resource, nil } } @@ -6019,11 +6020,11 @@ func (t *Template) GetAWSKinesisStreamWithName(name string) (*AWSKinesisStream, } // GetAllAWSKinesisStreamConsumerResources retrieves all AWSKinesisStreamConsumer items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisStreamConsumerResources() map[string]*AWSKinesisStreamConsumer { - results := map[string]*AWSKinesisStreamConsumer{} +func (t *Template) GetAllAWSKinesisStreamConsumerResources() map[string]*resources.AWSKinesisStreamConsumer { + results := map[string]*resources.AWSKinesisStreamConsumer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisStreamConsumer: + case *resources.AWSKinesisStreamConsumer: results[name] = resource } } @@ -6032,10 +6033,10 @@ func (t *Template) GetAllAWSKinesisStreamConsumerResources() map[string]*AWSKine // GetAWSKinesisStreamConsumerWithName retrieves all AWSKinesisStreamConsumer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisStreamConsumerWithName(name string) (*AWSKinesisStreamConsumer, error) { +func (t *Template) GetAWSKinesisStreamConsumerWithName(name string) (*resources.AWSKinesisStreamConsumer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisStreamConsumer: + case *resources.AWSKinesisStreamConsumer: return resource, nil } } @@ -6043,11 +6044,11 @@ func (t *Template) GetAWSKinesisStreamConsumerWithName(name string) (*AWSKinesis } // GetAllAWSKinesisAnalyticsApplicationResources retrieves all AWSKinesisAnalyticsApplication items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisAnalyticsApplicationResources() map[string]*AWSKinesisAnalyticsApplication { - results := map[string]*AWSKinesisAnalyticsApplication{} +func (t *Template) GetAllAWSKinesisAnalyticsApplicationResources() map[string]*resources.AWSKinesisAnalyticsApplication { + results := map[string]*resources.AWSKinesisAnalyticsApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsApplication: + case *resources.AWSKinesisAnalyticsApplication: results[name] = resource } } @@ -6056,10 +6057,10 @@ func (t *Template) GetAllAWSKinesisAnalyticsApplicationResources() map[string]*A // GetAWSKinesisAnalyticsApplicationWithName retrieves all AWSKinesisAnalyticsApplication items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisAnalyticsApplicationWithName(name string) (*AWSKinesisAnalyticsApplication, error) { +func (t *Template) GetAWSKinesisAnalyticsApplicationWithName(name string) (*resources.AWSKinesisAnalyticsApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsApplication: + case *resources.AWSKinesisAnalyticsApplication: return resource, nil } } @@ -6067,11 +6068,11 @@ func (t *Template) GetAWSKinesisAnalyticsApplicationWithName(name string) (*AWSK } // GetAllAWSKinesisAnalyticsApplicationOutputResources retrieves all AWSKinesisAnalyticsApplicationOutput items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisAnalyticsApplicationOutputResources() map[string]*AWSKinesisAnalyticsApplicationOutput { - results := map[string]*AWSKinesisAnalyticsApplicationOutput{} +func (t *Template) GetAllAWSKinesisAnalyticsApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsApplicationOutput { + results := map[string]*resources.AWSKinesisAnalyticsApplicationOutput{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsApplicationOutput: + case *resources.AWSKinesisAnalyticsApplicationOutput: results[name] = resource } } @@ -6080,10 +6081,10 @@ func (t *Template) GetAllAWSKinesisAnalyticsApplicationOutputResources() map[str // GetAWSKinesisAnalyticsApplicationOutputWithName retrieves all AWSKinesisAnalyticsApplicationOutput items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisAnalyticsApplicationOutputWithName(name string) (*AWSKinesisAnalyticsApplicationOutput, error) { +func (t *Template) GetAWSKinesisAnalyticsApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsApplicationOutput, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsApplicationOutput: + case *resources.AWSKinesisAnalyticsApplicationOutput: return resource, nil } } @@ -6091,11 +6092,11 @@ func (t *Template) GetAWSKinesisAnalyticsApplicationOutputWithName(name string) } // GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources retrieves all AWSKinesisAnalyticsApplicationReferenceDataSource items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources() map[string]*AWSKinesisAnalyticsApplicationReferenceDataSource { - results := map[string]*AWSKinesisAnalyticsApplicationReferenceDataSource{} +func (t *Template) GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource { + results := map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsApplicationReferenceDataSource: + case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource: results[name] = resource } } @@ -6104,10 +6105,10 @@ func (t *Template) GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResour // GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName retrieves all AWSKinesisAnalyticsApplicationReferenceDataSource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName(name string) (*AWSKinesisAnalyticsApplicationReferenceDataSource, error) { +func (t *Template) GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsApplicationReferenceDataSource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsApplicationReferenceDataSource: + case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource: return resource, nil } } @@ -6115,11 +6116,11 @@ func (t *Template) GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName( } // GetAllAWSKinesisAnalyticsV2ApplicationResources retrieves all AWSKinesisAnalyticsV2Application items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationResources() map[string]*AWSKinesisAnalyticsV2Application { - results := map[string]*AWSKinesisAnalyticsV2Application{} +func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationResources() map[string]*resources.AWSKinesisAnalyticsV2Application { + results := map[string]*resources.AWSKinesisAnalyticsV2Application{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2Application: + case *resources.AWSKinesisAnalyticsV2Application: results[name] = resource } } @@ -6128,10 +6129,10 @@ func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationResources() map[string] // GetAWSKinesisAnalyticsV2ApplicationWithName retrieves all AWSKinesisAnalyticsV2Application items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisAnalyticsV2ApplicationWithName(name string) (*AWSKinesisAnalyticsV2Application, error) { +func (t *Template) GetAWSKinesisAnalyticsV2ApplicationWithName(name string) (*resources.AWSKinesisAnalyticsV2Application, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2Application: + case *resources.AWSKinesisAnalyticsV2Application: return resource, nil } } @@ -6139,11 +6140,11 @@ func (t *Template) GetAWSKinesisAnalyticsV2ApplicationWithName(name string) (*AW } // GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources retrieves all AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources() map[string]*AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption { - results := map[string]*AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{} +func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption { + results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: + case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: results[name] = resource } } @@ -6152,10 +6153,10 @@ func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption // GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName retrieves all AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName(name string) (*AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption, error) { +func (t *Template) GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: + case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: return resource, nil } } @@ -6163,11 +6164,11 @@ func (t *Template) GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWit } // GetAllAWSKinesisAnalyticsV2ApplicationOutputResources retrieves all AWSKinesisAnalyticsV2ApplicationOutput items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationOutputResources() map[string]*AWSKinesisAnalyticsV2ApplicationOutput { - results := map[string]*AWSKinesisAnalyticsV2ApplicationOutput{} +func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput { + results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2ApplicationOutput: + case *resources.AWSKinesisAnalyticsV2ApplicationOutput: results[name] = resource } } @@ -6176,10 +6177,10 @@ func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationOutputResources() map[s // GetAWSKinesisAnalyticsV2ApplicationOutputWithName retrieves all AWSKinesisAnalyticsV2ApplicationOutput items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisAnalyticsV2ApplicationOutputWithName(name string) (*AWSKinesisAnalyticsV2ApplicationOutput, error) { +func (t *Template) GetAWSKinesisAnalyticsV2ApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationOutput, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2ApplicationOutput: + case *resources.AWSKinesisAnalyticsV2ApplicationOutput: return resource, nil } } @@ -6187,11 +6188,11 @@ func (t *Template) GetAWSKinesisAnalyticsV2ApplicationOutputWithName(name string } // GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources retrieves all AWSKinesisAnalyticsV2ApplicationReferenceDataSource items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources() map[string]*AWSKinesisAnalyticsV2ApplicationReferenceDataSource { - results := map[string]*AWSKinesisAnalyticsV2ApplicationReferenceDataSource{} +func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource { + results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2ApplicationReferenceDataSource: + case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource: results[name] = resource } } @@ -6200,10 +6201,10 @@ func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceReso // GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName retrieves all AWSKinesisAnalyticsV2ApplicationReferenceDataSource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName(name string) (*AWSKinesisAnalyticsV2ApplicationReferenceDataSource, error) { +func (t *Template) GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisAnalyticsV2ApplicationReferenceDataSource: + case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource: return resource, nil } } @@ -6211,11 +6212,11 @@ func (t *Template) GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithNam } // GetAllAWSKinesisFirehoseDeliveryStreamResources retrieves all AWSKinesisFirehoseDeliveryStream items from an AWS CloudFormation template -func (t *Template) GetAllAWSKinesisFirehoseDeliveryStreamResources() map[string]*AWSKinesisFirehoseDeliveryStream { - results := map[string]*AWSKinesisFirehoseDeliveryStream{} +func (t *Template) GetAllAWSKinesisFirehoseDeliveryStreamResources() map[string]*resources.AWSKinesisFirehoseDeliveryStream { + results := map[string]*resources.AWSKinesisFirehoseDeliveryStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSKinesisFirehoseDeliveryStream: + case *resources.AWSKinesisFirehoseDeliveryStream: results[name] = resource } } @@ -6224,10 +6225,10 @@ func (t *Template) GetAllAWSKinesisFirehoseDeliveryStreamResources() map[string] // GetAWSKinesisFirehoseDeliveryStreamWithName retrieves all AWSKinesisFirehoseDeliveryStream items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSKinesisFirehoseDeliveryStreamWithName(name string) (*AWSKinesisFirehoseDeliveryStream, error) { +func (t *Template) GetAWSKinesisFirehoseDeliveryStreamWithName(name string) (*resources.AWSKinesisFirehoseDeliveryStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSKinesisFirehoseDeliveryStream: + case *resources.AWSKinesisFirehoseDeliveryStream: return resource, nil } } @@ -6235,11 +6236,11 @@ func (t *Template) GetAWSKinesisFirehoseDeliveryStreamWithName(name string) (*AW } // GetAllAWSLambdaAliasResources retrieves all AWSLambdaAlias items from an AWS CloudFormation template -func (t *Template) GetAllAWSLambdaAliasResources() map[string]*AWSLambdaAlias { - results := map[string]*AWSLambdaAlias{} +func (t *Template) GetAllAWSLambdaAliasResources() map[string]*resources.AWSLambdaAlias { + results := map[string]*resources.AWSLambdaAlias{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLambdaAlias: + case *resources.AWSLambdaAlias: results[name] = resource } } @@ -6248,10 +6249,10 @@ func (t *Template) GetAllAWSLambdaAliasResources() map[string]*AWSLambdaAlias { // GetAWSLambdaAliasWithName retrieves all AWSLambdaAlias items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLambdaAliasWithName(name string) (*AWSLambdaAlias, error) { +func (t *Template) GetAWSLambdaAliasWithName(name string) (*resources.AWSLambdaAlias, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLambdaAlias: + case *resources.AWSLambdaAlias: return resource, nil } } @@ -6259,11 +6260,11 @@ func (t *Template) GetAWSLambdaAliasWithName(name string) (*AWSLambdaAlias, erro } // GetAllAWSLambdaEventSourceMappingResources retrieves all AWSLambdaEventSourceMapping items from an AWS CloudFormation template -func (t *Template) GetAllAWSLambdaEventSourceMappingResources() map[string]*AWSLambdaEventSourceMapping { - results := map[string]*AWSLambdaEventSourceMapping{} +func (t *Template) GetAllAWSLambdaEventSourceMappingResources() map[string]*resources.AWSLambdaEventSourceMapping { + results := map[string]*resources.AWSLambdaEventSourceMapping{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLambdaEventSourceMapping: + case *resources.AWSLambdaEventSourceMapping: results[name] = resource } } @@ -6272,10 +6273,10 @@ func (t *Template) GetAllAWSLambdaEventSourceMappingResources() map[string]*AWSL // GetAWSLambdaEventSourceMappingWithName retrieves all AWSLambdaEventSourceMapping items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLambdaEventSourceMappingWithName(name string) (*AWSLambdaEventSourceMapping, error) { +func (t *Template) GetAWSLambdaEventSourceMappingWithName(name string) (*resources.AWSLambdaEventSourceMapping, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLambdaEventSourceMapping: + case *resources.AWSLambdaEventSourceMapping: return resource, nil } } @@ -6283,11 +6284,11 @@ func (t *Template) GetAWSLambdaEventSourceMappingWithName(name string) (*AWSLamb } // GetAllAWSLambdaFunctionResources retrieves all AWSLambdaFunction items from an AWS CloudFormation template -func (t *Template) GetAllAWSLambdaFunctionResources() map[string]*AWSLambdaFunction { - results := map[string]*AWSLambdaFunction{} +func (t *Template) GetAllAWSLambdaFunctionResources() map[string]*resources.AWSLambdaFunction { + results := map[string]*resources.AWSLambdaFunction{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLambdaFunction: + case *resources.AWSLambdaFunction: results[name] = resource } } @@ -6296,10 +6297,10 @@ func (t *Template) GetAllAWSLambdaFunctionResources() map[string]*AWSLambdaFunct // GetAWSLambdaFunctionWithName retrieves all AWSLambdaFunction items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLambdaFunctionWithName(name string) (*AWSLambdaFunction, error) { +func (t *Template) GetAWSLambdaFunctionWithName(name string) (*resources.AWSLambdaFunction, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLambdaFunction: + case *resources.AWSLambdaFunction: return resource, nil } } @@ -6307,11 +6308,11 @@ func (t *Template) GetAWSLambdaFunctionWithName(name string) (*AWSLambdaFunction } // GetAllAWSLambdaLayerVersionResources retrieves all AWSLambdaLayerVersion items from an AWS CloudFormation template -func (t *Template) GetAllAWSLambdaLayerVersionResources() map[string]*AWSLambdaLayerVersion { - results := map[string]*AWSLambdaLayerVersion{} +func (t *Template) GetAllAWSLambdaLayerVersionResources() map[string]*resources.AWSLambdaLayerVersion { + results := map[string]*resources.AWSLambdaLayerVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLambdaLayerVersion: + case *resources.AWSLambdaLayerVersion: results[name] = resource } } @@ -6320,10 +6321,10 @@ func (t *Template) GetAllAWSLambdaLayerVersionResources() map[string]*AWSLambdaL // GetAWSLambdaLayerVersionWithName retrieves all AWSLambdaLayerVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLambdaLayerVersionWithName(name string) (*AWSLambdaLayerVersion, error) { +func (t *Template) GetAWSLambdaLayerVersionWithName(name string) (*resources.AWSLambdaLayerVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLambdaLayerVersion: + case *resources.AWSLambdaLayerVersion: return resource, nil } } @@ -6331,11 +6332,11 @@ func (t *Template) GetAWSLambdaLayerVersionWithName(name string) (*AWSLambdaLaye } // GetAllAWSLambdaLayerVersionPermissionResources retrieves all AWSLambdaLayerVersionPermission items from an AWS CloudFormation template -func (t *Template) GetAllAWSLambdaLayerVersionPermissionResources() map[string]*AWSLambdaLayerVersionPermission { - results := map[string]*AWSLambdaLayerVersionPermission{} +func (t *Template) GetAllAWSLambdaLayerVersionPermissionResources() map[string]*resources.AWSLambdaLayerVersionPermission { + results := map[string]*resources.AWSLambdaLayerVersionPermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLambdaLayerVersionPermission: + case *resources.AWSLambdaLayerVersionPermission: results[name] = resource } } @@ -6344,10 +6345,10 @@ func (t *Template) GetAllAWSLambdaLayerVersionPermissionResources() map[string]* // GetAWSLambdaLayerVersionPermissionWithName retrieves all AWSLambdaLayerVersionPermission items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLambdaLayerVersionPermissionWithName(name string) (*AWSLambdaLayerVersionPermission, error) { +func (t *Template) GetAWSLambdaLayerVersionPermissionWithName(name string) (*resources.AWSLambdaLayerVersionPermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLambdaLayerVersionPermission: + case *resources.AWSLambdaLayerVersionPermission: return resource, nil } } @@ -6355,11 +6356,11 @@ func (t *Template) GetAWSLambdaLayerVersionPermissionWithName(name string) (*AWS } // GetAllAWSLambdaPermissionResources retrieves all AWSLambdaPermission items from an AWS CloudFormation template -func (t *Template) GetAllAWSLambdaPermissionResources() map[string]*AWSLambdaPermission { - results := map[string]*AWSLambdaPermission{} +func (t *Template) GetAllAWSLambdaPermissionResources() map[string]*resources.AWSLambdaPermission { + results := map[string]*resources.AWSLambdaPermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLambdaPermission: + case *resources.AWSLambdaPermission: results[name] = resource } } @@ -6368,10 +6369,10 @@ func (t *Template) GetAllAWSLambdaPermissionResources() map[string]*AWSLambdaPer // GetAWSLambdaPermissionWithName retrieves all AWSLambdaPermission items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLambdaPermissionWithName(name string) (*AWSLambdaPermission, error) { +func (t *Template) GetAWSLambdaPermissionWithName(name string) (*resources.AWSLambdaPermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLambdaPermission: + case *resources.AWSLambdaPermission: return resource, nil } } @@ -6379,11 +6380,11 @@ func (t *Template) GetAWSLambdaPermissionWithName(name string) (*AWSLambdaPermis } // GetAllAWSLambdaVersionResources retrieves all AWSLambdaVersion items from an AWS CloudFormation template -func (t *Template) GetAllAWSLambdaVersionResources() map[string]*AWSLambdaVersion { - results := map[string]*AWSLambdaVersion{} +func (t *Template) GetAllAWSLambdaVersionResources() map[string]*resources.AWSLambdaVersion { + results := map[string]*resources.AWSLambdaVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLambdaVersion: + case *resources.AWSLambdaVersion: results[name] = resource } } @@ -6392,10 +6393,10 @@ func (t *Template) GetAllAWSLambdaVersionResources() map[string]*AWSLambdaVersio // GetAWSLambdaVersionWithName retrieves all AWSLambdaVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLambdaVersionWithName(name string) (*AWSLambdaVersion, error) { +func (t *Template) GetAWSLambdaVersionWithName(name string) (*resources.AWSLambdaVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLambdaVersion: + case *resources.AWSLambdaVersion: return resource, nil } } @@ -6403,11 +6404,11 @@ func (t *Template) GetAWSLambdaVersionWithName(name string) (*AWSLambdaVersion, } // GetAllAWSLogsDestinationResources retrieves all AWSLogsDestination items from an AWS CloudFormation template -func (t *Template) GetAllAWSLogsDestinationResources() map[string]*AWSLogsDestination { - results := map[string]*AWSLogsDestination{} +func (t *Template) GetAllAWSLogsDestinationResources() map[string]*resources.AWSLogsDestination { + results := map[string]*resources.AWSLogsDestination{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLogsDestination: + case *resources.AWSLogsDestination: results[name] = resource } } @@ -6416,10 +6417,10 @@ func (t *Template) GetAllAWSLogsDestinationResources() map[string]*AWSLogsDestin // GetAWSLogsDestinationWithName retrieves all AWSLogsDestination items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLogsDestinationWithName(name string) (*AWSLogsDestination, error) { +func (t *Template) GetAWSLogsDestinationWithName(name string) (*resources.AWSLogsDestination, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLogsDestination: + case *resources.AWSLogsDestination: return resource, nil } } @@ -6427,11 +6428,11 @@ func (t *Template) GetAWSLogsDestinationWithName(name string) (*AWSLogsDestinati } // GetAllAWSLogsLogGroupResources retrieves all AWSLogsLogGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSLogsLogGroupResources() map[string]*AWSLogsLogGroup { - results := map[string]*AWSLogsLogGroup{} +func (t *Template) GetAllAWSLogsLogGroupResources() map[string]*resources.AWSLogsLogGroup { + results := map[string]*resources.AWSLogsLogGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLogsLogGroup: + case *resources.AWSLogsLogGroup: results[name] = resource } } @@ -6440,10 +6441,10 @@ func (t *Template) GetAllAWSLogsLogGroupResources() map[string]*AWSLogsLogGroup // GetAWSLogsLogGroupWithName retrieves all AWSLogsLogGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLogsLogGroupWithName(name string) (*AWSLogsLogGroup, error) { +func (t *Template) GetAWSLogsLogGroupWithName(name string) (*resources.AWSLogsLogGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLogsLogGroup: + case *resources.AWSLogsLogGroup: return resource, nil } } @@ -6451,11 +6452,11 @@ func (t *Template) GetAWSLogsLogGroupWithName(name string) (*AWSLogsLogGroup, er } // GetAllAWSLogsLogStreamResources retrieves all AWSLogsLogStream items from an AWS CloudFormation template -func (t *Template) GetAllAWSLogsLogStreamResources() map[string]*AWSLogsLogStream { - results := map[string]*AWSLogsLogStream{} +func (t *Template) GetAllAWSLogsLogStreamResources() map[string]*resources.AWSLogsLogStream { + results := map[string]*resources.AWSLogsLogStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLogsLogStream: + case *resources.AWSLogsLogStream: results[name] = resource } } @@ -6464,10 +6465,10 @@ func (t *Template) GetAllAWSLogsLogStreamResources() map[string]*AWSLogsLogStrea // GetAWSLogsLogStreamWithName retrieves all AWSLogsLogStream items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLogsLogStreamWithName(name string) (*AWSLogsLogStream, error) { +func (t *Template) GetAWSLogsLogStreamWithName(name string) (*resources.AWSLogsLogStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLogsLogStream: + case *resources.AWSLogsLogStream: return resource, nil } } @@ -6475,11 +6476,11 @@ func (t *Template) GetAWSLogsLogStreamWithName(name string) (*AWSLogsLogStream, } // GetAllAWSLogsMetricFilterResources retrieves all AWSLogsMetricFilter items from an AWS CloudFormation template -func (t *Template) GetAllAWSLogsMetricFilterResources() map[string]*AWSLogsMetricFilter { - results := map[string]*AWSLogsMetricFilter{} +func (t *Template) GetAllAWSLogsMetricFilterResources() map[string]*resources.AWSLogsMetricFilter { + results := map[string]*resources.AWSLogsMetricFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLogsMetricFilter: + case *resources.AWSLogsMetricFilter: results[name] = resource } } @@ -6488,10 +6489,10 @@ func (t *Template) GetAllAWSLogsMetricFilterResources() map[string]*AWSLogsMetri // GetAWSLogsMetricFilterWithName retrieves all AWSLogsMetricFilter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLogsMetricFilterWithName(name string) (*AWSLogsMetricFilter, error) { +func (t *Template) GetAWSLogsMetricFilterWithName(name string) (*resources.AWSLogsMetricFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLogsMetricFilter: + case *resources.AWSLogsMetricFilter: return resource, nil } } @@ -6499,11 +6500,11 @@ func (t *Template) GetAWSLogsMetricFilterWithName(name string) (*AWSLogsMetricFi } // GetAllAWSLogsSubscriptionFilterResources retrieves all AWSLogsSubscriptionFilter items from an AWS CloudFormation template -func (t *Template) GetAllAWSLogsSubscriptionFilterResources() map[string]*AWSLogsSubscriptionFilter { - results := map[string]*AWSLogsSubscriptionFilter{} +func (t *Template) GetAllAWSLogsSubscriptionFilterResources() map[string]*resources.AWSLogsSubscriptionFilter { + results := map[string]*resources.AWSLogsSubscriptionFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSLogsSubscriptionFilter: + case *resources.AWSLogsSubscriptionFilter: results[name] = resource } } @@ -6512,10 +6513,10 @@ func (t *Template) GetAllAWSLogsSubscriptionFilterResources() map[string]*AWSLog // GetAWSLogsSubscriptionFilterWithName retrieves all AWSLogsSubscriptionFilter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSLogsSubscriptionFilterWithName(name string) (*AWSLogsSubscriptionFilter, error) { +func (t *Template) GetAWSLogsSubscriptionFilterWithName(name string) (*resources.AWSLogsSubscriptionFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSLogsSubscriptionFilter: + case *resources.AWSLogsSubscriptionFilter: return resource, nil } } @@ -6523,11 +6524,11 @@ func (t *Template) GetAWSLogsSubscriptionFilterWithName(name string) (*AWSLogsSu } // GetAllAWSNeptuneDBClusterResources retrieves all AWSNeptuneDBCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSNeptuneDBClusterResources() map[string]*AWSNeptuneDBCluster { - results := map[string]*AWSNeptuneDBCluster{} +func (t *Template) GetAllAWSNeptuneDBClusterResources() map[string]*resources.AWSNeptuneDBCluster { + results := map[string]*resources.AWSNeptuneDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSNeptuneDBCluster: + case *resources.AWSNeptuneDBCluster: results[name] = resource } } @@ -6536,10 +6537,10 @@ func (t *Template) GetAllAWSNeptuneDBClusterResources() map[string]*AWSNeptuneDB // GetAWSNeptuneDBClusterWithName retrieves all AWSNeptuneDBCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSNeptuneDBClusterWithName(name string) (*AWSNeptuneDBCluster, error) { +func (t *Template) GetAWSNeptuneDBClusterWithName(name string) (*resources.AWSNeptuneDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSNeptuneDBCluster: + case *resources.AWSNeptuneDBCluster: return resource, nil } } @@ -6547,11 +6548,11 @@ func (t *Template) GetAWSNeptuneDBClusterWithName(name string) (*AWSNeptuneDBClu } // GetAllAWSNeptuneDBClusterParameterGroupResources retrieves all AWSNeptuneDBClusterParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSNeptuneDBClusterParameterGroupResources() map[string]*AWSNeptuneDBClusterParameterGroup { - results := map[string]*AWSNeptuneDBClusterParameterGroup{} +func (t *Template) GetAllAWSNeptuneDBClusterParameterGroupResources() map[string]*resources.AWSNeptuneDBClusterParameterGroup { + results := map[string]*resources.AWSNeptuneDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSNeptuneDBClusterParameterGroup: + case *resources.AWSNeptuneDBClusterParameterGroup: results[name] = resource } } @@ -6560,10 +6561,10 @@ func (t *Template) GetAllAWSNeptuneDBClusterParameterGroupResources() map[string // GetAWSNeptuneDBClusterParameterGroupWithName retrieves all AWSNeptuneDBClusterParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSNeptuneDBClusterParameterGroupWithName(name string) (*AWSNeptuneDBClusterParameterGroup, error) { +func (t *Template) GetAWSNeptuneDBClusterParameterGroupWithName(name string) (*resources.AWSNeptuneDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSNeptuneDBClusterParameterGroup: + case *resources.AWSNeptuneDBClusterParameterGroup: return resource, nil } } @@ -6571,11 +6572,11 @@ func (t *Template) GetAWSNeptuneDBClusterParameterGroupWithName(name string) (*A } // GetAllAWSNeptuneDBInstanceResources retrieves all AWSNeptuneDBInstance items from an AWS CloudFormation template -func (t *Template) GetAllAWSNeptuneDBInstanceResources() map[string]*AWSNeptuneDBInstance { - results := map[string]*AWSNeptuneDBInstance{} +func (t *Template) GetAllAWSNeptuneDBInstanceResources() map[string]*resources.AWSNeptuneDBInstance { + results := map[string]*resources.AWSNeptuneDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSNeptuneDBInstance: + case *resources.AWSNeptuneDBInstance: results[name] = resource } } @@ -6584,10 +6585,10 @@ func (t *Template) GetAllAWSNeptuneDBInstanceResources() map[string]*AWSNeptuneD // GetAWSNeptuneDBInstanceWithName retrieves all AWSNeptuneDBInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSNeptuneDBInstanceWithName(name string) (*AWSNeptuneDBInstance, error) { +func (t *Template) GetAWSNeptuneDBInstanceWithName(name string) (*resources.AWSNeptuneDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSNeptuneDBInstance: + case *resources.AWSNeptuneDBInstance: return resource, nil } } @@ -6595,11 +6596,11 @@ func (t *Template) GetAWSNeptuneDBInstanceWithName(name string) (*AWSNeptuneDBIn } // GetAllAWSNeptuneDBParameterGroupResources retrieves all AWSNeptuneDBParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSNeptuneDBParameterGroupResources() map[string]*AWSNeptuneDBParameterGroup { - results := map[string]*AWSNeptuneDBParameterGroup{} +func (t *Template) GetAllAWSNeptuneDBParameterGroupResources() map[string]*resources.AWSNeptuneDBParameterGroup { + results := map[string]*resources.AWSNeptuneDBParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSNeptuneDBParameterGroup: + case *resources.AWSNeptuneDBParameterGroup: results[name] = resource } } @@ -6608,10 +6609,10 @@ func (t *Template) GetAllAWSNeptuneDBParameterGroupResources() map[string]*AWSNe // GetAWSNeptuneDBParameterGroupWithName retrieves all AWSNeptuneDBParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSNeptuneDBParameterGroupWithName(name string) (*AWSNeptuneDBParameterGroup, error) { +func (t *Template) GetAWSNeptuneDBParameterGroupWithName(name string) (*resources.AWSNeptuneDBParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSNeptuneDBParameterGroup: + case *resources.AWSNeptuneDBParameterGroup: return resource, nil } } @@ -6619,11 +6620,11 @@ func (t *Template) GetAWSNeptuneDBParameterGroupWithName(name string) (*AWSNeptu } // GetAllAWSNeptuneDBSubnetGroupResources retrieves all AWSNeptuneDBSubnetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSNeptuneDBSubnetGroupResources() map[string]*AWSNeptuneDBSubnetGroup { - results := map[string]*AWSNeptuneDBSubnetGroup{} +func (t *Template) GetAllAWSNeptuneDBSubnetGroupResources() map[string]*resources.AWSNeptuneDBSubnetGroup { + results := map[string]*resources.AWSNeptuneDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSNeptuneDBSubnetGroup: + case *resources.AWSNeptuneDBSubnetGroup: results[name] = resource } } @@ -6632,10 +6633,10 @@ func (t *Template) GetAllAWSNeptuneDBSubnetGroupResources() map[string]*AWSNeptu // GetAWSNeptuneDBSubnetGroupWithName retrieves all AWSNeptuneDBSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSNeptuneDBSubnetGroupWithName(name string) (*AWSNeptuneDBSubnetGroup, error) { +func (t *Template) GetAWSNeptuneDBSubnetGroupWithName(name string) (*resources.AWSNeptuneDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSNeptuneDBSubnetGroup: + case *resources.AWSNeptuneDBSubnetGroup: return resource, nil } } @@ -6643,11 +6644,11 @@ func (t *Template) GetAWSNeptuneDBSubnetGroupWithName(name string) (*AWSNeptuneD } // GetAllAWSOpsWorksAppResources retrieves all AWSOpsWorksApp items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksAppResources() map[string]*AWSOpsWorksApp { - results := map[string]*AWSOpsWorksApp{} +func (t *Template) GetAllAWSOpsWorksAppResources() map[string]*resources.AWSOpsWorksApp { + results := map[string]*resources.AWSOpsWorksApp{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksApp: + case *resources.AWSOpsWorksApp: results[name] = resource } } @@ -6656,10 +6657,10 @@ func (t *Template) GetAllAWSOpsWorksAppResources() map[string]*AWSOpsWorksApp { // GetAWSOpsWorksAppWithName retrieves all AWSOpsWorksApp items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksAppWithName(name string) (*AWSOpsWorksApp, error) { +func (t *Template) GetAWSOpsWorksAppWithName(name string) (*resources.AWSOpsWorksApp, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksApp: + case *resources.AWSOpsWorksApp: return resource, nil } } @@ -6667,11 +6668,11 @@ func (t *Template) GetAWSOpsWorksAppWithName(name string) (*AWSOpsWorksApp, erro } // GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources retrieves all AWSOpsWorksElasticLoadBalancerAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources() map[string]*AWSOpsWorksElasticLoadBalancerAttachment { - results := map[string]*AWSOpsWorksElasticLoadBalancerAttachment{} +func (t *Template) GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources() map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment { + results := map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksElasticLoadBalancerAttachment: + case *resources.AWSOpsWorksElasticLoadBalancerAttachment: results[name] = resource } } @@ -6680,10 +6681,10 @@ func (t *Template) GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources() map // GetAWSOpsWorksElasticLoadBalancerAttachmentWithName retrieves all AWSOpsWorksElasticLoadBalancerAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksElasticLoadBalancerAttachmentWithName(name string) (*AWSOpsWorksElasticLoadBalancerAttachment, error) { +func (t *Template) GetAWSOpsWorksElasticLoadBalancerAttachmentWithName(name string) (*resources.AWSOpsWorksElasticLoadBalancerAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksElasticLoadBalancerAttachment: + case *resources.AWSOpsWorksElasticLoadBalancerAttachment: return resource, nil } } @@ -6691,11 +6692,11 @@ func (t *Template) GetAWSOpsWorksElasticLoadBalancerAttachmentWithName(name stri } // GetAllAWSOpsWorksInstanceResources retrieves all AWSOpsWorksInstance items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksInstanceResources() map[string]*AWSOpsWorksInstance { - results := map[string]*AWSOpsWorksInstance{} +func (t *Template) GetAllAWSOpsWorksInstanceResources() map[string]*resources.AWSOpsWorksInstance { + results := map[string]*resources.AWSOpsWorksInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksInstance: + case *resources.AWSOpsWorksInstance: results[name] = resource } } @@ -6704,10 +6705,10 @@ func (t *Template) GetAllAWSOpsWorksInstanceResources() map[string]*AWSOpsWorksI // GetAWSOpsWorksInstanceWithName retrieves all AWSOpsWorksInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksInstanceWithName(name string) (*AWSOpsWorksInstance, error) { +func (t *Template) GetAWSOpsWorksInstanceWithName(name string) (*resources.AWSOpsWorksInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksInstance: + case *resources.AWSOpsWorksInstance: return resource, nil } } @@ -6715,11 +6716,11 @@ func (t *Template) GetAWSOpsWorksInstanceWithName(name string) (*AWSOpsWorksInst } // GetAllAWSOpsWorksLayerResources retrieves all AWSOpsWorksLayer items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksLayerResources() map[string]*AWSOpsWorksLayer { - results := map[string]*AWSOpsWorksLayer{} +func (t *Template) GetAllAWSOpsWorksLayerResources() map[string]*resources.AWSOpsWorksLayer { + results := map[string]*resources.AWSOpsWorksLayer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksLayer: + case *resources.AWSOpsWorksLayer: results[name] = resource } } @@ -6728,10 +6729,10 @@ func (t *Template) GetAllAWSOpsWorksLayerResources() map[string]*AWSOpsWorksLaye // GetAWSOpsWorksLayerWithName retrieves all AWSOpsWorksLayer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksLayerWithName(name string) (*AWSOpsWorksLayer, error) { +func (t *Template) GetAWSOpsWorksLayerWithName(name string) (*resources.AWSOpsWorksLayer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksLayer: + case *resources.AWSOpsWorksLayer: return resource, nil } } @@ -6739,11 +6740,11 @@ func (t *Template) GetAWSOpsWorksLayerWithName(name string) (*AWSOpsWorksLayer, } // GetAllAWSOpsWorksStackResources retrieves all AWSOpsWorksStack items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksStackResources() map[string]*AWSOpsWorksStack { - results := map[string]*AWSOpsWorksStack{} +func (t *Template) GetAllAWSOpsWorksStackResources() map[string]*resources.AWSOpsWorksStack { + results := map[string]*resources.AWSOpsWorksStack{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksStack: + case *resources.AWSOpsWorksStack: results[name] = resource } } @@ -6752,10 +6753,10 @@ func (t *Template) GetAllAWSOpsWorksStackResources() map[string]*AWSOpsWorksStac // GetAWSOpsWorksStackWithName retrieves all AWSOpsWorksStack items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksStackWithName(name string) (*AWSOpsWorksStack, error) { +func (t *Template) GetAWSOpsWorksStackWithName(name string) (*resources.AWSOpsWorksStack, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksStack: + case *resources.AWSOpsWorksStack: return resource, nil } } @@ -6763,11 +6764,11 @@ func (t *Template) GetAWSOpsWorksStackWithName(name string) (*AWSOpsWorksStack, } // GetAllAWSOpsWorksUserProfileResources retrieves all AWSOpsWorksUserProfile items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksUserProfileResources() map[string]*AWSOpsWorksUserProfile { - results := map[string]*AWSOpsWorksUserProfile{} +func (t *Template) GetAllAWSOpsWorksUserProfileResources() map[string]*resources.AWSOpsWorksUserProfile { + results := map[string]*resources.AWSOpsWorksUserProfile{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksUserProfile: + case *resources.AWSOpsWorksUserProfile: results[name] = resource } } @@ -6776,10 +6777,10 @@ func (t *Template) GetAllAWSOpsWorksUserProfileResources() map[string]*AWSOpsWor // GetAWSOpsWorksUserProfileWithName retrieves all AWSOpsWorksUserProfile items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksUserProfileWithName(name string) (*AWSOpsWorksUserProfile, error) { +func (t *Template) GetAWSOpsWorksUserProfileWithName(name string) (*resources.AWSOpsWorksUserProfile, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksUserProfile: + case *resources.AWSOpsWorksUserProfile: return resource, nil } } @@ -6787,11 +6788,11 @@ func (t *Template) GetAWSOpsWorksUserProfileWithName(name string) (*AWSOpsWorksU } // GetAllAWSOpsWorksVolumeResources retrieves all AWSOpsWorksVolume items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksVolumeResources() map[string]*AWSOpsWorksVolume { - results := map[string]*AWSOpsWorksVolume{} +func (t *Template) GetAllAWSOpsWorksVolumeResources() map[string]*resources.AWSOpsWorksVolume { + results := map[string]*resources.AWSOpsWorksVolume{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksVolume: + case *resources.AWSOpsWorksVolume: results[name] = resource } } @@ -6800,10 +6801,10 @@ func (t *Template) GetAllAWSOpsWorksVolumeResources() map[string]*AWSOpsWorksVol // GetAWSOpsWorksVolumeWithName retrieves all AWSOpsWorksVolume items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksVolumeWithName(name string) (*AWSOpsWorksVolume, error) { +func (t *Template) GetAWSOpsWorksVolumeWithName(name string) (*resources.AWSOpsWorksVolume, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksVolume: + case *resources.AWSOpsWorksVolume: return resource, nil } } @@ -6811,11 +6812,11 @@ func (t *Template) GetAWSOpsWorksVolumeWithName(name string) (*AWSOpsWorksVolume } // GetAllAWSOpsWorksCMServerResources retrieves all AWSOpsWorksCMServer items from an AWS CloudFormation template -func (t *Template) GetAllAWSOpsWorksCMServerResources() map[string]*AWSOpsWorksCMServer { - results := map[string]*AWSOpsWorksCMServer{} +func (t *Template) GetAllAWSOpsWorksCMServerResources() map[string]*resources.AWSOpsWorksCMServer { + results := map[string]*resources.AWSOpsWorksCMServer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSOpsWorksCMServer: + case *resources.AWSOpsWorksCMServer: results[name] = resource } } @@ -6824,10 +6825,10 @@ func (t *Template) GetAllAWSOpsWorksCMServerResources() map[string]*AWSOpsWorksC // GetAWSOpsWorksCMServerWithName retrieves all AWSOpsWorksCMServer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSOpsWorksCMServerWithName(name string) (*AWSOpsWorksCMServer, error) { +func (t *Template) GetAWSOpsWorksCMServerWithName(name string) (*resources.AWSOpsWorksCMServer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSOpsWorksCMServer: + case *resources.AWSOpsWorksCMServer: return resource, nil } } @@ -6835,11 +6836,11 @@ func (t *Template) GetAWSOpsWorksCMServerWithName(name string) (*AWSOpsWorksCMSe } // GetAllAWSRAMResourceShareResources retrieves all AWSRAMResourceShare items from an AWS CloudFormation template -func (t *Template) GetAllAWSRAMResourceShareResources() map[string]*AWSRAMResourceShare { - results := map[string]*AWSRAMResourceShare{} +func (t *Template) GetAllAWSRAMResourceShareResources() map[string]*resources.AWSRAMResourceShare { + results := map[string]*resources.AWSRAMResourceShare{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRAMResourceShare: + case *resources.AWSRAMResourceShare: results[name] = resource } } @@ -6848,10 +6849,10 @@ func (t *Template) GetAllAWSRAMResourceShareResources() map[string]*AWSRAMResour // GetAWSRAMResourceShareWithName retrieves all AWSRAMResourceShare items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRAMResourceShareWithName(name string) (*AWSRAMResourceShare, error) { +func (t *Template) GetAWSRAMResourceShareWithName(name string) (*resources.AWSRAMResourceShare, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRAMResourceShare: + case *resources.AWSRAMResourceShare: return resource, nil } } @@ -6859,11 +6860,11 @@ func (t *Template) GetAWSRAMResourceShareWithName(name string) (*AWSRAMResourceS } // GetAllAWSRDSDBClusterResources retrieves all AWSRDSDBCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSDBClusterResources() map[string]*AWSRDSDBCluster { - results := map[string]*AWSRDSDBCluster{} +func (t *Template) GetAllAWSRDSDBClusterResources() map[string]*resources.AWSRDSDBCluster { + results := map[string]*resources.AWSRDSDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSDBCluster: + case *resources.AWSRDSDBCluster: results[name] = resource } } @@ -6872,10 +6873,10 @@ func (t *Template) GetAllAWSRDSDBClusterResources() map[string]*AWSRDSDBCluster // GetAWSRDSDBClusterWithName retrieves all AWSRDSDBCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSDBClusterWithName(name string) (*AWSRDSDBCluster, error) { +func (t *Template) GetAWSRDSDBClusterWithName(name string) (*resources.AWSRDSDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSDBCluster: + case *resources.AWSRDSDBCluster: return resource, nil } } @@ -6883,11 +6884,11 @@ func (t *Template) GetAWSRDSDBClusterWithName(name string) (*AWSRDSDBCluster, er } // GetAllAWSRDSDBClusterParameterGroupResources retrieves all AWSRDSDBClusterParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSDBClusterParameterGroupResources() map[string]*AWSRDSDBClusterParameterGroup { - results := map[string]*AWSRDSDBClusterParameterGroup{} +func (t *Template) GetAllAWSRDSDBClusterParameterGroupResources() map[string]*resources.AWSRDSDBClusterParameterGroup { + results := map[string]*resources.AWSRDSDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSDBClusterParameterGroup: + case *resources.AWSRDSDBClusterParameterGroup: results[name] = resource } } @@ -6896,10 +6897,10 @@ func (t *Template) GetAllAWSRDSDBClusterParameterGroupResources() map[string]*AW // GetAWSRDSDBClusterParameterGroupWithName retrieves all AWSRDSDBClusterParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSDBClusterParameterGroupWithName(name string) (*AWSRDSDBClusterParameterGroup, error) { +func (t *Template) GetAWSRDSDBClusterParameterGroupWithName(name string) (*resources.AWSRDSDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSDBClusterParameterGroup: + case *resources.AWSRDSDBClusterParameterGroup: return resource, nil } } @@ -6907,11 +6908,11 @@ func (t *Template) GetAWSRDSDBClusterParameterGroupWithName(name string) (*AWSRD } // GetAllAWSRDSDBInstanceResources retrieves all AWSRDSDBInstance items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSDBInstanceResources() map[string]*AWSRDSDBInstance { - results := map[string]*AWSRDSDBInstance{} +func (t *Template) GetAllAWSRDSDBInstanceResources() map[string]*resources.AWSRDSDBInstance { + results := map[string]*resources.AWSRDSDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSDBInstance: + case *resources.AWSRDSDBInstance: results[name] = resource } } @@ -6920,10 +6921,10 @@ func (t *Template) GetAllAWSRDSDBInstanceResources() map[string]*AWSRDSDBInstanc // GetAWSRDSDBInstanceWithName retrieves all AWSRDSDBInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSDBInstanceWithName(name string) (*AWSRDSDBInstance, error) { +func (t *Template) GetAWSRDSDBInstanceWithName(name string) (*resources.AWSRDSDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSDBInstance: + case *resources.AWSRDSDBInstance: return resource, nil } } @@ -6931,11 +6932,11 @@ func (t *Template) GetAWSRDSDBInstanceWithName(name string) (*AWSRDSDBInstance, } // GetAllAWSRDSDBParameterGroupResources retrieves all AWSRDSDBParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSDBParameterGroupResources() map[string]*AWSRDSDBParameterGroup { - results := map[string]*AWSRDSDBParameterGroup{} +func (t *Template) GetAllAWSRDSDBParameterGroupResources() map[string]*resources.AWSRDSDBParameterGroup { + results := map[string]*resources.AWSRDSDBParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSDBParameterGroup: + case *resources.AWSRDSDBParameterGroup: results[name] = resource } } @@ -6944,10 +6945,10 @@ func (t *Template) GetAllAWSRDSDBParameterGroupResources() map[string]*AWSRDSDBP // GetAWSRDSDBParameterGroupWithName retrieves all AWSRDSDBParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSDBParameterGroupWithName(name string) (*AWSRDSDBParameterGroup, error) { +func (t *Template) GetAWSRDSDBParameterGroupWithName(name string) (*resources.AWSRDSDBParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSDBParameterGroup: + case *resources.AWSRDSDBParameterGroup: return resource, nil } } @@ -6955,11 +6956,11 @@ func (t *Template) GetAWSRDSDBParameterGroupWithName(name string) (*AWSRDSDBPara } // GetAllAWSRDSDBSecurityGroupResources retrieves all AWSRDSDBSecurityGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSDBSecurityGroupResources() map[string]*AWSRDSDBSecurityGroup { - results := map[string]*AWSRDSDBSecurityGroup{} +func (t *Template) GetAllAWSRDSDBSecurityGroupResources() map[string]*resources.AWSRDSDBSecurityGroup { + results := map[string]*resources.AWSRDSDBSecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSDBSecurityGroup: + case *resources.AWSRDSDBSecurityGroup: results[name] = resource } } @@ -6968,10 +6969,10 @@ func (t *Template) GetAllAWSRDSDBSecurityGroupResources() map[string]*AWSRDSDBSe // GetAWSRDSDBSecurityGroupWithName retrieves all AWSRDSDBSecurityGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSDBSecurityGroupWithName(name string) (*AWSRDSDBSecurityGroup, error) { +func (t *Template) GetAWSRDSDBSecurityGroupWithName(name string) (*resources.AWSRDSDBSecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSDBSecurityGroup: + case *resources.AWSRDSDBSecurityGroup: return resource, nil } } @@ -6979,11 +6980,11 @@ func (t *Template) GetAWSRDSDBSecurityGroupWithName(name string) (*AWSRDSDBSecur } // GetAllAWSRDSDBSecurityGroupIngressResources retrieves all AWSRDSDBSecurityGroupIngress items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSDBSecurityGroupIngressResources() map[string]*AWSRDSDBSecurityGroupIngress { - results := map[string]*AWSRDSDBSecurityGroupIngress{} +func (t *Template) GetAllAWSRDSDBSecurityGroupIngressResources() map[string]*resources.AWSRDSDBSecurityGroupIngress { + results := map[string]*resources.AWSRDSDBSecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSDBSecurityGroupIngress: + case *resources.AWSRDSDBSecurityGroupIngress: results[name] = resource } } @@ -6992,10 +6993,10 @@ func (t *Template) GetAllAWSRDSDBSecurityGroupIngressResources() map[string]*AWS // GetAWSRDSDBSecurityGroupIngressWithName retrieves all AWSRDSDBSecurityGroupIngress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSDBSecurityGroupIngressWithName(name string) (*AWSRDSDBSecurityGroupIngress, error) { +func (t *Template) GetAWSRDSDBSecurityGroupIngressWithName(name string) (*resources.AWSRDSDBSecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSDBSecurityGroupIngress: + case *resources.AWSRDSDBSecurityGroupIngress: return resource, nil } } @@ -7003,11 +7004,11 @@ func (t *Template) GetAWSRDSDBSecurityGroupIngressWithName(name string) (*AWSRDS } // GetAllAWSRDSDBSubnetGroupResources retrieves all AWSRDSDBSubnetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSDBSubnetGroupResources() map[string]*AWSRDSDBSubnetGroup { - results := map[string]*AWSRDSDBSubnetGroup{} +func (t *Template) GetAllAWSRDSDBSubnetGroupResources() map[string]*resources.AWSRDSDBSubnetGroup { + results := map[string]*resources.AWSRDSDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSDBSubnetGroup: + case *resources.AWSRDSDBSubnetGroup: results[name] = resource } } @@ -7016,10 +7017,10 @@ func (t *Template) GetAllAWSRDSDBSubnetGroupResources() map[string]*AWSRDSDBSubn // GetAWSRDSDBSubnetGroupWithName retrieves all AWSRDSDBSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSDBSubnetGroupWithName(name string) (*AWSRDSDBSubnetGroup, error) { +func (t *Template) GetAWSRDSDBSubnetGroupWithName(name string) (*resources.AWSRDSDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSDBSubnetGroup: + case *resources.AWSRDSDBSubnetGroup: return resource, nil } } @@ -7027,11 +7028,11 @@ func (t *Template) GetAWSRDSDBSubnetGroupWithName(name string) (*AWSRDSDBSubnetG } // GetAllAWSRDSEventSubscriptionResources retrieves all AWSRDSEventSubscription items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSEventSubscriptionResources() map[string]*AWSRDSEventSubscription { - results := map[string]*AWSRDSEventSubscription{} +func (t *Template) GetAllAWSRDSEventSubscriptionResources() map[string]*resources.AWSRDSEventSubscription { + results := map[string]*resources.AWSRDSEventSubscription{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSEventSubscription: + case *resources.AWSRDSEventSubscription: results[name] = resource } } @@ -7040,10 +7041,10 @@ func (t *Template) GetAllAWSRDSEventSubscriptionResources() map[string]*AWSRDSEv // GetAWSRDSEventSubscriptionWithName retrieves all AWSRDSEventSubscription items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSEventSubscriptionWithName(name string) (*AWSRDSEventSubscription, error) { +func (t *Template) GetAWSRDSEventSubscriptionWithName(name string) (*resources.AWSRDSEventSubscription, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSEventSubscription: + case *resources.AWSRDSEventSubscription: return resource, nil } } @@ -7051,11 +7052,11 @@ func (t *Template) GetAWSRDSEventSubscriptionWithName(name string) (*AWSRDSEvent } // GetAllAWSRDSOptionGroupResources retrieves all AWSRDSOptionGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRDSOptionGroupResources() map[string]*AWSRDSOptionGroup { - results := map[string]*AWSRDSOptionGroup{} +func (t *Template) GetAllAWSRDSOptionGroupResources() map[string]*resources.AWSRDSOptionGroup { + results := map[string]*resources.AWSRDSOptionGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRDSOptionGroup: + case *resources.AWSRDSOptionGroup: results[name] = resource } } @@ -7064,10 +7065,10 @@ func (t *Template) GetAllAWSRDSOptionGroupResources() map[string]*AWSRDSOptionGr // GetAWSRDSOptionGroupWithName retrieves all AWSRDSOptionGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRDSOptionGroupWithName(name string) (*AWSRDSOptionGroup, error) { +func (t *Template) GetAWSRDSOptionGroupWithName(name string) (*resources.AWSRDSOptionGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRDSOptionGroup: + case *resources.AWSRDSOptionGroup: return resource, nil } } @@ -7075,11 +7076,11 @@ func (t *Template) GetAWSRDSOptionGroupWithName(name string) (*AWSRDSOptionGroup } // GetAllAWSRedshiftClusterResources retrieves all AWSRedshiftCluster items from an AWS CloudFormation template -func (t *Template) GetAllAWSRedshiftClusterResources() map[string]*AWSRedshiftCluster { - results := map[string]*AWSRedshiftCluster{} +func (t *Template) GetAllAWSRedshiftClusterResources() map[string]*resources.AWSRedshiftCluster { + results := map[string]*resources.AWSRedshiftCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRedshiftCluster: + case *resources.AWSRedshiftCluster: results[name] = resource } } @@ -7088,10 +7089,10 @@ func (t *Template) GetAllAWSRedshiftClusterResources() map[string]*AWSRedshiftCl // GetAWSRedshiftClusterWithName retrieves all AWSRedshiftCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRedshiftClusterWithName(name string) (*AWSRedshiftCluster, error) { +func (t *Template) GetAWSRedshiftClusterWithName(name string) (*resources.AWSRedshiftCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRedshiftCluster: + case *resources.AWSRedshiftCluster: return resource, nil } } @@ -7099,11 +7100,11 @@ func (t *Template) GetAWSRedshiftClusterWithName(name string) (*AWSRedshiftClust } // GetAllAWSRedshiftClusterParameterGroupResources retrieves all AWSRedshiftClusterParameterGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRedshiftClusterParameterGroupResources() map[string]*AWSRedshiftClusterParameterGroup { - results := map[string]*AWSRedshiftClusterParameterGroup{} +func (t *Template) GetAllAWSRedshiftClusterParameterGroupResources() map[string]*resources.AWSRedshiftClusterParameterGroup { + results := map[string]*resources.AWSRedshiftClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRedshiftClusterParameterGroup: + case *resources.AWSRedshiftClusterParameterGroup: results[name] = resource } } @@ -7112,10 +7113,10 @@ func (t *Template) GetAllAWSRedshiftClusterParameterGroupResources() map[string] // GetAWSRedshiftClusterParameterGroupWithName retrieves all AWSRedshiftClusterParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRedshiftClusterParameterGroupWithName(name string) (*AWSRedshiftClusterParameterGroup, error) { +func (t *Template) GetAWSRedshiftClusterParameterGroupWithName(name string) (*resources.AWSRedshiftClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRedshiftClusterParameterGroup: + case *resources.AWSRedshiftClusterParameterGroup: return resource, nil } } @@ -7123,11 +7124,11 @@ func (t *Template) GetAWSRedshiftClusterParameterGroupWithName(name string) (*AW } // GetAllAWSRedshiftClusterSecurityGroupResources retrieves all AWSRedshiftClusterSecurityGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRedshiftClusterSecurityGroupResources() map[string]*AWSRedshiftClusterSecurityGroup { - results := map[string]*AWSRedshiftClusterSecurityGroup{} +func (t *Template) GetAllAWSRedshiftClusterSecurityGroupResources() map[string]*resources.AWSRedshiftClusterSecurityGroup { + results := map[string]*resources.AWSRedshiftClusterSecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRedshiftClusterSecurityGroup: + case *resources.AWSRedshiftClusterSecurityGroup: results[name] = resource } } @@ -7136,10 +7137,10 @@ func (t *Template) GetAllAWSRedshiftClusterSecurityGroupResources() map[string]* // GetAWSRedshiftClusterSecurityGroupWithName retrieves all AWSRedshiftClusterSecurityGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRedshiftClusterSecurityGroupWithName(name string) (*AWSRedshiftClusterSecurityGroup, error) { +func (t *Template) GetAWSRedshiftClusterSecurityGroupWithName(name string) (*resources.AWSRedshiftClusterSecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRedshiftClusterSecurityGroup: + case *resources.AWSRedshiftClusterSecurityGroup: return resource, nil } } @@ -7147,11 +7148,11 @@ func (t *Template) GetAWSRedshiftClusterSecurityGroupWithName(name string) (*AWS } // GetAllAWSRedshiftClusterSecurityGroupIngressResources retrieves all AWSRedshiftClusterSecurityGroupIngress items from an AWS CloudFormation template -func (t *Template) GetAllAWSRedshiftClusterSecurityGroupIngressResources() map[string]*AWSRedshiftClusterSecurityGroupIngress { - results := map[string]*AWSRedshiftClusterSecurityGroupIngress{} +func (t *Template) GetAllAWSRedshiftClusterSecurityGroupIngressResources() map[string]*resources.AWSRedshiftClusterSecurityGroupIngress { + results := map[string]*resources.AWSRedshiftClusterSecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRedshiftClusterSecurityGroupIngress: + case *resources.AWSRedshiftClusterSecurityGroupIngress: results[name] = resource } } @@ -7160,10 +7161,10 @@ func (t *Template) GetAllAWSRedshiftClusterSecurityGroupIngressResources() map[s // GetAWSRedshiftClusterSecurityGroupIngressWithName retrieves all AWSRedshiftClusterSecurityGroupIngress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRedshiftClusterSecurityGroupIngressWithName(name string) (*AWSRedshiftClusterSecurityGroupIngress, error) { +func (t *Template) GetAWSRedshiftClusterSecurityGroupIngressWithName(name string) (*resources.AWSRedshiftClusterSecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRedshiftClusterSecurityGroupIngress: + case *resources.AWSRedshiftClusterSecurityGroupIngress: return resource, nil } } @@ -7171,11 +7172,11 @@ func (t *Template) GetAWSRedshiftClusterSecurityGroupIngressWithName(name string } // GetAllAWSRedshiftClusterSubnetGroupResources retrieves all AWSRedshiftClusterSubnetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRedshiftClusterSubnetGroupResources() map[string]*AWSRedshiftClusterSubnetGroup { - results := map[string]*AWSRedshiftClusterSubnetGroup{} +func (t *Template) GetAllAWSRedshiftClusterSubnetGroupResources() map[string]*resources.AWSRedshiftClusterSubnetGroup { + results := map[string]*resources.AWSRedshiftClusterSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRedshiftClusterSubnetGroup: + case *resources.AWSRedshiftClusterSubnetGroup: results[name] = resource } } @@ -7184,10 +7185,10 @@ func (t *Template) GetAllAWSRedshiftClusterSubnetGroupResources() map[string]*AW // GetAWSRedshiftClusterSubnetGroupWithName retrieves all AWSRedshiftClusterSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRedshiftClusterSubnetGroupWithName(name string) (*AWSRedshiftClusterSubnetGroup, error) { +func (t *Template) GetAWSRedshiftClusterSubnetGroupWithName(name string) (*resources.AWSRedshiftClusterSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRedshiftClusterSubnetGroup: + case *resources.AWSRedshiftClusterSubnetGroup: return resource, nil } } @@ -7195,11 +7196,11 @@ func (t *Template) GetAWSRedshiftClusterSubnetGroupWithName(name string) (*AWSRe } // GetAllAWSRoboMakerFleetResources retrieves all AWSRoboMakerFleet items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoboMakerFleetResources() map[string]*AWSRoboMakerFleet { - results := map[string]*AWSRoboMakerFleet{} +func (t *Template) GetAllAWSRoboMakerFleetResources() map[string]*resources.AWSRoboMakerFleet { + results := map[string]*resources.AWSRoboMakerFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoboMakerFleet: + case *resources.AWSRoboMakerFleet: results[name] = resource } } @@ -7208,10 +7209,10 @@ func (t *Template) GetAllAWSRoboMakerFleetResources() map[string]*AWSRoboMakerFl // GetAWSRoboMakerFleetWithName retrieves all AWSRoboMakerFleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoboMakerFleetWithName(name string) (*AWSRoboMakerFleet, error) { +func (t *Template) GetAWSRoboMakerFleetWithName(name string) (*resources.AWSRoboMakerFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoboMakerFleet: + case *resources.AWSRoboMakerFleet: return resource, nil } } @@ -7219,11 +7220,11 @@ func (t *Template) GetAWSRoboMakerFleetWithName(name string) (*AWSRoboMakerFleet } // GetAllAWSRoboMakerRobotResources retrieves all AWSRoboMakerRobot items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoboMakerRobotResources() map[string]*AWSRoboMakerRobot { - results := map[string]*AWSRoboMakerRobot{} +func (t *Template) GetAllAWSRoboMakerRobotResources() map[string]*resources.AWSRoboMakerRobot { + results := map[string]*resources.AWSRoboMakerRobot{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoboMakerRobot: + case *resources.AWSRoboMakerRobot: results[name] = resource } } @@ -7232,10 +7233,10 @@ func (t *Template) GetAllAWSRoboMakerRobotResources() map[string]*AWSRoboMakerRo // GetAWSRoboMakerRobotWithName retrieves all AWSRoboMakerRobot items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoboMakerRobotWithName(name string) (*AWSRoboMakerRobot, error) { +func (t *Template) GetAWSRoboMakerRobotWithName(name string) (*resources.AWSRoboMakerRobot, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoboMakerRobot: + case *resources.AWSRoboMakerRobot: return resource, nil } } @@ -7243,11 +7244,11 @@ func (t *Template) GetAWSRoboMakerRobotWithName(name string) (*AWSRoboMakerRobot } // GetAllAWSRoboMakerRobotApplicationResources retrieves all AWSRoboMakerRobotApplication items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoboMakerRobotApplicationResources() map[string]*AWSRoboMakerRobotApplication { - results := map[string]*AWSRoboMakerRobotApplication{} +func (t *Template) GetAllAWSRoboMakerRobotApplicationResources() map[string]*resources.AWSRoboMakerRobotApplication { + results := map[string]*resources.AWSRoboMakerRobotApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoboMakerRobotApplication: + case *resources.AWSRoboMakerRobotApplication: results[name] = resource } } @@ -7256,10 +7257,10 @@ func (t *Template) GetAllAWSRoboMakerRobotApplicationResources() map[string]*AWS // GetAWSRoboMakerRobotApplicationWithName retrieves all AWSRoboMakerRobotApplication items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoboMakerRobotApplicationWithName(name string) (*AWSRoboMakerRobotApplication, error) { +func (t *Template) GetAWSRoboMakerRobotApplicationWithName(name string) (*resources.AWSRoboMakerRobotApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoboMakerRobotApplication: + case *resources.AWSRoboMakerRobotApplication: return resource, nil } } @@ -7267,11 +7268,11 @@ func (t *Template) GetAWSRoboMakerRobotApplicationWithName(name string) (*AWSRob } // GetAllAWSRoboMakerRobotApplicationVersionResources retrieves all AWSRoboMakerRobotApplicationVersion items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoboMakerRobotApplicationVersionResources() map[string]*AWSRoboMakerRobotApplicationVersion { - results := map[string]*AWSRoboMakerRobotApplicationVersion{} +func (t *Template) GetAllAWSRoboMakerRobotApplicationVersionResources() map[string]*resources.AWSRoboMakerRobotApplicationVersion { + results := map[string]*resources.AWSRoboMakerRobotApplicationVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoboMakerRobotApplicationVersion: + case *resources.AWSRoboMakerRobotApplicationVersion: results[name] = resource } } @@ -7280,10 +7281,10 @@ func (t *Template) GetAllAWSRoboMakerRobotApplicationVersionResources() map[stri // GetAWSRoboMakerRobotApplicationVersionWithName retrieves all AWSRoboMakerRobotApplicationVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoboMakerRobotApplicationVersionWithName(name string) (*AWSRoboMakerRobotApplicationVersion, error) { +func (t *Template) GetAWSRoboMakerRobotApplicationVersionWithName(name string) (*resources.AWSRoboMakerRobotApplicationVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoboMakerRobotApplicationVersion: + case *resources.AWSRoboMakerRobotApplicationVersion: return resource, nil } } @@ -7291,11 +7292,11 @@ func (t *Template) GetAWSRoboMakerRobotApplicationVersionWithName(name string) ( } // GetAllAWSRoboMakerSimulationApplicationResources retrieves all AWSRoboMakerSimulationApplication items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoboMakerSimulationApplicationResources() map[string]*AWSRoboMakerSimulationApplication { - results := map[string]*AWSRoboMakerSimulationApplication{} +func (t *Template) GetAllAWSRoboMakerSimulationApplicationResources() map[string]*resources.AWSRoboMakerSimulationApplication { + results := map[string]*resources.AWSRoboMakerSimulationApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoboMakerSimulationApplication: + case *resources.AWSRoboMakerSimulationApplication: results[name] = resource } } @@ -7304,10 +7305,10 @@ func (t *Template) GetAllAWSRoboMakerSimulationApplicationResources() map[string // GetAWSRoboMakerSimulationApplicationWithName retrieves all AWSRoboMakerSimulationApplication items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoboMakerSimulationApplicationWithName(name string) (*AWSRoboMakerSimulationApplication, error) { +func (t *Template) GetAWSRoboMakerSimulationApplicationWithName(name string) (*resources.AWSRoboMakerSimulationApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoboMakerSimulationApplication: + case *resources.AWSRoboMakerSimulationApplication: return resource, nil } } @@ -7315,11 +7316,11 @@ func (t *Template) GetAWSRoboMakerSimulationApplicationWithName(name string) (*A } // GetAllAWSRoboMakerSimulationApplicationVersionResources retrieves all AWSRoboMakerSimulationApplicationVersion items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoboMakerSimulationApplicationVersionResources() map[string]*AWSRoboMakerSimulationApplicationVersion { - results := map[string]*AWSRoboMakerSimulationApplicationVersion{} +func (t *Template) GetAllAWSRoboMakerSimulationApplicationVersionResources() map[string]*resources.AWSRoboMakerSimulationApplicationVersion { + results := map[string]*resources.AWSRoboMakerSimulationApplicationVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoboMakerSimulationApplicationVersion: + case *resources.AWSRoboMakerSimulationApplicationVersion: results[name] = resource } } @@ -7328,10 +7329,10 @@ func (t *Template) GetAllAWSRoboMakerSimulationApplicationVersionResources() map // GetAWSRoboMakerSimulationApplicationVersionWithName retrieves all AWSRoboMakerSimulationApplicationVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoboMakerSimulationApplicationVersionWithName(name string) (*AWSRoboMakerSimulationApplicationVersion, error) { +func (t *Template) GetAWSRoboMakerSimulationApplicationVersionWithName(name string) (*resources.AWSRoboMakerSimulationApplicationVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoboMakerSimulationApplicationVersion: + case *resources.AWSRoboMakerSimulationApplicationVersion: return resource, nil } } @@ -7339,11 +7340,11 @@ func (t *Template) GetAWSRoboMakerSimulationApplicationVersionWithName(name stri } // GetAllAWSRoute53HealthCheckResources retrieves all AWSRoute53HealthCheck items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoute53HealthCheckResources() map[string]*AWSRoute53HealthCheck { - results := map[string]*AWSRoute53HealthCheck{} +func (t *Template) GetAllAWSRoute53HealthCheckResources() map[string]*resources.AWSRoute53HealthCheck { + results := map[string]*resources.AWSRoute53HealthCheck{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoute53HealthCheck: + case *resources.AWSRoute53HealthCheck: results[name] = resource } } @@ -7352,10 +7353,10 @@ func (t *Template) GetAllAWSRoute53HealthCheckResources() map[string]*AWSRoute53 // GetAWSRoute53HealthCheckWithName retrieves all AWSRoute53HealthCheck items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoute53HealthCheckWithName(name string) (*AWSRoute53HealthCheck, error) { +func (t *Template) GetAWSRoute53HealthCheckWithName(name string) (*resources.AWSRoute53HealthCheck, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoute53HealthCheck: + case *resources.AWSRoute53HealthCheck: return resource, nil } } @@ -7363,11 +7364,11 @@ func (t *Template) GetAWSRoute53HealthCheckWithName(name string) (*AWSRoute53Hea } // GetAllAWSRoute53HostedZoneResources retrieves all AWSRoute53HostedZone items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoute53HostedZoneResources() map[string]*AWSRoute53HostedZone { - results := map[string]*AWSRoute53HostedZone{} +func (t *Template) GetAllAWSRoute53HostedZoneResources() map[string]*resources.AWSRoute53HostedZone { + results := map[string]*resources.AWSRoute53HostedZone{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoute53HostedZone: + case *resources.AWSRoute53HostedZone: results[name] = resource } } @@ -7376,10 +7377,10 @@ func (t *Template) GetAllAWSRoute53HostedZoneResources() map[string]*AWSRoute53H // GetAWSRoute53HostedZoneWithName retrieves all AWSRoute53HostedZone items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoute53HostedZoneWithName(name string) (*AWSRoute53HostedZone, error) { +func (t *Template) GetAWSRoute53HostedZoneWithName(name string) (*resources.AWSRoute53HostedZone, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoute53HostedZone: + case *resources.AWSRoute53HostedZone: return resource, nil } } @@ -7387,11 +7388,11 @@ func (t *Template) GetAWSRoute53HostedZoneWithName(name string) (*AWSRoute53Host } // GetAllAWSRoute53RecordSetResources retrieves all AWSRoute53RecordSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoute53RecordSetResources() map[string]*AWSRoute53RecordSet { - results := map[string]*AWSRoute53RecordSet{} +func (t *Template) GetAllAWSRoute53RecordSetResources() map[string]*resources.AWSRoute53RecordSet { + results := map[string]*resources.AWSRoute53RecordSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoute53RecordSet: + case *resources.AWSRoute53RecordSet: results[name] = resource } } @@ -7400,10 +7401,10 @@ func (t *Template) GetAllAWSRoute53RecordSetResources() map[string]*AWSRoute53Re // GetAWSRoute53RecordSetWithName retrieves all AWSRoute53RecordSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoute53RecordSetWithName(name string) (*AWSRoute53RecordSet, error) { +func (t *Template) GetAWSRoute53RecordSetWithName(name string) (*resources.AWSRoute53RecordSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoute53RecordSet: + case *resources.AWSRoute53RecordSet: return resource, nil } } @@ -7411,11 +7412,11 @@ func (t *Template) GetAWSRoute53RecordSetWithName(name string) (*AWSRoute53Recor } // GetAllAWSRoute53RecordSetGroupResources retrieves all AWSRoute53RecordSetGroup items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoute53RecordSetGroupResources() map[string]*AWSRoute53RecordSetGroup { - results := map[string]*AWSRoute53RecordSetGroup{} +func (t *Template) GetAllAWSRoute53RecordSetGroupResources() map[string]*resources.AWSRoute53RecordSetGroup { + results := map[string]*resources.AWSRoute53RecordSetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoute53RecordSetGroup: + case *resources.AWSRoute53RecordSetGroup: results[name] = resource } } @@ -7424,10 +7425,10 @@ func (t *Template) GetAllAWSRoute53RecordSetGroupResources() map[string]*AWSRout // GetAWSRoute53RecordSetGroupWithName retrieves all AWSRoute53RecordSetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoute53RecordSetGroupWithName(name string) (*AWSRoute53RecordSetGroup, error) { +func (t *Template) GetAWSRoute53RecordSetGroupWithName(name string) (*resources.AWSRoute53RecordSetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoute53RecordSetGroup: + case *resources.AWSRoute53RecordSetGroup: return resource, nil } } @@ -7435,11 +7436,11 @@ func (t *Template) GetAWSRoute53RecordSetGroupWithName(name string) (*AWSRoute53 } // GetAllAWSRoute53ResolverResolverEndpointResources retrieves all AWSRoute53ResolverResolverEndpoint items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoute53ResolverResolverEndpointResources() map[string]*AWSRoute53ResolverResolverEndpoint { - results := map[string]*AWSRoute53ResolverResolverEndpoint{} +func (t *Template) GetAllAWSRoute53ResolverResolverEndpointResources() map[string]*resources.AWSRoute53ResolverResolverEndpoint { + results := map[string]*resources.AWSRoute53ResolverResolverEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoute53ResolverResolverEndpoint: + case *resources.AWSRoute53ResolverResolverEndpoint: results[name] = resource } } @@ -7448,10 +7449,10 @@ func (t *Template) GetAllAWSRoute53ResolverResolverEndpointResources() map[strin // GetAWSRoute53ResolverResolverEndpointWithName retrieves all AWSRoute53ResolverResolverEndpoint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoute53ResolverResolverEndpointWithName(name string) (*AWSRoute53ResolverResolverEndpoint, error) { +func (t *Template) GetAWSRoute53ResolverResolverEndpointWithName(name string) (*resources.AWSRoute53ResolverResolverEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoute53ResolverResolverEndpoint: + case *resources.AWSRoute53ResolverResolverEndpoint: return resource, nil } } @@ -7459,11 +7460,11 @@ func (t *Template) GetAWSRoute53ResolverResolverEndpointWithName(name string) (* } // GetAllAWSRoute53ResolverResolverRuleResources retrieves all AWSRoute53ResolverResolverRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoute53ResolverResolverRuleResources() map[string]*AWSRoute53ResolverResolverRule { - results := map[string]*AWSRoute53ResolverResolverRule{} +func (t *Template) GetAllAWSRoute53ResolverResolverRuleResources() map[string]*resources.AWSRoute53ResolverResolverRule { + results := map[string]*resources.AWSRoute53ResolverResolverRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoute53ResolverResolverRule: + case *resources.AWSRoute53ResolverResolverRule: results[name] = resource } } @@ -7472,10 +7473,10 @@ func (t *Template) GetAllAWSRoute53ResolverResolverRuleResources() map[string]*A // GetAWSRoute53ResolverResolverRuleWithName retrieves all AWSRoute53ResolverResolverRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoute53ResolverResolverRuleWithName(name string) (*AWSRoute53ResolverResolverRule, error) { +func (t *Template) GetAWSRoute53ResolverResolverRuleWithName(name string) (*resources.AWSRoute53ResolverResolverRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoute53ResolverResolverRule: + case *resources.AWSRoute53ResolverResolverRule: return resource, nil } } @@ -7483,11 +7484,11 @@ func (t *Template) GetAWSRoute53ResolverResolverRuleWithName(name string) (*AWSR } // GetAllAWSRoute53ResolverResolverRuleAssociationResources retrieves all AWSRoute53ResolverResolverRuleAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSRoute53ResolverResolverRuleAssociationResources() map[string]*AWSRoute53ResolverResolverRuleAssociation { - results := map[string]*AWSRoute53ResolverResolverRuleAssociation{} +func (t *Template) GetAllAWSRoute53ResolverResolverRuleAssociationResources() map[string]*resources.AWSRoute53ResolverResolverRuleAssociation { + results := map[string]*resources.AWSRoute53ResolverResolverRuleAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSRoute53ResolverResolverRuleAssociation: + case *resources.AWSRoute53ResolverResolverRuleAssociation: results[name] = resource } } @@ -7496,10 +7497,10 @@ func (t *Template) GetAllAWSRoute53ResolverResolverRuleAssociationResources() ma // GetAWSRoute53ResolverResolverRuleAssociationWithName retrieves all AWSRoute53ResolverResolverRuleAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSRoute53ResolverResolverRuleAssociationWithName(name string) (*AWSRoute53ResolverResolverRuleAssociation, error) { +func (t *Template) GetAWSRoute53ResolverResolverRuleAssociationWithName(name string) (*resources.AWSRoute53ResolverResolverRuleAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSRoute53ResolverResolverRuleAssociation: + case *resources.AWSRoute53ResolverResolverRuleAssociation: return resource, nil } } @@ -7507,11 +7508,11 @@ func (t *Template) GetAWSRoute53ResolverResolverRuleAssociationWithName(name str } // GetAllAWSS3BucketResources retrieves all AWSS3Bucket items from an AWS CloudFormation template -func (t *Template) GetAllAWSS3BucketResources() map[string]*AWSS3Bucket { - results := map[string]*AWSS3Bucket{} +func (t *Template) GetAllAWSS3BucketResources() map[string]*resources.AWSS3Bucket { + results := map[string]*resources.AWSS3Bucket{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSS3Bucket: + case *resources.AWSS3Bucket: results[name] = resource } } @@ -7520,10 +7521,10 @@ func (t *Template) GetAllAWSS3BucketResources() map[string]*AWSS3Bucket { // GetAWSS3BucketWithName retrieves all AWSS3Bucket items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSS3BucketWithName(name string) (*AWSS3Bucket, error) { +func (t *Template) GetAWSS3BucketWithName(name string) (*resources.AWSS3Bucket, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSS3Bucket: + case *resources.AWSS3Bucket: return resource, nil } } @@ -7531,11 +7532,11 @@ func (t *Template) GetAWSS3BucketWithName(name string) (*AWSS3Bucket, error) { } // GetAllAWSS3BucketPolicyResources retrieves all AWSS3BucketPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSS3BucketPolicyResources() map[string]*AWSS3BucketPolicy { - results := map[string]*AWSS3BucketPolicy{} +func (t *Template) GetAllAWSS3BucketPolicyResources() map[string]*resources.AWSS3BucketPolicy { + results := map[string]*resources.AWSS3BucketPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSS3BucketPolicy: + case *resources.AWSS3BucketPolicy: results[name] = resource } } @@ -7544,10 +7545,10 @@ func (t *Template) GetAllAWSS3BucketPolicyResources() map[string]*AWSS3BucketPol // GetAWSS3BucketPolicyWithName retrieves all AWSS3BucketPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSS3BucketPolicyWithName(name string) (*AWSS3BucketPolicy, error) { +func (t *Template) GetAWSS3BucketPolicyWithName(name string) (*resources.AWSS3BucketPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSS3BucketPolicy: + case *resources.AWSS3BucketPolicy: return resource, nil } } @@ -7555,11 +7556,11 @@ func (t *Template) GetAWSS3BucketPolicyWithName(name string) (*AWSS3BucketPolicy } // GetAllAWSSDBDomainResources retrieves all AWSSDBDomain items from an AWS CloudFormation template -func (t *Template) GetAllAWSSDBDomainResources() map[string]*AWSSDBDomain { - results := map[string]*AWSSDBDomain{} +func (t *Template) GetAllAWSSDBDomainResources() map[string]*resources.AWSSDBDomain { + results := map[string]*resources.AWSSDBDomain{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSDBDomain: + case *resources.AWSSDBDomain: results[name] = resource } } @@ -7568,10 +7569,10 @@ func (t *Template) GetAllAWSSDBDomainResources() map[string]*AWSSDBDomain { // GetAWSSDBDomainWithName retrieves all AWSSDBDomain items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSDBDomainWithName(name string) (*AWSSDBDomain, error) { +func (t *Template) GetAWSSDBDomainWithName(name string) (*resources.AWSSDBDomain, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSDBDomain: + case *resources.AWSSDBDomain: return resource, nil } } @@ -7579,11 +7580,11 @@ func (t *Template) GetAWSSDBDomainWithName(name string) (*AWSSDBDomain, error) { } // GetAllAWSSESConfigurationSetResources retrieves all AWSSESConfigurationSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSSESConfigurationSetResources() map[string]*AWSSESConfigurationSet { - results := map[string]*AWSSESConfigurationSet{} +func (t *Template) GetAllAWSSESConfigurationSetResources() map[string]*resources.AWSSESConfigurationSet { + results := map[string]*resources.AWSSESConfigurationSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSESConfigurationSet: + case *resources.AWSSESConfigurationSet: results[name] = resource } } @@ -7592,10 +7593,10 @@ func (t *Template) GetAllAWSSESConfigurationSetResources() map[string]*AWSSESCon // GetAWSSESConfigurationSetWithName retrieves all AWSSESConfigurationSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSESConfigurationSetWithName(name string) (*AWSSESConfigurationSet, error) { +func (t *Template) GetAWSSESConfigurationSetWithName(name string) (*resources.AWSSESConfigurationSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSESConfigurationSet: + case *resources.AWSSESConfigurationSet: return resource, nil } } @@ -7603,11 +7604,11 @@ func (t *Template) GetAWSSESConfigurationSetWithName(name string) (*AWSSESConfig } // GetAllAWSSESConfigurationSetEventDestinationResources retrieves all AWSSESConfigurationSetEventDestination items from an AWS CloudFormation template -func (t *Template) GetAllAWSSESConfigurationSetEventDestinationResources() map[string]*AWSSESConfigurationSetEventDestination { - results := map[string]*AWSSESConfigurationSetEventDestination{} +func (t *Template) GetAllAWSSESConfigurationSetEventDestinationResources() map[string]*resources.AWSSESConfigurationSetEventDestination { + results := map[string]*resources.AWSSESConfigurationSetEventDestination{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSESConfigurationSetEventDestination: + case *resources.AWSSESConfigurationSetEventDestination: results[name] = resource } } @@ -7616,10 +7617,10 @@ func (t *Template) GetAllAWSSESConfigurationSetEventDestinationResources() map[s // GetAWSSESConfigurationSetEventDestinationWithName retrieves all AWSSESConfigurationSetEventDestination items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSESConfigurationSetEventDestinationWithName(name string) (*AWSSESConfigurationSetEventDestination, error) { +func (t *Template) GetAWSSESConfigurationSetEventDestinationWithName(name string) (*resources.AWSSESConfigurationSetEventDestination, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSESConfigurationSetEventDestination: + case *resources.AWSSESConfigurationSetEventDestination: return resource, nil } } @@ -7627,11 +7628,11 @@ func (t *Template) GetAWSSESConfigurationSetEventDestinationWithName(name string } // GetAllAWSSESReceiptFilterResources retrieves all AWSSESReceiptFilter items from an AWS CloudFormation template -func (t *Template) GetAllAWSSESReceiptFilterResources() map[string]*AWSSESReceiptFilter { - results := map[string]*AWSSESReceiptFilter{} +func (t *Template) GetAllAWSSESReceiptFilterResources() map[string]*resources.AWSSESReceiptFilter { + results := map[string]*resources.AWSSESReceiptFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSESReceiptFilter: + case *resources.AWSSESReceiptFilter: results[name] = resource } } @@ -7640,10 +7641,10 @@ func (t *Template) GetAllAWSSESReceiptFilterResources() map[string]*AWSSESReceip // GetAWSSESReceiptFilterWithName retrieves all AWSSESReceiptFilter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSESReceiptFilterWithName(name string) (*AWSSESReceiptFilter, error) { +func (t *Template) GetAWSSESReceiptFilterWithName(name string) (*resources.AWSSESReceiptFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSESReceiptFilter: + case *resources.AWSSESReceiptFilter: return resource, nil } } @@ -7651,11 +7652,11 @@ func (t *Template) GetAWSSESReceiptFilterWithName(name string) (*AWSSESReceiptFi } // GetAllAWSSESReceiptRuleResources retrieves all AWSSESReceiptRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSSESReceiptRuleResources() map[string]*AWSSESReceiptRule { - results := map[string]*AWSSESReceiptRule{} +func (t *Template) GetAllAWSSESReceiptRuleResources() map[string]*resources.AWSSESReceiptRule { + results := map[string]*resources.AWSSESReceiptRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSESReceiptRule: + case *resources.AWSSESReceiptRule: results[name] = resource } } @@ -7664,10 +7665,10 @@ func (t *Template) GetAllAWSSESReceiptRuleResources() map[string]*AWSSESReceiptR // GetAWSSESReceiptRuleWithName retrieves all AWSSESReceiptRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSESReceiptRuleWithName(name string) (*AWSSESReceiptRule, error) { +func (t *Template) GetAWSSESReceiptRuleWithName(name string) (*resources.AWSSESReceiptRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSESReceiptRule: + case *resources.AWSSESReceiptRule: return resource, nil } } @@ -7675,11 +7676,11 @@ func (t *Template) GetAWSSESReceiptRuleWithName(name string) (*AWSSESReceiptRule } // GetAllAWSSESReceiptRuleSetResources retrieves all AWSSESReceiptRuleSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSSESReceiptRuleSetResources() map[string]*AWSSESReceiptRuleSet { - results := map[string]*AWSSESReceiptRuleSet{} +func (t *Template) GetAllAWSSESReceiptRuleSetResources() map[string]*resources.AWSSESReceiptRuleSet { + results := map[string]*resources.AWSSESReceiptRuleSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSESReceiptRuleSet: + case *resources.AWSSESReceiptRuleSet: results[name] = resource } } @@ -7688,10 +7689,10 @@ func (t *Template) GetAllAWSSESReceiptRuleSetResources() map[string]*AWSSESRecei // GetAWSSESReceiptRuleSetWithName retrieves all AWSSESReceiptRuleSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSESReceiptRuleSetWithName(name string) (*AWSSESReceiptRuleSet, error) { +func (t *Template) GetAWSSESReceiptRuleSetWithName(name string) (*resources.AWSSESReceiptRuleSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSESReceiptRuleSet: + case *resources.AWSSESReceiptRuleSet: return resource, nil } } @@ -7699,11 +7700,11 @@ func (t *Template) GetAWSSESReceiptRuleSetWithName(name string) (*AWSSESReceiptR } // GetAllAWSSESTemplateResources retrieves all AWSSESTemplate items from an AWS CloudFormation template -func (t *Template) GetAllAWSSESTemplateResources() map[string]*AWSSESTemplate { - results := map[string]*AWSSESTemplate{} +func (t *Template) GetAllAWSSESTemplateResources() map[string]*resources.AWSSESTemplate { + results := map[string]*resources.AWSSESTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSESTemplate: + case *resources.AWSSESTemplate: results[name] = resource } } @@ -7712,10 +7713,10 @@ func (t *Template) GetAllAWSSESTemplateResources() map[string]*AWSSESTemplate { // GetAWSSESTemplateWithName retrieves all AWSSESTemplate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSESTemplateWithName(name string) (*AWSSESTemplate, error) { +func (t *Template) GetAWSSESTemplateWithName(name string) (*resources.AWSSESTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSESTemplate: + case *resources.AWSSESTemplate: return resource, nil } } @@ -7723,11 +7724,11 @@ func (t *Template) GetAWSSESTemplateWithName(name string) (*AWSSESTemplate, erro } // GetAllAWSSNSSubscriptionResources retrieves all AWSSNSSubscription items from an AWS CloudFormation template -func (t *Template) GetAllAWSSNSSubscriptionResources() map[string]*AWSSNSSubscription { - results := map[string]*AWSSNSSubscription{} +func (t *Template) GetAllAWSSNSSubscriptionResources() map[string]*resources.AWSSNSSubscription { + results := map[string]*resources.AWSSNSSubscription{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSNSSubscription: + case *resources.AWSSNSSubscription: results[name] = resource } } @@ -7736,10 +7737,10 @@ func (t *Template) GetAllAWSSNSSubscriptionResources() map[string]*AWSSNSSubscri // GetAWSSNSSubscriptionWithName retrieves all AWSSNSSubscription items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSNSSubscriptionWithName(name string) (*AWSSNSSubscription, error) { +func (t *Template) GetAWSSNSSubscriptionWithName(name string) (*resources.AWSSNSSubscription, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSNSSubscription: + case *resources.AWSSNSSubscription: return resource, nil } } @@ -7747,11 +7748,11 @@ func (t *Template) GetAWSSNSSubscriptionWithName(name string) (*AWSSNSSubscripti } // GetAllAWSSNSTopicResources retrieves all AWSSNSTopic items from an AWS CloudFormation template -func (t *Template) GetAllAWSSNSTopicResources() map[string]*AWSSNSTopic { - results := map[string]*AWSSNSTopic{} +func (t *Template) GetAllAWSSNSTopicResources() map[string]*resources.AWSSNSTopic { + results := map[string]*resources.AWSSNSTopic{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSNSTopic: + case *resources.AWSSNSTopic: results[name] = resource } } @@ -7760,10 +7761,10 @@ func (t *Template) GetAllAWSSNSTopicResources() map[string]*AWSSNSTopic { // GetAWSSNSTopicWithName retrieves all AWSSNSTopic items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSNSTopicWithName(name string) (*AWSSNSTopic, error) { +func (t *Template) GetAWSSNSTopicWithName(name string) (*resources.AWSSNSTopic, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSNSTopic: + case *resources.AWSSNSTopic: return resource, nil } } @@ -7771,11 +7772,11 @@ func (t *Template) GetAWSSNSTopicWithName(name string) (*AWSSNSTopic, error) { } // GetAllAWSSNSTopicPolicyResources retrieves all AWSSNSTopicPolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSSNSTopicPolicyResources() map[string]*AWSSNSTopicPolicy { - results := map[string]*AWSSNSTopicPolicy{} +func (t *Template) GetAllAWSSNSTopicPolicyResources() map[string]*resources.AWSSNSTopicPolicy { + results := map[string]*resources.AWSSNSTopicPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSNSTopicPolicy: + case *resources.AWSSNSTopicPolicy: results[name] = resource } } @@ -7784,10 +7785,10 @@ func (t *Template) GetAllAWSSNSTopicPolicyResources() map[string]*AWSSNSTopicPol // GetAWSSNSTopicPolicyWithName retrieves all AWSSNSTopicPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSNSTopicPolicyWithName(name string) (*AWSSNSTopicPolicy, error) { +func (t *Template) GetAWSSNSTopicPolicyWithName(name string) (*resources.AWSSNSTopicPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSNSTopicPolicy: + case *resources.AWSSNSTopicPolicy: return resource, nil } } @@ -7795,11 +7796,11 @@ func (t *Template) GetAWSSNSTopicPolicyWithName(name string) (*AWSSNSTopicPolicy } // GetAllAWSSQSQueueResources retrieves all AWSSQSQueue items from an AWS CloudFormation template -func (t *Template) GetAllAWSSQSQueueResources() map[string]*AWSSQSQueue { - results := map[string]*AWSSQSQueue{} +func (t *Template) GetAllAWSSQSQueueResources() map[string]*resources.AWSSQSQueue { + results := map[string]*resources.AWSSQSQueue{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSQSQueue: + case *resources.AWSSQSQueue: results[name] = resource } } @@ -7808,10 +7809,10 @@ func (t *Template) GetAllAWSSQSQueueResources() map[string]*AWSSQSQueue { // GetAWSSQSQueueWithName retrieves all AWSSQSQueue items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSQSQueueWithName(name string) (*AWSSQSQueue, error) { +func (t *Template) GetAWSSQSQueueWithName(name string) (*resources.AWSSQSQueue, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSQSQueue: + case *resources.AWSSQSQueue: return resource, nil } } @@ -7819,11 +7820,11 @@ func (t *Template) GetAWSSQSQueueWithName(name string) (*AWSSQSQueue, error) { } // GetAllAWSSQSQueuePolicyResources retrieves all AWSSQSQueuePolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSSQSQueuePolicyResources() map[string]*AWSSQSQueuePolicy { - results := map[string]*AWSSQSQueuePolicy{} +func (t *Template) GetAllAWSSQSQueuePolicyResources() map[string]*resources.AWSSQSQueuePolicy { + results := map[string]*resources.AWSSQSQueuePolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSQSQueuePolicy: + case *resources.AWSSQSQueuePolicy: results[name] = resource } } @@ -7832,10 +7833,10 @@ func (t *Template) GetAllAWSSQSQueuePolicyResources() map[string]*AWSSQSQueuePol // GetAWSSQSQueuePolicyWithName retrieves all AWSSQSQueuePolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSQSQueuePolicyWithName(name string) (*AWSSQSQueuePolicy, error) { +func (t *Template) GetAWSSQSQueuePolicyWithName(name string) (*resources.AWSSQSQueuePolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSQSQueuePolicy: + case *resources.AWSSQSQueuePolicy: return resource, nil } } @@ -7843,11 +7844,11 @@ func (t *Template) GetAWSSQSQueuePolicyWithName(name string) (*AWSSQSQueuePolicy } // GetAllAWSSSMAssociationResources retrieves all AWSSSMAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSSSMAssociationResources() map[string]*AWSSSMAssociation { - results := map[string]*AWSSSMAssociation{} +func (t *Template) GetAllAWSSSMAssociationResources() map[string]*resources.AWSSSMAssociation { + results := map[string]*resources.AWSSSMAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSSMAssociation: + case *resources.AWSSSMAssociation: results[name] = resource } } @@ -7856,10 +7857,10 @@ func (t *Template) GetAllAWSSSMAssociationResources() map[string]*AWSSSMAssociat // GetAWSSSMAssociationWithName retrieves all AWSSSMAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSSMAssociationWithName(name string) (*AWSSSMAssociation, error) { +func (t *Template) GetAWSSSMAssociationWithName(name string) (*resources.AWSSSMAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSSMAssociation: + case *resources.AWSSSMAssociation: return resource, nil } } @@ -7867,11 +7868,11 @@ func (t *Template) GetAWSSSMAssociationWithName(name string) (*AWSSSMAssociation } // GetAllAWSSSMDocumentResources retrieves all AWSSSMDocument items from an AWS CloudFormation template -func (t *Template) GetAllAWSSSMDocumentResources() map[string]*AWSSSMDocument { - results := map[string]*AWSSSMDocument{} +func (t *Template) GetAllAWSSSMDocumentResources() map[string]*resources.AWSSSMDocument { + results := map[string]*resources.AWSSSMDocument{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSSMDocument: + case *resources.AWSSSMDocument: results[name] = resource } } @@ -7880,10 +7881,10 @@ func (t *Template) GetAllAWSSSMDocumentResources() map[string]*AWSSSMDocument { // GetAWSSSMDocumentWithName retrieves all AWSSSMDocument items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSSMDocumentWithName(name string) (*AWSSSMDocument, error) { +func (t *Template) GetAWSSSMDocumentWithName(name string) (*resources.AWSSSMDocument, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSSMDocument: + case *resources.AWSSSMDocument: return resource, nil } } @@ -7891,11 +7892,11 @@ func (t *Template) GetAWSSSMDocumentWithName(name string) (*AWSSSMDocument, erro } // GetAllAWSSSMMaintenanceWindowResources retrieves all AWSSSMMaintenanceWindow items from an AWS CloudFormation template -func (t *Template) GetAllAWSSSMMaintenanceWindowResources() map[string]*AWSSSMMaintenanceWindow { - results := map[string]*AWSSSMMaintenanceWindow{} +func (t *Template) GetAllAWSSSMMaintenanceWindowResources() map[string]*resources.AWSSSMMaintenanceWindow { + results := map[string]*resources.AWSSSMMaintenanceWindow{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSSMMaintenanceWindow: + case *resources.AWSSSMMaintenanceWindow: results[name] = resource } } @@ -7904,10 +7905,10 @@ func (t *Template) GetAllAWSSSMMaintenanceWindowResources() map[string]*AWSSSMMa // GetAWSSSMMaintenanceWindowWithName retrieves all AWSSSMMaintenanceWindow items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSSMMaintenanceWindowWithName(name string) (*AWSSSMMaintenanceWindow, error) { +func (t *Template) GetAWSSSMMaintenanceWindowWithName(name string) (*resources.AWSSSMMaintenanceWindow, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSSMMaintenanceWindow: + case *resources.AWSSSMMaintenanceWindow: return resource, nil } } @@ -7915,11 +7916,11 @@ func (t *Template) GetAWSSSMMaintenanceWindowWithName(name string) (*AWSSSMMaint } // GetAllAWSSSMMaintenanceWindowTaskResources retrieves all AWSSSMMaintenanceWindowTask items from an AWS CloudFormation template -func (t *Template) GetAllAWSSSMMaintenanceWindowTaskResources() map[string]*AWSSSMMaintenanceWindowTask { - results := map[string]*AWSSSMMaintenanceWindowTask{} +func (t *Template) GetAllAWSSSMMaintenanceWindowTaskResources() map[string]*resources.AWSSSMMaintenanceWindowTask { + results := map[string]*resources.AWSSSMMaintenanceWindowTask{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSSMMaintenanceWindowTask: + case *resources.AWSSSMMaintenanceWindowTask: results[name] = resource } } @@ -7928,10 +7929,10 @@ func (t *Template) GetAllAWSSSMMaintenanceWindowTaskResources() map[string]*AWSS // GetAWSSSMMaintenanceWindowTaskWithName retrieves all AWSSSMMaintenanceWindowTask items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSSMMaintenanceWindowTaskWithName(name string) (*AWSSSMMaintenanceWindowTask, error) { +func (t *Template) GetAWSSSMMaintenanceWindowTaskWithName(name string) (*resources.AWSSSMMaintenanceWindowTask, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSSMMaintenanceWindowTask: + case *resources.AWSSSMMaintenanceWindowTask: return resource, nil } } @@ -7939,11 +7940,11 @@ func (t *Template) GetAWSSSMMaintenanceWindowTaskWithName(name string) (*AWSSSMM } // GetAllAWSSSMParameterResources retrieves all AWSSSMParameter items from an AWS CloudFormation template -func (t *Template) GetAllAWSSSMParameterResources() map[string]*AWSSSMParameter { - results := map[string]*AWSSSMParameter{} +func (t *Template) GetAllAWSSSMParameterResources() map[string]*resources.AWSSSMParameter { + results := map[string]*resources.AWSSSMParameter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSSMParameter: + case *resources.AWSSSMParameter: results[name] = resource } } @@ -7952,10 +7953,10 @@ func (t *Template) GetAllAWSSSMParameterResources() map[string]*AWSSSMParameter // GetAWSSSMParameterWithName retrieves all AWSSSMParameter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSSMParameterWithName(name string) (*AWSSSMParameter, error) { +func (t *Template) GetAWSSSMParameterWithName(name string) (*resources.AWSSSMParameter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSSMParameter: + case *resources.AWSSSMParameter: return resource, nil } } @@ -7963,11 +7964,11 @@ func (t *Template) GetAWSSSMParameterWithName(name string) (*AWSSSMParameter, er } // GetAllAWSSSMPatchBaselineResources retrieves all AWSSSMPatchBaseline items from an AWS CloudFormation template -func (t *Template) GetAllAWSSSMPatchBaselineResources() map[string]*AWSSSMPatchBaseline { - results := map[string]*AWSSSMPatchBaseline{} +func (t *Template) GetAllAWSSSMPatchBaselineResources() map[string]*resources.AWSSSMPatchBaseline { + results := map[string]*resources.AWSSSMPatchBaseline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSSMPatchBaseline: + case *resources.AWSSSMPatchBaseline: results[name] = resource } } @@ -7976,10 +7977,10 @@ func (t *Template) GetAllAWSSSMPatchBaselineResources() map[string]*AWSSSMPatchB // GetAWSSSMPatchBaselineWithName retrieves all AWSSSMPatchBaseline items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSSMPatchBaselineWithName(name string) (*AWSSSMPatchBaseline, error) { +func (t *Template) GetAWSSSMPatchBaselineWithName(name string) (*resources.AWSSSMPatchBaseline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSSMPatchBaseline: + case *resources.AWSSSMPatchBaseline: return resource, nil } } @@ -7987,11 +7988,11 @@ func (t *Template) GetAWSSSMPatchBaselineWithName(name string) (*AWSSSMPatchBase } // GetAllAWSSSMResourceDataSyncResources retrieves all AWSSSMResourceDataSync items from an AWS CloudFormation template -func (t *Template) GetAllAWSSSMResourceDataSyncResources() map[string]*AWSSSMResourceDataSync { - results := map[string]*AWSSSMResourceDataSync{} +func (t *Template) GetAllAWSSSMResourceDataSyncResources() map[string]*resources.AWSSSMResourceDataSync { + results := map[string]*resources.AWSSSMResourceDataSync{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSSMResourceDataSync: + case *resources.AWSSSMResourceDataSync: results[name] = resource } } @@ -8000,10 +8001,10 @@ func (t *Template) GetAllAWSSSMResourceDataSyncResources() map[string]*AWSSSMRes // GetAWSSSMResourceDataSyncWithName retrieves all AWSSSMResourceDataSync items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSSMResourceDataSyncWithName(name string) (*AWSSSMResourceDataSync, error) { +func (t *Template) GetAWSSSMResourceDataSyncWithName(name string) (*resources.AWSSSMResourceDataSync, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSSMResourceDataSync: + case *resources.AWSSSMResourceDataSync: return resource, nil } } @@ -8011,11 +8012,11 @@ func (t *Template) GetAWSSSMResourceDataSyncWithName(name string) (*AWSSSMResour } // GetAllAWSSageMakerEndpointResources retrieves all AWSSageMakerEndpoint items from an AWS CloudFormation template -func (t *Template) GetAllAWSSageMakerEndpointResources() map[string]*AWSSageMakerEndpoint { - results := map[string]*AWSSageMakerEndpoint{} +func (t *Template) GetAllAWSSageMakerEndpointResources() map[string]*resources.AWSSageMakerEndpoint { + results := map[string]*resources.AWSSageMakerEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSageMakerEndpoint: + case *resources.AWSSageMakerEndpoint: results[name] = resource } } @@ -8024,10 +8025,10 @@ func (t *Template) GetAllAWSSageMakerEndpointResources() map[string]*AWSSageMake // GetAWSSageMakerEndpointWithName retrieves all AWSSageMakerEndpoint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSageMakerEndpointWithName(name string) (*AWSSageMakerEndpoint, error) { +func (t *Template) GetAWSSageMakerEndpointWithName(name string) (*resources.AWSSageMakerEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSageMakerEndpoint: + case *resources.AWSSageMakerEndpoint: return resource, nil } } @@ -8035,11 +8036,11 @@ func (t *Template) GetAWSSageMakerEndpointWithName(name string) (*AWSSageMakerEn } // GetAllAWSSageMakerEndpointConfigResources retrieves all AWSSageMakerEndpointConfig items from an AWS CloudFormation template -func (t *Template) GetAllAWSSageMakerEndpointConfigResources() map[string]*AWSSageMakerEndpointConfig { - results := map[string]*AWSSageMakerEndpointConfig{} +func (t *Template) GetAllAWSSageMakerEndpointConfigResources() map[string]*resources.AWSSageMakerEndpointConfig { + results := map[string]*resources.AWSSageMakerEndpointConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSageMakerEndpointConfig: + case *resources.AWSSageMakerEndpointConfig: results[name] = resource } } @@ -8048,10 +8049,10 @@ func (t *Template) GetAllAWSSageMakerEndpointConfigResources() map[string]*AWSSa // GetAWSSageMakerEndpointConfigWithName retrieves all AWSSageMakerEndpointConfig items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSageMakerEndpointConfigWithName(name string) (*AWSSageMakerEndpointConfig, error) { +func (t *Template) GetAWSSageMakerEndpointConfigWithName(name string) (*resources.AWSSageMakerEndpointConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSageMakerEndpointConfig: + case *resources.AWSSageMakerEndpointConfig: return resource, nil } } @@ -8059,11 +8060,11 @@ func (t *Template) GetAWSSageMakerEndpointConfigWithName(name string) (*AWSSageM } // GetAllAWSSageMakerModelResources retrieves all AWSSageMakerModel items from an AWS CloudFormation template -func (t *Template) GetAllAWSSageMakerModelResources() map[string]*AWSSageMakerModel { - results := map[string]*AWSSageMakerModel{} +func (t *Template) GetAllAWSSageMakerModelResources() map[string]*resources.AWSSageMakerModel { + results := map[string]*resources.AWSSageMakerModel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSageMakerModel: + case *resources.AWSSageMakerModel: results[name] = resource } } @@ -8072,10 +8073,10 @@ func (t *Template) GetAllAWSSageMakerModelResources() map[string]*AWSSageMakerMo // GetAWSSageMakerModelWithName retrieves all AWSSageMakerModel items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSageMakerModelWithName(name string) (*AWSSageMakerModel, error) { +func (t *Template) GetAWSSageMakerModelWithName(name string) (*resources.AWSSageMakerModel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSageMakerModel: + case *resources.AWSSageMakerModel: return resource, nil } } @@ -8083,11 +8084,11 @@ func (t *Template) GetAWSSageMakerModelWithName(name string) (*AWSSageMakerModel } // GetAllAWSSageMakerNotebookInstanceResources retrieves all AWSSageMakerNotebookInstance items from an AWS CloudFormation template -func (t *Template) GetAllAWSSageMakerNotebookInstanceResources() map[string]*AWSSageMakerNotebookInstance { - results := map[string]*AWSSageMakerNotebookInstance{} +func (t *Template) GetAllAWSSageMakerNotebookInstanceResources() map[string]*resources.AWSSageMakerNotebookInstance { + results := map[string]*resources.AWSSageMakerNotebookInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSageMakerNotebookInstance: + case *resources.AWSSageMakerNotebookInstance: results[name] = resource } } @@ -8096,10 +8097,10 @@ func (t *Template) GetAllAWSSageMakerNotebookInstanceResources() map[string]*AWS // GetAWSSageMakerNotebookInstanceWithName retrieves all AWSSageMakerNotebookInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSageMakerNotebookInstanceWithName(name string) (*AWSSageMakerNotebookInstance, error) { +func (t *Template) GetAWSSageMakerNotebookInstanceWithName(name string) (*resources.AWSSageMakerNotebookInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSageMakerNotebookInstance: + case *resources.AWSSageMakerNotebookInstance: return resource, nil } } @@ -8107,11 +8108,11 @@ func (t *Template) GetAWSSageMakerNotebookInstanceWithName(name string) (*AWSSag } // GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources retrieves all AWSSageMakerNotebookInstanceLifecycleConfig items from an AWS CloudFormation template -func (t *Template) GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources() map[string]*AWSSageMakerNotebookInstanceLifecycleConfig { - results := map[string]*AWSSageMakerNotebookInstanceLifecycleConfig{} +func (t *Template) GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources() map[string]*resources.AWSSageMakerNotebookInstanceLifecycleConfig { + results := map[string]*resources.AWSSageMakerNotebookInstanceLifecycleConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSageMakerNotebookInstanceLifecycleConfig: + case *resources.AWSSageMakerNotebookInstanceLifecycleConfig: results[name] = resource } } @@ -8120,10 +8121,10 @@ func (t *Template) GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources() // GetAWSSageMakerNotebookInstanceLifecycleConfigWithName retrieves all AWSSageMakerNotebookInstanceLifecycleConfig items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSageMakerNotebookInstanceLifecycleConfigWithName(name string) (*AWSSageMakerNotebookInstanceLifecycleConfig, error) { +func (t *Template) GetAWSSageMakerNotebookInstanceLifecycleConfigWithName(name string) (*resources.AWSSageMakerNotebookInstanceLifecycleConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSageMakerNotebookInstanceLifecycleConfig: + case *resources.AWSSageMakerNotebookInstanceLifecycleConfig: return resource, nil } } @@ -8131,11 +8132,11 @@ func (t *Template) GetAWSSageMakerNotebookInstanceLifecycleConfigWithName(name s } // GetAllAWSSecretsManagerResourcePolicyResources retrieves all AWSSecretsManagerResourcePolicy items from an AWS CloudFormation template -func (t *Template) GetAllAWSSecretsManagerResourcePolicyResources() map[string]*AWSSecretsManagerResourcePolicy { - results := map[string]*AWSSecretsManagerResourcePolicy{} +func (t *Template) GetAllAWSSecretsManagerResourcePolicyResources() map[string]*resources.AWSSecretsManagerResourcePolicy { + results := map[string]*resources.AWSSecretsManagerResourcePolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSecretsManagerResourcePolicy: + case *resources.AWSSecretsManagerResourcePolicy: results[name] = resource } } @@ -8144,10 +8145,10 @@ func (t *Template) GetAllAWSSecretsManagerResourcePolicyResources() map[string]* // GetAWSSecretsManagerResourcePolicyWithName retrieves all AWSSecretsManagerResourcePolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSecretsManagerResourcePolicyWithName(name string) (*AWSSecretsManagerResourcePolicy, error) { +func (t *Template) GetAWSSecretsManagerResourcePolicyWithName(name string) (*resources.AWSSecretsManagerResourcePolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSecretsManagerResourcePolicy: + case *resources.AWSSecretsManagerResourcePolicy: return resource, nil } } @@ -8155,11 +8156,11 @@ func (t *Template) GetAWSSecretsManagerResourcePolicyWithName(name string) (*AWS } // GetAllAWSSecretsManagerRotationScheduleResources retrieves all AWSSecretsManagerRotationSchedule items from an AWS CloudFormation template -func (t *Template) GetAllAWSSecretsManagerRotationScheduleResources() map[string]*AWSSecretsManagerRotationSchedule { - results := map[string]*AWSSecretsManagerRotationSchedule{} +func (t *Template) GetAllAWSSecretsManagerRotationScheduleResources() map[string]*resources.AWSSecretsManagerRotationSchedule { + results := map[string]*resources.AWSSecretsManagerRotationSchedule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSecretsManagerRotationSchedule: + case *resources.AWSSecretsManagerRotationSchedule: results[name] = resource } } @@ -8168,10 +8169,10 @@ func (t *Template) GetAllAWSSecretsManagerRotationScheduleResources() map[string // GetAWSSecretsManagerRotationScheduleWithName retrieves all AWSSecretsManagerRotationSchedule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSecretsManagerRotationScheduleWithName(name string) (*AWSSecretsManagerRotationSchedule, error) { +func (t *Template) GetAWSSecretsManagerRotationScheduleWithName(name string) (*resources.AWSSecretsManagerRotationSchedule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSecretsManagerRotationSchedule: + case *resources.AWSSecretsManagerRotationSchedule: return resource, nil } } @@ -8179,11 +8180,11 @@ func (t *Template) GetAWSSecretsManagerRotationScheduleWithName(name string) (*A } // GetAllAWSSecretsManagerSecretResources retrieves all AWSSecretsManagerSecret items from an AWS CloudFormation template -func (t *Template) GetAllAWSSecretsManagerSecretResources() map[string]*AWSSecretsManagerSecret { - results := map[string]*AWSSecretsManagerSecret{} +func (t *Template) GetAllAWSSecretsManagerSecretResources() map[string]*resources.AWSSecretsManagerSecret { + results := map[string]*resources.AWSSecretsManagerSecret{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSecretsManagerSecret: + case *resources.AWSSecretsManagerSecret: results[name] = resource } } @@ -8192,10 +8193,10 @@ func (t *Template) GetAllAWSSecretsManagerSecretResources() map[string]*AWSSecre // GetAWSSecretsManagerSecretWithName retrieves all AWSSecretsManagerSecret items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSecretsManagerSecretWithName(name string) (*AWSSecretsManagerSecret, error) { +func (t *Template) GetAWSSecretsManagerSecretWithName(name string) (*resources.AWSSecretsManagerSecret, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSecretsManagerSecret: + case *resources.AWSSecretsManagerSecret: return resource, nil } } @@ -8203,11 +8204,11 @@ func (t *Template) GetAWSSecretsManagerSecretWithName(name string) (*AWSSecretsM } // GetAllAWSSecretsManagerSecretTargetAttachmentResources retrieves all AWSSecretsManagerSecretTargetAttachment items from an AWS CloudFormation template -func (t *Template) GetAllAWSSecretsManagerSecretTargetAttachmentResources() map[string]*AWSSecretsManagerSecretTargetAttachment { - results := map[string]*AWSSecretsManagerSecretTargetAttachment{} +func (t *Template) GetAllAWSSecretsManagerSecretTargetAttachmentResources() map[string]*resources.AWSSecretsManagerSecretTargetAttachment { + results := map[string]*resources.AWSSecretsManagerSecretTargetAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSSecretsManagerSecretTargetAttachment: + case *resources.AWSSecretsManagerSecretTargetAttachment: results[name] = resource } } @@ -8216,10 +8217,10 @@ func (t *Template) GetAllAWSSecretsManagerSecretTargetAttachmentResources() map[ // GetAWSSecretsManagerSecretTargetAttachmentWithName retrieves all AWSSecretsManagerSecretTargetAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSSecretsManagerSecretTargetAttachmentWithName(name string) (*AWSSecretsManagerSecretTargetAttachment, error) { +func (t *Template) GetAWSSecretsManagerSecretTargetAttachmentWithName(name string) (*resources.AWSSecretsManagerSecretTargetAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSSecretsManagerSecretTargetAttachment: + case *resources.AWSSecretsManagerSecretTargetAttachment: return resource, nil } } @@ -8227,11 +8228,11 @@ func (t *Template) GetAWSSecretsManagerSecretTargetAttachmentWithName(name strin } // GetAllAWSServerlessApiResources retrieves all AWSServerlessApi items from an AWS CloudFormation template -func (t *Template) GetAllAWSServerlessApiResources() map[string]*AWSServerlessApi { - results := map[string]*AWSServerlessApi{} +func (t *Template) GetAllAWSServerlessApiResources() map[string]*resources.AWSServerlessApi { + results := map[string]*resources.AWSServerlessApi{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServerlessApi: + case *resources.AWSServerlessApi: results[name] = resource } } @@ -8240,10 +8241,10 @@ func (t *Template) GetAllAWSServerlessApiResources() map[string]*AWSServerlessAp // GetAWSServerlessApiWithName retrieves all AWSServerlessApi items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServerlessApiWithName(name string) (*AWSServerlessApi, error) { +func (t *Template) GetAWSServerlessApiWithName(name string) (*resources.AWSServerlessApi, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServerlessApi: + case *resources.AWSServerlessApi: return resource, nil } } @@ -8251,11 +8252,11 @@ func (t *Template) GetAWSServerlessApiWithName(name string) (*AWSServerlessApi, } // GetAllAWSServerlessApplicationResources retrieves all AWSServerlessApplication items from an AWS CloudFormation template -func (t *Template) GetAllAWSServerlessApplicationResources() map[string]*AWSServerlessApplication { - results := map[string]*AWSServerlessApplication{} +func (t *Template) GetAllAWSServerlessApplicationResources() map[string]*resources.AWSServerlessApplication { + results := map[string]*resources.AWSServerlessApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServerlessApplication: + case *resources.AWSServerlessApplication: results[name] = resource } } @@ -8264,10 +8265,10 @@ func (t *Template) GetAllAWSServerlessApplicationResources() map[string]*AWSServ // GetAWSServerlessApplicationWithName retrieves all AWSServerlessApplication items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServerlessApplicationWithName(name string) (*AWSServerlessApplication, error) { +func (t *Template) GetAWSServerlessApplicationWithName(name string) (*resources.AWSServerlessApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServerlessApplication: + case *resources.AWSServerlessApplication: return resource, nil } } @@ -8275,11 +8276,11 @@ func (t *Template) GetAWSServerlessApplicationWithName(name string) (*AWSServerl } // GetAllAWSServerlessFunctionResources retrieves all AWSServerlessFunction items from an AWS CloudFormation template -func (t *Template) GetAllAWSServerlessFunctionResources() map[string]*AWSServerlessFunction { - results := map[string]*AWSServerlessFunction{} +func (t *Template) GetAllAWSServerlessFunctionResources() map[string]*resources.AWSServerlessFunction { + results := map[string]*resources.AWSServerlessFunction{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServerlessFunction: + case *resources.AWSServerlessFunction: results[name] = resource } } @@ -8288,10 +8289,10 @@ func (t *Template) GetAllAWSServerlessFunctionResources() map[string]*AWSServerl // GetAWSServerlessFunctionWithName retrieves all AWSServerlessFunction items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServerlessFunctionWithName(name string) (*AWSServerlessFunction, error) { +func (t *Template) GetAWSServerlessFunctionWithName(name string) (*resources.AWSServerlessFunction, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServerlessFunction: + case *resources.AWSServerlessFunction: return resource, nil } } @@ -8299,11 +8300,11 @@ func (t *Template) GetAWSServerlessFunctionWithName(name string) (*AWSServerless } // GetAllAWSServerlessLayerVersionResources retrieves all AWSServerlessLayerVersion items from an AWS CloudFormation template -func (t *Template) GetAllAWSServerlessLayerVersionResources() map[string]*AWSServerlessLayerVersion { - results := map[string]*AWSServerlessLayerVersion{} +func (t *Template) GetAllAWSServerlessLayerVersionResources() map[string]*resources.AWSServerlessLayerVersion { + results := map[string]*resources.AWSServerlessLayerVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServerlessLayerVersion: + case *resources.AWSServerlessLayerVersion: results[name] = resource } } @@ -8312,10 +8313,10 @@ func (t *Template) GetAllAWSServerlessLayerVersionResources() map[string]*AWSSer // GetAWSServerlessLayerVersionWithName retrieves all AWSServerlessLayerVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServerlessLayerVersionWithName(name string) (*AWSServerlessLayerVersion, error) { +func (t *Template) GetAWSServerlessLayerVersionWithName(name string) (*resources.AWSServerlessLayerVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServerlessLayerVersion: + case *resources.AWSServerlessLayerVersion: return resource, nil } } @@ -8323,11 +8324,11 @@ func (t *Template) GetAWSServerlessLayerVersionWithName(name string) (*AWSServer } // GetAllAWSServerlessSimpleTableResources retrieves all AWSServerlessSimpleTable items from an AWS CloudFormation template -func (t *Template) GetAllAWSServerlessSimpleTableResources() map[string]*AWSServerlessSimpleTable { - results := map[string]*AWSServerlessSimpleTable{} +func (t *Template) GetAllAWSServerlessSimpleTableResources() map[string]*resources.AWSServerlessSimpleTable { + results := map[string]*resources.AWSServerlessSimpleTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServerlessSimpleTable: + case *resources.AWSServerlessSimpleTable: results[name] = resource } } @@ -8336,10 +8337,10 @@ func (t *Template) GetAllAWSServerlessSimpleTableResources() map[string]*AWSServ // GetAWSServerlessSimpleTableWithName retrieves all AWSServerlessSimpleTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServerlessSimpleTableWithName(name string) (*AWSServerlessSimpleTable, error) { +func (t *Template) GetAWSServerlessSimpleTableWithName(name string) (*resources.AWSServerlessSimpleTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServerlessSimpleTable: + case *resources.AWSServerlessSimpleTable: return resource, nil } } @@ -8347,11 +8348,11 @@ func (t *Template) GetAWSServerlessSimpleTableWithName(name string) (*AWSServerl } // GetAllAWSServiceCatalogAcceptedPortfolioShareResources retrieves all AWSServiceCatalogAcceptedPortfolioShare items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogAcceptedPortfolioShareResources() map[string]*AWSServiceCatalogAcceptedPortfolioShare { - results := map[string]*AWSServiceCatalogAcceptedPortfolioShare{} +func (t *Template) GetAllAWSServiceCatalogAcceptedPortfolioShareResources() map[string]*resources.AWSServiceCatalogAcceptedPortfolioShare { + results := map[string]*resources.AWSServiceCatalogAcceptedPortfolioShare{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogAcceptedPortfolioShare: + case *resources.AWSServiceCatalogAcceptedPortfolioShare: results[name] = resource } } @@ -8360,10 +8361,10 @@ func (t *Template) GetAllAWSServiceCatalogAcceptedPortfolioShareResources() map[ // GetAWSServiceCatalogAcceptedPortfolioShareWithName retrieves all AWSServiceCatalogAcceptedPortfolioShare items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogAcceptedPortfolioShareWithName(name string) (*AWSServiceCatalogAcceptedPortfolioShare, error) { +func (t *Template) GetAWSServiceCatalogAcceptedPortfolioShareWithName(name string) (*resources.AWSServiceCatalogAcceptedPortfolioShare, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogAcceptedPortfolioShare: + case *resources.AWSServiceCatalogAcceptedPortfolioShare: return resource, nil } } @@ -8371,11 +8372,11 @@ func (t *Template) GetAWSServiceCatalogAcceptedPortfolioShareWithName(name strin } // GetAllAWSServiceCatalogCloudFormationProductResources retrieves all AWSServiceCatalogCloudFormationProduct items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogCloudFormationProductResources() map[string]*AWSServiceCatalogCloudFormationProduct { - results := map[string]*AWSServiceCatalogCloudFormationProduct{} +func (t *Template) GetAllAWSServiceCatalogCloudFormationProductResources() map[string]*resources.AWSServiceCatalogCloudFormationProduct { + results := map[string]*resources.AWSServiceCatalogCloudFormationProduct{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogCloudFormationProduct: + case *resources.AWSServiceCatalogCloudFormationProduct: results[name] = resource } } @@ -8384,10 +8385,10 @@ func (t *Template) GetAllAWSServiceCatalogCloudFormationProductResources() map[s // GetAWSServiceCatalogCloudFormationProductWithName retrieves all AWSServiceCatalogCloudFormationProduct items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogCloudFormationProductWithName(name string) (*AWSServiceCatalogCloudFormationProduct, error) { +func (t *Template) GetAWSServiceCatalogCloudFormationProductWithName(name string) (*resources.AWSServiceCatalogCloudFormationProduct, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogCloudFormationProduct: + case *resources.AWSServiceCatalogCloudFormationProduct: return resource, nil } } @@ -8395,11 +8396,11 @@ func (t *Template) GetAWSServiceCatalogCloudFormationProductWithName(name string } // GetAllAWSServiceCatalogCloudFormationProvisionedProductResources retrieves all AWSServiceCatalogCloudFormationProvisionedProduct items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogCloudFormationProvisionedProductResources() map[string]*AWSServiceCatalogCloudFormationProvisionedProduct { - results := map[string]*AWSServiceCatalogCloudFormationProvisionedProduct{} +func (t *Template) GetAllAWSServiceCatalogCloudFormationProvisionedProductResources() map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct { + results := map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogCloudFormationProvisionedProduct: + case *resources.AWSServiceCatalogCloudFormationProvisionedProduct: results[name] = resource } } @@ -8408,10 +8409,10 @@ func (t *Template) GetAllAWSServiceCatalogCloudFormationProvisionedProductResour // GetAWSServiceCatalogCloudFormationProvisionedProductWithName retrieves all AWSServiceCatalogCloudFormationProvisionedProduct items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogCloudFormationProvisionedProductWithName(name string) (*AWSServiceCatalogCloudFormationProvisionedProduct, error) { +func (t *Template) GetAWSServiceCatalogCloudFormationProvisionedProductWithName(name string) (*resources.AWSServiceCatalogCloudFormationProvisionedProduct, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogCloudFormationProvisionedProduct: + case *resources.AWSServiceCatalogCloudFormationProvisionedProduct: return resource, nil } } @@ -8419,11 +8420,11 @@ func (t *Template) GetAWSServiceCatalogCloudFormationProvisionedProductWithName( } // GetAllAWSServiceCatalogLaunchNotificationConstraintResources retrieves all AWSServiceCatalogLaunchNotificationConstraint items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogLaunchNotificationConstraintResources() map[string]*AWSServiceCatalogLaunchNotificationConstraint { - results := map[string]*AWSServiceCatalogLaunchNotificationConstraint{} +func (t *Template) GetAllAWSServiceCatalogLaunchNotificationConstraintResources() map[string]*resources.AWSServiceCatalogLaunchNotificationConstraint { + results := map[string]*resources.AWSServiceCatalogLaunchNotificationConstraint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogLaunchNotificationConstraint: + case *resources.AWSServiceCatalogLaunchNotificationConstraint: results[name] = resource } } @@ -8432,10 +8433,10 @@ func (t *Template) GetAllAWSServiceCatalogLaunchNotificationConstraintResources( // GetAWSServiceCatalogLaunchNotificationConstraintWithName retrieves all AWSServiceCatalogLaunchNotificationConstraint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogLaunchNotificationConstraintWithName(name string) (*AWSServiceCatalogLaunchNotificationConstraint, error) { +func (t *Template) GetAWSServiceCatalogLaunchNotificationConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchNotificationConstraint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogLaunchNotificationConstraint: + case *resources.AWSServiceCatalogLaunchNotificationConstraint: return resource, nil } } @@ -8443,11 +8444,11 @@ func (t *Template) GetAWSServiceCatalogLaunchNotificationConstraintWithName(name } // GetAllAWSServiceCatalogLaunchRoleConstraintResources retrieves all AWSServiceCatalogLaunchRoleConstraint items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogLaunchRoleConstraintResources() map[string]*AWSServiceCatalogLaunchRoleConstraint { - results := map[string]*AWSServiceCatalogLaunchRoleConstraint{} +func (t *Template) GetAllAWSServiceCatalogLaunchRoleConstraintResources() map[string]*resources.AWSServiceCatalogLaunchRoleConstraint { + results := map[string]*resources.AWSServiceCatalogLaunchRoleConstraint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogLaunchRoleConstraint: + case *resources.AWSServiceCatalogLaunchRoleConstraint: results[name] = resource } } @@ -8456,10 +8457,10 @@ func (t *Template) GetAllAWSServiceCatalogLaunchRoleConstraintResources() map[st // GetAWSServiceCatalogLaunchRoleConstraintWithName retrieves all AWSServiceCatalogLaunchRoleConstraint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogLaunchRoleConstraintWithName(name string) (*AWSServiceCatalogLaunchRoleConstraint, error) { +func (t *Template) GetAWSServiceCatalogLaunchRoleConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchRoleConstraint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogLaunchRoleConstraint: + case *resources.AWSServiceCatalogLaunchRoleConstraint: return resource, nil } } @@ -8467,11 +8468,11 @@ func (t *Template) GetAWSServiceCatalogLaunchRoleConstraintWithName(name string) } // GetAllAWSServiceCatalogLaunchTemplateConstraintResources retrieves all AWSServiceCatalogLaunchTemplateConstraint items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogLaunchTemplateConstraintResources() map[string]*AWSServiceCatalogLaunchTemplateConstraint { - results := map[string]*AWSServiceCatalogLaunchTemplateConstraint{} +func (t *Template) GetAllAWSServiceCatalogLaunchTemplateConstraintResources() map[string]*resources.AWSServiceCatalogLaunchTemplateConstraint { + results := map[string]*resources.AWSServiceCatalogLaunchTemplateConstraint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogLaunchTemplateConstraint: + case *resources.AWSServiceCatalogLaunchTemplateConstraint: results[name] = resource } } @@ -8480,10 +8481,10 @@ func (t *Template) GetAllAWSServiceCatalogLaunchTemplateConstraintResources() ma // GetAWSServiceCatalogLaunchTemplateConstraintWithName retrieves all AWSServiceCatalogLaunchTemplateConstraint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogLaunchTemplateConstraintWithName(name string) (*AWSServiceCatalogLaunchTemplateConstraint, error) { +func (t *Template) GetAWSServiceCatalogLaunchTemplateConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchTemplateConstraint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogLaunchTemplateConstraint: + case *resources.AWSServiceCatalogLaunchTemplateConstraint: return resource, nil } } @@ -8491,11 +8492,11 @@ func (t *Template) GetAWSServiceCatalogLaunchTemplateConstraintWithName(name str } // GetAllAWSServiceCatalogPortfolioResources retrieves all AWSServiceCatalogPortfolio items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogPortfolioResources() map[string]*AWSServiceCatalogPortfolio { - results := map[string]*AWSServiceCatalogPortfolio{} +func (t *Template) GetAllAWSServiceCatalogPortfolioResources() map[string]*resources.AWSServiceCatalogPortfolio { + results := map[string]*resources.AWSServiceCatalogPortfolio{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolio: + case *resources.AWSServiceCatalogPortfolio: results[name] = resource } } @@ -8504,10 +8505,10 @@ func (t *Template) GetAllAWSServiceCatalogPortfolioResources() map[string]*AWSSe // GetAWSServiceCatalogPortfolioWithName retrieves all AWSServiceCatalogPortfolio items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogPortfolioWithName(name string) (*AWSServiceCatalogPortfolio, error) { +func (t *Template) GetAWSServiceCatalogPortfolioWithName(name string) (*resources.AWSServiceCatalogPortfolio, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolio: + case *resources.AWSServiceCatalogPortfolio: return resource, nil } } @@ -8515,11 +8516,11 @@ func (t *Template) GetAWSServiceCatalogPortfolioWithName(name string) (*AWSServi } // GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources retrieves all AWSServiceCatalogPortfolioPrincipalAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources() map[string]*AWSServiceCatalogPortfolioPrincipalAssociation { - results := map[string]*AWSServiceCatalogPortfolioPrincipalAssociation{} +func (t *Template) GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources() map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation { + results := map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolioPrincipalAssociation: + case *resources.AWSServiceCatalogPortfolioPrincipalAssociation: results[name] = resource } } @@ -8528,10 +8529,10 @@ func (t *Template) GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources // GetAWSServiceCatalogPortfolioPrincipalAssociationWithName retrieves all AWSServiceCatalogPortfolioPrincipalAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogPortfolioPrincipalAssociationWithName(name string) (*AWSServiceCatalogPortfolioPrincipalAssociation, error) { +func (t *Template) GetAWSServiceCatalogPortfolioPrincipalAssociationWithName(name string) (*resources.AWSServiceCatalogPortfolioPrincipalAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolioPrincipalAssociation: + case *resources.AWSServiceCatalogPortfolioPrincipalAssociation: return resource, nil } } @@ -8539,11 +8540,11 @@ func (t *Template) GetAWSServiceCatalogPortfolioPrincipalAssociationWithName(nam } // GetAllAWSServiceCatalogPortfolioProductAssociationResources retrieves all AWSServiceCatalogPortfolioProductAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogPortfolioProductAssociationResources() map[string]*AWSServiceCatalogPortfolioProductAssociation { - results := map[string]*AWSServiceCatalogPortfolioProductAssociation{} +func (t *Template) GetAllAWSServiceCatalogPortfolioProductAssociationResources() map[string]*resources.AWSServiceCatalogPortfolioProductAssociation { + results := map[string]*resources.AWSServiceCatalogPortfolioProductAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolioProductAssociation: + case *resources.AWSServiceCatalogPortfolioProductAssociation: results[name] = resource } } @@ -8552,10 +8553,10 @@ func (t *Template) GetAllAWSServiceCatalogPortfolioProductAssociationResources() // GetAWSServiceCatalogPortfolioProductAssociationWithName retrieves all AWSServiceCatalogPortfolioProductAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogPortfolioProductAssociationWithName(name string) (*AWSServiceCatalogPortfolioProductAssociation, error) { +func (t *Template) GetAWSServiceCatalogPortfolioProductAssociationWithName(name string) (*resources.AWSServiceCatalogPortfolioProductAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolioProductAssociation: + case *resources.AWSServiceCatalogPortfolioProductAssociation: return resource, nil } } @@ -8563,11 +8564,11 @@ func (t *Template) GetAWSServiceCatalogPortfolioProductAssociationWithName(name } // GetAllAWSServiceCatalogPortfolioShareResources retrieves all AWSServiceCatalogPortfolioShare items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogPortfolioShareResources() map[string]*AWSServiceCatalogPortfolioShare { - results := map[string]*AWSServiceCatalogPortfolioShare{} +func (t *Template) GetAllAWSServiceCatalogPortfolioShareResources() map[string]*resources.AWSServiceCatalogPortfolioShare { + results := map[string]*resources.AWSServiceCatalogPortfolioShare{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolioShare: + case *resources.AWSServiceCatalogPortfolioShare: results[name] = resource } } @@ -8576,10 +8577,10 @@ func (t *Template) GetAllAWSServiceCatalogPortfolioShareResources() map[string]* // GetAWSServiceCatalogPortfolioShareWithName retrieves all AWSServiceCatalogPortfolioShare items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogPortfolioShareWithName(name string) (*AWSServiceCatalogPortfolioShare, error) { +func (t *Template) GetAWSServiceCatalogPortfolioShareWithName(name string) (*resources.AWSServiceCatalogPortfolioShare, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogPortfolioShare: + case *resources.AWSServiceCatalogPortfolioShare: return resource, nil } } @@ -8587,11 +8588,11 @@ func (t *Template) GetAWSServiceCatalogPortfolioShareWithName(name string) (*AWS } // GetAllAWSServiceCatalogTagOptionResources retrieves all AWSServiceCatalogTagOption items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogTagOptionResources() map[string]*AWSServiceCatalogTagOption { - results := map[string]*AWSServiceCatalogTagOption{} +func (t *Template) GetAllAWSServiceCatalogTagOptionResources() map[string]*resources.AWSServiceCatalogTagOption { + results := map[string]*resources.AWSServiceCatalogTagOption{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogTagOption: + case *resources.AWSServiceCatalogTagOption: results[name] = resource } } @@ -8600,10 +8601,10 @@ func (t *Template) GetAllAWSServiceCatalogTagOptionResources() map[string]*AWSSe // GetAWSServiceCatalogTagOptionWithName retrieves all AWSServiceCatalogTagOption items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogTagOptionWithName(name string) (*AWSServiceCatalogTagOption, error) { +func (t *Template) GetAWSServiceCatalogTagOptionWithName(name string) (*resources.AWSServiceCatalogTagOption, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogTagOption: + case *resources.AWSServiceCatalogTagOption: return resource, nil } } @@ -8611,11 +8612,11 @@ func (t *Template) GetAWSServiceCatalogTagOptionWithName(name string) (*AWSServi } // GetAllAWSServiceCatalogTagOptionAssociationResources retrieves all AWSServiceCatalogTagOptionAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceCatalogTagOptionAssociationResources() map[string]*AWSServiceCatalogTagOptionAssociation { - results := map[string]*AWSServiceCatalogTagOptionAssociation{} +func (t *Template) GetAllAWSServiceCatalogTagOptionAssociationResources() map[string]*resources.AWSServiceCatalogTagOptionAssociation { + results := map[string]*resources.AWSServiceCatalogTagOptionAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceCatalogTagOptionAssociation: + case *resources.AWSServiceCatalogTagOptionAssociation: results[name] = resource } } @@ -8624,10 +8625,10 @@ func (t *Template) GetAllAWSServiceCatalogTagOptionAssociationResources() map[st // GetAWSServiceCatalogTagOptionAssociationWithName retrieves all AWSServiceCatalogTagOptionAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceCatalogTagOptionAssociationWithName(name string) (*AWSServiceCatalogTagOptionAssociation, error) { +func (t *Template) GetAWSServiceCatalogTagOptionAssociationWithName(name string) (*resources.AWSServiceCatalogTagOptionAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceCatalogTagOptionAssociation: + case *resources.AWSServiceCatalogTagOptionAssociation: return resource, nil } } @@ -8635,11 +8636,11 @@ func (t *Template) GetAWSServiceCatalogTagOptionAssociationWithName(name string) } // GetAllAWSServiceDiscoveryHttpNamespaceResources retrieves all AWSServiceDiscoveryHttpNamespace items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceDiscoveryHttpNamespaceResources() map[string]*AWSServiceDiscoveryHttpNamespace { - results := map[string]*AWSServiceDiscoveryHttpNamespace{} +func (t *Template) GetAllAWSServiceDiscoveryHttpNamespaceResources() map[string]*resources.AWSServiceDiscoveryHttpNamespace { + results := map[string]*resources.AWSServiceDiscoveryHttpNamespace{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceDiscoveryHttpNamespace: + case *resources.AWSServiceDiscoveryHttpNamespace: results[name] = resource } } @@ -8648,10 +8649,10 @@ func (t *Template) GetAllAWSServiceDiscoveryHttpNamespaceResources() map[string] // GetAWSServiceDiscoveryHttpNamespaceWithName retrieves all AWSServiceDiscoveryHttpNamespace items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceDiscoveryHttpNamespaceWithName(name string) (*AWSServiceDiscoveryHttpNamespace, error) { +func (t *Template) GetAWSServiceDiscoveryHttpNamespaceWithName(name string) (*resources.AWSServiceDiscoveryHttpNamespace, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceDiscoveryHttpNamespace: + case *resources.AWSServiceDiscoveryHttpNamespace: return resource, nil } } @@ -8659,11 +8660,11 @@ func (t *Template) GetAWSServiceDiscoveryHttpNamespaceWithName(name string) (*AW } // GetAllAWSServiceDiscoveryInstanceResources retrieves all AWSServiceDiscoveryInstance items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceDiscoveryInstanceResources() map[string]*AWSServiceDiscoveryInstance { - results := map[string]*AWSServiceDiscoveryInstance{} +func (t *Template) GetAllAWSServiceDiscoveryInstanceResources() map[string]*resources.AWSServiceDiscoveryInstance { + results := map[string]*resources.AWSServiceDiscoveryInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceDiscoveryInstance: + case *resources.AWSServiceDiscoveryInstance: results[name] = resource } } @@ -8672,10 +8673,10 @@ func (t *Template) GetAllAWSServiceDiscoveryInstanceResources() map[string]*AWSS // GetAWSServiceDiscoveryInstanceWithName retrieves all AWSServiceDiscoveryInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceDiscoveryInstanceWithName(name string) (*AWSServiceDiscoveryInstance, error) { +func (t *Template) GetAWSServiceDiscoveryInstanceWithName(name string) (*resources.AWSServiceDiscoveryInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceDiscoveryInstance: + case *resources.AWSServiceDiscoveryInstance: return resource, nil } } @@ -8683,11 +8684,11 @@ func (t *Template) GetAWSServiceDiscoveryInstanceWithName(name string) (*AWSServ } // GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources retrieves all AWSServiceDiscoveryPrivateDnsNamespace items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources() map[string]*AWSServiceDiscoveryPrivateDnsNamespace { - results := map[string]*AWSServiceDiscoveryPrivateDnsNamespace{} +func (t *Template) GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources() map[string]*resources.AWSServiceDiscoveryPrivateDnsNamespace { + results := map[string]*resources.AWSServiceDiscoveryPrivateDnsNamespace{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceDiscoveryPrivateDnsNamespace: + case *resources.AWSServiceDiscoveryPrivateDnsNamespace: results[name] = resource } } @@ -8696,10 +8697,10 @@ func (t *Template) GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources() map[s // GetAWSServiceDiscoveryPrivateDnsNamespaceWithName retrieves all AWSServiceDiscoveryPrivateDnsNamespace items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceDiscoveryPrivateDnsNamespaceWithName(name string) (*AWSServiceDiscoveryPrivateDnsNamespace, error) { +func (t *Template) GetAWSServiceDiscoveryPrivateDnsNamespaceWithName(name string) (*resources.AWSServiceDiscoveryPrivateDnsNamespace, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceDiscoveryPrivateDnsNamespace: + case *resources.AWSServiceDiscoveryPrivateDnsNamespace: return resource, nil } } @@ -8707,11 +8708,11 @@ func (t *Template) GetAWSServiceDiscoveryPrivateDnsNamespaceWithName(name string } // GetAllAWSServiceDiscoveryPublicDnsNamespaceResources retrieves all AWSServiceDiscoveryPublicDnsNamespace items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceDiscoveryPublicDnsNamespaceResources() map[string]*AWSServiceDiscoveryPublicDnsNamespace { - results := map[string]*AWSServiceDiscoveryPublicDnsNamespace{} +func (t *Template) GetAllAWSServiceDiscoveryPublicDnsNamespaceResources() map[string]*resources.AWSServiceDiscoveryPublicDnsNamespace { + results := map[string]*resources.AWSServiceDiscoveryPublicDnsNamespace{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceDiscoveryPublicDnsNamespace: + case *resources.AWSServiceDiscoveryPublicDnsNamespace: results[name] = resource } } @@ -8720,10 +8721,10 @@ func (t *Template) GetAllAWSServiceDiscoveryPublicDnsNamespaceResources() map[st // GetAWSServiceDiscoveryPublicDnsNamespaceWithName retrieves all AWSServiceDiscoveryPublicDnsNamespace items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceDiscoveryPublicDnsNamespaceWithName(name string) (*AWSServiceDiscoveryPublicDnsNamespace, error) { +func (t *Template) GetAWSServiceDiscoveryPublicDnsNamespaceWithName(name string) (*resources.AWSServiceDiscoveryPublicDnsNamespace, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceDiscoveryPublicDnsNamespace: + case *resources.AWSServiceDiscoveryPublicDnsNamespace: return resource, nil } } @@ -8731,11 +8732,11 @@ func (t *Template) GetAWSServiceDiscoveryPublicDnsNamespaceWithName(name string) } // GetAllAWSServiceDiscoveryServiceResources retrieves all AWSServiceDiscoveryService items from an AWS CloudFormation template -func (t *Template) GetAllAWSServiceDiscoveryServiceResources() map[string]*AWSServiceDiscoveryService { - results := map[string]*AWSServiceDiscoveryService{} +func (t *Template) GetAllAWSServiceDiscoveryServiceResources() map[string]*resources.AWSServiceDiscoveryService { + results := map[string]*resources.AWSServiceDiscoveryService{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSServiceDiscoveryService: + case *resources.AWSServiceDiscoveryService: results[name] = resource } } @@ -8744,10 +8745,10 @@ func (t *Template) GetAllAWSServiceDiscoveryServiceResources() map[string]*AWSSe // GetAWSServiceDiscoveryServiceWithName retrieves all AWSServiceDiscoveryService items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSServiceDiscoveryServiceWithName(name string) (*AWSServiceDiscoveryService, error) { +func (t *Template) GetAWSServiceDiscoveryServiceWithName(name string) (*resources.AWSServiceDiscoveryService, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSServiceDiscoveryService: + case *resources.AWSServiceDiscoveryService: return resource, nil } } @@ -8755,11 +8756,11 @@ func (t *Template) GetAWSServiceDiscoveryServiceWithName(name string) (*AWSServi } // GetAllAWSStepFunctionsActivityResources retrieves all AWSStepFunctionsActivity items from an AWS CloudFormation template -func (t *Template) GetAllAWSStepFunctionsActivityResources() map[string]*AWSStepFunctionsActivity { - results := map[string]*AWSStepFunctionsActivity{} +func (t *Template) GetAllAWSStepFunctionsActivityResources() map[string]*resources.AWSStepFunctionsActivity { + results := map[string]*resources.AWSStepFunctionsActivity{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSStepFunctionsActivity: + case *resources.AWSStepFunctionsActivity: results[name] = resource } } @@ -8768,10 +8769,10 @@ func (t *Template) GetAllAWSStepFunctionsActivityResources() map[string]*AWSStep // GetAWSStepFunctionsActivityWithName retrieves all AWSStepFunctionsActivity items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSStepFunctionsActivityWithName(name string) (*AWSStepFunctionsActivity, error) { +func (t *Template) GetAWSStepFunctionsActivityWithName(name string) (*resources.AWSStepFunctionsActivity, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSStepFunctionsActivity: + case *resources.AWSStepFunctionsActivity: return resource, nil } } @@ -8779,11 +8780,11 @@ func (t *Template) GetAWSStepFunctionsActivityWithName(name string) (*AWSStepFun } // GetAllAWSStepFunctionsStateMachineResources retrieves all AWSStepFunctionsStateMachine items from an AWS CloudFormation template -func (t *Template) GetAllAWSStepFunctionsStateMachineResources() map[string]*AWSStepFunctionsStateMachine { - results := map[string]*AWSStepFunctionsStateMachine{} +func (t *Template) GetAllAWSStepFunctionsStateMachineResources() map[string]*resources.AWSStepFunctionsStateMachine { + results := map[string]*resources.AWSStepFunctionsStateMachine{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSStepFunctionsStateMachine: + case *resources.AWSStepFunctionsStateMachine: results[name] = resource } } @@ -8792,10 +8793,10 @@ func (t *Template) GetAllAWSStepFunctionsStateMachineResources() map[string]*AWS // GetAWSStepFunctionsStateMachineWithName retrieves all AWSStepFunctionsStateMachine items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSStepFunctionsStateMachineWithName(name string) (*AWSStepFunctionsStateMachine, error) { +func (t *Template) GetAWSStepFunctionsStateMachineWithName(name string) (*resources.AWSStepFunctionsStateMachine, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSStepFunctionsStateMachine: + case *resources.AWSStepFunctionsStateMachine: return resource, nil } } @@ -8803,11 +8804,11 @@ func (t *Template) GetAWSStepFunctionsStateMachineWithName(name string) (*AWSSte } // GetAllAWSWAFByteMatchSetResources retrieves all AWSWAFByteMatchSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFByteMatchSetResources() map[string]*AWSWAFByteMatchSet { - results := map[string]*AWSWAFByteMatchSet{} +func (t *Template) GetAllAWSWAFByteMatchSetResources() map[string]*resources.AWSWAFByteMatchSet { + results := map[string]*resources.AWSWAFByteMatchSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFByteMatchSet: + case *resources.AWSWAFByteMatchSet: results[name] = resource } } @@ -8816,10 +8817,10 @@ func (t *Template) GetAllAWSWAFByteMatchSetResources() map[string]*AWSWAFByteMat // GetAWSWAFByteMatchSetWithName retrieves all AWSWAFByteMatchSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFByteMatchSetWithName(name string) (*AWSWAFByteMatchSet, error) { +func (t *Template) GetAWSWAFByteMatchSetWithName(name string) (*resources.AWSWAFByteMatchSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFByteMatchSet: + case *resources.AWSWAFByteMatchSet: return resource, nil } } @@ -8827,11 +8828,11 @@ func (t *Template) GetAWSWAFByteMatchSetWithName(name string) (*AWSWAFByteMatchS } // GetAllAWSWAFIPSetResources retrieves all AWSWAFIPSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFIPSetResources() map[string]*AWSWAFIPSet { - results := map[string]*AWSWAFIPSet{} +func (t *Template) GetAllAWSWAFIPSetResources() map[string]*resources.AWSWAFIPSet { + results := map[string]*resources.AWSWAFIPSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFIPSet: + case *resources.AWSWAFIPSet: results[name] = resource } } @@ -8840,10 +8841,10 @@ func (t *Template) GetAllAWSWAFIPSetResources() map[string]*AWSWAFIPSet { // GetAWSWAFIPSetWithName retrieves all AWSWAFIPSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFIPSetWithName(name string) (*AWSWAFIPSet, error) { +func (t *Template) GetAWSWAFIPSetWithName(name string) (*resources.AWSWAFIPSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFIPSet: + case *resources.AWSWAFIPSet: return resource, nil } } @@ -8851,11 +8852,11 @@ func (t *Template) GetAWSWAFIPSetWithName(name string) (*AWSWAFIPSet, error) { } // GetAllAWSWAFRuleResources retrieves all AWSWAFRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRuleResources() map[string]*AWSWAFRule { - results := map[string]*AWSWAFRule{} +func (t *Template) GetAllAWSWAFRuleResources() map[string]*resources.AWSWAFRule { + results := map[string]*resources.AWSWAFRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRule: + case *resources.AWSWAFRule: results[name] = resource } } @@ -8864,10 +8865,10 @@ func (t *Template) GetAllAWSWAFRuleResources() map[string]*AWSWAFRule { // GetAWSWAFRuleWithName retrieves all AWSWAFRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRuleWithName(name string) (*AWSWAFRule, error) { +func (t *Template) GetAWSWAFRuleWithName(name string) (*resources.AWSWAFRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRule: + case *resources.AWSWAFRule: return resource, nil } } @@ -8875,11 +8876,11 @@ func (t *Template) GetAWSWAFRuleWithName(name string) (*AWSWAFRule, error) { } // GetAllAWSWAFSizeConstraintSetResources retrieves all AWSWAFSizeConstraintSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFSizeConstraintSetResources() map[string]*AWSWAFSizeConstraintSet { - results := map[string]*AWSWAFSizeConstraintSet{} +func (t *Template) GetAllAWSWAFSizeConstraintSetResources() map[string]*resources.AWSWAFSizeConstraintSet { + results := map[string]*resources.AWSWAFSizeConstraintSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFSizeConstraintSet: + case *resources.AWSWAFSizeConstraintSet: results[name] = resource } } @@ -8888,10 +8889,10 @@ func (t *Template) GetAllAWSWAFSizeConstraintSetResources() map[string]*AWSWAFSi // GetAWSWAFSizeConstraintSetWithName retrieves all AWSWAFSizeConstraintSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFSizeConstraintSetWithName(name string) (*AWSWAFSizeConstraintSet, error) { +func (t *Template) GetAWSWAFSizeConstraintSetWithName(name string) (*resources.AWSWAFSizeConstraintSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFSizeConstraintSet: + case *resources.AWSWAFSizeConstraintSet: return resource, nil } } @@ -8899,11 +8900,11 @@ func (t *Template) GetAWSWAFSizeConstraintSetWithName(name string) (*AWSWAFSizeC } // GetAllAWSWAFSqlInjectionMatchSetResources retrieves all AWSWAFSqlInjectionMatchSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFSqlInjectionMatchSetResources() map[string]*AWSWAFSqlInjectionMatchSet { - results := map[string]*AWSWAFSqlInjectionMatchSet{} +func (t *Template) GetAllAWSWAFSqlInjectionMatchSetResources() map[string]*resources.AWSWAFSqlInjectionMatchSet { + results := map[string]*resources.AWSWAFSqlInjectionMatchSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFSqlInjectionMatchSet: + case *resources.AWSWAFSqlInjectionMatchSet: results[name] = resource } } @@ -8912,10 +8913,10 @@ func (t *Template) GetAllAWSWAFSqlInjectionMatchSetResources() map[string]*AWSWA // GetAWSWAFSqlInjectionMatchSetWithName retrieves all AWSWAFSqlInjectionMatchSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFSqlInjectionMatchSetWithName(name string) (*AWSWAFSqlInjectionMatchSet, error) { +func (t *Template) GetAWSWAFSqlInjectionMatchSetWithName(name string) (*resources.AWSWAFSqlInjectionMatchSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFSqlInjectionMatchSet: + case *resources.AWSWAFSqlInjectionMatchSet: return resource, nil } } @@ -8923,11 +8924,11 @@ func (t *Template) GetAWSWAFSqlInjectionMatchSetWithName(name string) (*AWSWAFSq } // GetAllAWSWAFWebACLResources retrieves all AWSWAFWebACL items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFWebACLResources() map[string]*AWSWAFWebACL { - results := map[string]*AWSWAFWebACL{} +func (t *Template) GetAllAWSWAFWebACLResources() map[string]*resources.AWSWAFWebACL { + results := map[string]*resources.AWSWAFWebACL{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFWebACL: + case *resources.AWSWAFWebACL: results[name] = resource } } @@ -8936,10 +8937,10 @@ func (t *Template) GetAllAWSWAFWebACLResources() map[string]*AWSWAFWebACL { // GetAWSWAFWebACLWithName retrieves all AWSWAFWebACL items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFWebACLWithName(name string) (*AWSWAFWebACL, error) { +func (t *Template) GetAWSWAFWebACLWithName(name string) (*resources.AWSWAFWebACL, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFWebACL: + case *resources.AWSWAFWebACL: return resource, nil } } @@ -8947,11 +8948,11 @@ func (t *Template) GetAWSWAFWebACLWithName(name string) (*AWSWAFWebACL, error) { } // GetAllAWSWAFXssMatchSetResources retrieves all AWSWAFXssMatchSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFXssMatchSetResources() map[string]*AWSWAFXssMatchSet { - results := map[string]*AWSWAFXssMatchSet{} +func (t *Template) GetAllAWSWAFXssMatchSetResources() map[string]*resources.AWSWAFXssMatchSet { + results := map[string]*resources.AWSWAFXssMatchSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFXssMatchSet: + case *resources.AWSWAFXssMatchSet: results[name] = resource } } @@ -8960,10 +8961,10 @@ func (t *Template) GetAllAWSWAFXssMatchSetResources() map[string]*AWSWAFXssMatch // GetAWSWAFXssMatchSetWithName retrieves all AWSWAFXssMatchSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFXssMatchSetWithName(name string) (*AWSWAFXssMatchSet, error) { +func (t *Template) GetAWSWAFXssMatchSetWithName(name string) (*resources.AWSWAFXssMatchSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFXssMatchSet: + case *resources.AWSWAFXssMatchSet: return resource, nil } } @@ -8971,11 +8972,11 @@ func (t *Template) GetAWSWAFXssMatchSetWithName(name string) (*AWSWAFXssMatchSet } // GetAllAWSWAFRegionalByteMatchSetResources retrieves all AWSWAFRegionalByteMatchSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalByteMatchSetResources() map[string]*AWSWAFRegionalByteMatchSet { - results := map[string]*AWSWAFRegionalByteMatchSet{} +func (t *Template) GetAllAWSWAFRegionalByteMatchSetResources() map[string]*resources.AWSWAFRegionalByteMatchSet { + results := map[string]*resources.AWSWAFRegionalByteMatchSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalByteMatchSet: + case *resources.AWSWAFRegionalByteMatchSet: results[name] = resource } } @@ -8984,10 +8985,10 @@ func (t *Template) GetAllAWSWAFRegionalByteMatchSetResources() map[string]*AWSWA // GetAWSWAFRegionalByteMatchSetWithName retrieves all AWSWAFRegionalByteMatchSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalByteMatchSetWithName(name string) (*AWSWAFRegionalByteMatchSet, error) { +func (t *Template) GetAWSWAFRegionalByteMatchSetWithName(name string) (*resources.AWSWAFRegionalByteMatchSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalByteMatchSet: + case *resources.AWSWAFRegionalByteMatchSet: return resource, nil } } @@ -8995,11 +8996,11 @@ func (t *Template) GetAWSWAFRegionalByteMatchSetWithName(name string) (*AWSWAFRe } // GetAllAWSWAFRegionalIPSetResources retrieves all AWSWAFRegionalIPSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalIPSetResources() map[string]*AWSWAFRegionalIPSet { - results := map[string]*AWSWAFRegionalIPSet{} +func (t *Template) GetAllAWSWAFRegionalIPSetResources() map[string]*resources.AWSWAFRegionalIPSet { + results := map[string]*resources.AWSWAFRegionalIPSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalIPSet: + case *resources.AWSWAFRegionalIPSet: results[name] = resource } } @@ -9008,10 +9009,10 @@ func (t *Template) GetAllAWSWAFRegionalIPSetResources() map[string]*AWSWAFRegion // GetAWSWAFRegionalIPSetWithName retrieves all AWSWAFRegionalIPSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalIPSetWithName(name string) (*AWSWAFRegionalIPSet, error) { +func (t *Template) GetAWSWAFRegionalIPSetWithName(name string) (*resources.AWSWAFRegionalIPSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalIPSet: + case *resources.AWSWAFRegionalIPSet: return resource, nil } } @@ -9019,11 +9020,11 @@ func (t *Template) GetAWSWAFRegionalIPSetWithName(name string) (*AWSWAFRegionalI } // GetAllAWSWAFRegionalRuleResources retrieves all AWSWAFRegionalRule items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalRuleResources() map[string]*AWSWAFRegionalRule { - results := map[string]*AWSWAFRegionalRule{} +func (t *Template) GetAllAWSWAFRegionalRuleResources() map[string]*resources.AWSWAFRegionalRule { + results := map[string]*resources.AWSWAFRegionalRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalRule: + case *resources.AWSWAFRegionalRule: results[name] = resource } } @@ -9032,10 +9033,10 @@ func (t *Template) GetAllAWSWAFRegionalRuleResources() map[string]*AWSWAFRegiona // GetAWSWAFRegionalRuleWithName retrieves all AWSWAFRegionalRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalRuleWithName(name string) (*AWSWAFRegionalRule, error) { +func (t *Template) GetAWSWAFRegionalRuleWithName(name string) (*resources.AWSWAFRegionalRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalRule: + case *resources.AWSWAFRegionalRule: return resource, nil } } @@ -9043,11 +9044,11 @@ func (t *Template) GetAWSWAFRegionalRuleWithName(name string) (*AWSWAFRegionalRu } // GetAllAWSWAFRegionalSizeConstraintSetResources retrieves all AWSWAFRegionalSizeConstraintSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalSizeConstraintSetResources() map[string]*AWSWAFRegionalSizeConstraintSet { - results := map[string]*AWSWAFRegionalSizeConstraintSet{} +func (t *Template) GetAllAWSWAFRegionalSizeConstraintSetResources() map[string]*resources.AWSWAFRegionalSizeConstraintSet { + results := map[string]*resources.AWSWAFRegionalSizeConstraintSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalSizeConstraintSet: + case *resources.AWSWAFRegionalSizeConstraintSet: results[name] = resource } } @@ -9056,10 +9057,10 @@ func (t *Template) GetAllAWSWAFRegionalSizeConstraintSetResources() map[string]* // GetAWSWAFRegionalSizeConstraintSetWithName retrieves all AWSWAFRegionalSizeConstraintSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalSizeConstraintSetWithName(name string) (*AWSWAFRegionalSizeConstraintSet, error) { +func (t *Template) GetAWSWAFRegionalSizeConstraintSetWithName(name string) (*resources.AWSWAFRegionalSizeConstraintSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalSizeConstraintSet: + case *resources.AWSWAFRegionalSizeConstraintSet: return resource, nil } } @@ -9067,11 +9068,11 @@ func (t *Template) GetAWSWAFRegionalSizeConstraintSetWithName(name string) (*AWS } // GetAllAWSWAFRegionalSqlInjectionMatchSetResources retrieves all AWSWAFRegionalSqlInjectionMatchSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalSqlInjectionMatchSetResources() map[string]*AWSWAFRegionalSqlInjectionMatchSet { - results := map[string]*AWSWAFRegionalSqlInjectionMatchSet{} +func (t *Template) GetAllAWSWAFRegionalSqlInjectionMatchSetResources() map[string]*resources.AWSWAFRegionalSqlInjectionMatchSet { + results := map[string]*resources.AWSWAFRegionalSqlInjectionMatchSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalSqlInjectionMatchSet: + case *resources.AWSWAFRegionalSqlInjectionMatchSet: results[name] = resource } } @@ -9080,10 +9081,10 @@ func (t *Template) GetAllAWSWAFRegionalSqlInjectionMatchSetResources() map[strin // GetAWSWAFRegionalSqlInjectionMatchSetWithName retrieves all AWSWAFRegionalSqlInjectionMatchSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalSqlInjectionMatchSetWithName(name string) (*AWSWAFRegionalSqlInjectionMatchSet, error) { +func (t *Template) GetAWSWAFRegionalSqlInjectionMatchSetWithName(name string) (*resources.AWSWAFRegionalSqlInjectionMatchSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalSqlInjectionMatchSet: + case *resources.AWSWAFRegionalSqlInjectionMatchSet: return resource, nil } } @@ -9091,11 +9092,11 @@ func (t *Template) GetAWSWAFRegionalSqlInjectionMatchSetWithName(name string) (* } // GetAllAWSWAFRegionalWebACLResources retrieves all AWSWAFRegionalWebACL items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalWebACLResources() map[string]*AWSWAFRegionalWebACL { - results := map[string]*AWSWAFRegionalWebACL{} +func (t *Template) GetAllAWSWAFRegionalWebACLResources() map[string]*resources.AWSWAFRegionalWebACL { + results := map[string]*resources.AWSWAFRegionalWebACL{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalWebACL: + case *resources.AWSWAFRegionalWebACL: results[name] = resource } } @@ -9104,10 +9105,10 @@ func (t *Template) GetAllAWSWAFRegionalWebACLResources() map[string]*AWSWAFRegio // GetAWSWAFRegionalWebACLWithName retrieves all AWSWAFRegionalWebACL items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalWebACLWithName(name string) (*AWSWAFRegionalWebACL, error) { +func (t *Template) GetAWSWAFRegionalWebACLWithName(name string) (*resources.AWSWAFRegionalWebACL, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalWebACL: + case *resources.AWSWAFRegionalWebACL: return resource, nil } } @@ -9115,11 +9116,11 @@ func (t *Template) GetAWSWAFRegionalWebACLWithName(name string) (*AWSWAFRegional } // GetAllAWSWAFRegionalWebACLAssociationResources retrieves all AWSWAFRegionalWebACLAssociation items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalWebACLAssociationResources() map[string]*AWSWAFRegionalWebACLAssociation { - results := map[string]*AWSWAFRegionalWebACLAssociation{} +func (t *Template) GetAllAWSWAFRegionalWebACLAssociationResources() map[string]*resources.AWSWAFRegionalWebACLAssociation { + results := map[string]*resources.AWSWAFRegionalWebACLAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalWebACLAssociation: + case *resources.AWSWAFRegionalWebACLAssociation: results[name] = resource } } @@ -9128,10 +9129,10 @@ func (t *Template) GetAllAWSWAFRegionalWebACLAssociationResources() map[string]* // GetAWSWAFRegionalWebACLAssociationWithName retrieves all AWSWAFRegionalWebACLAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalWebACLAssociationWithName(name string) (*AWSWAFRegionalWebACLAssociation, error) { +func (t *Template) GetAWSWAFRegionalWebACLAssociationWithName(name string) (*resources.AWSWAFRegionalWebACLAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalWebACLAssociation: + case *resources.AWSWAFRegionalWebACLAssociation: return resource, nil } } @@ -9139,11 +9140,11 @@ func (t *Template) GetAWSWAFRegionalWebACLAssociationWithName(name string) (*AWS } // GetAllAWSWAFRegionalXssMatchSetResources retrieves all AWSWAFRegionalXssMatchSet items from an AWS CloudFormation template -func (t *Template) GetAllAWSWAFRegionalXssMatchSetResources() map[string]*AWSWAFRegionalXssMatchSet { - results := map[string]*AWSWAFRegionalXssMatchSet{} +func (t *Template) GetAllAWSWAFRegionalXssMatchSetResources() map[string]*resources.AWSWAFRegionalXssMatchSet { + results := map[string]*resources.AWSWAFRegionalXssMatchSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWAFRegionalXssMatchSet: + case *resources.AWSWAFRegionalXssMatchSet: results[name] = resource } } @@ -9152,10 +9153,10 @@ func (t *Template) GetAllAWSWAFRegionalXssMatchSetResources() map[string]*AWSWAF // GetAWSWAFRegionalXssMatchSetWithName retrieves all AWSWAFRegionalXssMatchSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWAFRegionalXssMatchSetWithName(name string) (*AWSWAFRegionalXssMatchSet, error) { +func (t *Template) GetAWSWAFRegionalXssMatchSetWithName(name string) (*resources.AWSWAFRegionalXssMatchSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWAFRegionalXssMatchSet: + case *resources.AWSWAFRegionalXssMatchSet: return resource, nil } } @@ -9163,11 +9164,11 @@ func (t *Template) GetAWSWAFRegionalXssMatchSetWithName(name string) (*AWSWAFReg } // GetAllAWSWorkSpacesWorkspaceResources retrieves all AWSWorkSpacesWorkspace items from an AWS CloudFormation template -func (t *Template) GetAllAWSWorkSpacesWorkspaceResources() map[string]*AWSWorkSpacesWorkspace { - results := map[string]*AWSWorkSpacesWorkspace{} +func (t *Template) GetAllAWSWorkSpacesWorkspaceResources() map[string]*resources.AWSWorkSpacesWorkspace { + results := map[string]*resources.AWSWorkSpacesWorkspace{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AWSWorkSpacesWorkspace: + case *resources.AWSWorkSpacesWorkspace: results[name] = resource } } @@ -9176,10 +9177,10 @@ func (t *Template) GetAllAWSWorkSpacesWorkspaceResources() map[string]*AWSWorkSp // GetAWSWorkSpacesWorkspaceWithName retrieves all AWSWorkSpacesWorkspace items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAWSWorkSpacesWorkspaceWithName(name string) (*AWSWorkSpacesWorkspace, error) { +func (t *Template) GetAWSWorkSpacesWorkspaceWithName(name string) (*resources.AWSWorkSpacesWorkspace, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AWSWorkSpacesWorkspace: + case *resources.AWSWorkSpacesWorkspace: return resource, nil } } @@ -9187,11 +9188,11 @@ func (t *Template) GetAWSWorkSpacesWorkspaceWithName(name string) (*AWSWorkSpace } // GetAllAlexaASKSkillResources retrieves all AlexaASKSkill items from an AWS CloudFormation template -func (t *Template) GetAllAlexaASKSkillResources() map[string]*AlexaASKSkill { - results := map[string]*AlexaASKSkill{} +func (t *Template) GetAllAlexaASKSkillResources() map[string]*resources.AlexaASKSkill { + results := map[string]*resources.AlexaASKSkill{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *AlexaASKSkill: + case *resources.AlexaASKSkill: results[name] = resource } } @@ -9200,10 +9201,10 @@ func (t *Template) GetAllAlexaASKSkillResources() map[string]*AlexaASKSkill { // GetAlexaASKSkillWithName retrieves all AlexaASKSkill items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) GetAlexaASKSkillWithName(name string) (*AlexaASKSkill, error) { +func (t *Template) GetAlexaASKSkillWithName(name string) (*resources.AlexaASKSkill, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *AlexaASKSkill: + case *resources.AlexaASKSkill: return resource, nil } } diff --git a/cloudformation/aws-cloudfront-distribution_legacycustomorigin.go b/cloudformation/aws-cloudfront-distribution_legacycustomorigin.go deleted file mode 100644 index 1e0d47b0b3..0000000000 --- a/cloudformation/aws-cloudfront-distribution_legacycustomorigin.go +++ /dev/null @@ -1,36 +0,0 @@ -package cloudformation - -// AWSCloudFrontDistribution_LegacyCustomOrigin AWS CloudFormation Resource (AWS::CloudFront::Distribution.LegacyCustomOrigin) -// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html -type AWSCloudFrontDistribution_LegacyCustomOrigin struct { - - // DNSName AWS CloudFormation Property - // Required: true - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-dnsname - DNSName string `json:"DNSName,omitempty"` - - // HTTPPort AWS CloudFormation Property - // Required: false - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpport - HTTPPort int `json:"HTTPPort,omitempty"` - - // HTTPSPort AWS CloudFormation Property - // Required: false - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpsport - HTTPSPort int `json:"HTTPSPort,omitempty"` - - // OriginProtocolPolicy AWS CloudFormation Property - // Required: true - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originprotocolpolicy - OriginProtocolPolicy string `json:"OriginProtocolPolicy,omitempty"` - - // OriginSSLProtocols AWS CloudFormation Property - // Required: false - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originsslprotocols - OriginSSLProtocols []string `json:"OriginSSLProtocols,omitempty"` -} - -// AWSCloudFormationType returns the AWS CloudFormation resource type -func (r *AWSCloudFrontDistribution_LegacyCustomOrigin) AWSCloudFormationType() string { - return "AWS::CloudFront::Distribution.LegacyCustomOrigin" -} diff --git a/cloudformation/aws-cloudfront-distribution_legacys3origin.go b/cloudformation/aws-cloudfront-distribution_legacys3origin.go deleted file mode 100644 index 0e28c27d36..0000000000 --- a/cloudformation/aws-cloudfront-distribution_legacys3origin.go +++ /dev/null @@ -1,21 +0,0 @@ -package cloudformation - -// AWSCloudFrontDistribution_LegacyS3Origin AWS CloudFormation Resource (AWS::CloudFront::Distribution.LegacyS3Origin) -// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html -type AWSCloudFrontDistribution_LegacyS3Origin struct { - - // DNSName AWS CloudFormation Property - // Required: true - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-dnsname - DNSName string `json:"DNSName,omitempty"` - - // OriginAccessIdentity AWS CloudFormation Property - // Required: false - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-originaccessidentity - OriginAccessIdentity string `json:"OriginAccessIdentity,omitempty"` -} - -// AWSCloudFormationType returns the AWS CloudFormation resource type -func (r *AWSCloudFrontDistribution_LegacyS3Origin) AWSCloudFormationType() string { - return "AWS::CloudFront::Distribution.LegacyS3Origin" -} diff --git a/cloudformation/aws-ssm-patchbaseline_patchgroup.go b/cloudformation/aws-ssm-patchbaseline_patchgroup.go deleted file mode 100644 index 97ee734dd8..0000000000 --- a/cloudformation/aws-ssm-patchbaseline_patchgroup.go +++ /dev/null @@ -1,11 +0,0 @@ -package cloudformation - -// AWSSSMPatchBaseline_PatchGroup AWS CloudFormation Resource (AWS::SSM::PatchBaseline.PatchGroup) -// See: -type AWSSSMPatchBaseline_PatchGroup struct { -} - -// AWSCloudFormationType returns the AWS CloudFormation resource type -func (r *AWSSSMPatchBaseline_PatchGroup) AWSCloudFormationType() string { - return "AWS::SSM::PatchBaseline.PatchGroup" -} diff --git a/cloudformation/policies.go b/cloudformation/policies/policies.go similarity index 99% rename from cloudformation/policies.go rename to cloudformation/policies/policies.go index d1c4d60d55..d70ed0a08d 100644 --- a/cloudformation/policies.go +++ b/cloudformation/policies/policies.go @@ -1,4 +1,4 @@ -package cloudformation +package policies // CreationPolicy prevents a resource status from reaching create complete until AWS CloudFormation receives a specified number of success signals or the timeout period is exceeded. To signal a resource, you can use the cfn-signal helper script or SignalResource API. AWS CloudFormation publishes valid signals to the stack events so that you track the number of signals sent. type CreationPolicy struct { diff --git a/cloudformation/policies_test.go b/cloudformation/policies_test.go index f3619b662f..2b20daa746 100644 --- a/cloudformation/policies_test.go +++ b/cloudformation/policies_test.go @@ -4,6 +4,8 @@ import ( "github.com/sanathkr/yaml" "github.com/awslabs/goformation/cloudformation" + "github.com/awslabs/goformation/cloudformation/policies" + "github.com/awslabs/goformation/cloudformation/resources" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -15,13 +17,13 @@ var _ = Describe("Goformation", func() { tests := []struct { Name string - Input *cloudformation.UpdatePolicy + Input *policies.UpdatePolicy Expected interface{} }{ { Name: "AutoScalingReplacingUpdate", - Input: &cloudformation.UpdatePolicy{ - AutoScalingReplacingUpdate: &cloudformation.AutoScalingReplacingUpdate{ + Input: &policies.UpdatePolicy{ + AutoScalingReplacingUpdate: &policies.AutoScalingReplacingUpdate{ WillReplace: true, }, }, @@ -33,8 +35,8 @@ var _ = Describe("Goformation", func() { }, { Name: "AutoScalingReplacingUpdate", - Input: &cloudformation.UpdatePolicy{ - AutoScalingRollingUpdate: &cloudformation.AutoScalingRollingUpdate{ + Input: &policies.UpdatePolicy{ + AutoScalingRollingUpdate: &policies.AutoScalingRollingUpdate{ MaxBatchSize: 10, MinInstancesInService: 11, MinSuccessfulInstancesPercent: 12, @@ -56,8 +58,8 @@ var _ = Describe("Goformation", func() { }, { Name: "AutoScalingScheduledAction", - Input: &cloudformation.UpdatePolicy{ - AutoScalingScheduledAction: &cloudformation.AutoScalingScheduledAction{ + Input: &policies.UpdatePolicy{ + AutoScalingScheduledAction: &policies.AutoScalingScheduledAction{ IgnoreUnmodifiedGroupSizeProperties: true, }, }, @@ -69,8 +71,8 @@ var _ = Describe("Goformation", func() { }, { Name: "CodeDeployLambdaAliasUpdate", - Input: &cloudformation.UpdatePolicy{ - CodeDeployLambdaAliasUpdate: &cloudformation.CodeDeployLambdaAliasUpdate{ + Input: &policies.UpdatePolicy{ + CodeDeployLambdaAliasUpdate: &policies.CodeDeployLambdaAliasUpdate{ ApplicationName: "test-application-name", DeploymentGroupName: "test-deployment-group-name", AfterAllowTrafficHook: "test-after-allow-traffic-hook", @@ -93,7 +95,7 @@ var _ = Describe("Goformation", func() { It("should have the correct values for "+test.Name, func() { - asg := cloudformation.AWSAutoScalingAutoScalingGroup{} + asg := resources.AWSAutoScalingAutoScalingGroup{} asg.SetUpdatePolicy(test.Input) template := &cloudformation.Template{ @@ -128,16 +130,16 @@ var _ = Describe("Goformation", func() { tests := []struct { Name string - Input *cloudformation.CreationPolicy + Input *policies.CreationPolicy Expected interface{} }{ { Name: "CreationPolicy", - Input: &cloudformation.CreationPolicy{ - AutoScalingCreationPolicy: &cloudformation.AutoScalingCreationPolicy{ + Input: &policies.CreationPolicy{ + AutoScalingCreationPolicy: &policies.AutoScalingCreationPolicy{ MinSuccessfulInstancesPercent: 10, }, - ResourceSignal: &cloudformation.ResourceSignal{ + ResourceSignal: &policies.ResourceSignal{ Count: 11, Timeout: "test-timeout", }, @@ -159,7 +161,7 @@ var _ = Describe("Goformation", func() { It("should have the correct values for "+test.Name, func() { - asg := cloudformation.AWSAutoScalingAutoScalingGroup{} + asg := resources.AWSAutoScalingAutoScalingGroup{} asg.SetCreationPolicy(test.Input) template := &cloudformation.Template{ @@ -194,7 +196,7 @@ var _ = Describe("Goformation", func() { tests := []struct { Name string - Input cloudformation.DeletionPolicy + Input policies.DeletionPolicy Expected interface{} }{ { @@ -219,7 +221,7 @@ var _ = Describe("Goformation", func() { It("should have the correct values for "+test.Name, func() { - asg := cloudformation.AWSAutoScalingAutoScalingGroup{} + asg := resources.AWSAutoScalingAutoScalingGroup{} asg.SetDeletionPolicy(test.Input) template := &cloudformation.Template{ diff --git a/cloudformation/alexa-ask-skill.go b/cloudformation/resources/alexa-ask-skill.go similarity index 91% rename from cloudformation/alexa-ask-skill.go rename to cloudformation/resources/alexa-ask-skill.go index bb9fbdddf1..03a2f33d5e 100644 --- a/cloudformation/alexa-ask-skill.go +++ b/cloudformation/resources/alexa-ask-skill.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AlexaASKSkill AWS CloudFormation Resource (Alexa::ASK::Skill) @@ -26,7 +27,7 @@ type AlexaASKSkill struct { VendorId string `json:"VendorId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AlexaASKSkill) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AlexaASKSkill) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AlexaASKSkill) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AlexaASKSkill) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/alexa-ask-skill_authenticationconfiguration.go b/cloudformation/resources/alexa-ask-skill_authenticationconfiguration.go similarity index 95% rename from cloudformation/alexa-ask-skill_authenticationconfiguration.go rename to cloudformation/resources/alexa-ask-skill_authenticationconfiguration.go index a013db177b..5c40d8b3ed 100644 --- a/cloudformation/alexa-ask-skill_authenticationconfiguration.go +++ b/cloudformation/resources/alexa-ask-skill_authenticationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AlexaASKSkill_AuthenticationConfiguration AWS CloudFormation Resource (Alexa::ASK::Skill.AuthenticationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html @@ -20,7 +22,7 @@ type AlexaASKSkill_AuthenticationConfiguration struct { RefreshToken string `json:"RefreshToken,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AlexaASKSkill_AuthenticationConfiguration) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AlexaASKSkill_AuthenticationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AlexaASKSkill_AuthenticationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/alexa-ask-skill_overrides.go b/cloudformation/resources/alexa-ask-skill_overrides.go similarity index 91% rename from cloudformation/alexa-ask-skill_overrides.go rename to cloudformation/resources/alexa-ask-skill_overrides.go index 89fd0c8f9e..8f5108582b 100644 --- a/cloudformation/alexa-ask-skill_overrides.go +++ b/cloudformation/resources/alexa-ask-skill_overrides.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AlexaASKSkill_Overrides AWS CloudFormation Resource (Alexa::ASK::Skill.Overrides) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-overrides.html @@ -10,7 +12,7 @@ type AlexaASKSkill_Overrides struct { Manifest interface{} `json:"Manifest,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AlexaASKSkill_Overrides) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AlexaASKSkill_Overrides) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AlexaASKSkill_Overrides) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/alexa-ask-skill_skillpackage.go b/cloudformation/resources/alexa-ask-skill_skillpackage.go similarity index 94% rename from cloudformation/alexa-ask-skill_skillpackage.go rename to cloudformation/resources/alexa-ask-skill_skillpackage.go index 14b40d796c..a523563e50 100644 --- a/cloudformation/alexa-ask-skill_skillpackage.go +++ b/cloudformation/resources/alexa-ask-skill_skillpackage.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AlexaASKSkill_SkillPackage AWS CloudFormation Resource (Alexa::ASK::Skill.SkillPackage) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html @@ -30,7 +32,7 @@ type AlexaASKSkill_SkillPackage struct { S3ObjectVersion string `json:"S3ObjectVersion,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AlexaASKSkill_SkillPackage) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AlexaASKSkill_SkillPackage) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AlexaASKSkill_SkillPackage) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-amazonmq-broker.go b/cloudformation/resources/aws-amazonmq-broker.go similarity index 94% rename from cloudformation/aws-amazonmq-broker.go rename to cloudformation/resources/aws-amazonmq-broker.go index 4c86d2c1e6..f1fe875960 100644 --- a/cloudformation/aws-amazonmq-broker.go +++ b/cloudformation/resources/aws-amazonmq-broker.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAmazonMQBroker AWS CloudFormation Resource (AWS::AmazonMQ::Broker) @@ -81,7 +82,7 @@ type AWSAmazonMQBroker struct { Users []AWSAmazonMQBroker_User `json:"Users,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -121,7 +122,7 @@ func (r *AWSAmazonMQBroker) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQBroker) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQBroker) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -132,9 +133,9 @@ func (r AWSAmazonMQBroker) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-amazonmq-broker_configurationid.go b/cloudformation/resources/aws-amazonmq-broker_configurationid.go similarity index 94% rename from cloudformation/aws-amazonmq-broker_configurationid.go rename to cloudformation/resources/aws-amazonmq-broker_configurationid.go index 3273228230..ec0b94004c 100644 --- a/cloudformation/aws-amazonmq-broker_configurationid.go +++ b/cloudformation/resources/aws-amazonmq-broker_configurationid.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAmazonMQBroker_ConfigurationId AWS CloudFormation Resource (AWS::AmazonMQ::Broker.ConfigurationId) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-configurationid.html @@ -15,7 +17,7 @@ type AWSAmazonMQBroker_ConfigurationId struct { Revision int `json:"Revision"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAmazonMQBroker_ConfigurationId) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQBroker_ConfigurationId) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQBroker_ConfigurationId) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-amazonmq-broker_loglist.go b/cloudformation/resources/aws-amazonmq-broker_loglist.go similarity index 92% rename from cloudformation/aws-amazonmq-broker_loglist.go rename to cloudformation/resources/aws-amazonmq-broker_loglist.go index 4b85e010be..764322b18a 100644 --- a/cloudformation/aws-amazonmq-broker_loglist.go +++ b/cloudformation/resources/aws-amazonmq-broker_loglist.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAmazonMQBroker_LogList AWS CloudFormation Resource (AWS::AmazonMQ::Broker.LogList) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html @@ -15,7 +17,7 @@ type AWSAmazonMQBroker_LogList struct { General bool `json:"General,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAmazonMQBroker_LogList) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQBroker_LogList) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQBroker_LogList) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-amazonmq-broker_maintenancewindow.go b/cloudformation/resources/aws-amazonmq-broker_maintenancewindow.go similarity index 95% rename from cloudformation/aws-amazonmq-broker_maintenancewindow.go rename to cloudformation/resources/aws-amazonmq-broker_maintenancewindow.go index 703f73d2c9..b3281b099e 100644 --- a/cloudformation/aws-amazonmq-broker_maintenancewindow.go +++ b/cloudformation/resources/aws-amazonmq-broker_maintenancewindow.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAmazonMQBroker_MaintenanceWindow AWS CloudFormation Resource (AWS::AmazonMQ::Broker.MaintenanceWindow) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-maintenancewindow.html @@ -20,7 +22,7 @@ type AWSAmazonMQBroker_MaintenanceWindow struct { TimeZone string `json:"TimeZone,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSAmazonMQBroker_MaintenanceWindow) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQBroker_MaintenanceWindow) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQBroker_MaintenanceWindow) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-amazonmq-broker_tagsentry.go b/cloudformation/resources/aws-amazonmq-broker_tagsentry.go similarity index 92% rename from cloudformation/aws-amazonmq-broker_tagsentry.go rename to cloudformation/resources/aws-amazonmq-broker_tagsentry.go index 4ca5ae0f2a..ee6fd448b5 100644 --- a/cloudformation/aws-amazonmq-broker_tagsentry.go +++ b/cloudformation/resources/aws-amazonmq-broker_tagsentry.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAmazonMQBroker_TagsEntry AWS CloudFormation Resource (AWS::AmazonMQ::Broker.TagsEntry) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-tagsentry.html @@ -15,7 +17,7 @@ type AWSAmazonMQBroker_TagsEntry struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAmazonMQBroker_TagsEntry) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQBroker_TagsEntry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQBroker_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-amazonmq-broker_user.go b/cloudformation/resources/aws-amazonmq-broker_user.go similarity index 93% rename from cloudformation/aws-amazonmq-broker_user.go rename to cloudformation/resources/aws-amazonmq-broker_user.go index 1051e5788a..1d61bcaec2 100644 --- a/cloudformation/aws-amazonmq-broker_user.go +++ b/cloudformation/resources/aws-amazonmq-broker_user.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAmazonMQBroker_User AWS CloudFormation Resource (AWS::AmazonMQ::Broker.User) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html @@ -25,7 +27,7 @@ type AWSAmazonMQBroker_User struct { Username string `json:"Username,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSAmazonMQBroker_User) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQBroker_User) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQBroker_User) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-amazonmq-configuration.go b/cloudformation/resources/aws-amazonmq-configuration.go similarity index 92% rename from cloudformation/aws-amazonmq-configuration.go rename to cloudformation/resources/aws-amazonmq-configuration.go index 8073f976dd..68c13e608e 100644 --- a/cloudformation/aws-amazonmq-configuration.go +++ b/cloudformation/resources/aws-amazonmq-configuration.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAmazonMQConfiguration AWS CloudFormation Resource (AWS::AmazonMQ::Configuration) @@ -41,7 +42,7 @@ type AWSAmazonMQConfiguration struct { Tags []AWSAmazonMQConfiguration_TagsEntry `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSAmazonMQConfiguration) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSAmazonMQConfiguration) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-amazonmq-configuration_tagsentry.go b/cloudformation/resources/aws-amazonmq-configuration_tagsentry.go similarity index 94% rename from cloudformation/aws-amazonmq-configuration_tagsentry.go rename to cloudformation/resources/aws-amazonmq-configuration_tagsentry.go index 73c61c5a88..10628edd06 100644 --- a/cloudformation/aws-amazonmq-configuration_tagsentry.go +++ b/cloudformation/resources/aws-amazonmq-configuration_tagsentry.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAmazonMQConfiguration_TagsEntry AWS CloudFormation Resource (AWS::AmazonMQ::Configuration.TagsEntry) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-configuration-tagsentry.html @@ -15,7 +17,7 @@ type AWSAmazonMQConfiguration_TagsEntry struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAmazonMQConfiguration_TagsEntry) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQConfiguration_TagsEntry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQConfiguration_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-amazonmq-configurationassociation.go b/cloudformation/resources/aws-amazonmq-configurationassociation.go similarity index 92% rename from cloudformation/aws-amazonmq-configurationassociation.go rename to cloudformation/resources/aws-amazonmq-configurationassociation.go index a34f85b755..11f3ca09ca 100644 --- a/cloudformation/aws-amazonmq-configurationassociation.go +++ b/cloudformation/resources/aws-amazonmq-configurationassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAmazonMQConfigurationAssociation AWS CloudFormation Resource (AWS::AmazonMQ::ConfigurationAssociation) @@ -21,7 +22,7 @@ type AWSAmazonMQConfigurationAssociation struct { Configuration *AWSAmazonMQConfigurationAssociation_ConfigurationId `json:"Configuration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSAmazonMQConfigurationAssociation) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQConfigurationAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQConfigurationAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSAmazonMQConfigurationAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-amazonmq-configurationassociation_configurationid.go b/cloudformation/resources/aws-amazonmq-configurationassociation_configurationid.go similarity index 94% rename from cloudformation/aws-amazonmq-configurationassociation_configurationid.go rename to cloudformation/resources/aws-amazonmq-configurationassociation_configurationid.go index 1df0fd80b7..a1b05d1525 100644 --- a/cloudformation/aws-amazonmq-configurationassociation_configurationid.go +++ b/cloudformation/resources/aws-amazonmq-configurationassociation_configurationid.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAmazonMQConfigurationAssociation_ConfigurationId AWS CloudFormation Resource (AWS::AmazonMQ::ConfigurationAssociation.ConfigurationId) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-configurationassociation-configurationid.html @@ -15,7 +17,7 @@ type AWSAmazonMQConfigurationAssociation_ConfigurationId struct { Revision int `json:"Revision"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAmazonMQConfigurationAssociation_ConfigurationId) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAmazonMQConfigurationAssociation_ConfigurationId) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAmazonMQConfigurationAssociation_ConfigurationId) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-account.go b/cloudformation/resources/aws-apigateway-account.go similarity index 89% rename from cloudformation/aws-apigateway-account.go rename to cloudformation/resources/aws-apigateway-account.go index e0b3dc251e..13a5ef8014 100644 --- a/cloudformation/aws-apigateway-account.go +++ b/cloudformation/resources/aws-apigateway-account.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayAccount AWS CloudFormation Resource (AWS::ApiGateway::Account) @@ -16,7 +17,7 @@ type AWSApiGatewayAccount struct { CloudWatchRoleArn string `json:"CloudWatchRoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSApiGatewayAccount) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayAccount) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayAccount) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSApiGatewayAccount) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-apikey.go b/cloudformation/resources/aws-apigateway-apikey.go similarity index 92% rename from cloudformation/aws-apigateway-apikey.go rename to cloudformation/resources/aws-apigateway-apikey.go index 581989188f..eaa422bd73 100644 --- a/cloudformation/aws-apigateway-apikey.go +++ b/cloudformation/resources/aws-apigateway-apikey.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayApiKey AWS CloudFormation Resource (AWS::ApiGateway::ApiKey) @@ -46,7 +47,7 @@ type AWSApiGatewayApiKey struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSApiGatewayApiKey) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayApiKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayApiKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSApiGatewayApiKey) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-apikey_stagekey.go b/cloudformation/resources/aws-apigateway-apikey_stagekey.go similarity index 94% rename from cloudformation/aws-apigateway-apikey_stagekey.go rename to cloudformation/resources/aws-apigateway-apikey_stagekey.go index b24c6fd428..a815e51679 100644 --- a/cloudformation/aws-apigateway-apikey_stagekey.go +++ b/cloudformation/resources/aws-apigateway-apikey_stagekey.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayApiKey_StageKey AWS CloudFormation Resource (AWS::ApiGateway::ApiKey.StageKey) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-apikey-stagekey.html @@ -15,7 +17,7 @@ type AWSApiGatewayApiKey_StageKey struct { StageName string `json:"StageName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApiGatewayApiKey_StageKey) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayApiKey_StageKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayApiKey_StageKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-authorizer.go b/cloudformation/resources/aws-apigateway-authorizer.go similarity index 93% rename from cloudformation/aws-apigateway-authorizer.go rename to cloudformation/resources/aws-apigateway-authorizer.go index 69b92d3dda..d5064db44f 100644 --- a/cloudformation/aws-apigateway-authorizer.go +++ b/cloudformation/resources/aws-apigateway-authorizer.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayAuthorizer AWS CloudFormation Resource (AWS::ApiGateway::Authorizer) @@ -61,7 +62,7 @@ type AWSApiGatewayAuthorizer struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSApiGatewayAuthorizer) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayAuthorizer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayAuthorizer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSApiGatewayAuthorizer) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-basepathmapping.go b/cloudformation/resources/aws-apigateway-basepathmapping.go similarity index 92% rename from cloudformation/aws-apigateway-basepathmapping.go rename to cloudformation/resources/aws-apigateway-basepathmapping.go index 61b9bf9093..cfb5088da8 100644 --- a/cloudformation/aws-apigateway-basepathmapping.go +++ b/cloudformation/resources/aws-apigateway-basepathmapping.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayBasePathMapping AWS CloudFormation Resource (AWS::ApiGateway::BasePathMapping) @@ -31,7 +32,7 @@ type AWSApiGatewayBasePathMapping struct { Stage string `json:"Stage,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSApiGatewayBasePathMapping) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayBasePathMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayBasePathMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSApiGatewayBasePathMapping) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-clientcertificate.go b/cloudformation/resources/aws-apigateway-clientcertificate.go similarity index 91% rename from cloudformation/aws-apigateway-clientcertificate.go rename to cloudformation/resources/aws-apigateway-clientcertificate.go index 4c68db3174..0b2702120d 100644 --- a/cloudformation/aws-apigateway-clientcertificate.go +++ b/cloudformation/resources/aws-apigateway-clientcertificate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayClientCertificate AWS CloudFormation Resource (AWS::ApiGateway::ClientCertificate) @@ -16,7 +17,7 @@ type AWSApiGatewayClientCertificate struct { Description string `json:"Description,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSApiGatewayClientCertificate) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayClientCertificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayClientCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSApiGatewayClientCertificate) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-deployment.go b/cloudformation/resources/aws-apigateway-deployment.go similarity index 92% rename from cloudformation/aws-apigateway-deployment.go rename to cloudformation/resources/aws-apigateway-deployment.go index 0721b07a05..515c34c2b8 100644 --- a/cloudformation/aws-apigateway-deployment.go +++ b/cloudformation/resources/aws-apigateway-deployment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayDeployment AWS CloudFormation Resource (AWS::ApiGateway::Deployment) @@ -36,7 +37,7 @@ type AWSApiGatewayDeployment struct { StageName string `json:"StageName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSApiGatewayDeployment) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDeployment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDeployment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSApiGatewayDeployment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-deployment_accesslogsetting.go b/cloudformation/resources/aws-apigateway-deployment_accesslogsetting.go similarity index 94% rename from cloudformation/aws-apigateway-deployment_accesslogsetting.go rename to cloudformation/resources/aws-apigateway-deployment_accesslogsetting.go index bd505d5831..da50b96f73 100644 --- a/cloudformation/aws-apigateway-deployment_accesslogsetting.go +++ b/cloudformation/resources/aws-apigateway-deployment_accesslogsetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayDeployment_AccessLogSetting AWS CloudFormation Resource (AWS::ApiGateway::Deployment.AccessLogSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html @@ -15,7 +17,7 @@ type AWSApiGatewayDeployment_AccessLogSetting struct { Format string `json:"Format,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApiGatewayDeployment_AccessLogSetting) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDeployment_AccessLogSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDeployment_AccessLogSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-deployment_canarysetting.go b/cloudformation/resources/aws-apigateway-deployment_canarysetting.go similarity index 95% rename from cloudformation/aws-apigateway-deployment_canarysetting.go rename to cloudformation/resources/aws-apigateway-deployment_canarysetting.go index 2f4e17da0c..2802e1d1d1 100644 --- a/cloudformation/aws-apigateway-deployment_canarysetting.go +++ b/cloudformation/resources/aws-apigateway-deployment_canarysetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayDeployment_CanarySetting AWS CloudFormation Resource (AWS::ApiGateway::Deployment.CanarySetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html @@ -20,7 +22,7 @@ type AWSApiGatewayDeployment_CanarySetting struct { UseStageCache bool `json:"UseStageCache,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSApiGatewayDeployment_CanarySetting) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDeployment_CanarySetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDeployment_CanarySetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-deployment_deploymentcanarysettings.go b/cloudformation/resources/aws-apigateway-deployment_deploymentcanarysettings.go similarity index 95% rename from cloudformation/aws-apigateway-deployment_deploymentcanarysettings.go rename to cloudformation/resources/aws-apigateway-deployment_deploymentcanarysettings.go index bff6aa6260..42aa7816a5 100644 --- a/cloudformation/aws-apigateway-deployment_deploymentcanarysettings.go +++ b/cloudformation/resources/aws-apigateway-deployment_deploymentcanarysettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayDeployment_DeploymentCanarySettings AWS CloudFormation Resource (AWS::ApiGateway::Deployment.DeploymentCanarySettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html @@ -20,7 +22,7 @@ type AWSApiGatewayDeployment_DeploymentCanarySettings struct { UseStageCache bool `json:"UseStageCache,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSApiGatewayDeployment_DeploymentCanarySettings) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDeployment_DeploymentCanarySettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDeployment_DeploymentCanarySettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-deployment_methodsetting.go b/cloudformation/resources/aws-apigateway-deployment_methodsetting.go similarity index 97% rename from cloudformation/aws-apigateway-deployment_methodsetting.go rename to cloudformation/resources/aws-apigateway-deployment_methodsetting.go index c935d0f029..7d07f4b102 100644 --- a/cloudformation/aws-apigateway-deployment_methodsetting.go +++ b/cloudformation/resources/aws-apigateway-deployment_methodsetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayDeployment_MethodSetting AWS CloudFormation Resource (AWS::ApiGateway::Deployment.MethodSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html @@ -55,7 +57,7 @@ type AWSApiGatewayDeployment_MethodSetting struct { ThrottlingRateLimit float64 `json:"ThrottlingRateLimit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSApiGatewayDeployment_MethodSetting) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDeployment_MethodSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDeployment_MethodSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-deployment_stagedescription.go b/cloudformation/resources/aws-apigateway-deployment_stagedescription.go similarity index 98% rename from cloudformation/aws-apigateway-deployment_stagedescription.go rename to cloudformation/resources/aws-apigateway-deployment_stagedescription.go index e7b83181f5..55417a4bb2 100644 --- a/cloudformation/aws-apigateway-deployment_stagedescription.go +++ b/cloudformation/resources/aws-apigateway-deployment_stagedescription.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayDeployment_StageDescription AWS CloudFormation Resource (AWS::ApiGateway::Deployment.StageDescription) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html @@ -100,7 +102,7 @@ type AWSApiGatewayDeployment_StageDescription struct { Variables map[string]string `json:"Variables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -140,6 +142,6 @@ func (r *AWSApiGatewayDeployment_StageDescription) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDeployment_StageDescription) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDeployment_StageDescription) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-documentationpart.go b/cloudformation/resources/aws-apigateway-documentationpart.go similarity index 92% rename from cloudformation/aws-apigateway-documentationpart.go rename to cloudformation/resources/aws-apigateway-documentationpart.go index f9e6728f42..8e1516dd8f 100644 --- a/cloudformation/aws-apigateway-documentationpart.go +++ b/cloudformation/resources/aws-apigateway-documentationpart.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayDocumentationPart AWS CloudFormation Resource (AWS::ApiGateway::DocumentationPart) @@ -26,7 +27,7 @@ type AWSApiGatewayDocumentationPart struct { RestApiId string `json:"RestApiId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSApiGatewayDocumentationPart) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDocumentationPart) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDocumentationPart) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSApiGatewayDocumentationPart) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-documentationpart_location.go b/cloudformation/resources/aws-apigateway-documentationpart_location.go similarity index 95% rename from cloudformation/aws-apigateway-documentationpart_location.go rename to cloudformation/resources/aws-apigateway-documentationpart_location.go index c629a6147e..5531033e75 100644 --- a/cloudformation/aws-apigateway-documentationpart_location.go +++ b/cloudformation/resources/aws-apigateway-documentationpart_location.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayDocumentationPart_Location AWS CloudFormation Resource (AWS::ApiGateway::DocumentationPart.Location) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html @@ -30,7 +32,7 @@ type AWSApiGatewayDocumentationPart_Location struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSApiGatewayDocumentationPart_Location) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDocumentationPart_Location) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDocumentationPart_Location) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-documentationversion.go b/cloudformation/resources/aws-apigateway-documentationversion.go similarity index 92% rename from cloudformation/aws-apigateway-documentationversion.go rename to cloudformation/resources/aws-apigateway-documentationversion.go index 7c80391e51..48b8b33929 100644 --- a/cloudformation/aws-apigateway-documentationversion.go +++ b/cloudformation/resources/aws-apigateway-documentationversion.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayDocumentationVersion AWS CloudFormation Resource (AWS::ApiGateway::DocumentationVersion) @@ -26,7 +27,7 @@ type AWSApiGatewayDocumentationVersion struct { RestApiId string `json:"RestApiId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSApiGatewayDocumentationVersion) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDocumentationVersion) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDocumentationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSApiGatewayDocumentationVersion) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-domainname.go b/cloudformation/resources/aws-apigateway-domainname.go similarity index 91% rename from cloudformation/aws-apigateway-domainname.go rename to cloudformation/resources/aws-apigateway-domainname.go index 50cabc315a..1970a63332 100644 --- a/cloudformation/aws-apigateway-domainname.go +++ b/cloudformation/resources/aws-apigateway-domainname.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayDomainName AWS CloudFormation Resource (AWS::ApiGateway::DomainName) @@ -31,7 +32,7 @@ type AWSApiGatewayDomainName struct { RegionalCertificateArn string `json:"RegionalCertificateArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSApiGatewayDomainName) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDomainName) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDomainName) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSApiGatewayDomainName) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-domainname_endpointconfiguration.go b/cloudformation/resources/aws-apigateway-domainname_endpointconfiguration.go similarity index 93% rename from cloudformation/aws-apigateway-domainname_endpointconfiguration.go rename to cloudformation/resources/aws-apigateway-domainname_endpointconfiguration.go index 04f9fa5a05..bf92eae8aa 100644 --- a/cloudformation/aws-apigateway-domainname_endpointconfiguration.go +++ b/cloudformation/resources/aws-apigateway-domainname_endpointconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayDomainName_EndpointConfiguration AWS CloudFormation Resource (AWS::ApiGateway::DomainName.EndpointConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainname-endpointconfiguration.html @@ -10,7 +12,7 @@ type AWSApiGatewayDomainName_EndpointConfiguration struct { Types []string `json:"Types,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSApiGatewayDomainName_EndpointConfiguration) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayDomainName_EndpointConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayDomainName_EndpointConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-gatewayresponse.go b/cloudformation/resources/aws-apigateway-gatewayresponse.go similarity index 93% rename from cloudformation/aws-apigateway-gatewayresponse.go rename to cloudformation/resources/aws-apigateway-gatewayresponse.go index efc71c250d..ca803fec40 100644 --- a/cloudformation/aws-apigateway-gatewayresponse.go +++ b/cloudformation/resources/aws-apigateway-gatewayresponse.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayGatewayResponse AWS CloudFormation Resource (AWS::ApiGateway::GatewayResponse) @@ -36,7 +37,7 @@ type AWSApiGatewayGatewayResponse struct { StatusCode string `json:"StatusCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSApiGatewayGatewayResponse) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayGatewayResponse) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayGatewayResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSApiGatewayGatewayResponse) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-method.go b/cloudformation/resources/aws-apigateway-method.go similarity index 94% rename from cloudformation/aws-apigateway-method.go rename to cloudformation/resources/aws-apigateway-method.go index 5e0ce1d9dc..12ea578a56 100644 --- a/cloudformation/aws-apigateway-method.go +++ b/cloudformation/resources/aws-apigateway-method.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayMethod AWS CloudFormation Resource (AWS::ApiGateway::Method) @@ -76,7 +77,7 @@ type AWSApiGatewayMethod struct { RestApiId string `json:"RestApiId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -116,7 +117,7 @@ func (r *AWSApiGatewayMethod) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayMethod) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayMethod) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -127,9 +128,9 @@ func (r AWSApiGatewayMethod) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-method_integration.go b/cloudformation/resources/aws-apigateway-method_integration.go similarity index 97% rename from cloudformation/aws-apigateway-method_integration.go rename to cloudformation/resources/aws-apigateway-method_integration.go index eafc4a0bb7..12c8cdf5c1 100644 --- a/cloudformation/aws-apigateway-method_integration.go +++ b/cloudformation/resources/aws-apigateway-method_integration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayMethod_Integration AWS CloudFormation Resource (AWS::ApiGateway::Method.Integration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html @@ -75,7 +77,7 @@ type AWSApiGatewayMethod_Integration struct { Uri string `json:"Uri,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -115,6 +117,6 @@ func (r *AWSApiGatewayMethod_Integration) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayMethod_Integration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayMethod_Integration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-method_integrationresponse.go b/cloudformation/resources/aws-apigateway-method_integrationresponse.go similarity index 96% rename from cloudformation/aws-apigateway-method_integrationresponse.go rename to cloudformation/resources/aws-apigateway-method_integrationresponse.go index 7d88353600..7f3fe9773b 100644 --- a/cloudformation/aws-apigateway-method_integrationresponse.go +++ b/cloudformation/resources/aws-apigateway-method_integrationresponse.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayMethod_IntegrationResponse AWS CloudFormation Resource (AWS::ApiGateway::Method.IntegrationResponse) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html @@ -30,7 +32,7 @@ type AWSApiGatewayMethod_IntegrationResponse struct { StatusCode string `json:"StatusCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSApiGatewayMethod_IntegrationResponse) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayMethod_IntegrationResponse) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayMethod_IntegrationResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-method_methodresponse.go b/cloudformation/resources/aws-apigateway-method_methodresponse.go similarity index 95% rename from cloudformation/aws-apigateway-method_methodresponse.go rename to cloudformation/resources/aws-apigateway-method_methodresponse.go index da51ed64ea..e08e17a51b 100644 --- a/cloudformation/aws-apigateway-method_methodresponse.go +++ b/cloudformation/resources/aws-apigateway-method_methodresponse.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayMethod_MethodResponse AWS CloudFormation Resource (AWS::ApiGateway::Method.MethodResponse) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html @@ -20,7 +22,7 @@ type AWSApiGatewayMethod_MethodResponse struct { StatusCode string `json:"StatusCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSApiGatewayMethod_MethodResponse) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayMethod_MethodResponse) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayMethod_MethodResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-model.go b/cloudformation/resources/aws-apigateway-model.go similarity index 91% rename from cloudformation/aws-apigateway-model.go rename to cloudformation/resources/aws-apigateway-model.go index a65d2de7ee..bcfef2eb37 100644 --- a/cloudformation/aws-apigateway-model.go +++ b/cloudformation/resources/aws-apigateway-model.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayModel AWS CloudFormation Resource (AWS::ApiGateway::Model) @@ -36,7 +37,7 @@ type AWSApiGatewayModel struct { Schema interface{} `json:"Schema,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSApiGatewayModel) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayModel) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayModel) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSApiGatewayModel) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-requestvalidator.go b/cloudformation/resources/aws-apigateway-requestvalidator.go similarity index 93% rename from cloudformation/aws-apigateway-requestvalidator.go rename to cloudformation/resources/aws-apigateway-requestvalidator.go index d9884af53b..94d8a98fab 100644 --- a/cloudformation/aws-apigateway-requestvalidator.go +++ b/cloudformation/resources/aws-apigateway-requestvalidator.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayRequestValidator AWS CloudFormation Resource (AWS::ApiGateway::RequestValidator) @@ -31,7 +32,7 @@ type AWSApiGatewayRequestValidator struct { ValidateRequestParameters bool `json:"ValidateRequestParameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSApiGatewayRequestValidator) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayRequestValidator) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayRequestValidator) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSApiGatewayRequestValidator) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-resource.go b/cloudformation/resources/aws-apigateway-resource.go similarity index 91% rename from cloudformation/aws-apigateway-resource.go rename to cloudformation/resources/aws-apigateway-resource.go index 028a83a516..1e7fa9a93b 100644 --- a/cloudformation/aws-apigateway-resource.go +++ b/cloudformation/resources/aws-apigateway-resource.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayResource AWS CloudFormation Resource (AWS::ApiGateway::Resource) @@ -26,7 +27,7 @@ type AWSApiGatewayResource struct { RestApiId string `json:"RestApiId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSApiGatewayResource) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayResource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayResource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSApiGatewayResource) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-restapi.go b/cloudformation/resources/aws-apigateway-restapi.go similarity index 94% rename from cloudformation/aws-apigateway-restapi.go rename to cloudformation/resources/aws-apigateway-restapi.go index 336b31fadc..c04114752c 100644 --- a/cloudformation/aws-apigateway-restapi.go +++ b/cloudformation/resources/aws-apigateway-restapi.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayRestApi AWS CloudFormation Resource (AWS::ApiGateway::RestApi) @@ -71,7 +72,7 @@ type AWSApiGatewayRestApi struct { Policy interface{} `json:"Policy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -111,7 +112,7 @@ func (r *AWSApiGatewayRestApi) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayRestApi) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayRestApi) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -122,9 +123,9 @@ func (r AWSApiGatewayRestApi) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-restapi_endpointconfiguration.go b/cloudformation/resources/aws-apigateway-restapi_endpointconfiguration.go similarity index 93% rename from cloudformation/aws-apigateway-restapi_endpointconfiguration.go rename to cloudformation/resources/aws-apigateway-restapi_endpointconfiguration.go index 29a202a767..93c04f8dfc 100644 --- a/cloudformation/aws-apigateway-restapi_endpointconfiguration.go +++ b/cloudformation/resources/aws-apigateway-restapi_endpointconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayRestApi_EndpointConfiguration AWS CloudFormation Resource (AWS::ApiGateway::RestApi.EndpointConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-endpointconfiguration.html @@ -10,7 +12,7 @@ type AWSApiGatewayRestApi_EndpointConfiguration struct { Types []string `json:"Types,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSApiGatewayRestApi_EndpointConfiguration) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayRestApi_EndpointConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayRestApi_EndpointConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-restapi_s3location.go b/cloudformation/resources/aws-apigateway-restapi_s3location.go similarity index 95% rename from cloudformation/aws-apigateway-restapi_s3location.go rename to cloudformation/resources/aws-apigateway-restapi_s3location.go index 554273ef9d..68dd676389 100644 --- a/cloudformation/aws-apigateway-restapi_s3location.go +++ b/cloudformation/resources/aws-apigateway-restapi_s3location.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayRestApi_S3Location AWS CloudFormation Resource (AWS::ApiGateway::RestApi.S3Location) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html @@ -25,7 +27,7 @@ type AWSApiGatewayRestApi_S3Location struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSApiGatewayRestApi_S3Location) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayRestApi_S3Location) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayRestApi_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-stage.go b/cloudformation/resources/aws-apigateway-stage.go similarity index 94% rename from cloudformation/aws-apigateway-stage.go rename to cloudformation/resources/aws-apigateway-stage.go index b7d4e845d5..07e01fb0a3 100644 --- a/cloudformation/aws-apigateway-stage.go +++ b/cloudformation/resources/aws-apigateway-stage.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayStage AWS CloudFormation Resource (AWS::ApiGateway::Stage) @@ -81,7 +82,7 @@ type AWSApiGatewayStage struct { Variables map[string]string `json:"Variables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -121,7 +122,7 @@ func (r *AWSApiGatewayStage) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayStage) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayStage) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -132,9 +133,9 @@ func (r AWSApiGatewayStage) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-stage_accesslogsetting.go b/cloudformation/resources/aws-apigateway-stage_accesslogsetting.go similarity index 94% rename from cloudformation/aws-apigateway-stage_accesslogsetting.go rename to cloudformation/resources/aws-apigateway-stage_accesslogsetting.go index 1dfcc52ba7..9939517997 100644 --- a/cloudformation/aws-apigateway-stage_accesslogsetting.go +++ b/cloudformation/resources/aws-apigateway-stage_accesslogsetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayStage_AccessLogSetting AWS CloudFormation Resource (AWS::ApiGateway::Stage.AccessLogSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-accesslogsetting.html @@ -15,7 +17,7 @@ type AWSApiGatewayStage_AccessLogSetting struct { Format string `json:"Format,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApiGatewayStage_AccessLogSetting) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayStage_AccessLogSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayStage_AccessLogSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-stage_canarysetting.go b/cloudformation/resources/aws-apigateway-stage_canarysetting.go similarity index 95% rename from cloudformation/aws-apigateway-stage_canarysetting.go rename to cloudformation/resources/aws-apigateway-stage_canarysetting.go index b798999a6a..10166a6041 100644 --- a/cloudformation/aws-apigateway-stage_canarysetting.go +++ b/cloudformation/resources/aws-apigateway-stage_canarysetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayStage_CanarySetting AWS CloudFormation Resource (AWS::ApiGateway::Stage.CanarySetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html @@ -25,7 +27,7 @@ type AWSApiGatewayStage_CanarySetting struct { UseStageCache bool `json:"UseStageCache,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSApiGatewayStage_CanarySetting) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayStage_CanarySetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayStage_CanarySetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-stage_methodsetting.go b/cloudformation/resources/aws-apigateway-stage_methodsetting.go similarity index 97% rename from cloudformation/aws-apigateway-stage_methodsetting.go rename to cloudformation/resources/aws-apigateway-stage_methodsetting.go index 4d3e42bbf9..6bfd15331d 100644 --- a/cloudformation/aws-apigateway-stage_methodsetting.go +++ b/cloudformation/resources/aws-apigateway-stage_methodsetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayStage_MethodSetting AWS CloudFormation Resource (AWS::ApiGateway::Stage.MethodSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html @@ -55,7 +57,7 @@ type AWSApiGatewayStage_MethodSetting struct { ThrottlingRateLimit float64 `json:"ThrottlingRateLimit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSApiGatewayStage_MethodSetting) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayStage_MethodSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayStage_MethodSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-usageplan.go b/cloudformation/resources/aws-apigateway-usageplan.go similarity index 92% rename from cloudformation/aws-apigateway-usageplan.go rename to cloudformation/resources/aws-apigateway-usageplan.go index 21c5f8a179..8b9661478b 100644 --- a/cloudformation/aws-apigateway-usageplan.go +++ b/cloudformation/resources/aws-apigateway-usageplan.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayUsagePlan AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan) @@ -36,7 +37,7 @@ type AWSApiGatewayUsagePlan struct { UsagePlanName string `json:"UsagePlanName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSApiGatewayUsagePlan) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayUsagePlan) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayUsagePlan) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSApiGatewayUsagePlan) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-usageplan_apistage.go b/cloudformation/resources/aws-apigateway-usageplan_apistage.go similarity index 95% rename from cloudformation/aws-apigateway-usageplan_apistage.go rename to cloudformation/resources/aws-apigateway-usageplan_apistage.go index 81834d3aa5..85b9e8c187 100644 --- a/cloudformation/aws-apigateway-usageplan_apistage.go +++ b/cloudformation/resources/aws-apigateway-usageplan_apistage.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayUsagePlan_ApiStage AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan.ApiStage) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-apistage.html @@ -20,7 +22,7 @@ type AWSApiGatewayUsagePlan_ApiStage struct { Throttle map[string]AWSApiGatewayUsagePlan_ThrottleSettings `json:"Throttle,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSApiGatewayUsagePlan_ApiStage) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayUsagePlan_ApiStage) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayUsagePlan_ApiStage) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-usageplan_quotasettings.go b/cloudformation/resources/aws-apigateway-usageplan_quotasettings.go similarity index 94% rename from cloudformation/aws-apigateway-usageplan_quotasettings.go rename to cloudformation/resources/aws-apigateway-usageplan_quotasettings.go index 1b41905452..f13585189d 100644 --- a/cloudformation/aws-apigateway-usageplan_quotasettings.go +++ b/cloudformation/resources/aws-apigateway-usageplan_quotasettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayUsagePlan_QuotaSettings AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan.QuotaSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html @@ -20,7 +22,7 @@ type AWSApiGatewayUsagePlan_QuotaSettings struct { Period string `json:"Period,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSApiGatewayUsagePlan_QuotaSettings) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayUsagePlan_QuotaSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayUsagePlan_QuotaSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-usageplan_throttlesettings.go b/cloudformation/resources/aws-apigateway-usageplan_throttlesettings.go similarity index 94% rename from cloudformation/aws-apigateway-usageplan_throttlesettings.go rename to cloudformation/resources/aws-apigateway-usageplan_throttlesettings.go index d548ccaa87..005547f0b7 100644 --- a/cloudformation/aws-apigateway-usageplan_throttlesettings.go +++ b/cloudformation/resources/aws-apigateway-usageplan_throttlesettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayUsagePlan_ThrottleSettings AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan.ThrottleSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-throttlesettings.html @@ -15,7 +17,7 @@ type AWSApiGatewayUsagePlan_ThrottleSettings struct { RateLimit float64 `json:"RateLimit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApiGatewayUsagePlan_ThrottleSettings) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayUsagePlan_ThrottleSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayUsagePlan_ThrottleSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigateway-usageplankey.go b/cloudformation/resources/aws-apigateway-usageplankey.go similarity index 91% rename from cloudformation/aws-apigateway-usageplankey.go rename to cloudformation/resources/aws-apigateway-usageplankey.go index e83bf4d191..ed8760c935 100644 --- a/cloudformation/aws-apigateway-usageplankey.go +++ b/cloudformation/resources/aws-apigateway-usageplankey.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayUsagePlanKey AWS CloudFormation Resource (AWS::ApiGateway::UsagePlanKey) @@ -26,7 +27,7 @@ type AWSApiGatewayUsagePlanKey struct { UsagePlanId string `json:"UsagePlanId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSApiGatewayUsagePlanKey) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayUsagePlanKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayUsagePlanKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSApiGatewayUsagePlanKey) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigateway-vpclink.go b/cloudformation/resources/aws-apigateway-vpclink.go similarity index 91% rename from cloudformation/aws-apigateway-vpclink.go rename to cloudformation/resources/aws-apigateway-vpclink.go index 6920d10208..d0e29739df 100644 --- a/cloudformation/aws-apigateway-vpclink.go +++ b/cloudformation/resources/aws-apigateway-vpclink.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayVpcLink AWS CloudFormation Resource (AWS::ApiGateway::VpcLink) @@ -26,7 +27,7 @@ type AWSApiGatewayVpcLink struct { TargetArns []string `json:"TargetArns,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSApiGatewayVpcLink) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayVpcLink) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayVpcLink) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSApiGatewayVpcLink) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-api.go b/cloudformation/resources/aws-apigatewayv2-api.go similarity index 92% rename from cloudformation/aws-apigatewayv2-api.go rename to cloudformation/resources/aws-apigatewayv2-api.go index 11705af61d..6d59b45c99 100644 --- a/cloudformation/aws-apigatewayv2-api.go +++ b/cloudformation/resources/aws-apigatewayv2-api.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2Api AWS CloudFormation Resource (AWS::ApiGatewayV2::Api) @@ -46,7 +47,7 @@ type AWSApiGatewayV2Api struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSApiGatewayV2Api) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Api) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Api) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSApiGatewayV2Api) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-authorizer.go b/cloudformation/resources/aws-apigatewayv2-authorizer.go similarity index 93% rename from cloudformation/aws-apigatewayv2-authorizer.go rename to cloudformation/resources/aws-apigatewayv2-authorizer.go index aca8ad4d6e..bd3d9e412f 100644 --- a/cloudformation/aws-apigatewayv2-authorizer.go +++ b/cloudformation/resources/aws-apigatewayv2-authorizer.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2Authorizer AWS CloudFormation Resource (AWS::ApiGatewayV2::Authorizer) @@ -51,7 +52,7 @@ type AWSApiGatewayV2Authorizer struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSApiGatewayV2Authorizer) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Authorizer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Authorizer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSApiGatewayV2Authorizer) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-deployment.go b/cloudformation/resources/aws-apigatewayv2-deployment.go similarity index 91% rename from cloudformation/aws-apigatewayv2-deployment.go rename to cloudformation/resources/aws-apigatewayv2-deployment.go index b552d3c77c..461c1092b9 100644 --- a/cloudformation/aws-apigatewayv2-deployment.go +++ b/cloudformation/resources/aws-apigatewayv2-deployment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2Deployment AWS CloudFormation Resource (AWS::ApiGatewayV2::Deployment) @@ -26,7 +27,7 @@ type AWSApiGatewayV2Deployment struct { StageName string `json:"StageName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSApiGatewayV2Deployment) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Deployment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Deployment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSApiGatewayV2Deployment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-integration.go b/cloudformation/resources/aws-apigatewayv2-integration.go similarity index 94% rename from cloudformation/aws-apigatewayv2-integration.go rename to cloudformation/resources/aws-apigatewayv2-integration.go index 1795d6a38e..c6c1b52e3b 100644 --- a/cloudformation/aws-apigatewayv2-integration.go +++ b/cloudformation/resources/aws-apigatewayv2-integration.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2Integration AWS CloudFormation Resource (AWS::ApiGatewayV2::Integration) @@ -76,7 +77,7 @@ type AWSApiGatewayV2Integration struct { TimeoutInMillis int `json:"TimeoutInMillis,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -116,7 +117,7 @@ func (r *AWSApiGatewayV2Integration) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Integration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Integration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -127,9 +128,9 @@ func (r AWSApiGatewayV2Integration) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-integrationresponse.go b/cloudformation/resources/aws-apigatewayv2-integrationresponse.go similarity index 94% rename from cloudformation/aws-apigatewayv2-integrationresponse.go rename to cloudformation/resources/aws-apigatewayv2-integrationresponse.go index df25d88589..3e8514235b 100644 --- a/cloudformation/aws-apigatewayv2-integrationresponse.go +++ b/cloudformation/resources/aws-apigatewayv2-integrationresponse.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2IntegrationResponse AWS CloudFormation Resource (AWS::ApiGatewayV2::IntegrationResponse) @@ -46,7 +47,7 @@ type AWSApiGatewayV2IntegrationResponse struct { TemplateSelectionExpression string `json:"TemplateSelectionExpression,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSApiGatewayV2IntegrationResponse) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2IntegrationResponse) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2IntegrationResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSApiGatewayV2IntegrationResponse) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-model.go b/cloudformation/resources/aws-apigatewayv2-model.go similarity index 91% rename from cloudformation/aws-apigatewayv2-model.go rename to cloudformation/resources/aws-apigatewayv2-model.go index ecf470d805..419b1a0bcf 100644 --- a/cloudformation/aws-apigatewayv2-model.go +++ b/cloudformation/resources/aws-apigatewayv2-model.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2Model AWS CloudFormation Resource (AWS::ApiGatewayV2::Model) @@ -36,7 +37,7 @@ type AWSApiGatewayV2Model struct { Schema interface{} `json:"Schema,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSApiGatewayV2Model) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Model) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Model) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSApiGatewayV2Model) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-route.go b/cloudformation/resources/aws-apigatewayv2-route.go similarity index 94% rename from cloudformation/aws-apigatewayv2-route.go rename to cloudformation/resources/aws-apigatewayv2-route.go index a10d174ea1..525abf1ddc 100644 --- a/cloudformation/aws-apigatewayv2-route.go +++ b/cloudformation/resources/aws-apigatewayv2-route.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2Route AWS CloudFormation Resource (AWS::ApiGatewayV2::Route) @@ -71,7 +72,7 @@ type AWSApiGatewayV2Route struct { Target string `json:"Target,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -111,7 +112,7 @@ func (r *AWSApiGatewayV2Route) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Route) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Route) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -122,9 +123,9 @@ func (r AWSApiGatewayV2Route) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-route_parameterconstraints.go b/cloudformation/resources/aws-apigatewayv2-route_parameterconstraints.go similarity index 93% rename from cloudformation/aws-apigatewayv2-route_parameterconstraints.go rename to cloudformation/resources/aws-apigatewayv2-route_parameterconstraints.go index 9a36b5ea98..09d3ae7f6d 100644 --- a/cloudformation/aws-apigatewayv2-route_parameterconstraints.go +++ b/cloudformation/resources/aws-apigatewayv2-route_parameterconstraints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayV2Route_ParameterConstraints AWS CloudFormation Resource (AWS::ApiGatewayV2::Route.ParameterConstraints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-route-parameterconstraints.html @@ -10,7 +12,7 @@ type AWSApiGatewayV2Route_ParameterConstraints struct { Required bool `json:"Required"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSApiGatewayV2Route_ParameterConstraints) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Route_ParameterConstraints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Route_ParameterConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigatewayv2-routeresponse.go b/cloudformation/resources/aws-apigatewayv2-routeresponse.go similarity index 93% rename from cloudformation/aws-apigatewayv2-routeresponse.go rename to cloudformation/resources/aws-apigatewayv2-routeresponse.go index 8b3ce26573..33a9a21550 100644 --- a/cloudformation/aws-apigatewayv2-routeresponse.go +++ b/cloudformation/resources/aws-apigatewayv2-routeresponse.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2RouteResponse AWS CloudFormation Resource (AWS::ApiGatewayV2::RouteResponse) @@ -41,7 +42,7 @@ type AWSApiGatewayV2RouteResponse struct { RouteResponseKey string `json:"RouteResponseKey,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSApiGatewayV2RouteResponse) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2RouteResponse) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2RouteResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSApiGatewayV2RouteResponse) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-routeresponse_parameterconstraints.go b/cloudformation/resources/aws-apigatewayv2-routeresponse_parameterconstraints.go similarity index 93% rename from cloudformation/aws-apigatewayv2-routeresponse_parameterconstraints.go rename to cloudformation/resources/aws-apigatewayv2-routeresponse_parameterconstraints.go index 87f2ca831d..8575c70f8a 100644 --- a/cloudformation/aws-apigatewayv2-routeresponse_parameterconstraints.go +++ b/cloudformation/resources/aws-apigatewayv2-routeresponse_parameterconstraints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayV2RouteResponse_ParameterConstraints AWS CloudFormation Resource (AWS::ApiGatewayV2::RouteResponse.ParameterConstraints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routeresponse-parameterconstraints.html @@ -10,7 +12,7 @@ type AWSApiGatewayV2RouteResponse_ParameterConstraints struct { Required bool `json:"Required"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSApiGatewayV2RouteResponse_ParameterConstraints) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2RouteResponse_ParameterConstraints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2RouteResponse_ParameterConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigatewayv2-stage.go b/cloudformation/resources/aws-apigatewayv2-stage.go similarity index 93% rename from cloudformation/aws-apigatewayv2-stage.go rename to cloudformation/resources/aws-apigatewayv2-stage.go index 5ec4b1cc4e..eb8e1417ca 100644 --- a/cloudformation/aws-apigatewayv2-stage.go +++ b/cloudformation/resources/aws-apigatewayv2-stage.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApiGatewayV2Stage AWS CloudFormation Resource (AWS::ApiGatewayV2::Stage) @@ -56,7 +57,7 @@ type AWSApiGatewayV2Stage struct { StageVariables interface{} `json:"StageVariables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSApiGatewayV2Stage) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Stage) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Stage) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSApiGatewayV2Stage) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-apigatewayv2-stage_accesslogsettings.go b/cloudformation/resources/aws-apigatewayv2-stage_accesslogsettings.go similarity index 94% rename from cloudformation/aws-apigatewayv2-stage_accesslogsettings.go rename to cloudformation/resources/aws-apigatewayv2-stage_accesslogsettings.go index 931eb97044..58e5543c9d 100644 --- a/cloudformation/aws-apigatewayv2-stage_accesslogsettings.go +++ b/cloudformation/resources/aws-apigatewayv2-stage_accesslogsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayV2Stage_AccessLogSettings AWS CloudFormation Resource (AWS::ApiGatewayV2::Stage.AccessLogSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-accesslogsettings.html @@ -15,7 +17,7 @@ type AWSApiGatewayV2Stage_AccessLogSettings struct { Format string `json:"Format,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApiGatewayV2Stage_AccessLogSettings) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Stage_AccessLogSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Stage_AccessLogSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-apigatewayv2-stage_routesettings.go b/cloudformation/resources/aws-apigatewayv2-stage_routesettings.go similarity index 95% rename from cloudformation/aws-apigatewayv2-stage_routesettings.go rename to cloudformation/resources/aws-apigatewayv2-stage_routesettings.go index ffb67d7a53..0939cf1ae5 100644 --- a/cloudformation/aws-apigatewayv2-stage_routesettings.go +++ b/cloudformation/resources/aws-apigatewayv2-stage_routesettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApiGatewayV2Stage_RouteSettings AWS CloudFormation Resource (AWS::ApiGatewayV2::Stage.RouteSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html @@ -30,7 +32,7 @@ type AWSApiGatewayV2Stage_RouteSettings struct { ThrottlingRateLimit float64 `json:"ThrottlingRateLimit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSApiGatewayV2Stage_RouteSettings) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApiGatewayV2Stage_RouteSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApiGatewayV2Stage_RouteSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalabletarget.go b/cloudformation/resources/aws-applicationautoscaling-scalabletarget.go similarity index 94% rename from cloudformation/aws-applicationautoscaling-scalabletarget.go rename to cloudformation/resources/aws-applicationautoscaling-scalabletarget.go index f1e748662a..c24fa6851f 100644 --- a/cloudformation/aws-applicationautoscaling-scalabletarget.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalabletarget.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApplicationAutoScalingScalableTarget AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalableTarget) @@ -46,7 +47,7 @@ type AWSApplicationAutoScalingScalableTarget struct { ServiceNamespace string `json:"ServiceNamespace,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSApplicationAutoScalingScalableTarget) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalableTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalableTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSApplicationAutoScalingScalableTarget) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go b/cloudformation/resources/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go similarity index 94% rename from cloudformation/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go rename to cloudformation/resources/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go index 74a6c8c79b..2fb4113897 100644 --- a/cloudformation/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalableTarget_ScalableTargetAction AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalableTarget.ScalableTargetAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scalabletargetaction.html @@ -15,7 +17,7 @@ type AWSApplicationAutoScalingScalableTarget_ScalableTargetAction struct { MinCapacity int `json:"MinCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApplicationAutoScalingScalableTarget_ScalableTargetAction) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalableTarget_ScalableTargetAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalableTarget_ScalableTargetAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalabletarget_scheduledaction.go b/cloudformation/resources/aws-applicationautoscaling-scalabletarget_scheduledaction.go similarity index 95% rename from cloudformation/aws-applicationautoscaling-scalabletarget_scheduledaction.go rename to cloudformation/resources/aws-applicationautoscaling-scalabletarget_scheduledaction.go index 4c8cae5b1c..33851f5a23 100644 --- a/cloudformation/aws-applicationautoscaling-scalabletarget_scheduledaction.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalabletarget_scheduledaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalableTarget_ScheduledAction AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalableTarget.ScheduledAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html @@ -30,7 +32,7 @@ type AWSApplicationAutoScalingScalableTarget_ScheduledAction struct { StartTime string `json:"StartTime,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSApplicationAutoScalingScalableTarget_ScheduledAction) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalableTarget_ScheduledAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalableTarget_ScheduledAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalingpolicy.go b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy.go similarity index 94% rename from cloudformation/aws-applicationautoscaling-scalingpolicy.go rename to cloudformation/resources/aws-applicationautoscaling-scalingpolicy.go index db8c22cb94..f6f32ba0ae 100644 --- a/cloudformation/aws-applicationautoscaling-scalingpolicy.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSApplicationAutoScalingScalingPolicy AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy) @@ -51,7 +52,7 @@ type AWSApplicationAutoScalingScalingPolicy struct { TargetTrackingScalingPolicyConfiguration *AWSApplicationAutoScalingScalingPolicy_TargetTrackingScalingPolicyConfiguration `json:"TargetTrackingScalingPolicyConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSApplicationAutoScalingScalingPolicy) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalingPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSApplicationAutoScalingScalingPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go similarity index 95% rename from cloudformation/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go rename to cloudformation/resources/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go index 3a5031ff79..a6cf5d3f4d 100644 --- a/cloudformation/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalingPolicy_CustomizedMetricSpecification AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.CustomizedMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html @@ -30,7 +32,7 @@ type AWSApplicationAutoScalingScalingPolicy_CustomizedMetricSpecification struct Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSApplicationAutoScalingScalingPolicy_CustomizedMetricSpecification) S // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalingPolicy_CustomizedMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalingPolicy_CustomizedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalingpolicy_metricdimension.go b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_metricdimension.go similarity index 94% rename from cloudformation/aws-applicationautoscaling-scalingpolicy_metricdimension.go rename to cloudformation/resources/aws-applicationautoscaling-scalingpolicy_metricdimension.go index eb8b40de03..250ef7ddfd 100644 --- a/cloudformation/aws-applicationautoscaling-scalingpolicy_metricdimension.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_metricdimension.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalingPolicy_MetricDimension AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.MetricDimension) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-metricdimension.html @@ -15,7 +17,7 @@ type AWSApplicationAutoScalingScalingPolicy_MetricDimension struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApplicationAutoScalingScalingPolicy_MetricDimension) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalingPolicy_MetricDimension) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalingPolicy_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go similarity index 94% rename from cloudformation/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go rename to cloudformation/resources/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go index 099b8f310a..cf16cbcb89 100644 --- a/cloudformation/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalingPolicy_PredefinedMetricSpecification AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.PredefinedMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predefinedmetricspecification.html @@ -15,7 +17,7 @@ type AWSApplicationAutoScalingScalingPolicy_PredefinedMetricSpecification struct ResourceLabel string `json:"ResourceLabel,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSApplicationAutoScalingScalingPolicy_PredefinedMetricSpecification) S // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalingPolicy_PredefinedMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalingPolicy_PredefinedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalingpolicy_stepadjustment.go b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_stepadjustment.go similarity index 95% rename from cloudformation/aws-applicationautoscaling-scalingpolicy_stepadjustment.go rename to cloudformation/resources/aws-applicationautoscaling-scalingpolicy_stepadjustment.go index 64a52c91f6..b3d65c0411 100644 --- a/cloudformation/aws-applicationautoscaling-scalingpolicy_stepadjustment.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_stepadjustment.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalingPolicy_StepAdjustment AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.StepAdjustment) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html @@ -20,7 +22,7 @@ type AWSApplicationAutoScalingScalingPolicy_StepAdjustment struct { ScalingAdjustment int `json:"ScalingAdjustment"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSApplicationAutoScalingScalingPolicy_StepAdjustment) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalingPolicy_StepAdjustment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalingPolicy_StepAdjustment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go similarity index 95% rename from cloudformation/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go rename to cloudformation/resources/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go index b3bc85a998..b845df08c1 100644 --- a/cloudformation/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalingPolicy_StepScalingPolicyConfiguration AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.StepScalingPolicyConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html @@ -30,7 +32,7 @@ type AWSApplicationAutoScalingScalingPolicy_StepScalingPolicyConfiguration struc StepAdjustments []AWSApplicationAutoScalingScalingPolicy_StepAdjustment `json:"StepAdjustments,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSApplicationAutoScalingScalingPolicy_StepScalingPolicyConfiguration) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalingPolicy_StepScalingPolicyConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalingPolicy_StepScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go similarity index 96% rename from cloudformation/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go rename to cloudformation/resources/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go index e8430be416..8f5c8c5b48 100644 --- a/cloudformation/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go +++ b/cloudformation/resources/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSApplicationAutoScalingScalingPolicy_TargetTrackingScalingPolicyConfiguration AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.TargetTrackingScalingPolicyConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html @@ -35,7 +37,7 @@ type AWSApplicationAutoScalingScalingPolicy_TargetTrackingScalingPolicyConfigura TargetValue float64 `json:"TargetValue"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSApplicationAutoScalingScalingPolicy_TargetTrackingScalingPolicyConfi // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSApplicationAutoScalingScalingPolicy_TargetTrackingScalingPolicyConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSApplicationAutoScalingScalingPolicy_TargetTrackingScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-directoryconfig.go b/cloudformation/resources/aws-appstream-directoryconfig.go similarity index 91% rename from cloudformation/aws-appstream-directoryconfig.go rename to cloudformation/resources/aws-appstream-directoryconfig.go index a5300670b6..ce9d33bb51 100644 --- a/cloudformation/aws-appstream-directoryconfig.go +++ b/cloudformation/resources/aws-appstream-directoryconfig.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppStreamDirectoryConfig AWS CloudFormation Resource (AWS::AppStream::DirectoryConfig) @@ -26,7 +27,7 @@ type AWSAppStreamDirectoryConfig struct { ServiceAccountCredentials *AWSAppStreamDirectoryConfig_ServiceAccountCredentials `json:"ServiceAccountCredentials,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSAppStreamDirectoryConfig) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamDirectoryConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamDirectoryConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSAppStreamDirectoryConfig) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appstream-directoryconfig_serviceaccountcredentials.go b/cloudformation/resources/aws-appstream-directoryconfig_serviceaccountcredentials.go similarity index 94% rename from cloudformation/aws-appstream-directoryconfig_serviceaccountcredentials.go rename to cloudformation/resources/aws-appstream-directoryconfig_serviceaccountcredentials.go index ff2bcea32c..b95f800e8d 100644 --- a/cloudformation/aws-appstream-directoryconfig_serviceaccountcredentials.go +++ b/cloudformation/resources/aws-appstream-directoryconfig_serviceaccountcredentials.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamDirectoryConfig_ServiceAccountCredentials AWS CloudFormation Resource (AWS::AppStream::DirectoryConfig.ServiceAccountCredentials) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-serviceaccountcredentials.html @@ -15,7 +17,7 @@ type AWSAppStreamDirectoryConfig_ServiceAccountCredentials struct { AccountPassword string `json:"AccountPassword,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppStreamDirectoryConfig_ServiceAccountCredentials) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamDirectoryConfig_ServiceAccountCredentials) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamDirectoryConfig_ServiceAccountCredentials) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-fleet.go b/cloudformation/resources/aws-appstream-fleet.go similarity index 94% rename from cloudformation/aws-appstream-fleet.go rename to cloudformation/resources/aws-appstream-fleet.go index e685e03626..e10ed7b6f2 100644 --- a/cloudformation/aws-appstream-fleet.go +++ b/cloudformation/resources/aws-appstream-fleet.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppStreamFleet AWS CloudFormation Resource (AWS::AppStream::Fleet) @@ -76,7 +77,7 @@ type AWSAppStreamFleet struct { VpcConfig *AWSAppStreamFleet_VpcConfig `json:"VpcConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -116,7 +117,7 @@ func (r *AWSAppStreamFleet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamFleet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamFleet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -127,9 +128,9 @@ func (r AWSAppStreamFleet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appstream-fleet_computecapacity.go b/cloudformation/resources/aws-appstream-fleet_computecapacity.go similarity index 94% rename from cloudformation/aws-appstream-fleet_computecapacity.go rename to cloudformation/resources/aws-appstream-fleet_computecapacity.go index 293627fd7a..39a7f0dd9c 100644 --- a/cloudformation/aws-appstream-fleet_computecapacity.go +++ b/cloudformation/resources/aws-appstream-fleet_computecapacity.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamFleet_ComputeCapacity AWS CloudFormation Resource (AWS::AppStream::Fleet.ComputeCapacity) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-fleet-computecapacity.html @@ -10,7 +12,7 @@ type AWSAppStreamFleet_ComputeCapacity struct { DesiredInstances int `json:"DesiredInstances"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSAppStreamFleet_ComputeCapacity) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamFleet_ComputeCapacity) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamFleet_ComputeCapacity) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-fleet_domainjoininfo.go b/cloudformation/resources/aws-appstream-fleet_domainjoininfo.go similarity index 94% rename from cloudformation/aws-appstream-fleet_domainjoininfo.go rename to cloudformation/resources/aws-appstream-fleet_domainjoininfo.go index 3799d6082c..ee49a05411 100644 --- a/cloudformation/aws-appstream-fleet_domainjoininfo.go +++ b/cloudformation/resources/aws-appstream-fleet_domainjoininfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamFleet_DomainJoinInfo AWS CloudFormation Resource (AWS::AppStream::Fleet.DomainJoinInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-fleet-domainjoininfo.html @@ -15,7 +17,7 @@ type AWSAppStreamFleet_DomainJoinInfo struct { OrganizationalUnitDistinguishedName string `json:"OrganizationalUnitDistinguishedName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppStreamFleet_DomainJoinInfo) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamFleet_DomainJoinInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamFleet_DomainJoinInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-fleet_vpcconfig.go b/cloudformation/resources/aws-appstream-fleet_vpcconfig.go similarity index 92% rename from cloudformation/aws-appstream-fleet_vpcconfig.go rename to cloudformation/resources/aws-appstream-fleet_vpcconfig.go index a1bb54d065..e3314604cb 100644 --- a/cloudformation/aws-appstream-fleet_vpcconfig.go +++ b/cloudformation/resources/aws-appstream-fleet_vpcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamFleet_VpcConfig AWS CloudFormation Resource (AWS::AppStream::Fleet.VpcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-fleet-vpcconfig.html @@ -15,7 +17,7 @@ type AWSAppStreamFleet_VpcConfig struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppStreamFleet_VpcConfig) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamFleet_VpcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamFleet_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-imagebuilder.go b/cloudformation/resources/aws-appstream-imagebuilder.go similarity index 93% rename from cloudformation/aws-appstream-imagebuilder.go rename to cloudformation/resources/aws-appstream-imagebuilder.go index 96cd4382cc..6f317bea44 100644 --- a/cloudformation/aws-appstream-imagebuilder.go +++ b/cloudformation/resources/aws-appstream-imagebuilder.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppStreamImageBuilder AWS CloudFormation Resource (AWS::AppStream::ImageBuilder) @@ -61,7 +62,7 @@ type AWSAppStreamImageBuilder struct { VpcConfig *AWSAppStreamImageBuilder_VpcConfig `json:"VpcConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSAppStreamImageBuilder) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamImageBuilder) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamImageBuilder) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSAppStreamImageBuilder) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appstream-imagebuilder_domainjoininfo.go b/cloudformation/resources/aws-appstream-imagebuilder_domainjoininfo.go similarity index 94% rename from cloudformation/aws-appstream-imagebuilder_domainjoininfo.go rename to cloudformation/resources/aws-appstream-imagebuilder_domainjoininfo.go index 1dc84daf0c..07b4d90475 100644 --- a/cloudformation/aws-appstream-imagebuilder_domainjoininfo.go +++ b/cloudformation/resources/aws-appstream-imagebuilder_domainjoininfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamImageBuilder_DomainJoinInfo AWS CloudFormation Resource (AWS::AppStream::ImageBuilder.DomainJoinInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-domainjoininfo.html @@ -15,7 +17,7 @@ type AWSAppStreamImageBuilder_DomainJoinInfo struct { OrganizationalUnitDistinguishedName string `json:"OrganizationalUnitDistinguishedName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppStreamImageBuilder_DomainJoinInfo) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamImageBuilder_DomainJoinInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamImageBuilder_DomainJoinInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-imagebuilder_vpcconfig.go b/cloudformation/resources/aws-appstream-imagebuilder_vpcconfig.go similarity index 94% rename from cloudformation/aws-appstream-imagebuilder_vpcconfig.go rename to cloudformation/resources/aws-appstream-imagebuilder_vpcconfig.go index 185feac9b5..ff67ccce8a 100644 --- a/cloudformation/aws-appstream-imagebuilder_vpcconfig.go +++ b/cloudformation/resources/aws-appstream-imagebuilder_vpcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamImageBuilder_VpcConfig AWS CloudFormation Resource (AWS::AppStream::ImageBuilder.VpcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-vpcconfig.html @@ -15,7 +17,7 @@ type AWSAppStreamImageBuilder_VpcConfig struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppStreamImageBuilder_VpcConfig) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamImageBuilder_VpcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamImageBuilder_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-stack.go b/cloudformation/resources/aws-appstream-stack.go similarity index 93% rename from cloudformation/aws-appstream-stack.go rename to cloudformation/resources/aws-appstream-stack.go index 634a02604c..ad4e7c8322 100644 --- a/cloudformation/aws-appstream-stack.go +++ b/cloudformation/resources/aws-appstream-stack.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppStreamStack AWS CloudFormation Resource (AWS::AppStream::Stack) @@ -61,7 +62,7 @@ type AWSAppStreamStack struct { UserSettings []AWSAppStreamStack_UserSetting `json:"UserSettings,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSAppStreamStack) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamStack) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamStack) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSAppStreamStack) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appstream-stack_applicationsettings.go b/cloudformation/resources/aws-appstream-stack_applicationsettings.go similarity index 94% rename from cloudformation/aws-appstream-stack_applicationsettings.go rename to cloudformation/resources/aws-appstream-stack_applicationsettings.go index def58c680c..17ab75328a 100644 --- a/cloudformation/aws-appstream-stack_applicationsettings.go +++ b/cloudformation/resources/aws-appstream-stack_applicationsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamStack_ApplicationSettings AWS CloudFormation Resource (AWS::AppStream::Stack.ApplicationSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-applicationsettings.html @@ -15,7 +17,7 @@ type AWSAppStreamStack_ApplicationSettings struct { SettingsGroup string `json:"SettingsGroup,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppStreamStack_ApplicationSettings) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamStack_ApplicationSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamStack_ApplicationSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-stack_storageconnector.go b/cloudformation/resources/aws-appstream-stack_storageconnector.go similarity index 95% rename from cloudformation/aws-appstream-stack_storageconnector.go rename to cloudformation/resources/aws-appstream-stack_storageconnector.go index 25e93547e6..9f8c464fac 100644 --- a/cloudformation/aws-appstream-stack_storageconnector.go +++ b/cloudformation/resources/aws-appstream-stack_storageconnector.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamStack_StorageConnector AWS CloudFormation Resource (AWS::AppStream::Stack.StorageConnector) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html @@ -20,7 +22,7 @@ type AWSAppStreamStack_StorageConnector struct { ResourceIdentifier string `json:"ResourceIdentifier,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSAppStreamStack_StorageConnector) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamStack_StorageConnector) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamStack_StorageConnector) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-stack_usersetting.go b/cloudformation/resources/aws-appstream-stack_usersetting.go similarity index 94% rename from cloudformation/aws-appstream-stack_usersetting.go rename to cloudformation/resources/aws-appstream-stack_usersetting.go index 37260f5576..1342cf0a10 100644 --- a/cloudformation/aws-appstream-stack_usersetting.go +++ b/cloudformation/resources/aws-appstream-stack_usersetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppStreamStack_UserSetting AWS CloudFormation Resource (AWS::AppStream::Stack.UserSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-usersetting.html @@ -15,7 +17,7 @@ type AWSAppStreamStack_UserSetting struct { Permission string `json:"Permission,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppStreamStack_UserSetting) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamStack_UserSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamStack_UserSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appstream-stackfleetassociation.go b/cloudformation/resources/aws-appstream-stackfleetassociation.go similarity index 92% rename from cloudformation/aws-appstream-stackfleetassociation.go rename to cloudformation/resources/aws-appstream-stackfleetassociation.go index b7678213c9..24f6e83e15 100644 --- a/cloudformation/aws-appstream-stackfleetassociation.go +++ b/cloudformation/resources/aws-appstream-stackfleetassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppStreamStackFleetAssociation AWS CloudFormation Resource (AWS::AppStream::StackFleetAssociation) @@ -21,7 +22,7 @@ type AWSAppStreamStackFleetAssociation struct { StackName string `json:"StackName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSAppStreamStackFleetAssociation) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamStackFleetAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamStackFleetAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSAppStreamStackFleetAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appstream-stackuserassociation.go b/cloudformation/resources/aws-appstream-stackuserassociation.go similarity index 93% rename from cloudformation/aws-appstream-stackuserassociation.go rename to cloudformation/resources/aws-appstream-stackuserassociation.go index 3c5504f3b0..26a8d50656 100644 --- a/cloudformation/aws-appstream-stackuserassociation.go +++ b/cloudformation/resources/aws-appstream-stackuserassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppStreamStackUserAssociation AWS CloudFormation Resource (AWS::AppStream::StackUserAssociation) @@ -31,7 +32,7 @@ type AWSAppStreamStackUserAssociation struct { UserName string `json:"UserName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSAppStreamStackUserAssociation) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamStackUserAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamStackUserAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSAppStreamStackUserAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appstream-user.go b/cloudformation/resources/aws-appstream-user.go similarity index 91% rename from cloudformation/aws-appstream-user.go rename to cloudformation/resources/aws-appstream-user.go index 5592e0d32c..950be80755 100644 --- a/cloudformation/aws-appstream-user.go +++ b/cloudformation/resources/aws-appstream-user.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppStreamUser AWS CloudFormation Resource (AWS::AppStream::User) @@ -36,7 +37,7 @@ type AWSAppStreamUser struct { UserName string `json:"UserName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSAppStreamUser) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppStreamUser) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppStreamUser) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSAppStreamUser) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appsync-apikey.go b/cloudformation/resources/aws-appsync-apikey.go similarity index 90% rename from cloudformation/aws-appsync-apikey.go rename to cloudformation/resources/aws-appsync-apikey.go index 075bbe29c5..bad5aee6c4 100644 --- a/cloudformation/aws-appsync-apikey.go +++ b/cloudformation/resources/aws-appsync-apikey.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppSyncApiKey AWS CloudFormation Resource (AWS::AppSync::ApiKey) @@ -26,7 +27,7 @@ type AWSAppSyncApiKey struct { Expires float64 `json:"Expires,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSAppSyncApiKey) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncApiKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncApiKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSAppSyncApiKey) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appsync-datasource.go b/cloudformation/resources/aws-appsync-datasource.go similarity index 93% rename from cloudformation/aws-appsync-datasource.go rename to cloudformation/resources/aws-appsync-datasource.go index e1fb16fe96..824f827248 100644 --- a/cloudformation/aws-appsync-datasource.go +++ b/cloudformation/resources/aws-appsync-datasource.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppSyncDataSource AWS CloudFormation Resource (AWS::AppSync::DataSource) @@ -61,7 +62,7 @@ type AWSAppSyncDataSource struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSAppSyncDataSource) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSAppSyncDataSource) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appsync-datasource_authorizationconfig.go b/cloudformation/resources/aws-appsync-datasource_authorizationconfig.go similarity index 94% rename from cloudformation/aws-appsync-datasource_authorizationconfig.go rename to cloudformation/resources/aws-appsync-datasource_authorizationconfig.go index 062c5f04ff..15a46e97b8 100644 --- a/cloudformation/aws-appsync-datasource_authorizationconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_authorizationconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_AuthorizationConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.AuthorizationConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-authorizationconfig.html @@ -15,7 +17,7 @@ type AWSAppSyncDataSource_AuthorizationConfig struct { AwsIamConfig *AWSAppSyncDataSource_AwsIamConfig `json:"AwsIamConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppSyncDataSource_AuthorizationConfig) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_AuthorizationConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_AuthorizationConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-datasource_awsiamconfig.go b/cloudformation/resources/aws-appsync-datasource_awsiamconfig.go similarity index 94% rename from cloudformation/aws-appsync-datasource_awsiamconfig.go rename to cloudformation/resources/aws-appsync-datasource_awsiamconfig.go index 92fb554690..b9436a37e7 100644 --- a/cloudformation/aws-appsync-datasource_awsiamconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_awsiamconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_AwsIamConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.AwsIamConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-awsiamconfig.html @@ -15,7 +17,7 @@ type AWSAppSyncDataSource_AwsIamConfig struct { SigningServiceName string `json:"SigningServiceName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppSyncDataSource_AwsIamConfig) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_AwsIamConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_AwsIamConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-datasource_dynamodbconfig.go b/cloudformation/resources/aws-appsync-datasource_dynamodbconfig.go similarity index 95% rename from cloudformation/aws-appsync-datasource_dynamodbconfig.go rename to cloudformation/resources/aws-appsync-datasource_dynamodbconfig.go index 2aa9e3538f..4cc2545d57 100644 --- a/cloudformation/aws-appsync-datasource_dynamodbconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_dynamodbconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_DynamoDBConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.DynamoDBConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html @@ -20,7 +22,7 @@ type AWSAppSyncDataSource_DynamoDBConfig struct { UseCallerCredentials bool `json:"UseCallerCredentials,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSAppSyncDataSource_DynamoDBConfig) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_DynamoDBConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_DynamoDBConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-datasource_elasticsearchconfig.go b/cloudformation/resources/aws-appsync-datasource_elasticsearchconfig.go similarity index 94% rename from cloudformation/aws-appsync-datasource_elasticsearchconfig.go rename to cloudformation/resources/aws-appsync-datasource_elasticsearchconfig.go index 3646eb8854..5b00c198a8 100644 --- a/cloudformation/aws-appsync-datasource_elasticsearchconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_elasticsearchconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_ElasticsearchConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.ElasticsearchConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-elasticsearchconfig.html @@ -15,7 +17,7 @@ type AWSAppSyncDataSource_ElasticsearchConfig struct { Endpoint string `json:"Endpoint,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppSyncDataSource_ElasticsearchConfig) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_ElasticsearchConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_ElasticsearchConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-datasource_httpconfig.go b/cloudformation/resources/aws-appsync-datasource_httpconfig.go similarity index 94% rename from cloudformation/aws-appsync-datasource_httpconfig.go rename to cloudformation/resources/aws-appsync-datasource_httpconfig.go index edef613342..a55cf309fa 100644 --- a/cloudformation/aws-appsync-datasource_httpconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_httpconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_HttpConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.HttpConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-httpconfig.html @@ -15,7 +17,7 @@ type AWSAppSyncDataSource_HttpConfig struct { Endpoint string `json:"Endpoint,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppSyncDataSource_HttpConfig) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_HttpConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_HttpConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-datasource_lambdaconfig.go b/cloudformation/resources/aws-appsync-datasource_lambdaconfig.go similarity index 94% rename from cloudformation/aws-appsync-datasource_lambdaconfig.go rename to cloudformation/resources/aws-appsync-datasource_lambdaconfig.go index d7ff3dae54..53f9697aab 100644 --- a/cloudformation/aws-appsync-datasource_lambdaconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_lambdaconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_LambdaConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.LambdaConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-lambdaconfig.html @@ -10,7 +12,7 @@ type AWSAppSyncDataSource_LambdaConfig struct { LambdaFunctionArn string `json:"LambdaFunctionArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSAppSyncDataSource_LambdaConfig) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_LambdaConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_LambdaConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-datasource_rdshttpendpointconfig.go b/cloudformation/resources/aws-appsync-datasource_rdshttpendpointconfig.go similarity index 95% rename from cloudformation/aws-appsync-datasource_rdshttpendpointconfig.go rename to cloudformation/resources/aws-appsync-datasource_rdshttpendpointconfig.go index d6bd642bf2..83d4bf0b3c 100644 --- a/cloudformation/aws-appsync-datasource_rdshttpendpointconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_rdshttpendpointconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_RdsHttpEndpointConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.RdsHttpEndpointConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html @@ -30,7 +32,7 @@ type AWSAppSyncDataSource_RdsHttpEndpointConfig struct { Schema string `json:"Schema,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSAppSyncDataSource_RdsHttpEndpointConfig) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_RdsHttpEndpointConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_RdsHttpEndpointConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-datasource_relationaldatabaseconfig.go b/cloudformation/resources/aws-appsync-datasource_relationaldatabaseconfig.go similarity index 94% rename from cloudformation/aws-appsync-datasource_relationaldatabaseconfig.go rename to cloudformation/resources/aws-appsync-datasource_relationaldatabaseconfig.go index 1515ed87fa..c03451567b 100644 --- a/cloudformation/aws-appsync-datasource_relationaldatabaseconfig.go +++ b/cloudformation/resources/aws-appsync-datasource_relationaldatabaseconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncDataSource_RelationalDatabaseConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.RelationalDatabaseConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-relationaldatabaseconfig.html @@ -15,7 +17,7 @@ type AWSAppSyncDataSource_RelationalDatabaseConfig struct { RelationalDatabaseSourceType string `json:"RelationalDatabaseSourceType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppSyncDataSource_RelationalDatabaseConfig) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncDataSource_RelationalDatabaseConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncDataSource_RelationalDatabaseConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-functionconfiguration.go b/cloudformation/resources/aws-appsync-functionconfiguration.go similarity index 94% rename from cloudformation/aws-appsync-functionconfiguration.go rename to cloudformation/resources/aws-appsync-functionconfiguration.go index 296c22e733..9369195a30 100644 --- a/cloudformation/aws-appsync-functionconfiguration.go +++ b/cloudformation/resources/aws-appsync-functionconfiguration.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppSyncFunctionConfiguration AWS CloudFormation Resource (AWS::AppSync::FunctionConfiguration) @@ -56,7 +57,7 @@ type AWSAppSyncFunctionConfiguration struct { ResponseMappingTemplateS3Location string `json:"ResponseMappingTemplateS3Location,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSAppSyncFunctionConfiguration) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncFunctionConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncFunctionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSAppSyncFunctionConfiguration) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appsync-graphqlapi.go b/cloudformation/resources/aws-appsync-graphqlapi.go similarity index 92% rename from cloudformation/aws-appsync-graphqlapi.go rename to cloudformation/resources/aws-appsync-graphqlapi.go index 75a02a24b8..1a85d66a44 100644 --- a/cloudformation/aws-appsync-graphqlapi.go +++ b/cloudformation/resources/aws-appsync-graphqlapi.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppSyncGraphQLApi AWS CloudFormation Resource (AWS::AppSync::GraphQLApi) @@ -36,7 +37,7 @@ type AWSAppSyncGraphQLApi struct { UserPoolConfig *AWSAppSyncGraphQLApi_UserPoolConfig `json:"UserPoolConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSAppSyncGraphQLApi) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncGraphQLApi) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncGraphQLApi) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSAppSyncGraphQLApi) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appsync-graphqlapi_logconfig.go b/cloudformation/resources/aws-appsync-graphqlapi_logconfig.go similarity index 94% rename from cloudformation/aws-appsync-graphqlapi_logconfig.go rename to cloudformation/resources/aws-appsync-graphqlapi_logconfig.go index 714fc0a204..477b377744 100644 --- a/cloudformation/aws-appsync-graphqlapi_logconfig.go +++ b/cloudformation/resources/aws-appsync-graphqlapi_logconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncGraphQLApi_LogConfig AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.LogConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html @@ -15,7 +17,7 @@ type AWSAppSyncGraphQLApi_LogConfig struct { FieldLogLevel string `json:"FieldLogLevel,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAppSyncGraphQLApi_LogConfig) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncGraphQLApi_LogConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncGraphQLApi_LogConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-graphqlapi_openidconnectconfig.go b/cloudformation/resources/aws-appsync-graphqlapi_openidconnectconfig.go similarity index 95% rename from cloudformation/aws-appsync-graphqlapi_openidconnectconfig.go rename to cloudformation/resources/aws-appsync-graphqlapi_openidconnectconfig.go index bccb2ee179..18cc869ec0 100644 --- a/cloudformation/aws-appsync-graphqlapi_openidconnectconfig.go +++ b/cloudformation/resources/aws-appsync-graphqlapi_openidconnectconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncGraphQLApi_OpenIDConnectConfig AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.OpenIDConnectConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-openidconnectconfig.html @@ -25,7 +27,7 @@ type AWSAppSyncGraphQLApi_OpenIDConnectConfig struct { Issuer string `json:"Issuer,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSAppSyncGraphQLApi_OpenIDConnectConfig) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncGraphQLApi_OpenIDConnectConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncGraphQLApi_OpenIDConnectConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-graphqlapi_userpoolconfig.go b/cloudformation/resources/aws-appsync-graphqlapi_userpoolconfig.go similarity index 95% rename from cloudformation/aws-appsync-graphqlapi_userpoolconfig.go rename to cloudformation/resources/aws-appsync-graphqlapi_userpoolconfig.go index c75ee4cc3b..62e98e9e12 100644 --- a/cloudformation/aws-appsync-graphqlapi_userpoolconfig.go +++ b/cloudformation/resources/aws-appsync-graphqlapi_userpoolconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncGraphQLApi_UserPoolConfig AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.UserPoolConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html @@ -25,7 +27,7 @@ type AWSAppSyncGraphQLApi_UserPoolConfig struct { UserPoolId string `json:"UserPoolId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSAppSyncGraphQLApi_UserPoolConfig) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncGraphQLApi_UserPoolConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncGraphQLApi_UserPoolConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-appsync-graphqlschema.go b/cloudformation/resources/aws-appsync-graphqlschema.go similarity index 91% rename from cloudformation/aws-appsync-graphqlschema.go rename to cloudformation/resources/aws-appsync-graphqlschema.go index 79b96ca67e..39879f2187 100644 --- a/cloudformation/aws-appsync-graphqlschema.go +++ b/cloudformation/resources/aws-appsync-graphqlschema.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppSyncGraphQLSchema AWS CloudFormation Resource (AWS::AppSync::GraphQLSchema) @@ -26,7 +27,7 @@ type AWSAppSyncGraphQLSchema struct { DefinitionS3Location string `json:"DefinitionS3Location,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSAppSyncGraphQLSchema) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncGraphQLSchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncGraphQLSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSAppSyncGraphQLSchema) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appsync-resolver.go b/cloudformation/resources/aws-appsync-resolver.go similarity index 93% rename from cloudformation/aws-appsync-resolver.go rename to cloudformation/resources/aws-appsync-resolver.go index 9c6bb56ef5..d6d040d974 100644 --- a/cloudformation/aws-appsync-resolver.go +++ b/cloudformation/resources/aws-appsync-resolver.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAppSyncResolver AWS CloudFormation Resource (AWS::AppSync::Resolver) @@ -61,7 +62,7 @@ type AWSAppSyncResolver struct { TypeName string `json:"TypeName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSAppSyncResolver) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncResolver) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncResolver) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSAppSyncResolver) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-appsync-resolver_pipelineconfig.go b/cloudformation/resources/aws-appsync-resolver_pipelineconfig.go similarity index 93% rename from cloudformation/aws-appsync-resolver_pipelineconfig.go rename to cloudformation/resources/aws-appsync-resolver_pipelineconfig.go index e83edcc18d..9cb3b5eae4 100644 --- a/cloudformation/aws-appsync-resolver_pipelineconfig.go +++ b/cloudformation/resources/aws-appsync-resolver_pipelineconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAppSyncResolver_PipelineConfig AWS CloudFormation Resource (AWS::AppSync::Resolver.PipelineConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-pipelineconfig.html @@ -10,7 +12,7 @@ type AWSAppSyncResolver_PipelineConfig struct { Functions []string `json:"Functions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSAppSyncResolver_PipelineConfig) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAppSyncResolver_PipelineConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAppSyncResolver_PipelineConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-athena-namedquery.go b/cloudformation/resources/aws-athena-namedquery.go similarity index 91% rename from cloudformation/aws-athena-namedquery.go rename to cloudformation/resources/aws-athena-namedquery.go index 2e98ce48d8..52ee07dbda 100644 --- a/cloudformation/aws-athena-namedquery.go +++ b/cloudformation/resources/aws-athena-namedquery.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAthenaNamedQuery AWS CloudFormation Resource (AWS::Athena::NamedQuery) @@ -31,7 +32,7 @@ type AWSAthenaNamedQuery struct { QueryString string `json:"QueryString,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSAthenaNamedQuery) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAthenaNamedQuery) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAthenaNamedQuery) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSAthenaNamedQuery) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-autoscaling-autoscalinggroup.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup.go similarity index 94% rename from cloudformation/aws-autoscaling-autoscalinggroup.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup.go index 5123c8129d..3580e1f0ee 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAutoScalingAutoScalingGroup AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup) @@ -121,13 +122,13 @@ type AWSAutoScalingAutoScalingGroup struct { VPCZoneIdentifier []string `json:"VPCZoneIdentifier,omitempty"` // _updatePolicy represents a CloudFormation UpdatePolicy - _updatePolicy *UpdatePolicy + _updatePolicy *policies.UpdatePolicy // _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *CreationPolicy + _creationPolicy *policies.CreationPolicy // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -167,19 +168,19 @@ func (r *AWSAutoScalingAutoScalingGroup) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup) 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 *AWSAutoScalingAutoScalingGroup) SetUpdatePolicy(policy *UpdatePolicy) { +func (r *AWSAutoScalingAutoScalingGroup) 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 *AWSAutoScalingAutoScalingGroup) SetCreationPolicy(policy *CreationPolicy) { +func (r *AWSAutoScalingAutoScalingGroup) SetCreationPolicy(policy *policies.CreationPolicy) { r._creationPolicy = policy } @@ -190,11 +191,11 @@ func (r AWSAutoScalingAutoScalingGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` - UpdatePolicy *UpdatePolicy `json:"UpdatePolicy,omitempty"` - CreationPolicy *CreationPolicy `json:"CreationPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + UpdatePolicy *policies.UpdatePolicy `json:"UpdatePolicy,omitempty"` + CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_instancesdistribution.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_instancesdistribution.go similarity index 96% rename from cloudformation/aws-autoscaling-autoscalinggroup_instancesdistribution.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_instancesdistribution.go index 370678676d..4547480189 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_instancesdistribution.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_instancesdistribution.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_InstancesDistribution AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.InstancesDistribution) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-mixedinstancespolicy-instancesdistribution.html @@ -35,7 +37,7 @@ type AWSAutoScalingAutoScalingGroup_InstancesDistribution struct { SpotMaxPrice string `json:"SpotMaxPrice,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSAutoScalingAutoScalingGroup_InstancesDistribution) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_InstancesDistribution) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_InstancesDistribution) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_launchtemplate.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplate.go similarity index 94% rename from cloudformation/aws-autoscaling-autoscalinggroup_launchtemplate.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplate.go index 405ca64a32..30b92798bd 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_launchtemplate.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_LaunchTemplate AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LaunchTemplate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-mixedinstancespolicy-launchtemplate.html @@ -15,7 +17,7 @@ type AWSAutoScalingAutoScalingGroup_LaunchTemplate struct { Overrides []AWSAutoScalingAutoScalingGroup_LaunchTemplateOverrides `json:"Overrides,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplate) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go similarity index 93% rename from cloudformation/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go index e4e5cdbd83..5f6addfd04 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_LaunchTemplateOverrides AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LaunchTemplateOverrides) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-mixedinstancespolicy-launchtemplateoverrides.html @@ -10,7 +12,7 @@ type AWSAutoScalingAutoScalingGroup_LaunchTemplateOverrides struct { InstanceType string `json:"InstanceType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplateOverrides) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplateOverrides) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplateOverrides) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go similarity index 95% rename from cloudformation/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go index 755084d908..877d1a0a67 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_LaunchTemplateSpecification AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LaunchTemplateSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html @@ -20,7 +22,7 @@ type AWSAutoScalingAutoScalingGroup_LaunchTemplateSpecification struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplateSpecification) SetMetadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplateSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_LaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go similarity index 96% rename from cloudformation/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go index 0bfaa60b80..2ec86f0c84 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_LifecycleHookSpecification AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LifecycleHookSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html @@ -40,7 +42,7 @@ type AWSAutoScalingAutoScalingGroup_LifecycleHookSpecification struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSAutoScalingAutoScalingGroup_LifecycleHookSpecification) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_LifecycleHookSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_LifecycleHookSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_metricscollection.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_metricscollection.go similarity index 94% rename from cloudformation/aws-autoscaling-autoscalinggroup_metricscollection.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_metricscollection.go index 436549bd59..6abf47eb38 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_metricscollection.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_metricscollection.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_MetricsCollection AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.MetricsCollection) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-metricscollection.html @@ -15,7 +17,7 @@ type AWSAutoScalingAutoScalingGroup_MetricsCollection struct { Metrics []string `json:"Metrics,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingAutoScalingGroup_MetricsCollection) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_MetricsCollection) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_MetricsCollection) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go similarity index 94% rename from cloudformation/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go index ab467f51cb..73813fd9b1 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_MixedInstancesPolicy AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.MixedInstancesPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-group-mixedinstancespolicy.html @@ -15,7 +17,7 @@ type AWSAutoScalingAutoScalingGroup_MixedInstancesPolicy struct { LaunchTemplate *AWSAutoScalingAutoScalingGroup_LaunchTemplate `json:"LaunchTemplate,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingAutoScalingGroup_MixedInstancesPolicy) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_MixedInstancesPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_MixedInstancesPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_notificationconfiguration.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_notificationconfiguration.go similarity index 94% rename from cloudformation/aws-autoscaling-autoscalinggroup_notificationconfiguration.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_notificationconfiguration.go index 33705fe91d..e8aa7eb9dc 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_notificationconfiguration.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_notificationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_NotificationConfiguration AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.NotificationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-notificationconfigurations.html @@ -15,7 +17,7 @@ type AWSAutoScalingAutoScalingGroup_NotificationConfiguration struct { TopicARN string `json:"TopicARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingAutoScalingGroup_NotificationConfiguration) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_NotificationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_NotificationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-autoscalinggroup_tagproperty.go b/cloudformation/resources/aws-autoscaling-autoscalinggroup_tagproperty.go similarity index 94% rename from cloudformation/aws-autoscaling-autoscalinggroup_tagproperty.go rename to cloudformation/resources/aws-autoscaling-autoscalinggroup_tagproperty.go index ae926ff945..4062408ff2 100644 --- a/cloudformation/aws-autoscaling-autoscalinggroup_tagproperty.go +++ b/cloudformation/resources/aws-autoscaling-autoscalinggroup_tagproperty.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingAutoScalingGroup_TagProperty AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.TagProperty) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html @@ -20,7 +22,7 @@ type AWSAutoScalingAutoScalingGroup_TagProperty struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSAutoScalingAutoScalingGroup_TagProperty) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingAutoScalingGroup_TagProperty) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingAutoScalingGroup_TagProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-launchconfiguration.go b/cloudformation/resources/aws-autoscaling-launchconfiguration.go similarity index 95% rename from cloudformation/aws-autoscaling-launchconfiguration.go rename to cloudformation/resources/aws-autoscaling-launchconfiguration.go index 5e31d12633..2f9bc1f866 100644 --- a/cloudformation/aws-autoscaling-launchconfiguration.go +++ b/cloudformation/resources/aws-autoscaling-launchconfiguration.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAutoScalingLaunchConfiguration AWS CloudFormation Resource (AWS::AutoScaling::LaunchConfiguration) @@ -101,7 +102,7 @@ type AWSAutoScalingLaunchConfiguration struct { UserData string `json:"UserData,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -141,7 +142,7 @@ func (r *AWSAutoScalingLaunchConfiguration) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingLaunchConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingLaunchConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -152,9 +153,9 @@ func (r AWSAutoScalingLaunchConfiguration) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-autoscaling-launchconfiguration_blockdevice.go b/cloudformation/resources/aws-autoscaling-launchconfiguration_blockdevice.go similarity index 95% rename from cloudformation/aws-autoscaling-launchconfiguration_blockdevice.go rename to cloudformation/resources/aws-autoscaling-launchconfiguration_blockdevice.go index 95eb83a0ea..1ce7467834 100644 --- a/cloudformation/aws-autoscaling-launchconfiguration_blockdevice.go +++ b/cloudformation/resources/aws-autoscaling-launchconfiguration_blockdevice.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingLaunchConfiguration_BlockDevice AWS CloudFormation Resource (AWS::AutoScaling::LaunchConfiguration.BlockDevice) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html @@ -35,7 +37,7 @@ type AWSAutoScalingLaunchConfiguration_BlockDevice struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSAutoScalingLaunchConfiguration_BlockDevice) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingLaunchConfiguration_BlockDevice) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingLaunchConfiguration_BlockDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-launchconfiguration_blockdevicemapping.go b/cloudformation/resources/aws-autoscaling-launchconfiguration_blockdevicemapping.go similarity index 95% rename from cloudformation/aws-autoscaling-launchconfiguration_blockdevicemapping.go rename to cloudformation/resources/aws-autoscaling-launchconfiguration_blockdevicemapping.go index a01e03b672..cbaee82997 100644 --- a/cloudformation/aws-autoscaling-launchconfiguration_blockdevicemapping.go +++ b/cloudformation/resources/aws-autoscaling-launchconfiguration_blockdevicemapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingLaunchConfiguration_BlockDeviceMapping AWS CloudFormation Resource (AWS::AutoScaling::LaunchConfiguration.BlockDeviceMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-mapping.html @@ -25,7 +27,7 @@ type AWSAutoScalingLaunchConfiguration_BlockDeviceMapping struct { VirtualName string `json:"VirtualName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSAutoScalingLaunchConfiguration_BlockDeviceMapping) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingLaunchConfiguration_BlockDeviceMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingLaunchConfiguration_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-lifecyclehook.go b/cloudformation/resources/aws-autoscaling-lifecyclehook.go similarity index 93% rename from cloudformation/aws-autoscaling-lifecyclehook.go rename to cloudformation/resources/aws-autoscaling-lifecyclehook.go index 66e20c3c0f..431920a679 100644 --- a/cloudformation/aws-autoscaling-lifecyclehook.go +++ b/cloudformation/resources/aws-autoscaling-lifecyclehook.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAutoScalingLifecycleHook AWS CloudFormation Resource (AWS::AutoScaling::LifecycleHook) @@ -51,7 +52,7 @@ type AWSAutoScalingLifecycleHook struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSAutoScalingLifecycleHook) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingLifecycleHook) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingLifecycleHook) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSAutoScalingLifecycleHook) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-autoscaling-scalingpolicy.go b/cloudformation/resources/aws-autoscaling-scalingpolicy.go similarity index 93% rename from cloudformation/aws-autoscaling-scalingpolicy.go rename to cloudformation/resources/aws-autoscaling-scalingpolicy.go index 8dd10f9a5f..e3ebdf1fc6 100644 --- a/cloudformation/aws-autoscaling-scalingpolicy.go +++ b/cloudformation/resources/aws-autoscaling-scalingpolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAutoScalingScalingPolicy AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy) @@ -61,7 +62,7 @@ type AWSAutoScalingScalingPolicy struct { TargetTrackingConfiguration *AWSAutoScalingScalingPolicy_TargetTrackingConfiguration `json:"TargetTrackingConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSAutoScalingScalingPolicy) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingScalingPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSAutoScalingScalingPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-autoscaling-scalingpolicy_customizedmetricspecification.go b/cloudformation/resources/aws-autoscaling-scalingpolicy_customizedmetricspecification.go similarity index 95% rename from cloudformation/aws-autoscaling-scalingpolicy_customizedmetricspecification.go rename to cloudformation/resources/aws-autoscaling-scalingpolicy_customizedmetricspecification.go index 9586e38d0b..d1385cab10 100644 --- a/cloudformation/aws-autoscaling-scalingpolicy_customizedmetricspecification.go +++ b/cloudformation/resources/aws-autoscaling-scalingpolicy_customizedmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingScalingPolicy_CustomizedMetricSpecification AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.CustomizedMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html @@ -30,7 +32,7 @@ type AWSAutoScalingScalingPolicy_CustomizedMetricSpecification struct { Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSAutoScalingScalingPolicy_CustomizedMetricSpecification) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingScalingPolicy_CustomizedMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingScalingPolicy_CustomizedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-scalingpolicy_metricdimension.go b/cloudformation/resources/aws-autoscaling-scalingpolicy_metricdimension.go similarity index 94% rename from cloudformation/aws-autoscaling-scalingpolicy_metricdimension.go rename to cloudformation/resources/aws-autoscaling-scalingpolicy_metricdimension.go index 102cb60164..a071bca207 100644 --- a/cloudformation/aws-autoscaling-scalingpolicy_metricdimension.go +++ b/cloudformation/resources/aws-autoscaling-scalingpolicy_metricdimension.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingScalingPolicy_MetricDimension AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.MetricDimension) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-metricdimension.html @@ -15,7 +17,7 @@ type AWSAutoScalingScalingPolicy_MetricDimension struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingScalingPolicy_MetricDimension) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingScalingPolicy_MetricDimension) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingScalingPolicy_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go b/cloudformation/resources/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go similarity index 94% rename from cloudformation/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go rename to cloudformation/resources/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go index ed1c5173aa..aecfd407b6 100644 --- a/cloudformation/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go +++ b/cloudformation/resources/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingScalingPolicy_PredefinedMetricSpecification AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.PredefinedMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-predefinedmetricspecification.html @@ -15,7 +17,7 @@ type AWSAutoScalingScalingPolicy_PredefinedMetricSpecification struct { ResourceLabel string `json:"ResourceLabel,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingScalingPolicy_PredefinedMetricSpecification) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingScalingPolicy_PredefinedMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingScalingPolicy_PredefinedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-scalingpolicy_stepadjustment.go b/cloudformation/resources/aws-autoscaling-scalingpolicy_stepadjustment.go similarity index 95% rename from cloudformation/aws-autoscaling-scalingpolicy_stepadjustment.go rename to cloudformation/resources/aws-autoscaling-scalingpolicy_stepadjustment.go index 24a0b0f761..e3f3a204ac 100644 --- a/cloudformation/aws-autoscaling-scalingpolicy_stepadjustment.go +++ b/cloudformation/resources/aws-autoscaling-scalingpolicy_stepadjustment.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingScalingPolicy_StepAdjustment AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.StepAdjustment) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-stepadjustments.html @@ -20,7 +22,7 @@ type AWSAutoScalingScalingPolicy_StepAdjustment struct { ScalingAdjustment int `json:"ScalingAdjustment"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSAutoScalingScalingPolicy_StepAdjustment) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingScalingPolicy_StepAdjustment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingScalingPolicy_StepAdjustment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go b/cloudformation/resources/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go similarity index 95% rename from cloudformation/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go rename to cloudformation/resources/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go index 52cdcc9804..57bfd9e5e7 100644 --- a/cloudformation/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go +++ b/cloudformation/resources/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingScalingPolicy_TargetTrackingConfiguration AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.TargetTrackingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingconfiguration.html @@ -25,7 +27,7 @@ type AWSAutoScalingScalingPolicy_TargetTrackingConfiguration struct { TargetValue float64 `json:"TargetValue"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSAutoScalingScalingPolicy_TargetTrackingConfiguration) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingScalingPolicy_TargetTrackingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingScalingPolicy_TargetTrackingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscaling-scheduledaction.go b/cloudformation/resources/aws-autoscaling-scheduledaction.go similarity index 93% rename from cloudformation/aws-autoscaling-scheduledaction.go rename to cloudformation/resources/aws-autoscaling-scheduledaction.go index fe4f9cc7e8..0c2819e155 100644 --- a/cloudformation/aws-autoscaling-scheduledaction.go +++ b/cloudformation/resources/aws-autoscaling-scheduledaction.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAutoScalingScheduledAction AWS CloudFormation Resource (AWS::AutoScaling::ScheduledAction) @@ -46,7 +47,7 @@ type AWSAutoScalingScheduledAction struct { StartTime string `json:"StartTime,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSAutoScalingScheduledAction) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingScheduledAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingScheduledAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSAutoScalingScheduledAction) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-autoscalingplans-scalingplan.go b/cloudformation/resources/aws-autoscalingplans-scalingplan.go similarity index 92% rename from cloudformation/aws-autoscalingplans-scalingplan.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan.go index c93d8acc3b..8d32bec436 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSAutoScalingPlansScalingPlan AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan) @@ -21,7 +22,7 @@ type AWSAutoScalingPlansScalingPlan struct { ScalingInstructions []AWSAutoScalingPlansScalingPlan_ScalingInstruction `json:"ScalingInstructions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSAutoScalingPlansScalingPlan) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSAutoScalingPlansScalingPlan) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-autoscalingplans-scalingplan_applicationsource.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_applicationsource.go similarity index 94% rename from cloudformation/aws-autoscalingplans-scalingplan_applicationsource.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_applicationsource.go index 26029be646..00fcbf3274 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_applicationsource.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_applicationsource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_ApplicationSource AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.ApplicationSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-applicationsource.html @@ -15,7 +17,7 @@ type AWSAutoScalingPlansScalingPlan_ApplicationSource struct { TagFilters []AWSAutoScalingPlansScalingPlan_TagFilter `json:"TagFilters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingPlansScalingPlan_ApplicationSource) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_ApplicationSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_ApplicationSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go similarity index 95% rename from cloudformation/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go index 0d38bf687d..2a5cb93690 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_CustomizedLoadMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.CustomizedLoadMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedloadmetricspecification.html @@ -30,7 +32,7 @@ type AWSAutoScalingPlansScalingPlan_CustomizedLoadMetricSpecification struct { Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSAutoScalingPlansScalingPlan_CustomizedLoadMetricSpecification) SetMe // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_CustomizedLoadMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_CustomizedLoadMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go similarity index 95% rename from cloudformation/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go index 71d13b79af..0f7abc640d 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_CustomizedScalingMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.CustomizedScalingMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html @@ -30,7 +32,7 @@ type AWSAutoScalingPlansScalingPlan_CustomizedScalingMetricSpecification struct Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSAutoScalingPlansScalingPlan_CustomizedScalingMetricSpecification) Se // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_CustomizedScalingMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_CustomizedScalingMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_metricdimension.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_metricdimension.go similarity index 94% rename from cloudformation/aws-autoscalingplans-scalingplan_metricdimension.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_metricdimension.go index 333adf2833..1577ff9535 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_metricdimension.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_metricdimension.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_MetricDimension AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.MetricDimension) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-metricdimension.html @@ -15,7 +17,7 @@ type AWSAutoScalingPlansScalingPlan_MetricDimension struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingPlansScalingPlan_MetricDimension) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_MetricDimension) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go similarity index 94% rename from cloudformation/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go index 647ad20fc2..6f07f3c2c4 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_PredefinedLoadMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.PredefinedLoadMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-predefinedloadmetricspecification.html @@ -15,7 +17,7 @@ type AWSAutoScalingPlansScalingPlan_PredefinedLoadMetricSpecification struct { ResourceLabel string `json:"ResourceLabel,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingPlansScalingPlan_PredefinedLoadMetricSpecification) SetMe // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_PredefinedLoadMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_PredefinedLoadMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go similarity index 94% rename from cloudformation/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go index fe446f71e7..da2b77001b 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_PredefinedScalingMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.PredefinedScalingMetricSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-predefinedscalingmetricspecification.html @@ -15,7 +17,7 @@ type AWSAutoScalingPlansScalingPlan_PredefinedScalingMetricSpecification struct ResourceLabel string `json:"ResourceLabel,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingPlansScalingPlan_PredefinedScalingMetricSpecification) Se // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_PredefinedScalingMetricSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_PredefinedScalingMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_scalinginstruction.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_scalinginstruction.go similarity index 97% rename from cloudformation/aws-autoscalingplans-scalingplan_scalinginstruction.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_scalinginstruction.go index 8074a2aff5..7e1f5157ae 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_scalinginstruction.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_scalinginstruction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_ScalingInstruction AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.ScalingInstruction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html @@ -75,7 +77,7 @@ type AWSAutoScalingPlansScalingPlan_ScalingInstruction struct { TargetTrackingConfigurations []AWSAutoScalingPlansScalingPlan_TargetTrackingConfiguration `json:"TargetTrackingConfigurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -115,6 +117,6 @@ func (r *AWSAutoScalingPlansScalingPlan_ScalingInstruction) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_ScalingInstruction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_ScalingInstruction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_tagfilter.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_tagfilter.go similarity index 94% rename from cloudformation/aws-autoscalingplans-scalingplan_tagfilter.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_tagfilter.go index 22ec9bbf8a..446f714b03 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_tagfilter.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_tagfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_TagFilter AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.TagFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-tagfilter.html @@ -15,7 +17,7 @@ type AWSAutoScalingPlansScalingPlan_TagFilter struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSAutoScalingPlansScalingPlan_TagFilter) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_TagFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go b/cloudformation/resources/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go similarity index 96% rename from cloudformation/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go rename to cloudformation/resources/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go index 14a0a5e497..dacde07a9f 100644 --- a/cloudformation/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go +++ b/cloudformation/resources/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSAutoScalingPlansScalingPlan_TargetTrackingConfiguration AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.TargetTrackingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html @@ -40,7 +42,7 @@ type AWSAutoScalingPlansScalingPlan_TargetTrackingConfiguration struct { TargetValue float64 `json:"TargetValue"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSAutoScalingPlansScalingPlan_TargetTrackingConfiguration) SetMetadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSAutoScalingPlansScalingPlan_TargetTrackingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSAutoScalingPlansScalingPlan_TargetTrackingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-computeenvironment.go b/cloudformation/resources/aws-batch-computeenvironment.go similarity index 92% rename from cloudformation/aws-batch-computeenvironment.go rename to cloudformation/resources/aws-batch-computeenvironment.go index e715e0ff9d..bcd07eb3a7 100644 --- a/cloudformation/aws-batch-computeenvironment.go +++ b/cloudformation/resources/aws-batch-computeenvironment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSBatchComputeEnvironment AWS CloudFormation Resource (AWS::Batch::ComputeEnvironment) @@ -36,7 +37,7 @@ type AWSBatchComputeEnvironment struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSBatchComputeEnvironment) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchComputeEnvironment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchComputeEnvironment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSBatchComputeEnvironment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-batch-computeenvironment_computeresources.go b/cloudformation/resources/aws-batch-computeenvironment_computeresources.go similarity index 97% rename from cloudformation/aws-batch-computeenvironment_computeresources.go rename to cloudformation/resources/aws-batch-computeenvironment_computeresources.go index ebe73cb15c..b04b1ee33b 100644 --- a/cloudformation/aws-batch-computeenvironment_computeresources.go +++ b/cloudformation/resources/aws-batch-computeenvironment_computeresources.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchComputeEnvironment_ComputeResources AWS CloudFormation Resource (AWS::Batch::ComputeEnvironment.ComputeResources) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html @@ -80,7 +82,7 @@ type AWSBatchComputeEnvironment_ComputeResources struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -120,6 +122,6 @@ func (r *AWSBatchComputeEnvironment_ComputeResources) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchComputeEnvironment_ComputeResources) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchComputeEnvironment_ComputeResources) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-computeenvironment_launchtemplatespecification.go b/cloudformation/resources/aws-batch-computeenvironment_launchtemplatespecification.go similarity index 95% rename from cloudformation/aws-batch-computeenvironment_launchtemplatespecification.go rename to cloudformation/resources/aws-batch-computeenvironment_launchtemplatespecification.go index 35848634e5..e6cf06d6d1 100644 --- a/cloudformation/aws-batch-computeenvironment_launchtemplatespecification.go +++ b/cloudformation/resources/aws-batch-computeenvironment_launchtemplatespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchComputeEnvironment_LaunchTemplateSpecification AWS CloudFormation Resource (AWS::Batch::ComputeEnvironment.LaunchTemplateSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecification.html @@ -20,7 +22,7 @@ type AWSBatchComputeEnvironment_LaunchTemplateSpecification struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSBatchComputeEnvironment_LaunchTemplateSpecification) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchComputeEnvironment_LaunchTemplateSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchComputeEnvironment_LaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition.go b/cloudformation/resources/aws-batch-jobdefinition.go similarity index 92% rename from cloudformation/aws-batch-jobdefinition.go rename to cloudformation/resources/aws-batch-jobdefinition.go index 33ebc96984..5e7cd1f0f6 100644 --- a/cloudformation/aws-batch-jobdefinition.go +++ b/cloudformation/resources/aws-batch-jobdefinition.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSBatchJobDefinition AWS CloudFormation Resource (AWS::Batch::JobDefinition) @@ -46,7 +47,7 @@ type AWSBatchJobDefinition struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSBatchJobDefinition) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSBatchJobDefinition) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-batch-jobdefinition_containerproperties.go b/cloudformation/resources/aws-batch-jobdefinition_containerproperties.go similarity index 97% rename from cloudformation/aws-batch-jobdefinition_containerproperties.go rename to cloudformation/resources/aws-batch-jobdefinition_containerproperties.go index 41b6aab7b7..ddcdeaa2a3 100644 --- a/cloudformation/aws-batch-jobdefinition_containerproperties.go +++ b/cloudformation/resources/aws-batch-jobdefinition_containerproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_ContainerProperties AWS CloudFormation Resource (AWS::Batch::JobDefinition.ContainerProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html @@ -70,7 +72,7 @@ type AWSBatchJobDefinition_ContainerProperties struct { Volumes []AWSBatchJobDefinition_Volumes `json:"Volumes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -110,6 +112,6 @@ func (r *AWSBatchJobDefinition_ContainerProperties) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_ContainerProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_ContainerProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_environment.go b/cloudformation/resources/aws-batch-jobdefinition_environment.go similarity index 94% rename from cloudformation/aws-batch-jobdefinition_environment.go rename to cloudformation/resources/aws-batch-jobdefinition_environment.go index 541a3f2065..e616061282 100644 --- a/cloudformation/aws-batch-jobdefinition_environment.go +++ b/cloudformation/resources/aws-batch-jobdefinition_environment.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_Environment AWS CloudFormation Resource (AWS::Batch::JobDefinition.Environment) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-environment.html @@ -15,7 +17,7 @@ type AWSBatchJobDefinition_Environment struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBatchJobDefinition_Environment) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_Environment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_mountpoints.go b/cloudformation/resources/aws-batch-jobdefinition_mountpoints.go similarity index 95% rename from cloudformation/aws-batch-jobdefinition_mountpoints.go rename to cloudformation/resources/aws-batch-jobdefinition_mountpoints.go index 9208e0d787..3c0f9e13a6 100644 --- a/cloudformation/aws-batch-jobdefinition_mountpoints.go +++ b/cloudformation/resources/aws-batch-jobdefinition_mountpoints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_MountPoints AWS CloudFormation Resource (AWS::Batch::JobDefinition.MountPoints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-mountpoints.html @@ -20,7 +22,7 @@ type AWSBatchJobDefinition_MountPoints struct { SourceVolume string `json:"SourceVolume,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSBatchJobDefinition_MountPoints) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_MountPoints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_MountPoints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_nodeproperties.go b/cloudformation/resources/aws-batch-jobdefinition_nodeproperties.go similarity index 95% rename from cloudformation/aws-batch-jobdefinition_nodeproperties.go rename to cloudformation/resources/aws-batch-jobdefinition_nodeproperties.go index 071ec81263..bfadd35ad0 100644 --- a/cloudformation/aws-batch-jobdefinition_nodeproperties.go +++ b/cloudformation/resources/aws-batch-jobdefinition_nodeproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_NodeProperties AWS CloudFormation Resource (AWS::Batch::JobDefinition.NodeProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html @@ -20,7 +22,7 @@ type AWSBatchJobDefinition_NodeProperties struct { NumNodes int `json:"NumNodes"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSBatchJobDefinition_NodeProperties) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_NodeProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_NodeProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_noderangeproperty.go b/cloudformation/resources/aws-batch-jobdefinition_noderangeproperty.go similarity index 94% rename from cloudformation/aws-batch-jobdefinition_noderangeproperty.go rename to cloudformation/resources/aws-batch-jobdefinition_noderangeproperty.go index 326d99fb92..6612cbe595 100644 --- a/cloudformation/aws-batch-jobdefinition_noderangeproperty.go +++ b/cloudformation/resources/aws-batch-jobdefinition_noderangeproperty.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_NodeRangeProperty AWS CloudFormation Resource (AWS::Batch::JobDefinition.NodeRangeProperty) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html @@ -15,7 +17,7 @@ type AWSBatchJobDefinition_NodeRangeProperty struct { TargetNodes string `json:"TargetNodes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBatchJobDefinition_NodeRangeProperty) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_NodeRangeProperty) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_NodeRangeProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_retrystrategy.go b/cloudformation/resources/aws-batch-jobdefinition_retrystrategy.go similarity index 93% rename from cloudformation/aws-batch-jobdefinition_retrystrategy.go rename to cloudformation/resources/aws-batch-jobdefinition_retrystrategy.go index 28cb042c35..bc745242dd 100644 --- a/cloudformation/aws-batch-jobdefinition_retrystrategy.go +++ b/cloudformation/resources/aws-batch-jobdefinition_retrystrategy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_RetryStrategy AWS CloudFormation Resource (AWS::Batch::JobDefinition.RetryStrategy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-retrystrategy.html @@ -10,7 +12,7 @@ type AWSBatchJobDefinition_RetryStrategy struct { Attempts int `json:"Attempts,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSBatchJobDefinition_RetryStrategy) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_RetryStrategy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_RetryStrategy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_timeout.go b/cloudformation/resources/aws-batch-jobdefinition_timeout.go similarity index 94% rename from cloudformation/aws-batch-jobdefinition_timeout.go rename to cloudformation/resources/aws-batch-jobdefinition_timeout.go index 7332e4704a..a608c5cf3c 100644 --- a/cloudformation/aws-batch-jobdefinition_timeout.go +++ b/cloudformation/resources/aws-batch-jobdefinition_timeout.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_Timeout AWS CloudFormation Resource (AWS::Batch::JobDefinition.Timeout) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-timeout.html @@ -10,7 +12,7 @@ type AWSBatchJobDefinition_Timeout struct { AttemptDurationSeconds int `json:"AttemptDurationSeconds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSBatchJobDefinition_Timeout) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_Timeout) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_Timeout) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_ulimit.go b/cloudformation/resources/aws-batch-jobdefinition_ulimit.go similarity index 94% rename from cloudformation/aws-batch-jobdefinition_ulimit.go rename to cloudformation/resources/aws-batch-jobdefinition_ulimit.go index 6fc097936c..34365950a7 100644 --- a/cloudformation/aws-batch-jobdefinition_ulimit.go +++ b/cloudformation/resources/aws-batch-jobdefinition_ulimit.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_Ulimit AWS CloudFormation Resource (AWS::Batch::JobDefinition.Ulimit) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ulimit.html @@ -20,7 +22,7 @@ type AWSBatchJobDefinition_Ulimit struct { SoftLimit int `json:"SoftLimit"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSBatchJobDefinition_Ulimit) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_Ulimit) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_Ulimit) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_volumes.go b/cloudformation/resources/aws-batch-jobdefinition_volumes.go similarity index 94% rename from cloudformation/aws-batch-jobdefinition_volumes.go rename to cloudformation/resources/aws-batch-jobdefinition_volumes.go index caa57b4eaa..6e03487e61 100644 --- a/cloudformation/aws-batch-jobdefinition_volumes.go +++ b/cloudformation/resources/aws-batch-jobdefinition_volumes.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_Volumes AWS CloudFormation Resource (AWS::Batch::JobDefinition.Volumes) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumes.html @@ -15,7 +17,7 @@ type AWSBatchJobDefinition_Volumes struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBatchJobDefinition_Volumes) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_Volumes) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_Volumes) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobdefinition_volumeshost.go b/cloudformation/resources/aws-batch-jobdefinition_volumeshost.go similarity index 93% rename from cloudformation/aws-batch-jobdefinition_volumeshost.go rename to cloudformation/resources/aws-batch-jobdefinition_volumeshost.go index 4ab03f1eb2..2d2d73ca59 100644 --- a/cloudformation/aws-batch-jobdefinition_volumeshost.go +++ b/cloudformation/resources/aws-batch-jobdefinition_volumeshost.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobDefinition_VolumesHost AWS CloudFormation Resource (AWS::Batch::JobDefinition.VolumesHost) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumeshost.html @@ -10,7 +12,7 @@ type AWSBatchJobDefinition_VolumesHost struct { SourcePath string `json:"SourcePath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSBatchJobDefinition_VolumesHost) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobDefinition_VolumesHost) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobDefinition_VolumesHost) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-batch-jobqueue.go b/cloudformation/resources/aws-batch-jobqueue.go similarity index 91% rename from cloudformation/aws-batch-jobqueue.go rename to cloudformation/resources/aws-batch-jobqueue.go index b997cfdc75..62fc252f51 100644 --- a/cloudformation/aws-batch-jobqueue.go +++ b/cloudformation/resources/aws-batch-jobqueue.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSBatchJobQueue AWS CloudFormation Resource (AWS::Batch::JobQueue) @@ -31,7 +32,7 @@ type AWSBatchJobQueue struct { State string `json:"State,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSBatchJobQueue) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobQueue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobQueue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSBatchJobQueue) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-batch-jobqueue_computeenvironmentorder.go b/cloudformation/resources/aws-batch-jobqueue_computeenvironmentorder.go similarity index 94% rename from cloudformation/aws-batch-jobqueue_computeenvironmentorder.go rename to cloudformation/resources/aws-batch-jobqueue_computeenvironmentorder.go index 4197032106..d640751604 100644 --- a/cloudformation/aws-batch-jobqueue_computeenvironmentorder.go +++ b/cloudformation/resources/aws-batch-jobqueue_computeenvironmentorder.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBatchJobQueue_ComputeEnvironmentOrder AWS CloudFormation Resource (AWS::Batch::JobQueue.ComputeEnvironmentOrder) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-computeenvironmentorder.html @@ -15,7 +17,7 @@ type AWSBatchJobQueue_ComputeEnvironmentOrder struct { Order int `json:"Order"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBatchJobQueue_ComputeEnvironmentOrder) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBatchJobQueue_ComputeEnvironmentOrder) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBatchJobQueue_ComputeEnvironmentOrder) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-budgets-budget.go b/cloudformation/resources/aws-budgets-budget.go similarity index 90% rename from cloudformation/aws-budgets-budget.go rename to cloudformation/resources/aws-budgets-budget.go index 81eb259bb2..566dc26833 100644 --- a/cloudformation/aws-budgets-budget.go +++ b/cloudformation/resources/aws-budgets-budget.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSBudgetsBudget AWS CloudFormation Resource (AWS::Budgets::Budget) @@ -21,7 +22,7 @@ type AWSBudgetsBudget struct { NotificationsWithSubscribers []AWSBudgetsBudget_NotificationWithSubscribers `json:"NotificationsWithSubscribers,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSBudgetsBudget) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSBudgetsBudget) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-budgets-budget_budgetdata.go b/cloudformation/resources/aws-budgets-budget_budgetdata.go similarity index 94% rename from cloudformation/aws-budgets-budget_budgetdata.go rename to cloudformation/resources/aws-budgets-budget_budgetdata.go index dbd880d466..edf335d2ea 100644 --- a/cloudformation/aws-budgets-budget_budgetdata.go +++ b/cloudformation/resources/aws-budgets-budget_budgetdata.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBudgetsBudget_BudgetData AWS CloudFormation Resource (AWS::Budgets::Budget.BudgetData) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html @@ -40,7 +42,7 @@ type AWSBudgetsBudget_BudgetData struct { TimeUnit string `json:"TimeUnit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSBudgetsBudget_BudgetData) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget_BudgetData) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget_BudgetData) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-budgets-budget_costtypes.go b/cloudformation/resources/aws-budgets-budget_costtypes.go similarity index 96% rename from cloudformation/aws-budgets-budget_costtypes.go rename to cloudformation/resources/aws-budgets-budget_costtypes.go index e259c94e39..85c4737c67 100644 --- a/cloudformation/aws-budgets-budget_costtypes.go +++ b/cloudformation/resources/aws-budgets-budget_costtypes.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBudgetsBudget_CostTypes AWS CloudFormation Resource (AWS::Budgets::Budget.CostTypes) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html @@ -60,7 +62,7 @@ type AWSBudgetsBudget_CostTypes struct { UseBlended bool `json:"UseBlended,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -100,6 +102,6 @@ func (r *AWSBudgetsBudget_CostTypes) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget_CostTypes) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget_CostTypes) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-budgets-budget_notification.go b/cloudformation/resources/aws-budgets-budget_notification.go similarity index 95% rename from cloudformation/aws-budgets-budget_notification.go rename to cloudformation/resources/aws-budgets-budget_notification.go index d14d4b228a..db1585b160 100644 --- a/cloudformation/aws-budgets-budget_notification.go +++ b/cloudformation/resources/aws-budgets-budget_notification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBudgetsBudget_Notification AWS CloudFormation Resource (AWS::Budgets::Budget.Notification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html @@ -25,7 +27,7 @@ type AWSBudgetsBudget_Notification struct { ThresholdType string `json:"ThresholdType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSBudgetsBudget_Notification) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget_Notification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget_Notification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-budgets-budget_notificationwithsubscribers.go b/cloudformation/resources/aws-budgets-budget_notificationwithsubscribers.go similarity index 94% rename from cloudformation/aws-budgets-budget_notificationwithsubscribers.go rename to cloudformation/resources/aws-budgets-budget_notificationwithsubscribers.go index cd55d29330..5f89f2afe2 100644 --- a/cloudformation/aws-budgets-budget_notificationwithsubscribers.go +++ b/cloudformation/resources/aws-budgets-budget_notificationwithsubscribers.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBudgetsBudget_NotificationWithSubscribers AWS CloudFormation Resource (AWS::Budgets::Budget.NotificationWithSubscribers) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notificationwithsubscribers.html @@ -15,7 +17,7 @@ type AWSBudgetsBudget_NotificationWithSubscribers struct { Subscribers []AWSBudgetsBudget_Subscriber `json:"Subscribers,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBudgetsBudget_NotificationWithSubscribers) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget_NotificationWithSubscribers) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget_NotificationWithSubscribers) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-budgets-budget_spend.go b/cloudformation/resources/aws-budgets-budget_spend.go similarity index 92% rename from cloudformation/aws-budgets-budget_spend.go rename to cloudformation/resources/aws-budgets-budget_spend.go index 0f0ce16a5d..ea1a23e13a 100644 --- a/cloudformation/aws-budgets-budget_spend.go +++ b/cloudformation/resources/aws-budgets-budget_spend.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBudgetsBudget_Spend AWS CloudFormation Resource (AWS::Budgets::Budget.Spend) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-spend.html @@ -15,7 +17,7 @@ type AWSBudgetsBudget_Spend struct { Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBudgetsBudget_Spend) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget_Spend) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget_Spend) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-budgets-budget_subscriber.go b/cloudformation/resources/aws-budgets-budget_subscriber.go similarity index 92% rename from cloudformation/aws-budgets-budget_subscriber.go rename to cloudformation/resources/aws-budgets-budget_subscriber.go index a821986afc..1860baa0f2 100644 --- a/cloudformation/aws-budgets-budget_subscriber.go +++ b/cloudformation/resources/aws-budgets-budget_subscriber.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBudgetsBudget_Subscriber AWS CloudFormation Resource (AWS::Budgets::Budget.Subscriber) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-subscriber.html @@ -15,7 +17,7 @@ type AWSBudgetsBudget_Subscriber struct { SubscriptionType string `json:"SubscriptionType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBudgetsBudget_Subscriber) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget_Subscriber) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget_Subscriber) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-budgets-budget_timeperiod.go b/cloudformation/resources/aws-budgets-budget_timeperiod.go similarity index 92% rename from cloudformation/aws-budgets-budget_timeperiod.go rename to cloudformation/resources/aws-budgets-budget_timeperiod.go index b671b092a2..1b098bca7b 100644 --- a/cloudformation/aws-budgets-budget_timeperiod.go +++ b/cloudformation/resources/aws-budgets-budget_timeperiod.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSBudgetsBudget_TimePeriod AWS CloudFormation Resource (AWS::Budgets::Budget.TimePeriod) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-timeperiod.html @@ -15,7 +17,7 @@ type AWSBudgetsBudget_TimePeriod struct { Start string `json:"Start,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSBudgetsBudget_TimePeriod) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSBudgetsBudget_TimePeriod) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSBudgetsBudget_TimePeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-certificatemanager-certificate.go b/cloudformation/resources/aws-certificatemanager-certificate.go similarity index 93% rename from cloudformation/aws-certificatemanager-certificate.go rename to cloudformation/resources/aws-certificatemanager-certificate.go index 2ad81cf0c9..1a729d5267 100644 --- a/cloudformation/aws-certificatemanager-certificate.go +++ b/cloudformation/resources/aws-certificatemanager-certificate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCertificateManagerCertificate AWS CloudFormation Resource (AWS::CertificateManager::Certificate) @@ -36,7 +37,7 @@ type AWSCertificateManagerCertificate struct { ValidationMethod string `json:"ValidationMethod,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSCertificateManagerCertificate) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCertificateManagerCertificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCertificateManagerCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSCertificateManagerCertificate) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-certificatemanager-certificate_domainvalidationoption.go b/cloudformation/resources/aws-certificatemanager-certificate_domainvalidationoption.go similarity index 94% rename from cloudformation/aws-certificatemanager-certificate_domainvalidationoption.go rename to cloudformation/resources/aws-certificatemanager-certificate_domainvalidationoption.go index 632b2aa33d..7d24a797ab 100644 --- a/cloudformation/aws-certificatemanager-certificate_domainvalidationoption.go +++ b/cloudformation/resources/aws-certificatemanager-certificate_domainvalidationoption.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCertificateManagerCertificate_DomainValidationOption AWS CloudFormation Resource (AWS::CertificateManager::Certificate.DomainValidationOption) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-certificate-domainvalidationoption.html @@ -15,7 +17,7 @@ type AWSCertificateManagerCertificate_DomainValidationOption struct { ValidationDomain string `json:"ValidationDomain,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCertificateManagerCertificate_DomainValidationOption) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCertificateManagerCertificate_DomainValidationOption) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCertificateManagerCertificate_DomainValidationOption) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloud9-environmentec2.go b/cloudformation/resources/aws-cloud9-environmentec2.go similarity index 92% rename from cloudformation/aws-cloud9-environmentec2.go rename to cloudformation/resources/aws-cloud9-environmentec2.go index c71d1b484f..ccf3484c8b 100644 --- a/cloudformation/aws-cloud9-environmentec2.go +++ b/cloudformation/resources/aws-cloud9-environmentec2.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloud9EnvironmentEC2 AWS CloudFormation Resource (AWS::Cloud9::EnvironmentEC2) @@ -46,7 +47,7 @@ type AWSCloud9EnvironmentEC2 struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSCloud9EnvironmentEC2) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloud9EnvironmentEC2) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloud9EnvironmentEC2) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSCloud9EnvironmentEC2) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloud9-environmentec2_repository.go b/cloudformation/resources/aws-cloud9-environmentec2_repository.go similarity index 94% rename from cloudformation/aws-cloud9-environmentec2_repository.go rename to cloudformation/resources/aws-cloud9-environmentec2_repository.go index e768e344af..033c8d48fd 100644 --- a/cloudformation/aws-cloud9-environmentec2_repository.go +++ b/cloudformation/resources/aws-cloud9-environmentec2_repository.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloud9EnvironmentEC2_Repository AWS CloudFormation Resource (AWS::Cloud9::EnvironmentEC2.Repository) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html @@ -15,7 +17,7 @@ type AWSCloud9EnvironmentEC2_Repository struct { RepositoryUrl string `json:"RepositoryUrl,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloud9EnvironmentEC2_Repository) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloud9EnvironmentEC2_Repository) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloud9EnvironmentEC2_Repository) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudformation-customresource.go b/cloudformation/resources/aws-cloudformation-customresource.go similarity index 91% rename from cloudformation/aws-cloudformation-customresource.go rename to cloudformation/resources/aws-cloudformation-customresource.go index 49ba2064f7..4f9e158620 100644 --- a/cloudformation/aws-cloudformation-customresource.go +++ b/cloudformation/resources/aws-cloudformation-customresource.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFormationCustomResource AWS CloudFormation Resource (AWS::CloudFormation::CustomResource) @@ -16,7 +17,7 @@ type AWSCloudFormationCustomResource struct { ServiceToken string `json:"ServiceToken,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSCloudFormationCustomResource) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFormationCustomResource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFormationCustomResource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSCloudFormationCustomResource) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudformation-macro.go b/cloudformation/resources/aws-cloudformation-macro.go similarity index 91% rename from cloudformation/aws-cloudformation-macro.go rename to cloudformation/resources/aws-cloudformation-macro.go index de16f5b40c..0a20a0102e 100644 --- a/cloudformation/aws-cloudformation-macro.go +++ b/cloudformation/resources/aws-cloudformation-macro.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFormationMacro AWS CloudFormation Resource (AWS::CloudFormation::Macro) @@ -36,7 +37,7 @@ type AWSCloudFormationMacro struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSCloudFormationMacro) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFormationMacro) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFormationMacro) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSCloudFormationMacro) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudformation-stack.go b/cloudformation/resources/aws-cloudformation-stack.go similarity index 91% rename from cloudformation/aws-cloudformation-stack.go rename to cloudformation/resources/aws-cloudformation-stack.go index 6e02155e5c..c6d9c7f235 100644 --- a/cloudformation/aws-cloudformation-stack.go +++ b/cloudformation/resources/aws-cloudformation-stack.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFormationStack AWS CloudFormation Resource (AWS::CloudFormation::Stack) @@ -36,7 +37,7 @@ type AWSCloudFormationStack struct { TimeoutInMinutes int `json:"TimeoutInMinutes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSCloudFormationStack) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFormationStack) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFormationStack) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSCloudFormationStack) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudformation-waitcondition.go b/cloudformation/resources/aws-cloudformation-waitcondition.go similarity index 90% rename from cloudformation/aws-cloudformation-waitcondition.go rename to cloudformation/resources/aws-cloudformation-waitcondition.go index 9fa4ffc977..3de0f116a4 100644 --- a/cloudformation/aws-cloudformation-waitcondition.go +++ b/cloudformation/resources/aws-cloudformation-waitcondition.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFormationWaitCondition AWS CloudFormation Resource (AWS::CloudFormation::WaitCondition) @@ -26,10 +27,10 @@ type AWSCloudFormationWaitCondition struct { Timeout string `json:"Timeout,omitempty"` // _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *CreationPolicy + _creationPolicy *policies.CreationPolicy // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -69,13 +70,13 @@ func (r *AWSCloudFormationWaitCondition) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFormationWaitCondition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFormationWaitCondition) 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 *AWSCloudFormationWaitCondition) SetCreationPolicy(policy *CreationPolicy) { +func (r *AWSCloudFormationWaitCondition) SetCreationPolicy(policy *policies.CreationPolicy) { r._creationPolicy = policy } @@ -86,11 +87,11 @@ func (r AWSCloudFormationWaitCondition) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` - CreationPolicy *CreationPolicy `json:"CreationPolicy,omitempty"` + CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudformation-waitconditionhandle.go b/cloudformation/resources/aws-cloudformation-waitconditionhandle.go similarity index 91% rename from cloudformation/aws-cloudformation-waitconditionhandle.go rename to cloudformation/resources/aws-cloudformation-waitconditionhandle.go index 01f4be30cc..bd747187d0 100644 --- a/cloudformation/aws-cloudformation-waitconditionhandle.go +++ b/cloudformation/resources/aws-cloudformation-waitconditionhandle.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFormationWaitConditionHandle AWS CloudFormation Resource (AWS::CloudFormation::WaitConditionHandle) @@ -11,7 +12,7 @@ import ( type AWSCloudFormationWaitConditionHandle struct { // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -51,7 +52,7 @@ func (r *AWSCloudFormationWaitConditionHandle) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFormationWaitConditionHandle) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFormationWaitConditionHandle) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -62,9 +63,9 @@ func (r AWSCloudFormationWaitConditionHandle) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudfront-cloudfrontoriginaccessidentity.go b/cloudformation/resources/aws-cloudfront-cloudfrontoriginaccessidentity.go similarity index 92% rename from cloudformation/aws-cloudfront-cloudfrontoriginaccessidentity.go rename to cloudformation/resources/aws-cloudfront-cloudfrontoriginaccessidentity.go index f7dd8c9585..bb16b4153e 100644 --- a/cloudformation/aws-cloudfront-cloudfrontoriginaccessidentity.go +++ b/cloudformation/resources/aws-cloudfront-cloudfrontoriginaccessidentity.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFrontCloudFrontOriginAccessIdentity AWS CloudFormation Resource (AWS::CloudFront::CloudFrontOriginAccessIdentity) @@ -16,7 +17,7 @@ type AWSCloudFrontCloudFrontOriginAccessIdentity struct { CloudFrontOriginAccessIdentityConfig *AWSCloudFrontCloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig `json:"CloudFrontOriginAccessIdentityConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSCloudFrontCloudFrontOriginAccessIdentity) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontCloudFrontOriginAccessIdentity) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontCloudFrontOriginAccessIdentity) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSCloudFrontCloudFrontOriginAccessIdentity) MarshalJSON() ([]byte, erro return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go b/cloudformation/resources/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go similarity index 93% rename from cloudformation/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go rename to cloudformation/resources/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go index 2f8875d024..d7d7126a93 100644 --- a/cloudformation/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go +++ b/cloudformation/resources/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontCloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig AWS CloudFormation Resource (AWS::CloudFront::CloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html @@ -10,7 +12,7 @@ type AWSCloudFrontCloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityC Comment string `json:"Comment,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCloudFrontCloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdent // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontCloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontCloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution.go b/cloudformation/resources/aws-cloudfront-distribution.go similarity index 90% rename from cloudformation/aws-cloudfront-distribution.go rename to cloudformation/resources/aws-cloudfront-distribution.go index acd0900859..fcf3ca4454 100644 --- a/cloudformation/aws-cloudfront-distribution.go +++ b/cloudformation/resources/aws-cloudfront-distribution.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFrontDistribution AWS CloudFormation Resource (AWS::CloudFront::Distribution) @@ -21,7 +22,7 @@ type AWSCloudFrontDistribution struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSCloudFrontDistribution) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSCloudFrontDistribution) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudfront-distribution_cachebehavior.go b/cloudformation/resources/aws-cloudfront-distribution_cachebehavior.go similarity index 97% rename from cloudformation/aws-cloudfront-distribution_cachebehavior.go rename to cloudformation/resources/aws-cloudfront-distribution_cachebehavior.go index ec806681c7..afe6fe4b24 100644 --- a/cloudformation/aws-cloudfront-distribution_cachebehavior.go +++ b/cloudformation/resources/aws-cloudfront-distribution_cachebehavior.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_CacheBehavior AWS CloudFormation Resource (AWS::CloudFront::Distribution.CacheBehavior) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html @@ -75,7 +77,7 @@ type AWSCloudFrontDistribution_CacheBehavior struct { ViewerProtocolPolicy string `json:"ViewerProtocolPolicy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -115,6 +117,6 @@ func (r *AWSCloudFrontDistribution_CacheBehavior) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_CacheBehavior) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_CacheBehavior) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_cookies.go b/cloudformation/resources/aws-cloudfront-distribution_cookies.go similarity index 94% rename from cloudformation/aws-cloudfront-distribution_cookies.go rename to cloudformation/resources/aws-cloudfront-distribution_cookies.go index 2dcb7700cb..30e6a2da97 100644 --- a/cloudformation/aws-cloudfront-distribution_cookies.go +++ b/cloudformation/resources/aws-cloudfront-distribution_cookies.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_Cookies AWS CloudFormation Resource (AWS::CloudFront::Distribution.Cookies) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html @@ -15,7 +17,7 @@ type AWSCloudFrontDistribution_Cookies struct { WhitelistedNames []string `json:"WhitelistedNames,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudFrontDistribution_Cookies) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_Cookies) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_Cookies) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_customerrorresponse.go b/cloudformation/resources/aws-cloudfront-distribution_customerrorresponse.go similarity index 95% rename from cloudformation/aws-cloudfront-distribution_customerrorresponse.go rename to cloudformation/resources/aws-cloudfront-distribution_customerrorresponse.go index ac408060af..3d4265f113 100644 --- a/cloudformation/aws-cloudfront-distribution_customerrorresponse.go +++ b/cloudformation/resources/aws-cloudfront-distribution_customerrorresponse.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_CustomErrorResponse AWS CloudFormation Resource (AWS::CloudFront::Distribution.CustomErrorResponse) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html @@ -25,7 +27,7 @@ type AWSCloudFrontDistribution_CustomErrorResponse struct { ResponsePagePath string `json:"ResponsePagePath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSCloudFrontDistribution_CustomErrorResponse) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_CustomErrorResponse) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_CustomErrorResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_customoriginconfig.go b/cloudformation/resources/aws-cloudfront-distribution_customoriginconfig.go similarity index 96% rename from cloudformation/aws-cloudfront-distribution_customoriginconfig.go rename to cloudformation/resources/aws-cloudfront-distribution_customoriginconfig.go index 559f788627..b4e9b61877 100644 --- a/cloudformation/aws-cloudfront-distribution_customoriginconfig.go +++ b/cloudformation/resources/aws-cloudfront-distribution_customoriginconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_CustomOriginConfig AWS CloudFormation Resource (AWS::CloudFront::Distribution.CustomOriginConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html @@ -35,7 +37,7 @@ type AWSCloudFrontDistribution_CustomOriginConfig struct { OriginSSLProtocols []string `json:"OriginSSLProtocols,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSCloudFrontDistribution_CustomOriginConfig) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_CustomOriginConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_CustomOriginConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_defaultcachebehavior.go b/cloudformation/resources/aws-cloudfront-distribution_defaultcachebehavior.go similarity index 97% rename from cloudformation/aws-cloudfront-distribution_defaultcachebehavior.go rename to cloudformation/resources/aws-cloudfront-distribution_defaultcachebehavior.go index ee6217d3da..416df21f34 100644 --- a/cloudformation/aws-cloudfront-distribution_defaultcachebehavior.go +++ b/cloudformation/resources/aws-cloudfront-distribution_defaultcachebehavior.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_DefaultCacheBehavior AWS CloudFormation Resource (AWS::CloudFront::Distribution.DefaultCacheBehavior) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html @@ -70,7 +72,7 @@ type AWSCloudFrontDistribution_DefaultCacheBehavior struct { ViewerProtocolPolicy string `json:"ViewerProtocolPolicy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -110,6 +112,6 @@ func (r *AWSCloudFrontDistribution_DefaultCacheBehavior) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_DefaultCacheBehavior) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_DefaultCacheBehavior) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_distributionconfig.go b/cloudformation/resources/aws-cloudfront-distribution_distributionconfig.go similarity index 97% rename from cloudformation/aws-cloudfront-distribution_distributionconfig.go rename to cloudformation/resources/aws-cloudfront-distribution_distributionconfig.go index c5e6495666..a46eea73d7 100644 --- a/cloudformation/aws-cloudfront-distribution_distributionconfig.go +++ b/cloudformation/resources/aws-cloudfront-distribution_distributionconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_DistributionConfig AWS CloudFormation Resource (AWS::CloudFront::Distribution.DistributionConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html @@ -80,7 +82,7 @@ type AWSCloudFrontDistribution_DistributionConfig struct { WebACLId string `json:"WebACLId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -120,6 +122,6 @@ func (r *AWSCloudFrontDistribution_DistributionConfig) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_DistributionConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_DistributionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_forwardedvalues.go b/cloudformation/resources/aws-cloudfront-distribution_forwardedvalues.go similarity index 95% rename from cloudformation/aws-cloudfront-distribution_forwardedvalues.go rename to cloudformation/resources/aws-cloudfront-distribution_forwardedvalues.go index 616ff2a25b..6f414bdb4b 100644 --- a/cloudformation/aws-cloudfront-distribution_forwardedvalues.go +++ b/cloudformation/resources/aws-cloudfront-distribution_forwardedvalues.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_ForwardedValues AWS CloudFormation Resource (AWS::CloudFront::Distribution.ForwardedValues) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html @@ -25,7 +27,7 @@ type AWSCloudFrontDistribution_ForwardedValues struct { QueryStringCacheKeys []string `json:"QueryStringCacheKeys,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSCloudFrontDistribution_ForwardedValues) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_ForwardedValues) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_ForwardedValues) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_georestriction.go b/cloudformation/resources/aws-cloudfront-distribution_georestriction.go similarity index 94% rename from cloudformation/aws-cloudfront-distribution_georestriction.go rename to cloudformation/resources/aws-cloudfront-distribution_georestriction.go index 47a5247475..7a44186092 100644 --- a/cloudformation/aws-cloudfront-distribution_georestriction.go +++ b/cloudformation/resources/aws-cloudfront-distribution_georestriction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_GeoRestriction AWS CloudFormation Resource (AWS::CloudFront::Distribution.GeoRestriction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html @@ -15,7 +17,7 @@ type AWSCloudFrontDistribution_GeoRestriction struct { RestrictionType string `json:"RestrictionType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudFrontDistribution_GeoRestriction) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_GeoRestriction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_GeoRestriction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_lambdafunctionassociation.go b/cloudformation/resources/aws-cloudfront-distribution_lambdafunctionassociation.go similarity index 94% rename from cloudformation/aws-cloudfront-distribution_lambdafunctionassociation.go rename to cloudformation/resources/aws-cloudfront-distribution_lambdafunctionassociation.go index 996f9148d5..512b300c2d 100644 --- a/cloudformation/aws-cloudfront-distribution_lambdafunctionassociation.go +++ b/cloudformation/resources/aws-cloudfront-distribution_lambdafunctionassociation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_LambdaFunctionAssociation AWS CloudFormation Resource (AWS::CloudFront::Distribution.LambdaFunctionAssociation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html @@ -15,7 +17,7 @@ type AWSCloudFrontDistribution_LambdaFunctionAssociation struct { LambdaFunctionARN string `json:"LambdaFunctionARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudFrontDistribution_LambdaFunctionAssociation) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_LambdaFunctionAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_LambdaFunctionAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_logging.go b/cloudformation/resources/aws-cloudfront-distribution_logging.go similarity index 95% rename from cloudformation/aws-cloudfront-distribution_logging.go rename to cloudformation/resources/aws-cloudfront-distribution_logging.go index e7490092ec..96cc1bff5d 100644 --- a/cloudformation/aws-cloudfront-distribution_logging.go +++ b/cloudformation/resources/aws-cloudfront-distribution_logging.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_Logging AWS CloudFormation Resource (AWS::CloudFront::Distribution.Logging) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html @@ -20,7 +22,7 @@ type AWSCloudFrontDistribution_Logging struct { Prefix string `json:"Prefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCloudFrontDistribution_Logging) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_Logging) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_Logging) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_origin.go b/cloudformation/resources/aws-cloudfront-distribution_origin.go similarity index 96% rename from cloudformation/aws-cloudfront-distribution_origin.go rename to cloudformation/resources/aws-cloudfront-distribution_origin.go index 10b585343e..f2e843ea9e 100644 --- a/cloudformation/aws-cloudfront-distribution_origin.go +++ b/cloudformation/resources/aws-cloudfront-distribution_origin.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_Origin AWS CloudFormation Resource (AWS::CloudFront::Distribution.Origin) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html @@ -35,7 +37,7 @@ type AWSCloudFrontDistribution_Origin struct { S3OriginConfig *AWSCloudFrontDistribution_S3OriginConfig `json:"S3OriginConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSCloudFrontDistribution_Origin) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_Origin) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_Origin) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_origincustomheader.go b/cloudformation/resources/aws-cloudfront-distribution_origincustomheader.go similarity index 94% rename from cloudformation/aws-cloudfront-distribution_origincustomheader.go rename to cloudformation/resources/aws-cloudfront-distribution_origincustomheader.go index 2687f9b300..6804f9f45a 100644 --- a/cloudformation/aws-cloudfront-distribution_origincustomheader.go +++ b/cloudformation/resources/aws-cloudfront-distribution_origincustomheader.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_OriginCustomHeader AWS CloudFormation Resource (AWS::CloudFront::Distribution.OriginCustomHeader) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html @@ -15,7 +17,7 @@ type AWSCloudFrontDistribution_OriginCustomHeader struct { HeaderValue string `json:"HeaderValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudFrontDistribution_OriginCustomHeader) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_OriginCustomHeader) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_OriginCustomHeader) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_restrictions.go b/cloudformation/resources/aws-cloudfront-distribution_restrictions.go similarity index 94% rename from cloudformation/aws-cloudfront-distribution_restrictions.go rename to cloudformation/resources/aws-cloudfront-distribution_restrictions.go index d7c7c2a22e..9a31e2eb84 100644 --- a/cloudformation/aws-cloudfront-distribution_restrictions.go +++ b/cloudformation/resources/aws-cloudfront-distribution_restrictions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_Restrictions AWS CloudFormation Resource (AWS::CloudFront::Distribution.Restrictions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html @@ -10,7 +12,7 @@ type AWSCloudFrontDistribution_Restrictions struct { GeoRestriction *AWSCloudFrontDistribution_GeoRestriction `json:"GeoRestriction,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCloudFrontDistribution_Restrictions) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_Restrictions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_Restrictions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_s3originconfig.go b/cloudformation/resources/aws-cloudfront-distribution_s3originconfig.go similarity index 94% rename from cloudformation/aws-cloudfront-distribution_s3originconfig.go rename to cloudformation/resources/aws-cloudfront-distribution_s3originconfig.go index 6619b3527e..362ec0f62a 100644 --- a/cloudformation/aws-cloudfront-distribution_s3originconfig.go +++ b/cloudformation/resources/aws-cloudfront-distribution_s3originconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_S3OriginConfig AWS CloudFormation Resource (AWS::CloudFront::Distribution.S3OriginConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html @@ -10,7 +12,7 @@ type AWSCloudFrontDistribution_S3OriginConfig struct { OriginAccessIdentity string `json:"OriginAccessIdentity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCloudFrontDistribution_S3OriginConfig) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_S3OriginConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_S3OriginConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-distribution_viewercertificate.go b/cloudformation/resources/aws-cloudfront-distribution_viewercertificate.go similarity index 95% rename from cloudformation/aws-cloudfront-distribution_viewercertificate.go rename to cloudformation/resources/aws-cloudfront-distribution_viewercertificate.go index e2c537a092..ab5f34e3bf 100644 --- a/cloudformation/aws-cloudfront-distribution_viewercertificate.go +++ b/cloudformation/resources/aws-cloudfront-distribution_viewercertificate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontDistribution_ViewerCertificate AWS CloudFormation Resource (AWS::CloudFront::Distribution.ViewerCertificate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html @@ -30,7 +32,7 @@ type AWSCloudFrontDistribution_ViewerCertificate struct { SslSupportMethod string `json:"SslSupportMethod,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSCloudFrontDistribution_ViewerCertificate) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontDistribution_ViewerCertificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontDistribution_ViewerCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-streamingdistribution.go b/cloudformation/resources/aws-cloudfront-streamingdistribution.go similarity index 92% rename from cloudformation/aws-cloudfront-streamingdistribution.go rename to cloudformation/resources/aws-cloudfront-streamingdistribution.go index dd6ff9a7bb..fd0bc41b63 100644 --- a/cloudformation/aws-cloudfront-streamingdistribution.go +++ b/cloudformation/resources/aws-cloudfront-streamingdistribution.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudFrontStreamingDistribution AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution) @@ -21,7 +22,7 @@ type AWSCloudFrontStreamingDistribution struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSCloudFrontStreamingDistribution) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontStreamingDistribution) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontStreamingDistribution) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSCloudFrontStreamingDistribution) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudfront-streamingdistribution_logging.go b/cloudformation/resources/aws-cloudfront-streamingdistribution_logging.go similarity index 94% rename from cloudformation/aws-cloudfront-streamingdistribution_logging.go rename to cloudformation/resources/aws-cloudfront-streamingdistribution_logging.go index 6b3f9701fa..0f81ac9b24 100644 --- a/cloudformation/aws-cloudfront-streamingdistribution_logging.go +++ b/cloudformation/resources/aws-cloudfront-streamingdistribution_logging.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontStreamingDistribution_Logging AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.Logging) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html @@ -20,7 +22,7 @@ type AWSCloudFrontStreamingDistribution_Logging struct { Prefix string `json:"Prefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCloudFrontStreamingDistribution_Logging) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontStreamingDistribution_Logging) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontStreamingDistribution_Logging) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-streamingdistribution_s3origin.go b/cloudformation/resources/aws-cloudfront-streamingdistribution_s3origin.go similarity index 94% rename from cloudformation/aws-cloudfront-streamingdistribution_s3origin.go rename to cloudformation/resources/aws-cloudfront-streamingdistribution_s3origin.go index bab0a4b778..56eafab607 100644 --- a/cloudformation/aws-cloudfront-streamingdistribution_s3origin.go +++ b/cloudformation/resources/aws-cloudfront-streamingdistribution_s3origin.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontStreamingDistribution_S3Origin AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.S3Origin) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html @@ -15,7 +17,7 @@ type AWSCloudFrontStreamingDistribution_S3Origin struct { OriginAccessIdentity string `json:"OriginAccessIdentity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudFrontStreamingDistribution_S3Origin) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontStreamingDistribution_S3Origin) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontStreamingDistribution_S3Origin) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go b/cloudformation/resources/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go similarity index 96% rename from cloudformation/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go rename to cloudformation/resources/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go index 991d77d234..1c24440432 100644 --- a/cloudformation/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go +++ b/cloudformation/resources/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontStreamingDistribution_StreamingDistributionConfig AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.StreamingDistributionConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html @@ -40,7 +42,7 @@ type AWSCloudFrontStreamingDistribution_StreamingDistributionConfig struct { TrustedSigners *AWSCloudFrontStreamingDistribution_TrustedSigners `json:"TrustedSigners,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSCloudFrontStreamingDistribution_StreamingDistributionConfig) SetMeta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontStreamingDistribution_StreamingDistributionConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontStreamingDistribution_StreamingDistributionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudfront-streamingdistribution_trustedsigners.go b/cloudformation/resources/aws-cloudfront-streamingdistribution_trustedsigners.go similarity index 94% rename from cloudformation/aws-cloudfront-streamingdistribution_trustedsigners.go rename to cloudformation/resources/aws-cloudfront-streamingdistribution_trustedsigners.go index 4b804745c1..6927220c50 100644 --- a/cloudformation/aws-cloudfront-streamingdistribution_trustedsigners.go +++ b/cloudformation/resources/aws-cloudfront-streamingdistribution_trustedsigners.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudFrontStreamingDistribution_TrustedSigners AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.TrustedSigners) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html @@ -15,7 +17,7 @@ type AWSCloudFrontStreamingDistribution_TrustedSigners struct { Enabled bool `json:"Enabled"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudFrontStreamingDistribution_TrustedSigners) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudFrontStreamingDistribution_TrustedSigners) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudFrontStreamingDistribution_TrustedSigners) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudtrail-trail.go b/cloudformation/resources/aws-cloudtrail-trail.go similarity index 94% rename from cloudformation/aws-cloudtrail-trail.go rename to cloudformation/resources/aws-cloudtrail-trail.go index fe41419664..b63700db5f 100644 --- a/cloudformation/aws-cloudtrail-trail.go +++ b/cloudformation/resources/aws-cloudtrail-trail.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudTrailTrail AWS CloudFormation Resource (AWS::CloudTrail::Trail) @@ -76,7 +77,7 @@ type AWSCloudTrailTrail struct { TrailName string `json:"TrailName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -116,7 +117,7 @@ func (r *AWSCloudTrailTrail) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudTrailTrail) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudTrailTrail) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -127,9 +128,9 @@ func (r AWSCloudTrailTrail) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudtrail-trail_dataresource.go b/cloudformation/resources/aws-cloudtrail-trail_dataresource.go similarity index 94% rename from cloudformation/aws-cloudtrail-trail_dataresource.go rename to cloudformation/resources/aws-cloudtrail-trail_dataresource.go index a95fdb0b4c..f2d90e47a4 100644 --- a/cloudformation/aws-cloudtrail-trail_dataresource.go +++ b/cloudformation/resources/aws-cloudtrail-trail_dataresource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudTrailTrail_DataResource AWS CloudFormation Resource (AWS::CloudTrail::Trail.DataResource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html @@ -15,7 +17,7 @@ type AWSCloudTrailTrail_DataResource struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudTrailTrail_DataResource) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudTrailTrail_DataResource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudTrailTrail_DataResource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudtrail-trail_eventselector.go b/cloudformation/resources/aws-cloudtrail-trail_eventselector.go similarity index 95% rename from cloudformation/aws-cloudtrail-trail_eventselector.go rename to cloudformation/resources/aws-cloudtrail-trail_eventselector.go index ba4711b200..22e77702ac 100644 --- a/cloudformation/aws-cloudtrail-trail_eventselector.go +++ b/cloudformation/resources/aws-cloudtrail-trail_eventselector.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudTrailTrail_EventSelector AWS CloudFormation Resource (AWS::CloudTrail::Trail.EventSelector) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html @@ -20,7 +22,7 @@ type AWSCloudTrailTrail_EventSelector struct { ReadWriteType string `json:"ReadWriteType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCloudTrailTrail_EventSelector) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudTrailTrail_EventSelector) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudTrailTrail_EventSelector) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudwatch-alarm.go b/cloudformation/resources/aws-cloudwatch-alarm.go similarity index 95% rename from cloudformation/aws-cloudwatch-alarm.go rename to cloudformation/resources/aws-cloudwatch-alarm.go index 440ff9f330..3ffda4bf32 100644 --- a/cloudformation/aws-cloudwatch-alarm.go +++ b/cloudformation/resources/aws-cloudwatch-alarm.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudWatchAlarm AWS CloudFormation Resource (AWS::CloudWatch::Alarm) @@ -111,7 +112,7 @@ type AWSCloudWatchAlarm struct { Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -151,7 +152,7 @@ func (r *AWSCloudWatchAlarm) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudWatchAlarm) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudWatchAlarm) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -162,9 +163,9 @@ func (r AWSCloudWatchAlarm) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cloudwatch-alarm_dimension.go b/cloudformation/resources/aws-cloudwatch-alarm_dimension.go similarity index 94% rename from cloudformation/aws-cloudwatch-alarm_dimension.go rename to cloudformation/resources/aws-cloudwatch-alarm_dimension.go index e6bf1a69a3..9afd74755c 100644 --- a/cloudformation/aws-cloudwatch-alarm_dimension.go +++ b/cloudformation/resources/aws-cloudwatch-alarm_dimension.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudWatchAlarm_Dimension AWS CloudFormation Resource (AWS::CloudWatch::Alarm.Dimension) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html @@ -15,7 +17,7 @@ type AWSCloudWatchAlarm_Dimension struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCloudWatchAlarm_Dimension) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudWatchAlarm_Dimension) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudWatchAlarm_Dimension) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudwatch-alarm_metric.go b/cloudformation/resources/aws-cloudwatch-alarm_metric.go similarity index 93% rename from cloudformation/aws-cloudwatch-alarm_metric.go rename to cloudformation/resources/aws-cloudwatch-alarm_metric.go index eae602637a..33ca064b0d 100644 --- a/cloudformation/aws-cloudwatch-alarm_metric.go +++ b/cloudformation/resources/aws-cloudwatch-alarm_metric.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudWatchAlarm_Metric AWS CloudFormation Resource (AWS::CloudWatch::Alarm.Metric) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html @@ -20,7 +22,7 @@ type AWSCloudWatchAlarm_Metric struct { Namespace string `json:"Namespace,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCloudWatchAlarm_Metric) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudWatchAlarm_Metric) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudWatchAlarm_Metric) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudwatch-alarm_metricdataquery.go b/cloudformation/resources/aws-cloudwatch-alarm_metricdataquery.go similarity index 95% rename from cloudformation/aws-cloudwatch-alarm_metricdataquery.go rename to cloudformation/resources/aws-cloudwatch-alarm_metricdataquery.go index 3ed0d719c3..9081f51928 100644 --- a/cloudformation/aws-cloudwatch-alarm_metricdataquery.go +++ b/cloudformation/resources/aws-cloudwatch-alarm_metricdataquery.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudWatchAlarm_MetricDataQuery AWS CloudFormation Resource (AWS::CloudWatch::Alarm.MetricDataQuery) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html @@ -30,7 +32,7 @@ type AWSCloudWatchAlarm_MetricDataQuery struct { ReturnData bool `json:"ReturnData,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSCloudWatchAlarm_MetricDataQuery) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudWatchAlarm_MetricDataQuery) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudWatchAlarm_MetricDataQuery) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudwatch-alarm_metricstat.go b/cloudformation/resources/aws-cloudwatch-alarm_metricstat.go similarity index 95% rename from cloudformation/aws-cloudwatch-alarm_metricstat.go rename to cloudformation/resources/aws-cloudwatch-alarm_metricstat.go index ccf17140af..ffed9ffd13 100644 --- a/cloudformation/aws-cloudwatch-alarm_metricstat.go +++ b/cloudformation/resources/aws-cloudwatch-alarm_metricstat.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCloudWatchAlarm_MetricStat AWS CloudFormation Resource (AWS::CloudWatch::Alarm.MetricStat) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html @@ -25,7 +27,7 @@ type AWSCloudWatchAlarm_MetricStat struct { Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSCloudWatchAlarm_MetricStat) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudWatchAlarm_MetricStat) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudWatchAlarm_MetricStat) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cloudwatch-dashboard.go b/cloudformation/resources/aws-cloudwatch-dashboard.go similarity index 90% rename from cloudformation/aws-cloudwatch-dashboard.go rename to cloudformation/resources/aws-cloudwatch-dashboard.go index 3ef3a145d4..bc83b0bc79 100644 --- a/cloudformation/aws-cloudwatch-dashboard.go +++ b/cloudformation/resources/aws-cloudwatch-dashboard.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCloudWatchDashboard AWS CloudFormation Resource (AWS::CloudWatch::Dashboard) @@ -21,7 +22,7 @@ type AWSCloudWatchDashboard struct { DashboardName string `json:"DashboardName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSCloudWatchDashboard) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCloudWatchDashboard) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCloudWatchDashboard) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSCloudWatchDashboard) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codebuild-project.go b/cloudformation/resources/aws-codebuild-project.go similarity index 95% rename from cloudformation/aws-codebuild-project.go rename to cloudformation/resources/aws-codebuild-project.go index 03ccf80b99..02c92fa400 100644 --- a/cloudformation/aws-codebuild-project.go +++ b/cloudformation/resources/aws-codebuild-project.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodeBuildProject AWS CloudFormation Resource (AWS::CodeBuild::Project) @@ -96,7 +97,7 @@ type AWSCodeBuildProject struct { VpcConfig *AWSCodeBuildProject_VpcConfig `json:"VpcConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -136,7 +137,7 @@ func (r *AWSCodeBuildProject) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -147,9 +148,9 @@ func (r AWSCodeBuildProject) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codebuild-project_artifacts.go b/cloudformation/resources/aws-codebuild-project_artifacts.go similarity index 96% rename from cloudformation/aws-codebuild-project_artifacts.go rename to cloudformation/resources/aws-codebuild-project_artifacts.go index a59aa5b0b0..f63e77058f 100644 --- a/cloudformation/aws-codebuild-project_artifacts.go +++ b/cloudformation/resources/aws-codebuild-project_artifacts.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_Artifacts AWS CloudFormation Resource (AWS::CodeBuild::Project.Artifacts) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html @@ -50,7 +52,7 @@ type AWSCodeBuildProject_Artifacts struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -90,6 +92,6 @@ func (r *AWSCodeBuildProject_Artifacts) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_Artifacts) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_Artifacts) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_cloudwatchlogsconfig.go b/cloudformation/resources/aws-codebuild-project_cloudwatchlogsconfig.go similarity index 94% rename from cloudformation/aws-codebuild-project_cloudwatchlogsconfig.go rename to cloudformation/resources/aws-codebuild-project_cloudwatchlogsconfig.go index f4211b8ae9..b37447dfc8 100644 --- a/cloudformation/aws-codebuild-project_cloudwatchlogsconfig.go +++ b/cloudformation/resources/aws-codebuild-project_cloudwatchlogsconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_CloudWatchLogsConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.CloudWatchLogsConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html @@ -20,7 +22,7 @@ type AWSCodeBuildProject_CloudWatchLogsConfig struct { StreamName string `json:"StreamName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeBuildProject_CloudWatchLogsConfig) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_CloudWatchLogsConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_CloudWatchLogsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_environment.go b/cloudformation/resources/aws-codebuild-project_environment.go similarity index 96% rename from cloudformation/aws-codebuild-project_environment.go rename to cloudformation/resources/aws-codebuild-project_environment.go index 14aceb8043..ba925ec833 100644 --- a/cloudformation/aws-codebuild-project_environment.go +++ b/cloudformation/resources/aws-codebuild-project_environment.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_Environment AWS CloudFormation Resource (AWS::CodeBuild::Project.Environment) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html @@ -45,7 +47,7 @@ type AWSCodeBuildProject_Environment struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSCodeBuildProject_Environment) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_Environment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_environmentvariable.go b/cloudformation/resources/aws-codebuild-project_environmentvariable.go similarity index 94% rename from cloudformation/aws-codebuild-project_environmentvariable.go rename to cloudformation/resources/aws-codebuild-project_environmentvariable.go index 1886c72178..3bc6320d43 100644 --- a/cloudformation/aws-codebuild-project_environmentvariable.go +++ b/cloudformation/resources/aws-codebuild-project_environmentvariable.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_EnvironmentVariable AWS CloudFormation Resource (AWS::CodeBuild::Project.EnvironmentVariable) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html @@ -20,7 +22,7 @@ type AWSCodeBuildProject_EnvironmentVariable struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeBuildProject_EnvironmentVariable) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_EnvironmentVariable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_EnvironmentVariable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_filtergroup.go b/cloudformation/resources/aws-codebuild-project_filtergroup.go similarity index 93% rename from cloudformation/aws-codebuild-project_filtergroup.go rename to cloudformation/resources/aws-codebuild-project_filtergroup.go index ed91bfa3a7..f78990ee09 100644 --- a/cloudformation/aws-codebuild-project_filtergroup.go +++ b/cloudformation/resources/aws-codebuild-project_filtergroup.go @@ -1,11 +1,13 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_FilterGroup AWS CloudFormation Resource (AWS::CodeBuild::Project.FilterGroup) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-filtergroup.html type AWSCodeBuildProject_FilterGroup struct { // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -45,6 +47,6 @@ func (r *AWSCodeBuildProject_FilterGroup) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_FilterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_FilterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_logsconfig.go b/cloudformation/resources/aws-codebuild-project_logsconfig.go similarity index 94% rename from cloudformation/aws-codebuild-project_logsconfig.go rename to cloudformation/resources/aws-codebuild-project_logsconfig.go index 06199db575..32f2ea3984 100644 --- a/cloudformation/aws-codebuild-project_logsconfig.go +++ b/cloudformation/resources/aws-codebuild-project_logsconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_LogsConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.LogsConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html @@ -15,7 +17,7 @@ type AWSCodeBuildProject_LogsConfig struct { S3Logs *AWSCodeBuildProject_S3LogsConfig `json:"S3Logs,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeBuildProject_LogsConfig) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_LogsConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_LogsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_projectcache.go b/cloudformation/resources/aws-codebuild-project_projectcache.go similarity index 94% rename from cloudformation/aws-codebuild-project_projectcache.go rename to cloudformation/resources/aws-codebuild-project_projectcache.go index f939e31bab..66bd3b4050 100644 --- a/cloudformation/aws-codebuild-project_projectcache.go +++ b/cloudformation/resources/aws-codebuild-project_projectcache.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_ProjectCache AWS CloudFormation Resource (AWS::CodeBuild::Project.ProjectCache) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html @@ -20,7 +22,7 @@ type AWSCodeBuildProject_ProjectCache struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeBuildProject_ProjectCache) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_ProjectCache) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_ProjectCache) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_projecttriggers.go b/cloudformation/resources/aws-codebuild-project_projecttriggers.go similarity index 94% rename from cloudformation/aws-codebuild-project_projecttriggers.go rename to cloudformation/resources/aws-codebuild-project_projecttriggers.go index b8c7b05dee..8a3696d017 100644 --- a/cloudformation/aws-codebuild-project_projecttriggers.go +++ b/cloudformation/resources/aws-codebuild-project_projecttriggers.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_ProjectTriggers AWS CloudFormation Resource (AWS::CodeBuild::Project.ProjectTriggers) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html @@ -15,7 +17,7 @@ type AWSCodeBuildProject_ProjectTriggers struct { Webhook bool `json:"Webhook,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeBuildProject_ProjectTriggers) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_ProjectTriggers) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_ProjectTriggers) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_registrycredential.go b/cloudformation/resources/aws-codebuild-project_registrycredential.go similarity index 94% rename from cloudformation/aws-codebuild-project_registrycredential.go rename to cloudformation/resources/aws-codebuild-project_registrycredential.go index 2d7a73b1f7..bd32253af7 100644 --- a/cloudformation/aws-codebuild-project_registrycredential.go +++ b/cloudformation/resources/aws-codebuild-project_registrycredential.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_RegistryCredential AWS CloudFormation Resource (AWS::CodeBuild::Project.RegistryCredential) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html @@ -15,7 +17,7 @@ type AWSCodeBuildProject_RegistryCredential struct { CredentialProvider string `json:"CredentialProvider,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeBuildProject_RegistryCredential) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_RegistryCredential) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_RegistryCredential) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_s3logsconfig.go b/cloudformation/resources/aws-codebuild-project_s3logsconfig.go similarity index 94% rename from cloudformation/aws-codebuild-project_s3logsconfig.go rename to cloudformation/resources/aws-codebuild-project_s3logsconfig.go index 57d5e2afc4..7ab60ca7b7 100644 --- a/cloudformation/aws-codebuild-project_s3logsconfig.go +++ b/cloudformation/resources/aws-codebuild-project_s3logsconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_S3LogsConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.S3LogsConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html @@ -15,7 +17,7 @@ type AWSCodeBuildProject_S3LogsConfig struct { Status string `json:"Status,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeBuildProject_S3LogsConfig) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_S3LogsConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_S3LogsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_source.go b/cloudformation/resources/aws-codebuild-project_source.go similarity index 95% rename from cloudformation/aws-codebuild-project_source.go rename to cloudformation/resources/aws-codebuild-project_source.go index 48103b7595..55aa136392 100644 --- a/cloudformation/aws-codebuild-project_source.go +++ b/cloudformation/resources/aws-codebuild-project_source.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_Source AWS CloudFormation Resource (AWS::CodeBuild::Project.Source) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html @@ -45,7 +47,7 @@ type AWSCodeBuildProject_Source struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSCodeBuildProject_Source) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_Source) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_sourceauth.go b/cloudformation/resources/aws-codebuild-project_sourceauth.go similarity index 94% rename from cloudformation/aws-codebuild-project_sourceauth.go rename to cloudformation/resources/aws-codebuild-project_sourceauth.go index 1816d17517..dce20ce804 100644 --- a/cloudformation/aws-codebuild-project_sourceauth.go +++ b/cloudformation/resources/aws-codebuild-project_sourceauth.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_SourceAuth AWS CloudFormation Resource (AWS::CodeBuild::Project.SourceAuth) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html @@ -15,7 +17,7 @@ type AWSCodeBuildProject_SourceAuth struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeBuildProject_SourceAuth) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_SourceAuth) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_SourceAuth) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_vpcconfig.go b/cloudformation/resources/aws-codebuild-project_vpcconfig.go similarity index 95% rename from cloudformation/aws-codebuild-project_vpcconfig.go rename to cloudformation/resources/aws-codebuild-project_vpcconfig.go index 5ef856328a..bf27ddf995 100644 --- a/cloudformation/aws-codebuild-project_vpcconfig.go +++ b/cloudformation/resources/aws-codebuild-project_vpcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_VpcConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.VpcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html @@ -20,7 +22,7 @@ type AWSCodeBuildProject_VpcConfig struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeBuildProject_VpcConfig) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_VpcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codebuild-project_webhookfilter.go b/cloudformation/resources/aws-codebuild-project_webhookfilter.go similarity index 95% rename from cloudformation/aws-codebuild-project_webhookfilter.go rename to cloudformation/resources/aws-codebuild-project_webhookfilter.go index 788862f096..eec8364098 100644 --- a/cloudformation/aws-codebuild-project_webhookfilter.go +++ b/cloudformation/resources/aws-codebuild-project_webhookfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeBuildProject_WebhookFilter AWS CloudFormation Resource (AWS::CodeBuild::Project.WebhookFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html @@ -20,7 +22,7 @@ type AWSCodeBuildProject_WebhookFilter struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeBuildProject_WebhookFilter) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeBuildProject_WebhookFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeBuildProject_WebhookFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codecommit-repository.go b/cloudformation/resources/aws-codecommit-repository.go similarity index 91% rename from cloudformation/aws-codecommit-repository.go rename to cloudformation/resources/aws-codecommit-repository.go index c45e30f9cc..01da2f8298 100644 --- a/cloudformation/aws-codecommit-repository.go +++ b/cloudformation/resources/aws-codecommit-repository.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodeCommitRepository AWS CloudFormation Resource (AWS::CodeCommit::Repository) @@ -26,7 +27,7 @@ type AWSCodeCommitRepository struct { Triggers []AWSCodeCommitRepository_RepositoryTrigger `json:"Triggers,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSCodeCommitRepository) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeCommitRepository) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeCommitRepository) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSCodeCommitRepository) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codecommit-repository_repositorytrigger.go b/cloudformation/resources/aws-codecommit-repository_repositorytrigger.go similarity index 95% rename from cloudformation/aws-codecommit-repository_repositorytrigger.go rename to cloudformation/resources/aws-codecommit-repository_repositorytrigger.go index 4e18386589..f260b3d3c2 100644 --- a/cloudformation/aws-codecommit-repository_repositorytrigger.go +++ b/cloudformation/resources/aws-codecommit-repository_repositorytrigger.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeCommitRepository_RepositoryTrigger AWS CloudFormation Resource (AWS::CodeCommit::Repository.RepositoryTrigger) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html @@ -30,7 +32,7 @@ type AWSCodeCommitRepository_RepositoryTrigger struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSCodeCommitRepository_RepositoryTrigger) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeCommitRepository_RepositoryTrigger) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeCommitRepository_RepositoryTrigger) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-application.go b/cloudformation/resources/aws-codedeploy-application.go similarity index 90% rename from cloudformation/aws-codedeploy-application.go rename to cloudformation/resources/aws-codedeploy-application.go index c35aea9c38..21f77e93bc 100644 --- a/cloudformation/aws-codedeploy-application.go +++ b/cloudformation/resources/aws-codedeploy-application.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodeDeployApplication AWS CloudFormation Resource (AWS::CodeDeploy::Application) @@ -21,7 +22,7 @@ type AWSCodeDeployApplication struct { ComputePlatform string `json:"ComputePlatform,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSCodeDeployApplication) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployApplication) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSCodeDeployApplication) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codedeploy-deploymentconfig.go b/cloudformation/resources/aws-codedeploy-deploymentconfig.go similarity index 92% rename from cloudformation/aws-codedeploy-deploymentconfig.go rename to cloudformation/resources/aws-codedeploy-deploymentconfig.go index dbd613970b..0b20e133cb 100644 --- a/cloudformation/aws-codedeploy-deploymentconfig.go +++ b/cloudformation/resources/aws-codedeploy-deploymentconfig.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodeDeployDeploymentConfig AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentConfig) @@ -21,7 +22,7 @@ type AWSCodeDeployDeploymentConfig struct { MinimumHealthyHosts *AWSCodeDeployDeploymentConfig_MinimumHealthyHosts `json:"MinimumHealthyHosts,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSCodeDeployDeploymentConfig) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSCodeDeployDeploymentConfig) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go b/cloudformation/resources/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go rename to cloudformation/resources/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go index 0238bd3536..59177e6cb0 100644 --- a/cloudformation/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go +++ b/cloudformation/resources/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentConfig_MinimumHealthyHosts AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentConfig.MinimumHealthyHosts) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html @@ -15,7 +17,7 @@ type AWSCodeDeployDeploymentConfig_MinimumHealthyHosts struct { Value int `json:"Value"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeDeployDeploymentConfig_MinimumHealthyHosts) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentConfig_MinimumHealthyHosts) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentConfig_MinimumHealthyHosts) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup.go b/cloudformation/resources/aws-codedeploy-deploymentgroup.go similarity index 95% rename from cloudformation/aws-codedeploy-deploymentgroup.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup.go index 7a2606e387..4586a1955c 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodeDeployDeploymentGroup AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup) @@ -86,7 +87,7 @@ type AWSCodeDeployDeploymentGroup struct { TriggerConfigurations []AWSCodeDeployDeploymentGroup_TriggerConfig `json:"TriggerConfigurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -126,7 +127,7 @@ func (r *AWSCodeDeployDeploymentGroup) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -137,9 +138,9 @@ func (r AWSCodeDeployDeploymentGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codedeploy-deploymentgroup_alarm.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_alarm.go similarity index 93% rename from cloudformation/aws-codedeploy-deploymentgroup_alarm.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_alarm.go index 2f17ab803d..ebe718369d 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_alarm.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_alarm.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_Alarm AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.Alarm) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarm.html @@ -10,7 +12,7 @@ type AWSCodeDeployDeploymentGroup_Alarm struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodeDeployDeploymentGroup_Alarm) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_Alarm) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_Alarm) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_alarmconfiguration.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_alarmconfiguration.go similarity index 95% rename from cloudformation/aws-codedeploy-deploymentgroup_alarmconfiguration.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_alarmconfiguration.go index c02b6e7d9f..bedda13e54 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_alarmconfiguration.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_alarmconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_AlarmConfiguration AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.AlarmConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarmconfiguration.html @@ -20,7 +22,7 @@ type AWSCodeDeployDeploymentGroup_AlarmConfiguration struct { IgnorePollAlarmFailure bool `json:"IgnorePollAlarmFailure,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeDeployDeploymentGroup_AlarmConfiguration) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_AlarmConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_AlarmConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go index e469bfc04a..450ccee209 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_AutoRollbackConfiguration AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.AutoRollbackConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-autorollbackconfiguration.html @@ -15,7 +17,7 @@ type AWSCodeDeployDeploymentGroup_AutoRollbackConfiguration struct { Events []string `json:"Events,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeDeployDeploymentGroup_AutoRollbackConfiguration) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_AutoRollbackConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_AutoRollbackConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_deployment.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_deployment.go similarity index 95% rename from cloudformation/aws-codedeploy-deploymentgroup_deployment.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_deployment.go index 6c67cada42..959b64959f 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_deployment.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_deployment.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_Deployment AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.Deployment) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html @@ -20,7 +22,7 @@ type AWSCodeDeployDeploymentGroup_Deployment struct { Revision *AWSCodeDeployDeploymentGroup_RevisionLocation `json:"Revision,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeDeployDeploymentGroup_Deployment) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_Deployment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_Deployment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_deploymentstyle.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_deploymentstyle.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_deploymentstyle.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_deploymentstyle.go index 087f25bad3..b27fab6c5e 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_deploymentstyle.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_deploymentstyle.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_DeploymentStyle AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.DeploymentStyle) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html @@ -15,7 +17,7 @@ type AWSCodeDeployDeploymentGroup_DeploymentStyle struct { DeploymentType string `json:"DeploymentType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeDeployDeploymentGroup_DeploymentStyle) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_DeploymentStyle) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_DeploymentStyle) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_ec2tagfilter.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagfilter.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_ec2tagfilter.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagfilter.go index 73129467b0..626c6bf883 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_ec2tagfilter.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_EC2TagFilter AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.EC2TagFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilter.html @@ -20,7 +22,7 @@ type AWSCodeDeployDeploymentGroup_EC2TagFilter struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeDeployDeploymentGroup_EC2TagFilter) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_EC2TagFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_EC2TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_ec2tagset.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagset.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_ec2tagset.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagset.go index 508814e3cb..86e5b9d2b0 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_ec2tagset.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagset.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_EC2TagSet AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.EC2TagSet) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagset.html @@ -10,7 +12,7 @@ type AWSCodeDeployDeploymentGroup_EC2TagSet struct { Ec2TagSetList []AWSCodeDeployDeploymentGroup_EC2TagSetListObject `json:"Ec2TagSetList,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodeDeployDeploymentGroup_EC2TagSet) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_EC2TagSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_EC2TagSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go similarity index 93% rename from cloudformation/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go index f2d2a76ccf..9591483d50 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_EC2TagSetListObject AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.EC2TagSetListObject) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagsetlistobject.html @@ -10,7 +12,7 @@ type AWSCodeDeployDeploymentGroup_EC2TagSetListObject struct { Ec2TagGroup []AWSCodeDeployDeploymentGroup_EC2TagFilter `json:"Ec2TagGroup,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodeDeployDeploymentGroup_EC2TagSetListObject) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_EC2TagSetListObject) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_EC2TagSetListObject) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_elbinfo.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_elbinfo.go similarity index 93% rename from cloudformation/aws-codedeploy-deploymentgroup_elbinfo.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_elbinfo.go index 80f5d5186d..9efcb14897 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_elbinfo.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_elbinfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_ELBInfo AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.ELBInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-elbinfo.html @@ -10,7 +12,7 @@ type AWSCodeDeployDeploymentGroup_ELBInfo struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodeDeployDeploymentGroup_ELBInfo) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_ELBInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_ELBInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_githublocation.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_githublocation.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_githublocation.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_githublocation.go index 4febd02a7a..792d82fb0c 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_githublocation.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_githublocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_GitHubLocation AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.GitHubLocation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html @@ -15,7 +17,7 @@ type AWSCodeDeployDeploymentGroup_GitHubLocation struct { Repository string `json:"Repository,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeDeployDeploymentGroup_GitHubLocation) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_GitHubLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_GitHubLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_loadbalancerinfo.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_loadbalancerinfo.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_loadbalancerinfo.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_loadbalancerinfo.go index e28068ece8..4c9e81d7fc 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_loadbalancerinfo.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_loadbalancerinfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_LoadBalancerInfo AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.LoadBalancerInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-loadbalancerinfo.html @@ -15,7 +17,7 @@ type AWSCodeDeployDeploymentGroup_LoadBalancerInfo struct { TargetGroupInfoList []AWSCodeDeployDeploymentGroup_TargetGroupInfo `json:"TargetGroupInfoList,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodeDeployDeploymentGroup_LoadBalancerInfo) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_LoadBalancerInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_LoadBalancerInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_onpremisestagset.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_onpremisestagset.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_onpremisestagset.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_onpremisestagset.go index 99e0ea98cd..5a5e7392c8 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_onpremisestagset.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_onpremisestagset.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_OnPremisesTagSet AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSet) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagset.html @@ -10,7 +12,7 @@ type AWSCodeDeployDeploymentGroup_OnPremisesTagSet struct { OnPremisesTagSetList []AWSCodeDeployDeploymentGroup_OnPremisesTagSetListObject `json:"OnPremisesTagSetList,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodeDeployDeploymentGroup_OnPremisesTagSet) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_OnPremisesTagSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_OnPremisesTagSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go similarity index 93% rename from cloudformation/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go index 60f8406756..0f53d2f558 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_OnPremisesTagSetListObject AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSetListObject) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagsetlistobject.html @@ -10,7 +12,7 @@ type AWSCodeDeployDeploymentGroup_OnPremisesTagSetListObject struct { OnPremisesTagGroup []AWSCodeDeployDeploymentGroup_TagFilter `json:"OnPremisesTagGroup,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodeDeployDeploymentGroup_OnPremisesTagSetListObject) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_OnPremisesTagSetListObject) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_OnPremisesTagSetListObject) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_revisionlocation.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_revisionlocation.go similarity index 95% rename from cloudformation/aws-codedeploy-deploymentgroup_revisionlocation.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_revisionlocation.go index 22f207b98d..02c6c311c6 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_revisionlocation.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_revisionlocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_RevisionLocation AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.RevisionLocation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html @@ -20,7 +22,7 @@ type AWSCodeDeployDeploymentGroup_RevisionLocation struct { S3Location *AWSCodeDeployDeploymentGroup_S3Location `json:"S3Location,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeDeployDeploymentGroup_RevisionLocation) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_RevisionLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_RevisionLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_s3location.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_s3location.go similarity index 95% rename from cloudformation/aws-codedeploy-deploymentgroup_s3location.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_s3location.go index 01326707bc..4f88ab6c4c 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_s3location.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_s3location.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_S3Location AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.S3Location) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html @@ -30,7 +32,7 @@ type AWSCodeDeployDeploymentGroup_S3Location struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSCodeDeployDeploymentGroup_S3Location) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_S3Location) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_tagfilter.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_tagfilter.go similarity index 94% rename from cloudformation/aws-codedeploy-deploymentgroup_tagfilter.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_tagfilter.go index dba7931eb0..3131a88cf4 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_tagfilter.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_tagfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_TagFilter AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.TagFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-tagfilter.html @@ -20,7 +22,7 @@ type AWSCodeDeployDeploymentGroup_TagFilter struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeDeployDeploymentGroup_TagFilter) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_TagFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_targetgroupinfo.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_targetgroupinfo.go similarity index 93% rename from cloudformation/aws-codedeploy-deploymentgroup_targetgroupinfo.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_targetgroupinfo.go index 9cd31ef749..d2d3dbd1d8 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_targetgroupinfo.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_targetgroupinfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_TargetGroupInfo AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.TargetGroupInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-targetgroupinfo.html @@ -10,7 +12,7 @@ type AWSCodeDeployDeploymentGroup_TargetGroupInfo struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodeDeployDeploymentGroup_TargetGroupInfo) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_TargetGroupInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_TargetGroupInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codedeploy-deploymentgroup_triggerconfig.go b/cloudformation/resources/aws-codedeploy-deploymentgroup_triggerconfig.go similarity index 95% rename from cloudformation/aws-codedeploy-deploymentgroup_triggerconfig.go rename to cloudformation/resources/aws-codedeploy-deploymentgroup_triggerconfig.go index 3582d4f5ca..6bfd061f24 100644 --- a/cloudformation/aws-codedeploy-deploymentgroup_triggerconfig.go +++ b/cloudformation/resources/aws-codedeploy-deploymentgroup_triggerconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodeDeployDeploymentGroup_TriggerConfig AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.TriggerConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html @@ -20,7 +22,7 @@ type AWSCodeDeployDeploymentGroup_TriggerConfig struct { TriggerTargetArn string `json:"TriggerTargetArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodeDeployDeploymentGroup_TriggerConfig) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodeDeployDeploymentGroup_TriggerConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodeDeployDeploymentGroup_TriggerConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-customactiontype.go b/cloudformation/resources/aws-codepipeline-customactiontype.go similarity index 94% rename from cloudformation/aws-codepipeline-customactiontype.go rename to cloudformation/resources/aws-codepipeline-customactiontype.go index 60afdaf3ef..6a948b00ac 100644 --- a/cloudformation/aws-codepipeline-customactiontype.go +++ b/cloudformation/resources/aws-codepipeline-customactiontype.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodePipelineCustomActionType AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType) @@ -46,7 +47,7 @@ type AWSCodePipelineCustomActionType struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSCodePipelineCustomActionType) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelineCustomActionType) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelineCustomActionType) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSCodePipelineCustomActionType) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codepipeline-customactiontype_artifactdetails.go b/cloudformation/resources/aws-codepipeline-customactiontype_artifactdetails.go similarity index 94% rename from cloudformation/aws-codepipeline-customactiontype_artifactdetails.go rename to cloudformation/resources/aws-codepipeline-customactiontype_artifactdetails.go index a803da2ad2..b1d925fb28 100644 --- a/cloudformation/aws-codepipeline-customactiontype_artifactdetails.go +++ b/cloudformation/resources/aws-codepipeline-customactiontype_artifactdetails.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelineCustomActionType_ArtifactDetails AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType.ArtifactDetails) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-artifactdetails.html @@ -15,7 +17,7 @@ type AWSCodePipelineCustomActionType_ArtifactDetails struct { MinimumCount int `json:"MinimumCount"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodePipelineCustomActionType_ArtifactDetails) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelineCustomActionType_ArtifactDetails) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelineCustomActionType_ArtifactDetails) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-customactiontype_configurationproperties.go b/cloudformation/resources/aws-codepipeline-customactiontype_configurationproperties.go similarity index 96% rename from cloudformation/aws-codepipeline-customactiontype_configurationproperties.go rename to cloudformation/resources/aws-codepipeline-customactiontype_configurationproperties.go index c938c25adc..36e464b19e 100644 --- a/cloudformation/aws-codepipeline-customactiontype_configurationproperties.go +++ b/cloudformation/resources/aws-codepipeline-customactiontype_configurationproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelineCustomActionType_ConfigurationProperties AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType.ConfigurationProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html @@ -40,7 +42,7 @@ type AWSCodePipelineCustomActionType_ConfigurationProperties struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSCodePipelineCustomActionType_ConfigurationProperties) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelineCustomActionType_ConfigurationProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelineCustomActionType_ConfigurationProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-customactiontype_settings.go b/cloudformation/resources/aws-codepipeline-customactiontype_settings.go similarity index 95% rename from cloudformation/aws-codepipeline-customactiontype_settings.go rename to cloudformation/resources/aws-codepipeline-customactiontype_settings.go index 5c462cfd16..f1375fbb53 100644 --- a/cloudformation/aws-codepipeline-customactiontype_settings.go +++ b/cloudformation/resources/aws-codepipeline-customactiontype_settings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelineCustomActionType_Settings AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType.Settings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-settings.html @@ -25,7 +27,7 @@ type AWSCodePipelineCustomActionType_Settings struct { ThirdPartyConfigurationUrl string `json:"ThirdPartyConfigurationUrl,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSCodePipelineCustomActionType_Settings) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelineCustomActionType_Settings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelineCustomActionType_Settings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline.go b/cloudformation/resources/aws-codepipeline-pipeline.go similarity index 93% rename from cloudformation/aws-codepipeline-pipeline.go rename to cloudformation/resources/aws-codepipeline-pipeline.go index 04d296a8f8..2266329b03 100644 --- a/cloudformation/aws-codepipeline-pipeline.go +++ b/cloudformation/resources/aws-codepipeline-pipeline.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodePipelinePipeline AWS CloudFormation Resource (AWS::CodePipeline::Pipeline) @@ -46,7 +47,7 @@ type AWSCodePipelinePipeline struct { Stages []AWSCodePipelinePipeline_StageDeclaration `json:"Stages,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSCodePipelinePipeline) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSCodePipelinePipeline) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codepipeline-pipeline_actiondeclaration.go b/cloudformation/resources/aws-codepipeline-pipeline_actiondeclaration.go similarity index 96% rename from cloudformation/aws-codepipeline-pipeline_actiondeclaration.go rename to cloudformation/resources/aws-codepipeline-pipeline_actiondeclaration.go index 8e874f1f52..6353173cad 100644 --- a/cloudformation/aws-codepipeline-pipeline_actiondeclaration.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_actiondeclaration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_ActionDeclaration AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ActionDeclaration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html @@ -45,7 +47,7 @@ type AWSCodePipelinePipeline_ActionDeclaration struct { RunOrder int `json:"RunOrder,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSCodePipelinePipeline_ActionDeclaration) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_ActionDeclaration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_ActionDeclaration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_actiontypeid.go b/cloudformation/resources/aws-codepipeline-pipeline_actiontypeid.go similarity index 95% rename from cloudformation/aws-codepipeline-pipeline_actiontypeid.go rename to cloudformation/resources/aws-codepipeline-pipeline_actiontypeid.go index eb0f130609..1eb5cdba07 100644 --- a/cloudformation/aws-codepipeline-pipeline_actiontypeid.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_actiontypeid.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_ActionTypeId AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ActionTypeId) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html @@ -25,7 +27,7 @@ type AWSCodePipelinePipeline_ActionTypeId struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSCodePipelinePipeline_ActionTypeId) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_ActionTypeId) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_ActionTypeId) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_artifactstore.go b/cloudformation/resources/aws-codepipeline-pipeline_artifactstore.go similarity index 95% rename from cloudformation/aws-codepipeline-pipeline_artifactstore.go rename to cloudformation/resources/aws-codepipeline-pipeline_artifactstore.go index e0061b9c21..25fa7bd7e8 100644 --- a/cloudformation/aws-codepipeline-pipeline_artifactstore.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_artifactstore.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_ArtifactStore AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ArtifactStore) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html @@ -20,7 +22,7 @@ type AWSCodePipelinePipeline_ArtifactStore struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodePipelinePipeline_ArtifactStore) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_ArtifactStore) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_ArtifactStore) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_artifactstoremap.go b/cloudformation/resources/aws-codepipeline-pipeline_artifactstoremap.go similarity index 94% rename from cloudformation/aws-codepipeline-pipeline_artifactstoremap.go rename to cloudformation/resources/aws-codepipeline-pipeline_artifactstoremap.go index 4f09ad64f1..654a63e53a 100644 --- a/cloudformation/aws-codepipeline-pipeline_artifactstoremap.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_artifactstoremap.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_ArtifactStoreMap AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ArtifactStoreMap) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstoremap.html @@ -15,7 +17,7 @@ type AWSCodePipelinePipeline_ArtifactStoreMap struct { Region string `json:"Region,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodePipelinePipeline_ArtifactStoreMap) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_ArtifactStoreMap) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_ArtifactStoreMap) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_blockerdeclaration.go b/cloudformation/resources/aws-codepipeline-pipeline_blockerdeclaration.go similarity index 94% rename from cloudformation/aws-codepipeline-pipeline_blockerdeclaration.go rename to cloudformation/resources/aws-codepipeline-pipeline_blockerdeclaration.go index 886128430f..72490bed81 100644 --- a/cloudformation/aws-codepipeline-pipeline_blockerdeclaration.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_blockerdeclaration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_BlockerDeclaration AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.BlockerDeclaration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-blockers.html @@ -15,7 +17,7 @@ type AWSCodePipelinePipeline_BlockerDeclaration struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodePipelinePipeline_BlockerDeclaration) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_BlockerDeclaration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_BlockerDeclaration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_encryptionkey.go b/cloudformation/resources/aws-codepipeline-pipeline_encryptionkey.go similarity index 94% rename from cloudformation/aws-codepipeline-pipeline_encryptionkey.go rename to cloudformation/resources/aws-codepipeline-pipeline_encryptionkey.go index 33701c2ce2..3d1f6faf8d 100644 --- a/cloudformation/aws-codepipeline-pipeline_encryptionkey.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_encryptionkey.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_EncryptionKey AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.EncryptionKey) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore-encryptionkey.html @@ -15,7 +17,7 @@ type AWSCodePipelinePipeline_EncryptionKey struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodePipelinePipeline_EncryptionKey) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_EncryptionKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_EncryptionKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_inputartifact.go b/cloudformation/resources/aws-codepipeline-pipeline_inputartifact.go similarity index 93% rename from cloudformation/aws-codepipeline-pipeline_inputartifact.go rename to cloudformation/resources/aws-codepipeline-pipeline_inputartifact.go index 807a855623..5f514bcec5 100644 --- a/cloudformation/aws-codepipeline-pipeline_inputartifact.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_inputartifact.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_InputArtifact AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.InputArtifact) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-inputartifacts.html @@ -10,7 +12,7 @@ type AWSCodePipelinePipeline_InputArtifact struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodePipelinePipeline_InputArtifact) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_InputArtifact) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_InputArtifact) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_outputartifact.go b/cloudformation/resources/aws-codepipeline-pipeline_outputartifact.go similarity index 93% rename from cloudformation/aws-codepipeline-pipeline_outputartifact.go rename to cloudformation/resources/aws-codepipeline-pipeline_outputartifact.go index 72ddc441cb..5910626430 100644 --- a/cloudformation/aws-codepipeline-pipeline_outputartifact.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_outputartifact.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_OutputArtifact AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.OutputArtifact) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-outputartifacts.html @@ -10,7 +12,7 @@ type AWSCodePipelinePipeline_OutputArtifact struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCodePipelinePipeline_OutputArtifact) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_OutputArtifact) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_OutputArtifact) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_stagedeclaration.go b/cloudformation/resources/aws-codepipeline-pipeline_stagedeclaration.go similarity index 94% rename from cloudformation/aws-codepipeline-pipeline_stagedeclaration.go rename to cloudformation/resources/aws-codepipeline-pipeline_stagedeclaration.go index bd72990003..03385ca621 100644 --- a/cloudformation/aws-codepipeline-pipeline_stagedeclaration.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_stagedeclaration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_StageDeclaration AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.StageDeclaration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html @@ -20,7 +22,7 @@ type AWSCodePipelinePipeline_StageDeclaration struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCodePipelinePipeline_StageDeclaration) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_StageDeclaration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_StageDeclaration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-pipeline_stagetransition.go b/cloudformation/resources/aws-codepipeline-pipeline_stagetransition.go similarity index 94% rename from cloudformation/aws-codepipeline-pipeline_stagetransition.go rename to cloudformation/resources/aws-codepipeline-pipeline_stagetransition.go index 31b460878c..6bd64fe677 100644 --- a/cloudformation/aws-codepipeline-pipeline_stagetransition.go +++ b/cloudformation/resources/aws-codepipeline-pipeline_stagetransition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelinePipeline_StageTransition AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.StageTransition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-disableinboundstagetransitions.html @@ -15,7 +17,7 @@ type AWSCodePipelinePipeline_StageTransition struct { StageName string `json:"StageName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodePipelinePipeline_StageTransition) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelinePipeline_StageTransition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelinePipeline_StageTransition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-webhook.go b/cloudformation/resources/aws-codepipeline-webhook.go similarity index 93% rename from cloudformation/aws-codepipeline-webhook.go rename to cloudformation/resources/aws-codepipeline-webhook.go index e03a9d72c9..85a8e7501c 100644 --- a/cloudformation/aws-codepipeline-webhook.go +++ b/cloudformation/resources/aws-codepipeline-webhook.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCodePipelineWebhook AWS CloudFormation Resource (AWS::CodePipeline::Webhook) @@ -51,7 +52,7 @@ type AWSCodePipelineWebhook struct { TargetPipelineVersion int `json:"TargetPipelineVersion"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSCodePipelineWebhook) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelineWebhook) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelineWebhook) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSCodePipelineWebhook) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-codepipeline-webhook_webhookauthconfiguration.go b/cloudformation/resources/aws-codepipeline-webhook_webhookauthconfiguration.go similarity index 94% rename from cloudformation/aws-codepipeline-webhook_webhookauthconfiguration.go rename to cloudformation/resources/aws-codepipeline-webhook_webhookauthconfiguration.go index bc388878bb..594c8ff52f 100644 --- a/cloudformation/aws-codepipeline-webhook_webhookauthconfiguration.go +++ b/cloudformation/resources/aws-codepipeline-webhook_webhookauthconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelineWebhook_WebhookAuthConfiguration AWS CloudFormation Resource (AWS::CodePipeline::Webhook.WebhookAuthConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookauthconfiguration.html @@ -15,7 +17,7 @@ type AWSCodePipelineWebhook_WebhookAuthConfiguration struct { SecretToken string `json:"SecretToken,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodePipelineWebhook_WebhookAuthConfiguration) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelineWebhook_WebhookAuthConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelineWebhook_WebhookAuthConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-codepipeline-webhook_webhookfilterrule.go b/cloudformation/resources/aws-codepipeline-webhook_webhookfilterrule.go similarity index 94% rename from cloudformation/aws-codepipeline-webhook_webhookfilterrule.go rename to cloudformation/resources/aws-codepipeline-webhook_webhookfilterrule.go index 57caa507ee..d76be76f84 100644 --- a/cloudformation/aws-codepipeline-webhook_webhookfilterrule.go +++ b/cloudformation/resources/aws-codepipeline-webhook_webhookfilterrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCodePipelineWebhook_WebhookFilterRule AWS CloudFormation Resource (AWS::CodePipeline::Webhook.WebhookFilterRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookfilterrule.html @@ -15,7 +17,7 @@ type AWSCodePipelineWebhook_WebhookFilterRule struct { MatchEquals string `json:"MatchEquals,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCodePipelineWebhook_WebhookFilterRule) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCodePipelineWebhook_WebhookFilterRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCodePipelineWebhook_WebhookFilterRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-identitypool.go b/cloudformation/resources/aws-cognito-identitypool.go similarity index 94% rename from cloudformation/aws-cognito-identitypool.go rename to cloudformation/resources/aws-cognito-identitypool.go index cb83b4eee2..a95f2b8308 100644 --- a/cloudformation/aws-cognito-identitypool.go +++ b/cloudformation/resources/aws-cognito-identitypool.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCognitoIdentityPool AWS CloudFormation Resource (AWS::Cognito::IdentityPool) @@ -61,7 +62,7 @@ type AWSCognitoIdentityPool struct { SupportedLoginProviders interface{} `json:"SupportedLoginProviders,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSCognitoIdentityPool) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPool) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPool) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSCognitoIdentityPool) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cognito-identitypool_cognitoidentityprovider.go b/cloudformation/resources/aws-cognito-identitypool_cognitoidentityprovider.go similarity index 95% rename from cloudformation/aws-cognito-identitypool_cognitoidentityprovider.go rename to cloudformation/resources/aws-cognito-identitypool_cognitoidentityprovider.go index 4759ca778f..aabcd94aa1 100644 --- a/cloudformation/aws-cognito-identitypool_cognitoidentityprovider.go +++ b/cloudformation/resources/aws-cognito-identitypool_cognitoidentityprovider.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoIdentityPool_CognitoIdentityProvider AWS CloudFormation Resource (AWS::Cognito::IdentityPool.CognitoIdentityProvider) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitoidentityprovider.html @@ -20,7 +22,7 @@ type AWSCognitoIdentityPool_CognitoIdentityProvider struct { ServerSideTokenCheck bool `json:"ServerSideTokenCheck,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCognitoIdentityPool_CognitoIdentityProvider) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPool_CognitoIdentityProvider) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPool_CognitoIdentityProvider) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-identitypool_cognitostreams.go b/cloudformation/resources/aws-cognito-identitypool_cognitostreams.go similarity index 95% rename from cloudformation/aws-cognito-identitypool_cognitostreams.go rename to cloudformation/resources/aws-cognito-identitypool_cognitostreams.go index 2b35ba1a28..5796e24daa 100644 --- a/cloudformation/aws-cognito-identitypool_cognitostreams.go +++ b/cloudformation/resources/aws-cognito-identitypool_cognitostreams.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoIdentityPool_CognitoStreams AWS CloudFormation Resource (AWS::Cognito::IdentityPool.CognitoStreams) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitostreams.html @@ -20,7 +22,7 @@ type AWSCognitoIdentityPool_CognitoStreams struct { StreamingStatus string `json:"StreamingStatus,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCognitoIdentityPool_CognitoStreams) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPool_CognitoStreams) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPool_CognitoStreams) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-identitypool_pushsync.go b/cloudformation/resources/aws-cognito-identitypool_pushsync.go similarity index 94% rename from cloudformation/aws-cognito-identitypool_pushsync.go rename to cloudformation/resources/aws-cognito-identitypool_pushsync.go index 8b5e14bdc0..180ed9e86a 100644 --- a/cloudformation/aws-cognito-identitypool_pushsync.go +++ b/cloudformation/resources/aws-cognito-identitypool_pushsync.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoIdentityPool_PushSync AWS CloudFormation Resource (AWS::Cognito::IdentityPool.PushSync) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-pushsync.html @@ -15,7 +17,7 @@ type AWSCognitoIdentityPool_PushSync struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCognitoIdentityPool_PushSync) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPool_PushSync) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPool_PushSync) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-identitypoolroleattachment.go b/cloudformation/resources/aws-cognito-identitypoolroleattachment.go similarity index 92% rename from cloudformation/aws-cognito-identitypoolroleattachment.go rename to cloudformation/resources/aws-cognito-identitypoolroleattachment.go index f6bc1f3559..7aa5a91788 100644 --- a/cloudformation/aws-cognito-identitypoolroleattachment.go +++ b/cloudformation/resources/aws-cognito-identitypoolroleattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCognitoIdentityPoolRoleAttachment AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment) @@ -26,7 +27,7 @@ type AWSCognitoIdentityPoolRoleAttachment struct { Roles interface{} `json:"Roles,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSCognitoIdentityPoolRoleAttachment) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPoolRoleAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPoolRoleAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSCognitoIdentityPoolRoleAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cognito-identitypoolroleattachment_mappingrule.go b/cloudformation/resources/aws-cognito-identitypoolroleattachment_mappingrule.go similarity index 95% rename from cloudformation/aws-cognito-identitypoolroleattachment_mappingrule.go rename to cloudformation/resources/aws-cognito-identitypoolroleattachment_mappingrule.go index f779dfaad6..6db39027d9 100644 --- a/cloudformation/aws-cognito-identitypoolroleattachment_mappingrule.go +++ b/cloudformation/resources/aws-cognito-identitypoolroleattachment_mappingrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoIdentityPoolRoleAttachment_MappingRule AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment.MappingRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-mappingrule.html @@ -25,7 +27,7 @@ type AWSCognitoIdentityPoolRoleAttachment_MappingRule struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSCognitoIdentityPoolRoleAttachment_MappingRule) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPoolRoleAttachment_MappingRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPoolRoleAttachment_MappingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-identitypoolroleattachment_rolemapping.go b/cloudformation/resources/aws-cognito-identitypoolroleattachment_rolemapping.go similarity index 95% rename from cloudformation/aws-cognito-identitypoolroleattachment_rolemapping.go rename to cloudformation/resources/aws-cognito-identitypoolroleattachment_rolemapping.go index 3ad8aaa838..3da418cf6f 100644 --- a/cloudformation/aws-cognito-identitypoolroleattachment_rolemapping.go +++ b/cloudformation/resources/aws-cognito-identitypoolroleattachment_rolemapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoIdentityPoolRoleAttachment_RoleMapping AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment.RoleMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html @@ -20,7 +22,7 @@ type AWSCognitoIdentityPoolRoleAttachment_RoleMapping struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCognitoIdentityPoolRoleAttachment_RoleMapping) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPoolRoleAttachment_RoleMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPoolRoleAttachment_RoleMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go b/cloudformation/resources/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go similarity index 93% rename from cloudformation/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go rename to cloudformation/resources/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go index c92b91ef6d..bb74cedcec 100644 --- a/cloudformation/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go +++ b/cloudformation/resources/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoIdentityPoolRoleAttachment_RulesConfigurationType AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment.RulesConfigurationType) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rulesconfigurationtype.html @@ -10,7 +12,7 @@ type AWSCognitoIdentityPoolRoleAttachment_RulesConfigurationType struct { Rules []AWSCognitoIdentityPoolRoleAttachment_MappingRule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCognitoIdentityPoolRoleAttachment_RulesConfigurationType) SetMetadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoIdentityPoolRoleAttachment_RulesConfigurationType) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoIdentityPoolRoleAttachment_RulesConfigurationType) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool.go b/cloudformation/resources/aws-cognito-userpool.go similarity index 95% rename from cloudformation/aws-cognito-userpool.go rename to cloudformation/resources/aws-cognito-userpool.go index 145ce4a45c..33ce18a1e9 100644 --- a/cloudformation/aws-cognito-userpool.go +++ b/cloudformation/resources/aws-cognito-userpool.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCognitoUserPool AWS CloudFormation Resource (AWS::Cognito::UserPool) @@ -96,7 +97,7 @@ type AWSCognitoUserPool struct { UsernameAttributes []string `json:"UsernameAttributes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -136,7 +137,7 @@ func (r *AWSCognitoUserPool) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -147,9 +148,9 @@ func (r AWSCognitoUserPool) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cognito-userpool_admincreateuserconfig.go b/cloudformation/resources/aws-cognito-userpool_admincreateuserconfig.go similarity index 95% rename from cloudformation/aws-cognito-userpool_admincreateuserconfig.go rename to cloudformation/resources/aws-cognito-userpool_admincreateuserconfig.go index d9e26e96a8..109688b515 100644 --- a/cloudformation/aws-cognito-userpool_admincreateuserconfig.go +++ b/cloudformation/resources/aws-cognito-userpool_admincreateuserconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_AdminCreateUserConfig AWS CloudFormation Resource (AWS::Cognito::UserPool.AdminCreateUserConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html @@ -20,7 +22,7 @@ type AWSCognitoUserPool_AdminCreateUserConfig struct { UnusedAccountValidityDays float64 `json:"UnusedAccountValidityDays,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCognitoUserPool_AdminCreateUserConfig) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_AdminCreateUserConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_AdminCreateUserConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_deviceconfiguration.go b/cloudformation/resources/aws-cognito-userpool_deviceconfiguration.go similarity index 94% rename from cloudformation/aws-cognito-userpool_deviceconfiguration.go rename to cloudformation/resources/aws-cognito-userpool_deviceconfiguration.go index f41f4f1145..45fa3ef12a 100644 --- a/cloudformation/aws-cognito-userpool_deviceconfiguration.go +++ b/cloudformation/resources/aws-cognito-userpool_deviceconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_DeviceConfiguration AWS CloudFormation Resource (AWS::Cognito::UserPool.DeviceConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html @@ -15,7 +17,7 @@ type AWSCognitoUserPool_DeviceConfiguration struct { DeviceOnlyRememberedOnUserPrompt bool `json:"DeviceOnlyRememberedOnUserPrompt,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCognitoUserPool_DeviceConfiguration) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_DeviceConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_DeviceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_emailconfiguration.go b/cloudformation/resources/aws-cognito-userpool_emailconfiguration.go similarity index 94% rename from cloudformation/aws-cognito-userpool_emailconfiguration.go rename to cloudformation/resources/aws-cognito-userpool_emailconfiguration.go index 843c607d18..a1beed8a15 100644 --- a/cloudformation/aws-cognito-userpool_emailconfiguration.go +++ b/cloudformation/resources/aws-cognito-userpool_emailconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_EmailConfiguration AWS CloudFormation Resource (AWS::Cognito::UserPool.EmailConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html @@ -15,7 +17,7 @@ type AWSCognitoUserPool_EmailConfiguration struct { SourceArn string `json:"SourceArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCognitoUserPool_EmailConfiguration) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_EmailConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_EmailConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_invitemessagetemplate.go b/cloudformation/resources/aws-cognito-userpool_invitemessagetemplate.go similarity index 95% rename from cloudformation/aws-cognito-userpool_invitemessagetemplate.go rename to cloudformation/resources/aws-cognito-userpool_invitemessagetemplate.go index ddbad858de..915bc11f4c 100644 --- a/cloudformation/aws-cognito-userpool_invitemessagetemplate.go +++ b/cloudformation/resources/aws-cognito-userpool_invitemessagetemplate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_InviteMessageTemplate AWS CloudFormation Resource (AWS::Cognito::UserPool.InviteMessageTemplate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-invitemessagetemplate.html @@ -20,7 +22,7 @@ type AWSCognitoUserPool_InviteMessageTemplate struct { SMSMessage string `json:"SMSMessage,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSCognitoUserPool_InviteMessageTemplate) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_InviteMessageTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_InviteMessageTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_lambdaconfig.go b/cloudformation/resources/aws-cognito-userpool_lambdaconfig.go similarity index 96% rename from cloudformation/aws-cognito-userpool_lambdaconfig.go rename to cloudformation/resources/aws-cognito-userpool_lambdaconfig.go index d95ead3f0b..49b10ef365 100644 --- a/cloudformation/aws-cognito-userpool_lambdaconfig.go +++ b/cloudformation/resources/aws-cognito-userpool_lambdaconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_LambdaConfig AWS CloudFormation Resource (AWS::Cognito::UserPool.LambdaConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html @@ -45,7 +47,7 @@ type AWSCognitoUserPool_LambdaConfig struct { VerifyAuthChallengeResponse string `json:"VerifyAuthChallengeResponse,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSCognitoUserPool_LambdaConfig) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_LambdaConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_LambdaConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_numberattributeconstraints.go b/cloudformation/resources/aws-cognito-userpool_numberattributeconstraints.go similarity index 94% rename from cloudformation/aws-cognito-userpool_numberattributeconstraints.go rename to cloudformation/resources/aws-cognito-userpool_numberattributeconstraints.go index 0dbc750558..bd01d33385 100644 --- a/cloudformation/aws-cognito-userpool_numberattributeconstraints.go +++ b/cloudformation/resources/aws-cognito-userpool_numberattributeconstraints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_NumberAttributeConstraints AWS CloudFormation Resource (AWS::Cognito::UserPool.NumberAttributeConstraints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-numberattributeconstraints.html @@ -15,7 +17,7 @@ type AWSCognitoUserPool_NumberAttributeConstraints struct { MinValue string `json:"MinValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCognitoUserPool_NumberAttributeConstraints) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_NumberAttributeConstraints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_NumberAttributeConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_passwordpolicy.go b/cloudformation/resources/aws-cognito-userpool_passwordpolicy.go similarity index 95% rename from cloudformation/aws-cognito-userpool_passwordpolicy.go rename to cloudformation/resources/aws-cognito-userpool_passwordpolicy.go index af8021777a..22bc027cc2 100644 --- a/cloudformation/aws-cognito-userpool_passwordpolicy.go +++ b/cloudformation/resources/aws-cognito-userpool_passwordpolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_PasswordPolicy AWS CloudFormation Resource (AWS::Cognito::UserPool.PasswordPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html @@ -30,7 +32,7 @@ type AWSCognitoUserPool_PasswordPolicy struct { RequireUppercase bool `json:"RequireUppercase,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSCognitoUserPool_PasswordPolicy) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_PasswordPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_PasswordPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_policies.go b/cloudformation/resources/aws-cognito-userpool_policies.go similarity index 91% rename from cloudformation/aws-cognito-userpool_policies.go rename to cloudformation/resources/aws-cognito-userpool_policies.go index f87558582f..f3004b87f0 100644 --- a/cloudformation/aws-cognito-userpool_policies.go +++ b/cloudformation/resources/aws-cognito-userpool_policies.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_Policies AWS CloudFormation Resource (AWS::Cognito::UserPool.Policies) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-policies.html @@ -10,7 +12,7 @@ type AWSCognitoUserPool_Policies struct { PasswordPolicy *AWSCognitoUserPool_PasswordPolicy `json:"PasswordPolicy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSCognitoUserPool_Policies) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_Policies) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_Policies) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_schemaattribute.go b/cloudformation/resources/aws-cognito-userpool_schemaattribute.go similarity index 96% rename from cloudformation/aws-cognito-userpool_schemaattribute.go rename to cloudformation/resources/aws-cognito-userpool_schemaattribute.go index ba2519ec64..7f20ca37f4 100644 --- a/cloudformation/aws-cognito-userpool_schemaattribute.go +++ b/cloudformation/resources/aws-cognito-userpool_schemaattribute.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_SchemaAttribute AWS CloudFormation Resource (AWS::Cognito::UserPool.SchemaAttribute) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html @@ -40,7 +42,7 @@ type AWSCognitoUserPool_SchemaAttribute struct { StringAttributeConstraints *AWSCognitoUserPool_StringAttributeConstraints `json:"StringAttributeConstraints,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSCognitoUserPool_SchemaAttribute) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_SchemaAttribute) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_SchemaAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_smsconfiguration.go b/cloudformation/resources/aws-cognito-userpool_smsconfiguration.go similarity index 94% rename from cloudformation/aws-cognito-userpool_smsconfiguration.go rename to cloudformation/resources/aws-cognito-userpool_smsconfiguration.go index 046599daed..4b1a84128b 100644 --- a/cloudformation/aws-cognito-userpool_smsconfiguration.go +++ b/cloudformation/resources/aws-cognito-userpool_smsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_SmsConfiguration AWS CloudFormation Resource (AWS::Cognito::UserPool.SmsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html @@ -15,7 +17,7 @@ type AWSCognitoUserPool_SmsConfiguration struct { SnsCallerArn string `json:"SnsCallerArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCognitoUserPool_SmsConfiguration) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_SmsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_SmsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpool_stringattributeconstraints.go b/cloudformation/resources/aws-cognito-userpool_stringattributeconstraints.go similarity index 94% rename from cloudformation/aws-cognito-userpool_stringattributeconstraints.go rename to cloudformation/resources/aws-cognito-userpool_stringattributeconstraints.go index 5bb0fd723f..4a6b481918 100644 --- a/cloudformation/aws-cognito-userpool_stringattributeconstraints.go +++ b/cloudformation/resources/aws-cognito-userpool_stringattributeconstraints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPool_StringAttributeConstraints AWS CloudFormation Resource (AWS::Cognito::UserPool.StringAttributeConstraints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-stringattributeconstraints.html @@ -15,7 +17,7 @@ type AWSCognitoUserPool_StringAttributeConstraints struct { MinLength string `json:"MinLength,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCognitoUserPool_StringAttributeConstraints) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPool_StringAttributeConstraints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPool_StringAttributeConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpoolclient.go b/cloudformation/resources/aws-cognito-userpoolclient.go similarity index 92% rename from cloudformation/aws-cognito-userpoolclient.go rename to cloudformation/resources/aws-cognito-userpoolclient.go index 2d2870b536..cbc98207fa 100644 --- a/cloudformation/aws-cognito-userpoolclient.go +++ b/cloudformation/resources/aws-cognito-userpoolclient.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCognitoUserPoolClient AWS CloudFormation Resource (AWS::Cognito::UserPoolClient) @@ -46,7 +47,7 @@ type AWSCognitoUserPoolClient struct { WriteAttributes []string `json:"WriteAttributes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSCognitoUserPoolClient) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPoolClient) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPoolClient) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSCognitoUserPoolClient) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cognito-userpoolgroup.go b/cloudformation/resources/aws-cognito-userpoolgroup.go similarity index 91% rename from cloudformation/aws-cognito-userpoolgroup.go rename to cloudformation/resources/aws-cognito-userpoolgroup.go index 9d4bf70637..3d05e5e6a9 100644 --- a/cloudformation/aws-cognito-userpoolgroup.go +++ b/cloudformation/resources/aws-cognito-userpoolgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCognitoUserPoolGroup AWS CloudFormation Resource (AWS::Cognito::UserPoolGroup) @@ -36,7 +37,7 @@ type AWSCognitoUserPoolGroup struct { UserPoolId string `json:"UserPoolId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSCognitoUserPoolGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPoolGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPoolGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSCognitoUserPoolGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cognito-userpooluser.go b/cloudformation/resources/aws-cognito-userpooluser.go similarity index 92% rename from cloudformation/aws-cognito-userpooluser.go rename to cloudformation/resources/aws-cognito-userpooluser.go index a30d34aa6e..38df5eb47b 100644 --- a/cloudformation/aws-cognito-userpooluser.go +++ b/cloudformation/resources/aws-cognito-userpooluser.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCognitoUserPoolUser AWS CloudFormation Resource (AWS::Cognito::UserPoolUser) @@ -46,7 +47,7 @@ type AWSCognitoUserPoolUser struct { ValidationData []AWSCognitoUserPoolUser_AttributeType `json:"ValidationData,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSCognitoUserPoolUser) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPoolUser) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPoolUser) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSCognitoUserPoolUser) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-cognito-userpooluser_attributetype.go b/cloudformation/resources/aws-cognito-userpooluser_attributetype.go similarity index 94% rename from cloudformation/aws-cognito-userpooluser_attributetype.go rename to cloudformation/resources/aws-cognito-userpooluser_attributetype.go index ed1f55ccdb..f446713b00 100644 --- a/cloudformation/aws-cognito-userpooluser_attributetype.go +++ b/cloudformation/resources/aws-cognito-userpooluser_attributetype.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSCognitoUserPoolUser_AttributeType AWS CloudFormation Resource (AWS::Cognito::UserPoolUser.AttributeType) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html @@ -15,7 +17,7 @@ type AWSCognitoUserPoolUser_AttributeType struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSCognitoUserPoolUser_AttributeType) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPoolUser_AttributeType) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPoolUser_AttributeType) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-cognito-userpoolusertogroupattachment.go b/cloudformation/resources/aws-cognito-userpoolusertogroupattachment.go similarity index 92% rename from cloudformation/aws-cognito-userpoolusertogroupattachment.go rename to cloudformation/resources/aws-cognito-userpoolusertogroupattachment.go index 1735e69ace..011b1dcb00 100644 --- a/cloudformation/aws-cognito-userpoolusertogroupattachment.go +++ b/cloudformation/resources/aws-cognito-userpoolusertogroupattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSCognitoUserPoolUserToGroupAttachment AWS CloudFormation Resource (AWS::Cognito::UserPoolUserToGroupAttachment) @@ -26,7 +27,7 @@ type AWSCognitoUserPoolUserToGroupAttachment struct { Username string `json:"Username,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSCognitoUserPoolUserToGroupAttachment) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSCognitoUserPoolUserToGroupAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSCognitoUserPoolUserToGroupAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSCognitoUserPoolUserToGroupAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-config-aggregationauthorization.go b/cloudformation/resources/aws-config-aggregationauthorization.go similarity index 92% rename from cloudformation/aws-config-aggregationauthorization.go rename to cloudformation/resources/aws-config-aggregationauthorization.go index 8e6b95bbf8..df76d8cd9d 100644 --- a/cloudformation/aws-config-aggregationauthorization.go +++ b/cloudformation/resources/aws-config-aggregationauthorization.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSConfigAggregationAuthorization AWS CloudFormation Resource (AWS::Config::AggregationAuthorization) @@ -21,7 +22,7 @@ type AWSConfigAggregationAuthorization struct { AuthorizedAwsRegion string `json:"AuthorizedAwsRegion,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSConfigAggregationAuthorization) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigAggregationAuthorization) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigAggregationAuthorization) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSConfigAggregationAuthorization) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-config-configrule.go b/cloudformation/resources/aws-config-configrule.go similarity index 92% rename from cloudformation/aws-config-configrule.go rename to cloudformation/resources/aws-config-configrule.go index 23859ce8f0..229b834ccd 100644 --- a/cloudformation/aws-config-configrule.go +++ b/cloudformation/resources/aws-config-configrule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSConfigConfigRule AWS CloudFormation Resource (AWS::Config::ConfigRule) @@ -41,7 +42,7 @@ type AWSConfigConfigRule struct { Source *AWSConfigConfigRule_Source `json:"Source,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSConfigConfigRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSConfigConfigRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-config-configrule_scope.go b/cloudformation/resources/aws-config-configrule_scope.go similarity index 93% rename from cloudformation/aws-config-configrule_scope.go rename to cloudformation/resources/aws-config-configrule_scope.go index 3c63bbfcdc..e91c1b40b3 100644 --- a/cloudformation/aws-config-configrule_scope.go +++ b/cloudformation/resources/aws-config-configrule_scope.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSConfigConfigRule_Scope AWS CloudFormation Resource (AWS::Config::ConfigRule.Scope) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-scope.html @@ -25,7 +27,7 @@ type AWSConfigConfigRule_Scope struct { TagValue string `json:"TagValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSConfigConfigRule_Scope) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigRule_Scope) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigRule_Scope) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-config-configrule_source.go b/cloudformation/resources/aws-config-configrule_source.go similarity index 93% rename from cloudformation/aws-config-configrule_source.go rename to cloudformation/resources/aws-config-configrule_source.go index 6c59804a90..1981f26dd0 100644 --- a/cloudformation/aws-config-configrule_source.go +++ b/cloudformation/resources/aws-config-configrule_source.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSConfigConfigRule_Source AWS CloudFormation Resource (AWS::Config::ConfigRule.Source) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source.html @@ -20,7 +22,7 @@ type AWSConfigConfigRule_Source struct { SourceIdentifier string `json:"SourceIdentifier,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSConfigConfigRule_Source) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigRule_Source) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigRule_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-config-configrule_sourcedetail.go b/cloudformation/resources/aws-config-configrule_sourcedetail.go similarity index 95% rename from cloudformation/aws-config-configrule_sourcedetail.go rename to cloudformation/resources/aws-config-configrule_sourcedetail.go index 7d8d002e74..8fa108bb56 100644 --- a/cloudformation/aws-config-configrule_sourcedetail.go +++ b/cloudformation/resources/aws-config-configrule_sourcedetail.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSConfigConfigRule_SourceDetail AWS CloudFormation Resource (AWS::Config::ConfigRule.SourceDetail) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source-sourcedetails.html @@ -20,7 +22,7 @@ type AWSConfigConfigRule_SourceDetail struct { MessageType string `json:"MessageType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSConfigConfigRule_SourceDetail) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigRule_SourceDetail) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigRule_SourceDetail) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-config-configurationaggregator.go b/cloudformation/resources/aws-config-configurationaggregator.go similarity index 93% rename from cloudformation/aws-config-configurationaggregator.go rename to cloudformation/resources/aws-config-configurationaggregator.go index 982b261f98..052dca0bf9 100644 --- a/cloudformation/aws-config-configurationaggregator.go +++ b/cloudformation/resources/aws-config-configurationaggregator.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSConfigConfigurationAggregator AWS CloudFormation Resource (AWS::Config::ConfigurationAggregator) @@ -26,7 +27,7 @@ type AWSConfigConfigurationAggregator struct { OrganizationAggregationSource *AWSConfigConfigurationAggregator_OrganizationAggregationSource `json:"OrganizationAggregationSource,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSConfigConfigurationAggregator) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigurationAggregator) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigurationAggregator) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSConfigConfigurationAggregator) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-config-configurationaggregator_accountaggregationsource.go b/cloudformation/resources/aws-config-configurationaggregator_accountaggregationsource.go similarity index 94% rename from cloudformation/aws-config-configurationaggregator_accountaggregationsource.go rename to cloudformation/resources/aws-config-configurationaggregator_accountaggregationsource.go index 032d57f397..d06d490971 100644 --- a/cloudformation/aws-config-configurationaggregator_accountaggregationsource.go +++ b/cloudformation/resources/aws-config-configurationaggregator_accountaggregationsource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSConfigConfigurationAggregator_AccountAggregationSource AWS CloudFormation Resource (AWS::Config::ConfigurationAggregator.AccountAggregationSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-accountaggregationsource.html @@ -20,7 +22,7 @@ type AWSConfigConfigurationAggregator_AccountAggregationSource struct { AwsRegions []string `json:"AwsRegions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSConfigConfigurationAggregator_AccountAggregationSource) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigurationAggregator_AccountAggregationSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigurationAggregator_AccountAggregationSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-config-configurationaggregator_organizationaggregationsource.go b/cloudformation/resources/aws-config-configurationaggregator_organizationaggregationsource.go similarity index 94% rename from cloudformation/aws-config-configurationaggregator_organizationaggregationsource.go rename to cloudformation/resources/aws-config-configurationaggregator_organizationaggregationsource.go index 31145b270f..384d831458 100644 --- a/cloudformation/aws-config-configurationaggregator_organizationaggregationsource.go +++ b/cloudformation/resources/aws-config-configurationaggregator_organizationaggregationsource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSConfigConfigurationAggregator_OrganizationAggregationSource AWS CloudFormation Resource (AWS::Config::ConfigurationAggregator.OrganizationAggregationSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html @@ -20,7 +22,7 @@ type AWSConfigConfigurationAggregator_OrganizationAggregationSource struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSConfigConfigurationAggregator_OrganizationAggregationSource) SetMeta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigurationAggregator_OrganizationAggregationSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigurationAggregator_OrganizationAggregationSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-config-configurationrecorder.go b/cloudformation/resources/aws-config-configurationrecorder.go similarity index 92% rename from cloudformation/aws-config-configurationrecorder.go rename to cloudformation/resources/aws-config-configurationrecorder.go index fb11f316ca..c1f2eb9681 100644 --- a/cloudformation/aws-config-configurationrecorder.go +++ b/cloudformation/resources/aws-config-configurationrecorder.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSConfigConfigurationRecorder AWS CloudFormation Resource (AWS::Config::ConfigurationRecorder) @@ -26,7 +27,7 @@ type AWSConfigConfigurationRecorder struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSConfigConfigurationRecorder) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigurationRecorder) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigurationRecorder) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSConfigConfigurationRecorder) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-config-configurationrecorder_recordinggroup.go b/cloudformation/resources/aws-config-configurationrecorder_recordinggroup.go similarity index 95% rename from cloudformation/aws-config-configurationrecorder_recordinggroup.go rename to cloudformation/resources/aws-config-configurationrecorder_recordinggroup.go index c96ca4920d..26876eb678 100644 --- a/cloudformation/aws-config-configurationrecorder_recordinggroup.go +++ b/cloudformation/resources/aws-config-configurationrecorder_recordinggroup.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSConfigConfigurationRecorder_RecordingGroup AWS CloudFormation Resource (AWS::Config::ConfigurationRecorder.RecordingGroup) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordinggroup.html @@ -20,7 +22,7 @@ type AWSConfigConfigurationRecorder_RecordingGroup struct { ResourceTypes []string `json:"ResourceTypes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSConfigConfigurationRecorder_RecordingGroup) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigConfigurationRecorder_RecordingGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigConfigurationRecorder_RecordingGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-config-deliverychannel.go b/cloudformation/resources/aws-config-deliverychannel.go similarity index 92% rename from cloudformation/aws-config-deliverychannel.go rename to cloudformation/resources/aws-config-deliverychannel.go index 0e97f91e0d..d5e1f5d27e 100644 --- a/cloudformation/aws-config-deliverychannel.go +++ b/cloudformation/resources/aws-config-deliverychannel.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSConfigDeliveryChannel AWS CloudFormation Resource (AWS::Config::DeliveryChannel) @@ -36,7 +37,7 @@ type AWSConfigDeliveryChannel struct { SnsTopicARN string `json:"SnsTopicARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSConfigDeliveryChannel) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigDeliveryChannel) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigDeliveryChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSConfigDeliveryChannel) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-config-deliverychannel_configsnapshotdeliveryproperties.go b/cloudformation/resources/aws-config-deliverychannel_configsnapshotdeliveryproperties.go similarity index 93% rename from cloudformation/aws-config-deliverychannel_configsnapshotdeliveryproperties.go rename to cloudformation/resources/aws-config-deliverychannel_configsnapshotdeliveryproperties.go index 782aea5396..e7daa81dec 100644 --- a/cloudformation/aws-config-deliverychannel_configsnapshotdeliveryproperties.go +++ b/cloudformation/resources/aws-config-deliverychannel_configsnapshotdeliveryproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSConfigDeliveryChannel_ConfigSnapshotDeliveryProperties AWS CloudFormation Resource (AWS::Config::DeliveryChannel.ConfigSnapshotDeliveryProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html @@ -10,7 +12,7 @@ type AWSConfigDeliveryChannel_ConfigSnapshotDeliveryProperties struct { DeliveryFrequency string `json:"DeliveryFrequency,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSConfigDeliveryChannel_ConfigSnapshotDeliveryProperties) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSConfigDeliveryChannel_ConfigSnapshotDeliveryProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSConfigDeliveryChannel_ConfigSnapshotDeliveryProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-datapipeline-pipeline.go b/cloudformation/resources/aws-datapipeline-pipeline.go similarity index 92% rename from cloudformation/aws-datapipeline-pipeline.go rename to cloudformation/resources/aws-datapipeline-pipeline.go index 77118c1931..2ce72e2729 100644 --- a/cloudformation/aws-datapipeline-pipeline.go +++ b/cloudformation/resources/aws-datapipeline-pipeline.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDataPipelinePipeline AWS CloudFormation Resource (AWS::DataPipeline::Pipeline) @@ -46,7 +47,7 @@ type AWSDataPipelinePipeline struct { PipelineTags []AWSDataPipelinePipeline_PipelineTag `json:"PipelineTags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSDataPipelinePipeline) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDataPipelinePipeline) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDataPipelinePipeline) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSDataPipelinePipeline) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-datapipeline-pipeline_field.go b/cloudformation/resources/aws-datapipeline-pipeline_field.go similarity index 95% rename from cloudformation/aws-datapipeline-pipeline_field.go rename to cloudformation/resources/aws-datapipeline-pipeline_field.go index d4bc3ea05c..c75a4f1642 100644 --- a/cloudformation/aws-datapipeline-pipeline_field.go +++ b/cloudformation/resources/aws-datapipeline-pipeline_field.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDataPipelinePipeline_Field AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.Field) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects-fields.html @@ -20,7 +22,7 @@ type AWSDataPipelinePipeline_Field struct { StringValue string `json:"StringValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSDataPipelinePipeline_Field) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDataPipelinePipeline_Field) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDataPipelinePipeline_Field) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-datapipeline-pipeline_parameterattribute.go b/cloudformation/resources/aws-datapipeline-pipeline_parameterattribute.go similarity index 94% rename from cloudformation/aws-datapipeline-pipeline_parameterattribute.go rename to cloudformation/resources/aws-datapipeline-pipeline_parameterattribute.go index 4956243691..4575584367 100644 --- a/cloudformation/aws-datapipeline-pipeline_parameterattribute.go +++ b/cloudformation/resources/aws-datapipeline-pipeline_parameterattribute.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDataPipelinePipeline_ParameterAttribute AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.ParameterAttribute) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects-attributes.html @@ -15,7 +17,7 @@ type AWSDataPipelinePipeline_ParameterAttribute struct { StringValue string `json:"StringValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDataPipelinePipeline_ParameterAttribute) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDataPipelinePipeline_ParameterAttribute) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDataPipelinePipeline_ParameterAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-datapipeline-pipeline_parameterobject.go b/cloudformation/resources/aws-datapipeline-pipeline_parameterobject.go similarity index 94% rename from cloudformation/aws-datapipeline-pipeline_parameterobject.go rename to cloudformation/resources/aws-datapipeline-pipeline_parameterobject.go index d9a80c7d9f..c18f6d6267 100644 --- a/cloudformation/aws-datapipeline-pipeline_parameterobject.go +++ b/cloudformation/resources/aws-datapipeline-pipeline_parameterobject.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDataPipelinePipeline_ParameterObject AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.ParameterObject) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects.html @@ -15,7 +17,7 @@ type AWSDataPipelinePipeline_ParameterObject struct { Id string `json:"Id,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDataPipelinePipeline_ParameterObject) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDataPipelinePipeline_ParameterObject) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDataPipelinePipeline_ParameterObject) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-datapipeline-pipeline_parametervalue.go b/cloudformation/resources/aws-datapipeline-pipeline_parametervalue.go similarity index 94% rename from cloudformation/aws-datapipeline-pipeline_parametervalue.go rename to cloudformation/resources/aws-datapipeline-pipeline_parametervalue.go index 7022640459..dc71c4384f 100644 --- a/cloudformation/aws-datapipeline-pipeline_parametervalue.go +++ b/cloudformation/resources/aws-datapipeline-pipeline_parametervalue.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDataPipelinePipeline_ParameterValue AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.ParameterValue) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parametervalues.html @@ -15,7 +17,7 @@ type AWSDataPipelinePipeline_ParameterValue struct { StringValue string `json:"StringValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDataPipelinePipeline_ParameterValue) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDataPipelinePipeline_ParameterValue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDataPipelinePipeline_ParameterValue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-datapipeline-pipeline_pipelineobject.go b/cloudformation/resources/aws-datapipeline-pipeline_pipelineobject.go similarity index 94% rename from cloudformation/aws-datapipeline-pipeline_pipelineobject.go rename to cloudformation/resources/aws-datapipeline-pipeline_pipelineobject.go index 59838b0952..10d4e74e99 100644 --- a/cloudformation/aws-datapipeline-pipeline_pipelineobject.go +++ b/cloudformation/resources/aws-datapipeline-pipeline_pipelineobject.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDataPipelinePipeline_PipelineObject AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.PipelineObject) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects.html @@ -20,7 +22,7 @@ type AWSDataPipelinePipeline_PipelineObject struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSDataPipelinePipeline_PipelineObject) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDataPipelinePipeline_PipelineObject) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDataPipelinePipeline_PipelineObject) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-datapipeline-pipeline_pipelinetag.go b/cloudformation/resources/aws-datapipeline-pipeline_pipelinetag.go similarity index 94% rename from cloudformation/aws-datapipeline-pipeline_pipelinetag.go rename to cloudformation/resources/aws-datapipeline-pipeline_pipelinetag.go index cae30815c3..a8d62a75b3 100644 --- a/cloudformation/aws-datapipeline-pipeline_pipelinetag.go +++ b/cloudformation/resources/aws-datapipeline-pipeline_pipelinetag.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDataPipelinePipeline_PipelineTag AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.PipelineTag) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelinetags.html @@ -15,7 +17,7 @@ type AWSDataPipelinePipeline_PipelineTag struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDataPipelinePipeline_PipelineTag) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDataPipelinePipeline_PipelineTag) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDataPipelinePipeline_PipelineTag) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dax-cluster.go b/cloudformation/resources/aws-dax-cluster.go similarity index 94% rename from cloudformation/aws-dax-cluster.go rename to cloudformation/resources/aws-dax-cluster.go index 398b25dd0c..82158db883 100644 --- a/cloudformation/aws-dax-cluster.go +++ b/cloudformation/resources/aws-dax-cluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDAXCluster AWS CloudFormation Resource (AWS::DAX::Cluster) @@ -76,7 +77,7 @@ type AWSDAXCluster struct { Tags interface{} `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -116,7 +117,7 @@ func (r *AWSDAXCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDAXCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDAXCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -127,9 +128,9 @@ func (r AWSDAXCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dax-cluster_ssespecification.go b/cloudformation/resources/aws-dax-cluster_ssespecification.go similarity index 93% rename from cloudformation/aws-dax-cluster_ssespecification.go rename to cloudformation/resources/aws-dax-cluster_ssespecification.go index 0a99297d7f..0a41206227 100644 --- a/cloudformation/aws-dax-cluster_ssespecification.go +++ b/cloudformation/resources/aws-dax-cluster_ssespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDAXCluster_SSESpecification AWS CloudFormation Resource (AWS::DAX::Cluster.SSESpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dax-cluster-ssespecification.html @@ -10,7 +12,7 @@ type AWSDAXCluster_SSESpecification struct { SSEEnabled bool `json:"SSEEnabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSDAXCluster_SSESpecification) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDAXCluster_SSESpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDAXCluster_SSESpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dax-parametergroup.go b/cloudformation/resources/aws-dax-parametergroup.go similarity index 91% rename from cloudformation/aws-dax-parametergroup.go rename to cloudformation/resources/aws-dax-parametergroup.go index 1caa9013c2..dd159ea2ea 100644 --- a/cloudformation/aws-dax-parametergroup.go +++ b/cloudformation/resources/aws-dax-parametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDAXParameterGroup AWS CloudFormation Resource (AWS::DAX::ParameterGroup) @@ -26,7 +27,7 @@ type AWSDAXParameterGroup struct { ParameterNameValues interface{} `json:"ParameterNameValues,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSDAXParameterGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDAXParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDAXParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSDAXParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dax-subnetgroup.go b/cloudformation/resources/aws-dax-subnetgroup.go similarity index 91% rename from cloudformation/aws-dax-subnetgroup.go rename to cloudformation/resources/aws-dax-subnetgroup.go index a97b43b879..07ea29fadf 100644 --- a/cloudformation/aws-dax-subnetgroup.go +++ b/cloudformation/resources/aws-dax-subnetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDAXSubnetGroup AWS CloudFormation Resource (AWS::DAX::SubnetGroup) @@ -26,7 +27,7 @@ type AWSDAXSubnetGroup struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSDAXSubnetGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDAXSubnetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDAXSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSDAXSubnetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-directoryservice-microsoftad.go b/cloudformation/resources/aws-directoryservice-microsoftad.go similarity index 93% rename from cloudformation/aws-directoryservice-microsoftad.go rename to cloudformation/resources/aws-directoryservice-microsoftad.go index 7a2bba20dc..be7d5eac4b 100644 --- a/cloudformation/aws-directoryservice-microsoftad.go +++ b/cloudformation/resources/aws-directoryservice-microsoftad.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDirectoryServiceMicrosoftAD AWS CloudFormation Resource (AWS::DirectoryService::MicrosoftAD) @@ -46,7 +47,7 @@ type AWSDirectoryServiceMicrosoftAD struct { VpcSettings *AWSDirectoryServiceMicrosoftAD_VpcSettings `json:"VpcSettings,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSDirectoryServiceMicrosoftAD) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDirectoryServiceMicrosoftAD) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDirectoryServiceMicrosoftAD) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSDirectoryServiceMicrosoftAD) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-directoryservice-microsoftad_vpcsettings.go b/cloudformation/resources/aws-directoryservice-microsoftad_vpcsettings.go similarity index 94% rename from cloudformation/aws-directoryservice-microsoftad_vpcsettings.go rename to cloudformation/resources/aws-directoryservice-microsoftad_vpcsettings.go index afb66ba1e0..9343a48293 100644 --- a/cloudformation/aws-directoryservice-microsoftad_vpcsettings.go +++ b/cloudformation/resources/aws-directoryservice-microsoftad_vpcsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDirectoryServiceMicrosoftAD_VpcSettings AWS CloudFormation Resource (AWS::DirectoryService::MicrosoftAD.VpcSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-microsoftad-vpcsettings.html @@ -15,7 +17,7 @@ type AWSDirectoryServiceMicrosoftAD_VpcSettings struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDirectoryServiceMicrosoftAD_VpcSettings) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDirectoryServiceMicrosoftAD_VpcSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDirectoryServiceMicrosoftAD_VpcSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-directoryservice-simplead.go b/cloudformation/resources/aws-directoryservice-simplead.go similarity index 93% rename from cloudformation/aws-directoryservice-simplead.go rename to cloudformation/resources/aws-directoryservice-simplead.go index 40775060af..dffebca4a2 100644 --- a/cloudformation/aws-directoryservice-simplead.go +++ b/cloudformation/resources/aws-directoryservice-simplead.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDirectoryServiceSimpleAD AWS CloudFormation Resource (AWS::DirectoryService::SimpleAD) @@ -51,7 +52,7 @@ type AWSDirectoryServiceSimpleAD struct { VpcSettings *AWSDirectoryServiceSimpleAD_VpcSettings `json:"VpcSettings,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSDirectoryServiceSimpleAD) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDirectoryServiceSimpleAD) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDirectoryServiceSimpleAD) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSDirectoryServiceSimpleAD) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-directoryservice-simplead_vpcsettings.go b/cloudformation/resources/aws-directoryservice-simplead_vpcsettings.go similarity index 94% rename from cloudformation/aws-directoryservice-simplead_vpcsettings.go rename to cloudformation/resources/aws-directoryservice-simplead_vpcsettings.go index cd92465f6a..54a95cd29f 100644 --- a/cloudformation/aws-directoryservice-simplead_vpcsettings.go +++ b/cloudformation/resources/aws-directoryservice-simplead_vpcsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDirectoryServiceSimpleAD_VpcSettings AWS CloudFormation Resource (AWS::DirectoryService::SimpleAD.VpcSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-simplead-vpcsettings.html @@ -15,7 +17,7 @@ type AWSDirectoryServiceSimpleAD_VpcSettings struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDirectoryServiceSimpleAD_VpcSettings) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDirectoryServiceSimpleAD_VpcSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDirectoryServiceSimpleAD_VpcSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dlm-lifecyclepolicy.go b/cloudformation/resources/aws-dlm-lifecyclepolicy.go similarity index 91% rename from cloudformation/aws-dlm-lifecyclepolicy.go rename to cloudformation/resources/aws-dlm-lifecyclepolicy.go index 82e1b9f41f..3c9b79dc43 100644 --- a/cloudformation/aws-dlm-lifecyclepolicy.go +++ b/cloudformation/resources/aws-dlm-lifecyclepolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDLMLifecyclePolicy AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy) @@ -31,7 +32,7 @@ type AWSDLMLifecyclePolicy struct { State string `json:"State,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSDLMLifecyclePolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDLMLifecyclePolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDLMLifecyclePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSDLMLifecyclePolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dlm-lifecyclepolicy_createrule.go b/cloudformation/resources/aws-dlm-lifecyclepolicy_createrule.go similarity index 95% rename from cloudformation/aws-dlm-lifecyclepolicy_createrule.go rename to cloudformation/resources/aws-dlm-lifecyclepolicy_createrule.go index e5153d8688..3332a5d1b1 100644 --- a/cloudformation/aws-dlm-lifecyclepolicy_createrule.go +++ b/cloudformation/resources/aws-dlm-lifecyclepolicy_createrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDLMLifecyclePolicy_CreateRule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.CreateRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html @@ -20,7 +22,7 @@ type AWSDLMLifecyclePolicy_CreateRule struct { Times []string `json:"Times,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSDLMLifecyclePolicy_CreateRule) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDLMLifecyclePolicy_CreateRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDLMLifecyclePolicy_CreateRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dlm-lifecyclepolicy_policydetails.go b/cloudformation/resources/aws-dlm-lifecyclepolicy_policydetails.go similarity index 95% rename from cloudformation/aws-dlm-lifecyclepolicy_policydetails.go rename to cloudformation/resources/aws-dlm-lifecyclepolicy_policydetails.go index 39f3d81c21..4c7328db89 100644 --- a/cloudformation/aws-dlm-lifecyclepolicy_policydetails.go +++ b/cloudformation/resources/aws-dlm-lifecyclepolicy_policydetails.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDLMLifecyclePolicy_PolicyDetails AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.PolicyDetails) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html @@ -20,7 +22,7 @@ type AWSDLMLifecyclePolicy_PolicyDetails struct { TargetTags []Tag `json:"TargetTags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSDLMLifecyclePolicy_PolicyDetails) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDLMLifecyclePolicy_PolicyDetails) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDLMLifecyclePolicy_PolicyDetails) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dlm-lifecyclepolicy_retainrule.go b/cloudformation/resources/aws-dlm-lifecyclepolicy_retainrule.go similarity index 93% rename from cloudformation/aws-dlm-lifecyclepolicy_retainrule.go rename to cloudformation/resources/aws-dlm-lifecyclepolicy_retainrule.go index 7355704e97..f186b6f424 100644 --- a/cloudformation/aws-dlm-lifecyclepolicy_retainrule.go +++ b/cloudformation/resources/aws-dlm-lifecyclepolicy_retainrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDLMLifecyclePolicy_RetainRule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.RetainRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html @@ -10,7 +12,7 @@ type AWSDLMLifecyclePolicy_RetainRule struct { Count int `json:"Count"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSDLMLifecyclePolicy_RetainRule) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDLMLifecyclePolicy_RetainRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDLMLifecyclePolicy_RetainRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dlm-lifecyclepolicy_schedule.go b/cloudformation/resources/aws-dlm-lifecyclepolicy_schedule.go similarity index 95% rename from cloudformation/aws-dlm-lifecyclepolicy_schedule.go rename to cloudformation/resources/aws-dlm-lifecyclepolicy_schedule.go index d2d1d85bbc..8ff93799f5 100644 --- a/cloudformation/aws-dlm-lifecyclepolicy_schedule.go +++ b/cloudformation/resources/aws-dlm-lifecyclepolicy_schedule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDLMLifecyclePolicy_Schedule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.Schedule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html @@ -30,7 +32,7 @@ type AWSDLMLifecyclePolicy_Schedule struct { TagsToAdd []Tag `json:"TagsToAdd,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSDLMLifecyclePolicy_Schedule) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDLMLifecyclePolicy_Schedule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDLMLifecyclePolicy_Schedule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dms-certificate.go b/cloudformation/resources/aws-dms-certificate.go similarity index 91% rename from cloudformation/aws-dms-certificate.go rename to cloudformation/resources/aws-dms-certificate.go index f46e3edad0..174748df29 100644 --- a/cloudformation/aws-dms-certificate.go +++ b/cloudformation/resources/aws-dms-certificate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDMSCertificate AWS CloudFormation Resource (AWS::DMS::Certificate) @@ -26,7 +27,7 @@ type AWSDMSCertificate struct { CertificateWallet string `json:"CertificateWallet,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSDMSCertificate) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSCertificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSDMSCertificate) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dms-endpoint.go b/cloudformation/resources/aws-dms-endpoint.go similarity index 95% rename from cloudformation/aws-dms-endpoint.go rename to cloudformation/resources/aws-dms-endpoint.go index fffb25fbf7..4a22f1e68c 100644 --- a/cloudformation/aws-dms-endpoint.go +++ b/cloudformation/resources/aws-dms-endpoint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDMSEndpoint AWS CloudFormation Resource (AWS::DMS::Endpoint) @@ -101,7 +102,7 @@ type AWSDMSEndpoint struct { Username string `json:"Username,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -141,7 +142,7 @@ func (r *AWSDMSEndpoint) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSEndpoint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -152,9 +153,9 @@ func (r AWSDMSEndpoint) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dms-endpoint_dynamodbsettings.go b/cloudformation/resources/aws-dms-endpoint_dynamodbsettings.go similarity index 94% rename from cloudformation/aws-dms-endpoint_dynamodbsettings.go rename to cloudformation/resources/aws-dms-endpoint_dynamodbsettings.go index 14d1b30d4c..9b995832f4 100644 --- a/cloudformation/aws-dms-endpoint_dynamodbsettings.go +++ b/cloudformation/resources/aws-dms-endpoint_dynamodbsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDMSEndpoint_DynamoDbSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.DynamoDbSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html @@ -10,7 +12,7 @@ type AWSDMSEndpoint_DynamoDbSettings struct { ServiceAccessRoleArn string `json:"ServiceAccessRoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSDMSEndpoint_DynamoDbSettings) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSEndpoint_DynamoDbSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSEndpoint_DynamoDbSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dms-endpoint_elasticsearchsettings.go b/cloudformation/resources/aws-dms-endpoint_elasticsearchsettings.go similarity index 95% rename from cloudformation/aws-dms-endpoint_elasticsearchsettings.go rename to cloudformation/resources/aws-dms-endpoint_elasticsearchsettings.go index eb1b17a9a7..10b6f2a0fb 100644 --- a/cloudformation/aws-dms-endpoint_elasticsearchsettings.go +++ b/cloudformation/resources/aws-dms-endpoint_elasticsearchsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDMSEndpoint_ElasticsearchSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.ElasticsearchSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-elasticsearchsettings.html @@ -25,7 +27,7 @@ type AWSDMSEndpoint_ElasticsearchSettings struct { ServiceAccessRoleArn string `json:"ServiceAccessRoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSDMSEndpoint_ElasticsearchSettings) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSEndpoint_ElasticsearchSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSEndpoint_ElasticsearchSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dms-endpoint_kinesissettings.go b/cloudformation/resources/aws-dms-endpoint_kinesissettings.go similarity index 95% rename from cloudformation/aws-dms-endpoint_kinesissettings.go rename to cloudformation/resources/aws-dms-endpoint_kinesissettings.go index ac9d123ecd..f1a8e75b4f 100644 --- a/cloudformation/aws-dms-endpoint_kinesissettings.go +++ b/cloudformation/resources/aws-dms-endpoint_kinesissettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDMSEndpoint_KinesisSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.KinesisSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-kinesissettings.html @@ -20,7 +22,7 @@ type AWSDMSEndpoint_KinesisSettings struct { StreamArn string `json:"StreamArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSDMSEndpoint_KinesisSettings) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSEndpoint_KinesisSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSEndpoint_KinesisSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dms-endpoint_mongodbsettings.go b/cloudformation/resources/aws-dms-endpoint_mongodbsettings.go similarity index 97% rename from cloudformation/aws-dms-endpoint_mongodbsettings.go rename to cloudformation/resources/aws-dms-endpoint_mongodbsettings.go index cbb9d37f77..769350a07e 100644 --- a/cloudformation/aws-dms-endpoint_mongodbsettings.go +++ b/cloudformation/resources/aws-dms-endpoint_mongodbsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDMSEndpoint_MongoDbSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.MongoDbSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html @@ -60,7 +62,7 @@ type AWSDMSEndpoint_MongoDbSettings struct { Username string `json:"Username,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -100,6 +102,6 @@ func (r *AWSDMSEndpoint_MongoDbSettings) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSEndpoint_MongoDbSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSEndpoint_MongoDbSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dms-endpoint_s3settings.go b/cloudformation/resources/aws-dms-endpoint_s3settings.go similarity index 94% rename from cloudformation/aws-dms-endpoint_s3settings.go rename to cloudformation/resources/aws-dms-endpoint_s3settings.go index 2cd4421cce..e52f518062 100644 --- a/cloudformation/aws-dms-endpoint_s3settings.go +++ b/cloudformation/resources/aws-dms-endpoint_s3settings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDMSEndpoint_S3Settings AWS CloudFormation Resource (AWS::DMS::Endpoint.S3Settings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html @@ -40,7 +42,7 @@ type AWSDMSEndpoint_S3Settings struct { ServiceAccessRoleArn string `json:"ServiceAccessRoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSDMSEndpoint_S3Settings) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSEndpoint_S3Settings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSEndpoint_S3Settings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dms-eventsubscription.go b/cloudformation/resources/aws-dms-eventsubscription.go similarity index 92% rename from cloudformation/aws-dms-eventsubscription.go rename to cloudformation/resources/aws-dms-eventsubscription.go index 2118551b9e..4a4d458cf6 100644 --- a/cloudformation/aws-dms-eventsubscription.go +++ b/cloudformation/resources/aws-dms-eventsubscription.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDMSEventSubscription AWS CloudFormation Resource (AWS::DMS::EventSubscription) @@ -46,7 +47,7 @@ type AWSDMSEventSubscription struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSDMSEventSubscription) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSEventSubscription) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSEventSubscription) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSDMSEventSubscription) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dms-replicationinstance.go b/cloudformation/resources/aws-dms-replicationinstance.go similarity index 94% rename from cloudformation/aws-dms-replicationinstance.go rename to cloudformation/resources/aws-dms-replicationinstance.go index 0e2078088c..e1eb6c580a 100644 --- a/cloudformation/aws-dms-replicationinstance.go +++ b/cloudformation/resources/aws-dms-replicationinstance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDMSReplicationInstance AWS CloudFormation Resource (AWS::DMS::ReplicationInstance) @@ -81,7 +82,7 @@ type AWSDMSReplicationInstance struct { VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -121,7 +122,7 @@ func (r *AWSDMSReplicationInstance) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSReplicationInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSReplicationInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -132,9 +133,9 @@ func (r AWSDMSReplicationInstance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dms-replicationsubnetgroup.go b/cloudformation/resources/aws-dms-replicationsubnetgroup.go similarity index 93% rename from cloudformation/aws-dms-replicationsubnetgroup.go rename to cloudformation/resources/aws-dms-replicationsubnetgroup.go index 8041561bd8..86f50bacfd 100644 --- a/cloudformation/aws-dms-replicationsubnetgroup.go +++ b/cloudformation/resources/aws-dms-replicationsubnetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDMSReplicationSubnetGroup AWS CloudFormation Resource (AWS::DMS::ReplicationSubnetGroup) @@ -31,7 +32,7 @@ type AWSDMSReplicationSubnetGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSDMSReplicationSubnetGroup) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSReplicationSubnetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSReplicationSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSDMSReplicationSubnetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dms-replicationtask.go b/cloudformation/resources/aws-dms-replicationtask.go similarity index 93% rename from cloudformation/aws-dms-replicationtask.go rename to cloudformation/resources/aws-dms-replicationtask.go index 8651255260..fe04789e7b 100644 --- a/cloudformation/aws-dms-replicationtask.go +++ b/cloudformation/resources/aws-dms-replicationtask.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDMSReplicationTask AWS CloudFormation Resource (AWS::DMS::ReplicationTask) @@ -56,7 +57,7 @@ type AWSDMSReplicationTask struct { TargetEndpointArn string `json:"TargetEndpointArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSDMSReplicationTask) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDMSReplicationTask) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDMSReplicationTask) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSDMSReplicationTask) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-docdb-dbcluster.go b/cloudformation/resources/aws-docdb-dbcluster.go similarity index 95% rename from cloudformation/aws-docdb-dbcluster.go rename to cloudformation/resources/aws-docdb-dbcluster.go index d91712d8a6..c5fb96eebb 100644 --- a/cloudformation/aws-docdb-dbcluster.go +++ b/cloudformation/resources/aws-docdb-dbcluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDocDBDBCluster AWS CloudFormation Resource (AWS::DocDB::DBCluster) @@ -91,7 +92,7 @@ type AWSDocDBDBCluster struct { VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -131,7 +132,7 @@ func (r *AWSDocDBDBCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDocDBDBCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDocDBDBCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -142,9 +143,9 @@ func (r AWSDocDBDBCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-docdb-dbclusterparametergroup.go b/cloudformation/resources/aws-docdb-dbclusterparametergroup.go similarity index 93% rename from cloudformation/aws-docdb-dbclusterparametergroup.go rename to cloudformation/resources/aws-docdb-dbclusterparametergroup.go index cece8f1ff6..e8b83040c0 100644 --- a/cloudformation/aws-docdb-dbclusterparametergroup.go +++ b/cloudformation/resources/aws-docdb-dbclusterparametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDocDBDBClusterParameterGroup AWS CloudFormation Resource (AWS::DocDB::DBClusterParameterGroup) @@ -36,7 +37,7 @@ type AWSDocDBDBClusterParameterGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSDocDBDBClusterParameterGroup) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDocDBDBClusterParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDocDBDBClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSDocDBDBClusterParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-docdb-dbinstance.go b/cloudformation/resources/aws-docdb-dbinstance.go similarity index 92% rename from cloudformation/aws-docdb-dbinstance.go rename to cloudformation/resources/aws-docdb-dbinstance.go index 00d88b79fb..846c7827cf 100644 --- a/cloudformation/aws-docdb-dbinstance.go +++ b/cloudformation/resources/aws-docdb-dbinstance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDocDBDBInstance AWS CloudFormation Resource (AWS::DocDB::DBInstance) @@ -46,7 +47,7 @@ type AWSDocDBDBInstance struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSDocDBDBInstance) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDocDBDBInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDocDBDBInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSDocDBDBInstance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-docdb-dbsubnetgroup.go b/cloudformation/resources/aws-docdb-dbsubnetgroup.go similarity index 91% rename from cloudformation/aws-docdb-dbsubnetgroup.go rename to cloudformation/resources/aws-docdb-dbsubnetgroup.go index b15acb49ab..e6fdce5f12 100644 --- a/cloudformation/aws-docdb-dbsubnetgroup.go +++ b/cloudformation/resources/aws-docdb-dbsubnetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDocDBDBSubnetGroup AWS CloudFormation Resource (AWS::DocDB::DBSubnetGroup) @@ -31,7 +32,7 @@ type AWSDocDBDBSubnetGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSDocDBDBSubnetGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDocDBDBSubnetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDocDBDBSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSDocDBDBSubnetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dynamodb-table.go b/cloudformation/resources/aws-dynamodb-table.go similarity index 94% rename from cloudformation/aws-dynamodb-table.go rename to cloudformation/resources/aws-dynamodb-table.go index 61d23ea3ed..5e4fd2b852 100644 --- a/cloudformation/aws-dynamodb-table.go +++ b/cloudformation/resources/aws-dynamodb-table.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSDynamoDBTable AWS CloudFormation Resource (AWS::DynamoDB::Table) @@ -71,7 +72,7 @@ type AWSDynamoDBTable struct { TimeToLiveSpecification *AWSDynamoDBTable_TimeToLiveSpecification `json:"TimeToLiveSpecification,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -111,7 +112,7 @@ func (r *AWSDynamoDBTable) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -122,9 +123,9 @@ func (r AWSDynamoDBTable) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-dynamodb-table_attributedefinition.go b/cloudformation/resources/aws-dynamodb-table_attributedefinition.go similarity index 94% rename from cloudformation/aws-dynamodb-table_attributedefinition.go rename to cloudformation/resources/aws-dynamodb-table_attributedefinition.go index 736e123a9e..22a8b12f07 100644 --- a/cloudformation/aws-dynamodb-table_attributedefinition.go +++ b/cloudformation/resources/aws-dynamodb-table_attributedefinition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_AttributeDefinition AWS CloudFormation Resource (AWS::DynamoDB::Table.AttributeDefinition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html @@ -15,7 +17,7 @@ type AWSDynamoDBTable_AttributeDefinition struct { AttributeType string `json:"AttributeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDynamoDBTable_AttributeDefinition) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_AttributeDefinition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_AttributeDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_globalsecondaryindex.go b/cloudformation/resources/aws-dynamodb-table_globalsecondaryindex.go similarity index 95% rename from cloudformation/aws-dynamodb-table_globalsecondaryindex.go rename to cloudformation/resources/aws-dynamodb-table_globalsecondaryindex.go index 950d0d3cab..078473c760 100644 --- a/cloudformation/aws-dynamodb-table_globalsecondaryindex.go +++ b/cloudformation/resources/aws-dynamodb-table_globalsecondaryindex.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_GlobalSecondaryIndex AWS CloudFormation Resource (AWS::DynamoDB::Table.GlobalSecondaryIndex) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html @@ -25,7 +27,7 @@ type AWSDynamoDBTable_GlobalSecondaryIndex struct { ProvisionedThroughput *AWSDynamoDBTable_ProvisionedThroughput `json:"ProvisionedThroughput,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSDynamoDBTable_GlobalSecondaryIndex) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_GlobalSecondaryIndex) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_GlobalSecondaryIndex) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_keyschema.go b/cloudformation/resources/aws-dynamodb-table_keyschema.go similarity index 92% rename from cloudformation/aws-dynamodb-table_keyschema.go rename to cloudformation/resources/aws-dynamodb-table_keyschema.go index b0db243b00..f792a095b9 100644 --- a/cloudformation/aws-dynamodb-table_keyschema.go +++ b/cloudformation/resources/aws-dynamodb-table_keyschema.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_KeySchema AWS CloudFormation Resource (AWS::DynamoDB::Table.KeySchema) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html @@ -15,7 +17,7 @@ type AWSDynamoDBTable_KeySchema struct { KeyType string `json:"KeyType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDynamoDBTable_KeySchema) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_KeySchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_KeySchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_localsecondaryindex.go b/cloudformation/resources/aws-dynamodb-table_localsecondaryindex.go similarity index 94% rename from cloudformation/aws-dynamodb-table_localsecondaryindex.go rename to cloudformation/resources/aws-dynamodb-table_localsecondaryindex.go index 2e27004d50..1fb002a9a2 100644 --- a/cloudformation/aws-dynamodb-table_localsecondaryindex.go +++ b/cloudformation/resources/aws-dynamodb-table_localsecondaryindex.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_LocalSecondaryIndex AWS CloudFormation Resource (AWS::DynamoDB::Table.LocalSecondaryIndex) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html @@ -20,7 +22,7 @@ type AWSDynamoDBTable_LocalSecondaryIndex struct { Projection *AWSDynamoDBTable_Projection `json:"Projection,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSDynamoDBTable_LocalSecondaryIndex) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_LocalSecondaryIndex) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_LocalSecondaryIndex) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_pointintimerecoveryspecification.go b/cloudformation/resources/aws-dynamodb-table_pointintimerecoveryspecification.go similarity index 93% rename from cloudformation/aws-dynamodb-table_pointintimerecoveryspecification.go rename to cloudformation/resources/aws-dynamodb-table_pointintimerecoveryspecification.go index 2e185b578b..4c6076d7d6 100644 --- a/cloudformation/aws-dynamodb-table_pointintimerecoveryspecification.go +++ b/cloudformation/resources/aws-dynamodb-table_pointintimerecoveryspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_PointInTimeRecoverySpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.PointInTimeRecoverySpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html @@ -10,7 +12,7 @@ type AWSDynamoDBTable_PointInTimeRecoverySpecification struct { PointInTimeRecoveryEnabled bool `json:"PointInTimeRecoveryEnabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSDynamoDBTable_PointInTimeRecoverySpecification) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_PointInTimeRecoverySpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_PointInTimeRecoverySpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_projection.go b/cloudformation/resources/aws-dynamodb-table_projection.go similarity index 92% rename from cloudformation/aws-dynamodb-table_projection.go rename to cloudformation/resources/aws-dynamodb-table_projection.go index f0ea8188dd..2537fec984 100644 --- a/cloudformation/aws-dynamodb-table_projection.go +++ b/cloudformation/resources/aws-dynamodb-table_projection.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_Projection AWS CloudFormation Resource (AWS::DynamoDB::Table.Projection) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html @@ -15,7 +17,7 @@ type AWSDynamoDBTable_Projection struct { ProjectionType string `json:"ProjectionType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDynamoDBTable_Projection) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_Projection) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_Projection) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_provisionedthroughput.go b/cloudformation/resources/aws-dynamodb-table_provisionedthroughput.go similarity index 94% rename from cloudformation/aws-dynamodb-table_provisionedthroughput.go rename to cloudformation/resources/aws-dynamodb-table_provisionedthroughput.go index c9b6cadadc..6ed9e861fb 100644 --- a/cloudformation/aws-dynamodb-table_provisionedthroughput.go +++ b/cloudformation/resources/aws-dynamodb-table_provisionedthroughput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_ProvisionedThroughput AWS CloudFormation Resource (AWS::DynamoDB::Table.ProvisionedThroughput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html @@ -15,7 +17,7 @@ type AWSDynamoDBTable_ProvisionedThroughput struct { WriteCapacityUnits int64 `json:"WriteCapacityUnits"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDynamoDBTable_ProvisionedThroughput) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_ProvisionedThroughput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_ProvisionedThroughput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_ssespecification.go b/cloudformation/resources/aws-dynamodb-table_ssespecification.go similarity index 93% rename from cloudformation/aws-dynamodb-table_ssespecification.go rename to cloudformation/resources/aws-dynamodb-table_ssespecification.go index be6f60f43c..5455366279 100644 --- a/cloudformation/aws-dynamodb-table_ssespecification.go +++ b/cloudformation/resources/aws-dynamodb-table_ssespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_SSESpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.SSESpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html @@ -10,7 +12,7 @@ type AWSDynamoDBTable_SSESpecification struct { SSEEnabled bool `json:"SSEEnabled"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSDynamoDBTable_SSESpecification) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_SSESpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_SSESpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_streamspecification.go b/cloudformation/resources/aws-dynamodb-table_streamspecification.go similarity index 93% rename from cloudformation/aws-dynamodb-table_streamspecification.go rename to cloudformation/resources/aws-dynamodb-table_streamspecification.go index e98b5c64ee..bc6d6b6b82 100644 --- a/cloudformation/aws-dynamodb-table_streamspecification.go +++ b/cloudformation/resources/aws-dynamodb-table_streamspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_StreamSpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.StreamSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-streamspecification.html @@ -10,7 +12,7 @@ type AWSDynamoDBTable_StreamSpecification struct { StreamViewType string `json:"StreamViewType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSDynamoDBTable_StreamSpecification) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_StreamSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_StreamSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-dynamodb-table_timetolivespecification.go b/cloudformation/resources/aws-dynamodb-table_timetolivespecification.go similarity index 94% rename from cloudformation/aws-dynamodb-table_timetolivespecification.go rename to cloudformation/resources/aws-dynamodb-table_timetolivespecification.go index 678240207c..146f8001e4 100644 --- a/cloudformation/aws-dynamodb-table_timetolivespecification.go +++ b/cloudformation/resources/aws-dynamodb-table_timetolivespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSDynamoDBTable_TimeToLiveSpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.TimeToLiveSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html @@ -15,7 +17,7 @@ type AWSDynamoDBTable_TimeToLiveSpecification struct { Enabled bool `json:"Enabled"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSDynamoDBTable_TimeToLiveSpecification) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSDynamoDBTable_TimeToLiveSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSDynamoDBTable_TimeToLiveSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-customergateway.go b/cloudformation/resources/aws-ec2-customergateway.go similarity index 91% rename from cloudformation/aws-ec2-customergateway.go rename to cloudformation/resources/aws-ec2-customergateway.go index 38fdbc5cd3..d1558825d9 100644 --- a/cloudformation/aws-ec2-customergateway.go +++ b/cloudformation/resources/aws-ec2-customergateway.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2CustomerGateway AWS CloudFormation Resource (AWS::EC2::CustomerGateway) @@ -31,7 +32,7 @@ type AWSEC2CustomerGateway struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEC2CustomerGateway) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2CustomerGateway) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2CustomerGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEC2CustomerGateway) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-dhcpoptions.go b/cloudformation/resources/aws-ec2-dhcpoptions.go similarity index 92% rename from cloudformation/aws-ec2-dhcpoptions.go rename to cloudformation/resources/aws-ec2-dhcpoptions.go index 7f756844c8..f918b2bf2e 100644 --- a/cloudformation/aws-ec2-dhcpoptions.go +++ b/cloudformation/resources/aws-ec2-dhcpoptions.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2DHCPOptions AWS CloudFormation Resource (AWS::EC2::DHCPOptions) @@ -41,7 +42,7 @@ type AWSEC2DHCPOptions struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSEC2DHCPOptions) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2DHCPOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2DHCPOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSEC2DHCPOptions) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-ec2fleet.go b/cloudformation/resources/aws-ec2-ec2fleet.go similarity index 94% rename from cloudformation/aws-ec2-ec2fleet.go rename to cloudformation/resources/aws-ec2-ec2fleet.go index a84813eb4f..b5d40299ad 100644 --- a/cloudformation/aws-ec2-ec2fleet.go +++ b/cloudformation/resources/aws-ec2-ec2fleet.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2EC2Fleet AWS CloudFormation Resource (AWS::EC2::EC2Fleet) @@ -66,7 +67,7 @@ type AWSEC2EC2Fleet struct { ValidUntil string `json:"ValidUntil,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -106,7 +107,7 @@ func (r *AWSEC2EC2Fleet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -117,9 +118,9 @@ func (r AWSEC2EC2Fleet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go b/cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go similarity index 94% rename from cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go rename to cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go index 88b7c0ce86..1342e7eac6 100644 --- a/cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_FleetLaunchTemplateConfigRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.FleetLaunchTemplateConfigRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateconfigrequest.html @@ -15,7 +17,7 @@ type AWSEC2EC2Fleet_FleetLaunchTemplateConfigRequest struct { Overrides []AWSEC2EC2Fleet_FleetLaunchTemplateOverridesRequest `json:"Overrides,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2EC2Fleet_FleetLaunchTemplateConfigRequest) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_FleetLaunchTemplateConfigRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_FleetLaunchTemplateConfigRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go b/cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go similarity index 96% rename from cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go rename to cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go index 945ee61713..80a8851b51 100644 --- a/cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_FleetLaunchTemplateOverridesRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.FleetLaunchTemplateOverridesRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html @@ -35,7 +37,7 @@ type AWSEC2EC2Fleet_FleetLaunchTemplateOverridesRequest struct { WeightedCapacity float64 `json:"WeightedCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSEC2EC2Fleet_FleetLaunchTemplateOverridesRequest) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_FleetLaunchTemplateOverridesRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_FleetLaunchTemplateOverridesRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go b/cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go similarity index 95% rename from cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go rename to cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go index 3569b4775b..6ffefea552 100644 --- a/cloudformation/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_FleetLaunchTemplateSpecificationRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.FleetLaunchTemplateSpecificationRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html @@ -20,7 +22,7 @@ type AWSEC2EC2Fleet_FleetLaunchTemplateSpecificationRequest struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEC2EC2Fleet_FleetLaunchTemplateSpecificationRequest) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_FleetLaunchTemplateSpecificationRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_FleetLaunchTemplateSpecificationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-ec2fleet_ondemandoptionsrequest.go b/cloudformation/resources/aws-ec2-ec2fleet_ondemandoptionsrequest.go similarity index 94% rename from cloudformation/aws-ec2-ec2fleet_ondemandoptionsrequest.go rename to cloudformation/resources/aws-ec2-ec2fleet_ondemandoptionsrequest.go index cc0cb0c3eb..ab7d4b6797 100644 --- a/cloudformation/aws-ec2-ec2fleet_ondemandoptionsrequest.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_ondemandoptionsrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_OnDemandOptionsRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.OnDemandOptionsRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html @@ -10,7 +12,7 @@ type AWSEC2EC2Fleet_OnDemandOptionsRequest struct { AllocationStrategy string `json:"AllocationStrategy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2EC2Fleet_OnDemandOptionsRequest) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_OnDemandOptionsRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_OnDemandOptionsRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-ec2fleet_spotoptionsrequest.go b/cloudformation/resources/aws-ec2-ec2fleet_spotoptionsrequest.go similarity index 95% rename from cloudformation/aws-ec2-ec2fleet_spotoptionsrequest.go rename to cloudformation/resources/aws-ec2-ec2fleet_spotoptionsrequest.go index a4fdee99a0..328f3866d2 100644 --- a/cloudformation/aws-ec2-ec2fleet_spotoptionsrequest.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_spotoptionsrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_SpotOptionsRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.SpotOptionsRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html @@ -20,7 +22,7 @@ type AWSEC2EC2Fleet_SpotOptionsRequest struct { InstancePoolsToUseCount int `json:"InstancePoolsToUseCount,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEC2EC2Fleet_SpotOptionsRequest) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_SpotOptionsRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_SpotOptionsRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-ec2fleet_tagrequest.go b/cloudformation/resources/aws-ec2-ec2fleet_tagrequest.go similarity index 92% rename from cloudformation/aws-ec2-ec2fleet_tagrequest.go rename to cloudformation/resources/aws-ec2-ec2fleet_tagrequest.go index 84ed6d2314..91514ccbfc 100644 --- a/cloudformation/aws-ec2-ec2fleet_tagrequest.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_tagrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_TagRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.TagRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-tagrequest.html @@ -15,7 +17,7 @@ type AWSEC2EC2Fleet_TagRequest struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2EC2Fleet_TagRequest) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_TagRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_TagRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-ec2fleet_tagspecification.go b/cloudformation/resources/aws-ec2-ec2fleet_tagspecification.go similarity index 94% rename from cloudformation/aws-ec2-ec2fleet_tagspecification.go rename to cloudformation/resources/aws-ec2-ec2fleet_tagspecification.go index 3624485744..63037f9a1c 100644 --- a/cloudformation/aws-ec2-ec2fleet_tagspecification.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_tagspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_TagSpecification AWS CloudFormation Resource (AWS::EC2::EC2Fleet.TagSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-tagspecification.html @@ -15,7 +17,7 @@ type AWSEC2EC2Fleet_TagSpecification struct { Tags []AWSEC2EC2Fleet_TagRequest `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2EC2Fleet_TagSpecification) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_TagSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_TagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go b/cloudformation/resources/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go similarity index 95% rename from cloudformation/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go rename to cloudformation/resources/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go index 650b74207b..642313eb54 100644 --- a/cloudformation/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go +++ b/cloudformation/resources/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2EC2Fleet_TargetCapacitySpecificationRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.TargetCapacitySpecificationRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html @@ -25,7 +27,7 @@ type AWSEC2EC2Fleet_TargetCapacitySpecificationRequest struct { TotalTargetCapacity int `json:"TotalTargetCapacity"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEC2EC2Fleet_TargetCapacitySpecificationRequest) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EC2Fleet_TargetCapacitySpecificationRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EC2Fleet_TargetCapacitySpecificationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-egressonlyinternetgateway.go b/cloudformation/resources/aws-ec2-egressonlyinternetgateway.go similarity index 91% rename from cloudformation/aws-ec2-egressonlyinternetgateway.go rename to cloudformation/resources/aws-ec2-egressonlyinternetgateway.go index eb251b73f1..35b3707b66 100644 --- a/cloudformation/aws-ec2-egressonlyinternetgateway.go +++ b/cloudformation/resources/aws-ec2-egressonlyinternetgateway.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2EgressOnlyInternetGateway AWS CloudFormation Resource (AWS::EC2::EgressOnlyInternetGateway) @@ -16,7 +17,7 @@ type AWSEC2EgressOnlyInternetGateway struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSEC2EgressOnlyInternetGateway) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EgressOnlyInternetGateway) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EgressOnlyInternetGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSEC2EgressOnlyInternetGateway) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-eip.go b/cloudformation/resources/aws-ec2-eip.go similarity index 90% rename from cloudformation/aws-ec2-eip.go rename to cloudformation/resources/aws-ec2-eip.go index 2c06f94772..5aa41241f9 100644 --- a/cloudformation/aws-ec2-eip.go +++ b/cloudformation/resources/aws-ec2-eip.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2EIP AWS CloudFormation Resource (AWS::EC2::EIP) @@ -26,7 +27,7 @@ type AWSEC2EIP struct { PublicIpv4Pool string `json:"PublicIpv4Pool,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2EIP) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EIP) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EIP) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2EIP) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-eipassociation.go b/cloudformation/resources/aws-ec2-eipassociation.go similarity index 92% rename from cloudformation/aws-ec2-eipassociation.go rename to cloudformation/resources/aws-ec2-eipassociation.go index 225d2679a4..9dfccc72e3 100644 --- a/cloudformation/aws-ec2-eipassociation.go +++ b/cloudformation/resources/aws-ec2-eipassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2EIPAssociation AWS CloudFormation Resource (AWS::EC2::EIPAssociation) @@ -36,7 +37,7 @@ type AWSEC2EIPAssociation struct { PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSEC2EIPAssociation) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2EIPAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2EIPAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSEC2EIPAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-flowlog.go b/cloudformation/resources/aws-ec2-flowlog.go similarity index 92% rename from cloudformation/aws-ec2-flowlog.go rename to cloudformation/resources/aws-ec2-flowlog.go index 8514977e1d..12c298d96e 100644 --- a/cloudformation/aws-ec2-flowlog.go +++ b/cloudformation/resources/aws-ec2-flowlog.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2FlowLog AWS CloudFormation Resource (AWS::EC2::FlowLog) @@ -46,7 +47,7 @@ type AWSEC2FlowLog struct { TrafficType string `json:"TrafficType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSEC2FlowLog) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2FlowLog) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2FlowLog) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSEC2FlowLog) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-host.go b/cloudformation/resources/aws-ec2-host.go similarity index 90% rename from cloudformation/aws-ec2-host.go rename to cloudformation/resources/aws-ec2-host.go index 2b8c638c76..0489016860 100644 --- a/cloudformation/aws-ec2-host.go +++ b/cloudformation/resources/aws-ec2-host.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2Host AWS CloudFormation Resource (AWS::EC2::Host) @@ -26,7 +27,7 @@ type AWSEC2Host struct { InstanceType string `json:"InstanceType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2Host) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Host) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Host) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2Host) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-instance.go b/cloudformation/resources/aws-ec2-instance.go similarity index 95% rename from cloudformation/aws-ec2-instance.go rename to cloudformation/resources/aws-ec2-instance.go index e9c38b8447..5cb82db097 100644 --- a/cloudformation/aws-ec2-instance.go +++ b/cloudformation/resources/aws-ec2-instance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2Instance AWS CloudFormation Resource (AWS::EC2::Instance) @@ -181,10 +182,10 @@ type AWSEC2Instance struct { Volumes []AWSEC2Instance_Volume `json:"Volumes,omitempty"` // _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *CreationPolicy + _creationPolicy *policies.CreationPolicy // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -224,13 +225,13 @@ func (r *AWSEC2Instance) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance) 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 *AWSEC2Instance) SetCreationPolicy(policy *CreationPolicy) { +func (r *AWSEC2Instance) SetCreationPolicy(policy *policies.CreationPolicy) { r._creationPolicy = policy } @@ -241,11 +242,11 @@ func (r AWSEC2Instance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` - CreationPolicy *CreationPolicy `json:"CreationPolicy,omitempty"` + CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-instance_associationparameter.go b/cloudformation/resources/aws-ec2-instance_associationparameter.go similarity index 94% rename from cloudformation/aws-ec2-instance_associationparameter.go rename to cloudformation/resources/aws-ec2-instance_associationparameter.go index a521d6ee72..08af213051 100644 --- a/cloudformation/aws-ec2-instance_associationparameter.go +++ b/cloudformation/resources/aws-ec2-instance_associationparameter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_AssociationParameter AWS CloudFormation Resource (AWS::EC2::Instance.AssociationParameter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations-associationparameters.html @@ -15,7 +17,7 @@ type AWSEC2Instance_AssociationParameter struct { Value []string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2Instance_AssociationParameter) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_AssociationParameter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_AssociationParameter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_blockdevicemapping.go b/cloudformation/resources/aws-ec2-instance_blockdevicemapping.go similarity index 95% rename from cloudformation/aws-ec2-instance_blockdevicemapping.go rename to cloudformation/resources/aws-ec2-instance_blockdevicemapping.go index a804e92a3c..66ad981654 100644 --- a/cloudformation/aws-ec2-instance_blockdevicemapping.go +++ b/cloudformation/resources/aws-ec2-instance_blockdevicemapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_BlockDeviceMapping AWS CloudFormation Resource (AWS::EC2::Instance.BlockDeviceMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html @@ -25,7 +27,7 @@ type AWSEC2Instance_BlockDeviceMapping struct { VirtualName string `json:"VirtualName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEC2Instance_BlockDeviceMapping) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_BlockDeviceMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_creditspecification.go b/cloudformation/resources/aws-ec2-instance_creditspecification.go similarity index 93% rename from cloudformation/aws-ec2-instance_creditspecification.go rename to cloudformation/resources/aws-ec2-instance_creditspecification.go index dac1119ec1..9a22ac3ec5 100644 --- a/cloudformation/aws-ec2-instance_creditspecification.go +++ b/cloudformation/resources/aws-ec2-instance_creditspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_CreditSpecification AWS CloudFormation Resource (AWS::EC2::Instance.CreditSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-creditspecification.html @@ -10,7 +12,7 @@ type AWSEC2Instance_CreditSpecification struct { CPUCredits string `json:"CPUCredits,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2Instance_CreditSpecification) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_CreditSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_CreditSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_ebs.go b/cloudformation/resources/aws-ec2-instance_ebs.go similarity index 94% rename from cloudformation/aws-ec2-instance_ebs.go rename to cloudformation/resources/aws-ec2-instance_ebs.go index 30f8cb2d1c..66be16ed87 100644 --- a/cloudformation/aws-ec2-instance_ebs.go +++ b/cloudformation/resources/aws-ec2-instance_ebs.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_Ebs AWS CloudFormation Resource (AWS::EC2::Instance.Ebs) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html @@ -35,7 +37,7 @@ type AWSEC2Instance_Ebs struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSEC2Instance_Ebs) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_Ebs) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_Ebs) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_elasticgpuspecification.go b/cloudformation/resources/aws-ec2-instance_elasticgpuspecification.go similarity index 93% rename from cloudformation/aws-ec2-instance_elasticgpuspecification.go rename to cloudformation/resources/aws-ec2-instance_elasticgpuspecification.go index 88b00a9332..79a15a78b8 100644 --- a/cloudformation/aws-ec2-instance_elasticgpuspecification.go +++ b/cloudformation/resources/aws-ec2-instance_elasticgpuspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_ElasticGpuSpecification AWS CloudFormation Resource (AWS::EC2::Instance.ElasticGpuSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticgpuspecification.html @@ -10,7 +12,7 @@ type AWSEC2Instance_ElasticGpuSpecification struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2Instance_ElasticGpuSpecification) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_ElasticGpuSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_ElasticGpuSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_elasticinferenceaccelerator.go b/cloudformation/resources/aws-ec2-instance_elasticinferenceaccelerator.go similarity index 93% rename from cloudformation/aws-ec2-instance_elasticinferenceaccelerator.go rename to cloudformation/resources/aws-ec2-instance_elasticinferenceaccelerator.go index 6f03e2a47d..cc5815936b 100644 --- a/cloudformation/aws-ec2-instance_elasticinferenceaccelerator.go +++ b/cloudformation/resources/aws-ec2-instance_elasticinferenceaccelerator.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_ElasticInferenceAccelerator AWS CloudFormation Resource (AWS::EC2::Instance.ElasticInferenceAccelerator) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticinferenceaccelerator.html @@ -10,7 +12,7 @@ type AWSEC2Instance_ElasticInferenceAccelerator struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2Instance_ElasticInferenceAccelerator) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_ElasticInferenceAccelerator) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_ElasticInferenceAccelerator) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_instanceipv6address.go b/cloudformation/resources/aws-ec2-instance_instanceipv6address.go similarity index 93% rename from cloudformation/aws-ec2-instance_instanceipv6address.go rename to cloudformation/resources/aws-ec2-instance_instanceipv6address.go index af96f56e63..b60b470360 100644 --- a/cloudformation/aws-ec2-instance_instanceipv6address.go +++ b/cloudformation/resources/aws-ec2-instance_instanceipv6address.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_InstanceIpv6Address AWS CloudFormation Resource (AWS::EC2::Instance.InstanceIpv6Address) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-instanceipv6address.html @@ -10,7 +12,7 @@ type AWSEC2Instance_InstanceIpv6Address struct { Ipv6Address string `json:"Ipv6Address,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2Instance_InstanceIpv6Address) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_InstanceIpv6Address) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_InstanceIpv6Address) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_launchtemplatespecification.go b/cloudformation/resources/aws-ec2-instance_launchtemplatespecification.go similarity index 95% rename from cloudformation/aws-ec2-instance_launchtemplatespecification.go rename to cloudformation/resources/aws-ec2-instance_launchtemplatespecification.go index 7e57308fc5..58fed0b0dd 100644 --- a/cloudformation/aws-ec2-instance_launchtemplatespecification.go +++ b/cloudformation/resources/aws-ec2-instance_launchtemplatespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_LaunchTemplateSpecification AWS CloudFormation Resource (AWS::EC2::Instance.LaunchTemplateSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html @@ -20,7 +22,7 @@ type AWSEC2Instance_LaunchTemplateSpecification struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEC2Instance_LaunchTemplateSpecification) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_LaunchTemplateSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_LaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_licensespecification.go b/cloudformation/resources/aws-ec2-instance_licensespecification.go similarity index 94% rename from cloudformation/aws-ec2-instance_licensespecification.go rename to cloudformation/resources/aws-ec2-instance_licensespecification.go index 49cac4c623..08960a9772 100644 --- a/cloudformation/aws-ec2-instance_licensespecification.go +++ b/cloudformation/resources/aws-ec2-instance_licensespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_LicenseSpecification AWS CloudFormation Resource (AWS::EC2::Instance.LicenseSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-licensespecification.html @@ -10,7 +12,7 @@ type AWSEC2Instance_LicenseSpecification struct { LicenseConfigurationArn string `json:"LicenseConfigurationArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2Instance_LicenseSpecification) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_LicenseSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_LicenseSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_networkinterface.go b/cloudformation/resources/aws-ec2-instance_networkinterface.go similarity index 97% rename from cloudformation/aws-ec2-instance_networkinterface.go rename to cloudformation/resources/aws-ec2-instance_networkinterface.go index dbb64b9aef..4bdeb3e175 100644 --- a/cloudformation/aws-ec2-instance_networkinterface.go +++ b/cloudformation/resources/aws-ec2-instance_networkinterface.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_NetworkInterface AWS CloudFormation Resource (AWS::EC2::Instance.NetworkInterface) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html @@ -65,7 +67,7 @@ type AWSEC2Instance_NetworkInterface struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -105,6 +107,6 @@ func (r *AWSEC2Instance_NetworkInterface) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_NetworkInterface) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_NetworkInterface) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_nodevice.go b/cloudformation/resources/aws-ec2-instance_nodevice.go similarity index 90% rename from cloudformation/aws-ec2-instance_nodevice.go rename to cloudformation/resources/aws-ec2-instance_nodevice.go index 69100e9e65..c96781b5c0 100644 --- a/cloudformation/aws-ec2-instance_nodevice.go +++ b/cloudformation/resources/aws-ec2-instance_nodevice.go @@ -1,11 +1,13 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_NoDevice AWS CloudFormation Resource (AWS::EC2::Instance.NoDevice) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-nodevice.html type AWSEC2Instance_NoDevice struct { // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -45,6 +47,6 @@ func (r *AWSEC2Instance_NoDevice) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_NoDevice) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_NoDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_privateipaddressspecification.go b/cloudformation/resources/aws-ec2-instance_privateipaddressspecification.go similarity index 94% rename from cloudformation/aws-ec2-instance_privateipaddressspecification.go rename to cloudformation/resources/aws-ec2-instance_privateipaddressspecification.go index 97ad10b59f..68a575cc68 100644 --- a/cloudformation/aws-ec2-instance_privateipaddressspecification.go +++ b/cloudformation/resources/aws-ec2-instance_privateipaddressspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_PrivateIpAddressSpecification AWS CloudFormation Resource (AWS::EC2::Instance.PrivateIpAddressSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html @@ -15,7 +17,7 @@ type AWSEC2Instance_PrivateIpAddressSpecification struct { PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2Instance_PrivateIpAddressSpecification) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_PrivateIpAddressSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_PrivateIpAddressSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_ssmassociation.go b/cloudformation/resources/aws-ec2-instance_ssmassociation.go similarity index 94% rename from cloudformation/aws-ec2-instance_ssmassociation.go rename to cloudformation/resources/aws-ec2-instance_ssmassociation.go index cd55ac6ea5..6eb3f6aae8 100644 --- a/cloudformation/aws-ec2-instance_ssmassociation.go +++ b/cloudformation/resources/aws-ec2-instance_ssmassociation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_SsmAssociation AWS CloudFormation Resource (AWS::EC2::Instance.SsmAssociation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html @@ -15,7 +17,7 @@ type AWSEC2Instance_SsmAssociation struct { DocumentName string `json:"DocumentName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2Instance_SsmAssociation) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_SsmAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_SsmAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-instance_volume.go b/cloudformation/resources/aws-ec2-instance_volume.go similarity index 92% rename from cloudformation/aws-ec2-instance_volume.go rename to cloudformation/resources/aws-ec2-instance_volume.go index 006d45e38b..ea77904e40 100644 --- a/cloudformation/aws-ec2-instance_volume.go +++ b/cloudformation/resources/aws-ec2-instance_volume.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2Instance_Volume AWS CloudFormation Resource (AWS::EC2::Instance.Volume) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html @@ -15,7 +17,7 @@ type AWSEC2Instance_Volume struct { VolumeId string `json:"VolumeId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2Instance_Volume) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Instance_Volume) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Instance_Volume) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-internetgateway.go b/cloudformation/resources/aws-ec2-internetgateway.go similarity index 89% rename from cloudformation/aws-ec2-internetgateway.go rename to cloudformation/resources/aws-ec2-internetgateway.go index 483490f8f5..50903742cf 100644 --- a/cloudformation/aws-ec2-internetgateway.go +++ b/cloudformation/resources/aws-ec2-internetgateway.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2InternetGateway AWS CloudFormation Resource (AWS::EC2::InternetGateway) @@ -16,7 +17,7 @@ type AWSEC2InternetGateway struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSEC2InternetGateway) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2InternetGateway) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2InternetGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSEC2InternetGateway) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-launchtemplate.go b/cloudformation/resources/aws-ec2-launchtemplate.go similarity index 90% rename from cloudformation/aws-ec2-launchtemplate.go rename to cloudformation/resources/aws-ec2-launchtemplate.go index b38d4a1a48..79bf050af6 100644 --- a/cloudformation/aws-ec2-launchtemplate.go +++ b/cloudformation/resources/aws-ec2-launchtemplate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2LaunchTemplate AWS CloudFormation Resource (AWS::EC2::LaunchTemplate) @@ -21,7 +22,7 @@ type AWSEC2LaunchTemplate struct { LaunchTemplateName string `json:"LaunchTemplateName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2LaunchTemplate) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2LaunchTemplate) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-launchtemplate_blockdevicemapping.go b/cloudformation/resources/aws-ec2-launchtemplate_blockdevicemapping.go similarity index 95% rename from cloudformation/aws-ec2-launchtemplate_blockdevicemapping.go rename to cloudformation/resources/aws-ec2-launchtemplate_blockdevicemapping.go index 9a784ac9a4..90d101c9e3 100644 --- a/cloudformation/aws-ec2-launchtemplate_blockdevicemapping.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_blockdevicemapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_BlockDeviceMapping AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.BlockDeviceMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html @@ -25,7 +27,7 @@ type AWSEC2LaunchTemplate_BlockDeviceMapping struct { VirtualName string `json:"VirtualName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEC2LaunchTemplate_BlockDeviceMapping) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_BlockDeviceMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_capacityreservationpreference.go b/cloudformation/resources/aws-ec2-launchtemplate_capacityreservationpreference.go similarity index 92% rename from cloudformation/aws-ec2-launchtemplate_capacityreservationpreference.go rename to cloudformation/resources/aws-ec2-launchtemplate_capacityreservationpreference.go index 5e08753992..c1d43541d6 100644 --- a/cloudformation/aws-ec2-launchtemplate_capacityreservationpreference.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_capacityreservationpreference.go @@ -1,11 +1,13 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_CapacityReservationPreference AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CapacityReservationPreference) // See: type AWSEC2LaunchTemplate_CapacityReservationPreference struct { // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -45,6 +47,6 @@ func (r *AWSEC2LaunchTemplate_CapacityReservationPreference) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_CapacityReservationPreference) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_CapacityReservationPreference) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_capacityreservationspecification.go b/cloudformation/resources/aws-ec2-launchtemplate_capacityreservationspecification.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_capacityreservationspecification.go rename to cloudformation/resources/aws-ec2-launchtemplate_capacityreservationspecification.go index 423cedf18b..8e40c5800e 100644 --- a/cloudformation/aws-ec2-launchtemplate_capacityreservationspecification.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_capacityreservationspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_CapacityReservationSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CapacityReservationSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification.html @@ -15,7 +17,7 @@ type AWSEC2LaunchTemplate_CapacityReservationSpecification struct { CapacityReservationTarget *AWSEC2LaunchTemplate_CapacityReservationTarget `json:"CapacityReservationTarget,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2LaunchTemplate_CapacityReservationSpecification) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_CapacityReservationSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_CapacityReservationSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_capacityreservationtarget.go b/cloudformation/resources/aws-ec2-launchtemplate_capacityreservationtarget.go similarity index 93% rename from cloudformation/aws-ec2-launchtemplate_capacityreservationtarget.go rename to cloudformation/resources/aws-ec2-launchtemplate_capacityreservationtarget.go index f2bb883d02..f069d551e1 100644 --- a/cloudformation/aws-ec2-launchtemplate_capacityreservationtarget.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_capacityreservationtarget.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_CapacityReservationTarget AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CapacityReservationTarget) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-capacityreservationtarget.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_CapacityReservationTarget struct { CapacityReservationId string `json:"CapacityReservationId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_CapacityReservationTarget) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_CapacityReservationTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_CapacityReservationTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_cpuoptions.go b/cloudformation/resources/aws-ec2-launchtemplate_cpuoptions.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_cpuoptions.go rename to cloudformation/resources/aws-ec2-launchtemplate_cpuoptions.go index 13a1ac646d..8cfc76e6d5 100644 --- a/cloudformation/aws-ec2-launchtemplate_cpuoptions.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_cpuoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_CpuOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CpuOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-cpuoptions.html @@ -15,7 +17,7 @@ type AWSEC2LaunchTemplate_CpuOptions struct { ThreadsPerCore int `json:"ThreadsPerCore,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2LaunchTemplate_CpuOptions) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_CpuOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_CpuOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_creditspecification.go b/cloudformation/resources/aws-ec2-launchtemplate_creditspecification.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_creditspecification.go rename to cloudformation/resources/aws-ec2-launchtemplate_creditspecification.go index a06b2589ad..4de017b85b 100644 --- a/cloudformation/aws-ec2-launchtemplate_creditspecification.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_creditspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_CreditSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CreditSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-creditspecification.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_CreditSpecification struct { CpuCredits string `json:"CpuCredits,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_CreditSpecification) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_CreditSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_CreditSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_ebs.go b/cloudformation/resources/aws-ec2-launchtemplate_ebs.go similarity index 95% rename from cloudformation/aws-ec2-launchtemplate_ebs.go rename to cloudformation/resources/aws-ec2-launchtemplate_ebs.go index 2e23b21375..78bbce9e85 100644 --- a/cloudformation/aws-ec2-launchtemplate_ebs.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_ebs.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_Ebs AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Ebs) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html @@ -40,7 +42,7 @@ type AWSEC2LaunchTemplate_Ebs struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSEC2LaunchTemplate_Ebs) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_Ebs) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_Ebs) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_elasticgpuspecification.go b/cloudformation/resources/aws-ec2-launchtemplate_elasticgpuspecification.go similarity index 93% rename from cloudformation/aws-ec2-launchtemplate_elasticgpuspecification.go rename to cloudformation/resources/aws-ec2-launchtemplate_elasticgpuspecification.go index 2ed889ebc1..cc428b9d15 100644 --- a/cloudformation/aws-ec2-launchtemplate_elasticgpuspecification.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_elasticgpuspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_ElasticGpuSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.ElasticGpuSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_ElasticGpuSpecification struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_ElasticGpuSpecification) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_ElasticGpuSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_ElasticGpuSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_hibernationoptions.go b/cloudformation/resources/aws-ec2-launchtemplate_hibernationoptions.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_hibernationoptions.go rename to cloudformation/resources/aws-ec2-launchtemplate_hibernationoptions.go index 39383a650d..b08de4dcfc 100644 --- a/cloudformation/aws-ec2-launchtemplate_hibernationoptions.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_hibernationoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_HibernationOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.HibernationOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-hibernationoptions.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_HibernationOptions struct { Configured bool `json:"Configured,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_HibernationOptions) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_HibernationOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_HibernationOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_iaminstanceprofile.go b/cloudformation/resources/aws-ec2-launchtemplate_iaminstanceprofile.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_iaminstanceprofile.go rename to cloudformation/resources/aws-ec2-launchtemplate_iaminstanceprofile.go index 475fc688f1..7447c76f0a 100644 --- a/cloudformation/aws-ec2-launchtemplate_iaminstanceprofile.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_iaminstanceprofile.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_IamInstanceProfile AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.IamInstanceProfile) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html @@ -15,7 +17,7 @@ type AWSEC2LaunchTemplate_IamInstanceProfile struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2LaunchTemplate_IamInstanceProfile) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_IamInstanceProfile) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_IamInstanceProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_instancemarketoptions.go b/cloudformation/resources/aws-ec2-launchtemplate_instancemarketoptions.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_instancemarketoptions.go rename to cloudformation/resources/aws-ec2-launchtemplate_instancemarketoptions.go index 2c174ec33f..d915f924b0 100644 --- a/cloudformation/aws-ec2-launchtemplate_instancemarketoptions.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_instancemarketoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_InstanceMarketOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.InstanceMarketOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html @@ -15,7 +17,7 @@ type AWSEC2LaunchTemplate_InstanceMarketOptions struct { SpotOptions *AWSEC2LaunchTemplate_SpotOptions `json:"SpotOptions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2LaunchTemplate_InstanceMarketOptions) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_InstanceMarketOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_InstanceMarketOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_ipv6add.go b/cloudformation/resources/aws-ec2-launchtemplate_ipv6add.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_ipv6add.go rename to cloudformation/resources/aws-ec2-launchtemplate_ipv6add.go index f00b26c534..d711cdc318 100644 --- a/cloudformation/aws-ec2-launchtemplate_ipv6add.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_ipv6add.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_Ipv6Add AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Ipv6Add) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_Ipv6Add struct { Ipv6Address string `json:"Ipv6Address,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_Ipv6Add) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_Ipv6Add) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_Ipv6Add) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_launchtemplatedata.go b/cloudformation/resources/aws-ec2-launchtemplate_launchtemplatedata.go similarity index 98% rename from cloudformation/aws-ec2-launchtemplate_launchtemplatedata.go rename to cloudformation/resources/aws-ec2-launchtemplate_launchtemplatedata.go index 77b1c5dd81..7c31bbac99 100644 --- a/cloudformation/aws-ec2-launchtemplate_launchtemplatedata.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_launchtemplatedata.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_LaunchTemplateData AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.LaunchTemplateData) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html @@ -130,7 +132,7 @@ type AWSEC2LaunchTemplate_LaunchTemplateData struct { UserData string `json:"UserData,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -170,6 +172,6 @@ func (r *AWSEC2LaunchTemplate_LaunchTemplateData) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_LaunchTemplateData) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_LaunchTemplateData) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go b/cloudformation/resources/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go similarity index 93% rename from cloudformation/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go rename to cloudformation/resources/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go index b711bfb919..78ce0795d1 100644 --- a/cloudformation/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_LaunchTemplateElasticInferenceAccelerator AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.LaunchTemplateElasticInferenceAccelerator) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_LaunchTemplateElasticInferenceAccelerator struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) SetMeta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_licensespecification.go b/cloudformation/resources/aws-ec2-launchtemplate_licensespecification.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_licensespecification.go rename to cloudformation/resources/aws-ec2-launchtemplate_licensespecification.go index 85c34fbd9a..8ed69d2f3b 100644 --- a/cloudformation/aws-ec2-launchtemplate_licensespecification.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_licensespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_LicenseSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.LicenseSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-licensespecification.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_LicenseSpecification struct { LicenseConfigurationArn string `json:"LicenseConfigurationArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_LicenseSpecification) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_LicenseSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_LicenseSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_monitoring.go b/cloudformation/resources/aws-ec2-launchtemplate_monitoring.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_monitoring.go rename to cloudformation/resources/aws-ec2-launchtemplate_monitoring.go index 4eedc30692..cfcd71cdac 100644 --- a/cloudformation/aws-ec2-launchtemplate_monitoring.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_monitoring.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_Monitoring AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Monitoring) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-monitoring.html @@ -10,7 +12,7 @@ type AWSEC2LaunchTemplate_Monitoring struct { Enabled bool `json:"Enabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2LaunchTemplate_Monitoring) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_Monitoring) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_Monitoring) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_networkinterface.go b/cloudformation/resources/aws-ec2-launchtemplate_networkinterface.go similarity index 97% rename from cloudformation/aws-ec2-launchtemplate_networkinterface.go rename to cloudformation/resources/aws-ec2-launchtemplate_networkinterface.go index 8fb32cbd5c..c20d331385 100644 --- a/cloudformation/aws-ec2-launchtemplate_networkinterface.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_networkinterface.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_NetworkInterface AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.NetworkInterface) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html @@ -65,7 +67,7 @@ type AWSEC2LaunchTemplate_NetworkInterface struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -105,6 +107,6 @@ func (r *AWSEC2LaunchTemplate_NetworkInterface) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_NetworkInterface) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_NetworkInterface) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_placement.go b/cloudformation/resources/aws-ec2-launchtemplate_placement.go similarity index 96% rename from cloudformation/aws-ec2-launchtemplate_placement.go rename to cloudformation/resources/aws-ec2-launchtemplate_placement.go index 7ef237efa9..f90a0f27bf 100644 --- a/cloudformation/aws-ec2-launchtemplate_placement.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_placement.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_Placement AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Placement) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html @@ -30,7 +32,7 @@ type AWSEC2LaunchTemplate_Placement struct { Tenancy string `json:"Tenancy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSEC2LaunchTemplate_Placement) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_Placement) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_Placement) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_privateipadd.go b/cloudformation/resources/aws-ec2-launchtemplate_privateipadd.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_privateipadd.go rename to cloudformation/resources/aws-ec2-launchtemplate_privateipadd.go index a90ba9fd19..7d9f2d6fa1 100644 --- a/cloudformation/aws-ec2-launchtemplate_privateipadd.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_privateipadd.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_PrivateIpAdd AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.PrivateIpAdd) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html @@ -15,7 +17,7 @@ type AWSEC2LaunchTemplate_PrivateIpAdd struct { PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2LaunchTemplate_PrivateIpAdd) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_PrivateIpAdd) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_PrivateIpAdd) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_spotoptions.go b/cloudformation/resources/aws-ec2-launchtemplate_spotoptions.go similarity index 95% rename from cloudformation/aws-ec2-launchtemplate_spotoptions.go rename to cloudformation/resources/aws-ec2-launchtemplate_spotoptions.go index 82e575333b..bb8a716f44 100644 --- a/cloudformation/aws-ec2-launchtemplate_spotoptions.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_spotoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_SpotOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.SpotOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html @@ -20,7 +22,7 @@ type AWSEC2LaunchTemplate_SpotOptions struct { SpotInstanceType string `json:"SpotInstanceType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEC2LaunchTemplate_SpotOptions) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_SpotOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_SpotOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-launchtemplate_tagspecification.go b/cloudformation/resources/aws-ec2-launchtemplate_tagspecification.go similarity index 94% rename from cloudformation/aws-ec2-launchtemplate_tagspecification.go rename to cloudformation/resources/aws-ec2-launchtemplate_tagspecification.go index be876d6c3f..cb753136ac 100644 --- a/cloudformation/aws-ec2-launchtemplate_tagspecification.go +++ b/cloudformation/resources/aws-ec2-launchtemplate_tagspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2LaunchTemplate_TagSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.TagSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html @@ -15,7 +17,7 @@ type AWSEC2LaunchTemplate_TagSpecification struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2LaunchTemplate_TagSpecification) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2LaunchTemplate_TagSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2LaunchTemplate_TagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-natgateway.go b/cloudformation/resources/aws-ec2-natgateway.go similarity index 90% rename from cloudformation/aws-ec2-natgateway.go rename to cloudformation/resources/aws-ec2-natgateway.go index 03716beb9f..7396f7a3b6 100644 --- a/cloudformation/aws-ec2-natgateway.go +++ b/cloudformation/resources/aws-ec2-natgateway.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2NatGateway AWS CloudFormation Resource (AWS::EC2::NatGateway) @@ -26,7 +27,7 @@ type AWSEC2NatGateway struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2NatGateway) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NatGateway) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NatGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2NatGateway) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-networkacl.go b/cloudformation/resources/aws-ec2-networkacl.go similarity index 90% rename from cloudformation/aws-ec2-networkacl.go rename to cloudformation/resources/aws-ec2-networkacl.go index 645394b02b..2d94ba7ed9 100644 --- a/cloudformation/aws-ec2-networkacl.go +++ b/cloudformation/resources/aws-ec2-networkacl.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2NetworkAcl AWS CloudFormation Resource (AWS::EC2::NetworkAcl) @@ -21,7 +22,7 @@ type AWSEC2NetworkAcl struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2NetworkAcl) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkAcl) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkAcl) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2NetworkAcl) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-networkaclentry.go b/cloudformation/resources/aws-ec2-networkaclentry.go similarity index 93% rename from cloudformation/aws-ec2-networkaclentry.go rename to cloudformation/resources/aws-ec2-networkaclentry.go index 10963e95f9..ca2d8eb1ca 100644 --- a/cloudformation/aws-ec2-networkaclentry.go +++ b/cloudformation/resources/aws-ec2-networkaclentry.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2NetworkAclEntry AWS CloudFormation Resource (AWS::EC2::NetworkAclEntry) @@ -56,7 +57,7 @@ type AWSEC2NetworkAclEntry struct { RuleNumber int `json:"RuleNumber"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSEC2NetworkAclEntry) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkAclEntry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkAclEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSEC2NetworkAclEntry) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-networkaclentry_icmp.go b/cloudformation/resources/aws-ec2-networkaclentry_icmp.go similarity index 92% rename from cloudformation/aws-ec2-networkaclentry_icmp.go rename to cloudformation/resources/aws-ec2-networkaclentry_icmp.go index a4aa1b098e..a266492b9d 100644 --- a/cloudformation/aws-ec2-networkaclentry_icmp.go +++ b/cloudformation/resources/aws-ec2-networkaclentry_icmp.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2NetworkAclEntry_Icmp AWS CloudFormation Resource (AWS::EC2::NetworkAclEntry.Icmp) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-icmp.html @@ -15,7 +17,7 @@ type AWSEC2NetworkAclEntry_Icmp struct { Type int `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2NetworkAclEntry_Icmp) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkAclEntry_Icmp) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkAclEntry_Icmp) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-networkaclentry_portrange.go b/cloudformation/resources/aws-ec2-networkaclentry_portrange.go similarity index 94% rename from cloudformation/aws-ec2-networkaclentry_portrange.go rename to cloudformation/resources/aws-ec2-networkaclentry_portrange.go index ca58770229..4392278e46 100644 --- a/cloudformation/aws-ec2-networkaclentry_portrange.go +++ b/cloudformation/resources/aws-ec2-networkaclentry_portrange.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2NetworkAclEntry_PortRange AWS CloudFormation Resource (AWS::EC2::NetworkAclEntry.PortRange) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-portrange.html @@ -15,7 +17,7 @@ type AWSEC2NetworkAclEntry_PortRange struct { To int `json:"To,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2NetworkAclEntry_PortRange) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkAclEntry_PortRange) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkAclEntry_PortRange) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-networkinterface.go b/cloudformation/resources/aws-ec2-networkinterface.go similarity index 94% rename from cloudformation/aws-ec2-networkinterface.go rename to cloudformation/resources/aws-ec2-networkinterface.go index c34e6a874f..7153eccf5b 100644 --- a/cloudformation/aws-ec2-networkinterface.go +++ b/cloudformation/resources/aws-ec2-networkinterface.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2NetworkInterface AWS CloudFormation Resource (AWS::EC2::NetworkInterface) @@ -66,7 +67,7 @@ type AWSEC2NetworkInterface struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -106,7 +107,7 @@ func (r *AWSEC2NetworkInterface) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkInterface) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkInterface) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -117,9 +118,9 @@ func (r AWSEC2NetworkInterface) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-networkinterface_instanceipv6address.go b/cloudformation/resources/aws-ec2-networkinterface_instanceipv6address.go similarity index 93% rename from cloudformation/aws-ec2-networkinterface_instanceipv6address.go rename to cloudformation/resources/aws-ec2-networkinterface_instanceipv6address.go index 151429be41..bc72138a2c 100644 --- a/cloudformation/aws-ec2-networkinterface_instanceipv6address.go +++ b/cloudformation/resources/aws-ec2-networkinterface_instanceipv6address.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2NetworkInterface_InstanceIpv6Address AWS CloudFormation Resource (AWS::EC2::NetworkInterface.InstanceIpv6Address) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinterface-instanceipv6address.html @@ -10,7 +12,7 @@ type AWSEC2NetworkInterface_InstanceIpv6Address struct { Ipv6Address string `json:"Ipv6Address,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2NetworkInterface_InstanceIpv6Address) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkInterface_InstanceIpv6Address) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkInterface_InstanceIpv6Address) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-networkinterface_privateipaddressspecification.go b/cloudformation/resources/aws-ec2-networkinterface_privateipaddressspecification.go similarity index 94% rename from cloudformation/aws-ec2-networkinterface_privateipaddressspecification.go rename to cloudformation/resources/aws-ec2-networkinterface_privateipaddressspecification.go index ee155c8b97..09f68bd820 100644 --- a/cloudformation/aws-ec2-networkinterface_privateipaddressspecification.go +++ b/cloudformation/resources/aws-ec2-networkinterface_privateipaddressspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2NetworkInterface_PrivateIpAddressSpecification AWS CloudFormation Resource (AWS::EC2::NetworkInterface.PrivateIpAddressSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html @@ -15,7 +17,7 @@ type AWSEC2NetworkInterface_PrivateIpAddressSpecification struct { PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2NetworkInterface_PrivateIpAddressSpecification) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkInterface_PrivateIpAddressSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkInterface_PrivateIpAddressSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-networkinterfaceattachment.go b/cloudformation/resources/aws-ec2-networkinterfaceattachment.go similarity index 93% rename from cloudformation/aws-ec2-networkinterfaceattachment.go rename to cloudformation/resources/aws-ec2-networkinterfaceattachment.go index 987b7a6cce..debbedf320 100644 --- a/cloudformation/aws-ec2-networkinterfaceattachment.go +++ b/cloudformation/resources/aws-ec2-networkinterfaceattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2NetworkInterfaceAttachment AWS CloudFormation Resource (AWS::EC2::NetworkInterfaceAttachment) @@ -31,7 +32,7 @@ type AWSEC2NetworkInterfaceAttachment struct { NetworkInterfaceId string `json:"NetworkInterfaceId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEC2NetworkInterfaceAttachment) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkInterfaceAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkInterfaceAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEC2NetworkInterfaceAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-networkinterfacepermission.go b/cloudformation/resources/aws-ec2-networkinterfacepermission.go similarity index 92% rename from cloudformation/aws-ec2-networkinterfacepermission.go rename to cloudformation/resources/aws-ec2-networkinterfacepermission.go index 3ff5e38944..abd71f9068 100644 --- a/cloudformation/aws-ec2-networkinterfacepermission.go +++ b/cloudformation/resources/aws-ec2-networkinterfacepermission.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2NetworkInterfacePermission AWS CloudFormation Resource (AWS::EC2::NetworkInterfacePermission) @@ -26,7 +27,7 @@ type AWSEC2NetworkInterfacePermission struct { Permission string `json:"Permission,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2NetworkInterfacePermission) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2NetworkInterfacePermission) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2NetworkInterfacePermission) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2NetworkInterfacePermission) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-placementgroup.go b/cloudformation/resources/aws-ec2-placementgroup.go similarity index 89% rename from cloudformation/aws-ec2-placementgroup.go rename to cloudformation/resources/aws-ec2-placementgroup.go index 1ef20d4c9d..da6e62358d 100644 --- a/cloudformation/aws-ec2-placementgroup.go +++ b/cloudformation/resources/aws-ec2-placementgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2PlacementGroup AWS CloudFormation Resource (AWS::EC2::PlacementGroup) @@ -16,7 +17,7 @@ type AWSEC2PlacementGroup struct { Strategy string `json:"Strategy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSEC2PlacementGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2PlacementGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2PlacementGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSEC2PlacementGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-route.go b/cloudformation/resources/aws-ec2-route.go similarity index 93% rename from cloudformation/aws-ec2-route.go rename to cloudformation/resources/aws-ec2-route.go index e9752f0c03..40af497fe5 100644 --- a/cloudformation/aws-ec2-route.go +++ b/cloudformation/resources/aws-ec2-route.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2Route AWS CloudFormation Resource (AWS::EC2::Route) @@ -56,7 +57,7 @@ type AWSEC2Route struct { VpcPeeringConnectionId string `json:"VpcPeeringConnectionId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSEC2Route) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Route) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Route) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSEC2Route) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-routetable.go b/cloudformation/resources/aws-ec2-routetable.go similarity index 90% rename from cloudformation/aws-ec2-routetable.go rename to cloudformation/resources/aws-ec2-routetable.go index 6f7ae1a34e..107c74ba56 100644 --- a/cloudformation/aws-ec2-routetable.go +++ b/cloudformation/resources/aws-ec2-routetable.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2RouteTable AWS CloudFormation Resource (AWS::EC2::RouteTable) @@ -21,7 +22,7 @@ type AWSEC2RouteTable struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2RouteTable) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2RouteTable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2RouteTable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2RouteTable) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-securitygroup.go b/cloudformation/resources/aws-ec2-securitygroup.go similarity index 92% rename from cloudformation/aws-ec2-securitygroup.go rename to cloudformation/resources/aws-ec2-securitygroup.go index 62d5fd07df..a566c25611 100644 --- a/cloudformation/aws-ec2-securitygroup.go +++ b/cloudformation/resources/aws-ec2-securitygroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2SecurityGroup AWS CloudFormation Resource (AWS::EC2::SecurityGroup) @@ -41,7 +42,7 @@ type AWSEC2SecurityGroup struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSEC2SecurityGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SecurityGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSEC2SecurityGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-securitygroup_egress.go b/cloudformation/resources/aws-ec2-securitygroup_egress.go similarity index 95% rename from cloudformation/aws-ec2-securitygroup_egress.go rename to cloudformation/resources/aws-ec2-securitygroup_egress.go index 91beee2c2a..639c796a52 100644 --- a/cloudformation/aws-ec2-securitygroup_egress.go +++ b/cloudformation/resources/aws-ec2-securitygroup_egress.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SecurityGroup_Egress AWS CloudFormation Resource (AWS::EC2::SecurityGroup.Egress) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html @@ -45,7 +47,7 @@ type AWSEC2SecurityGroup_Egress struct { ToPort int `json:"ToPort,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSEC2SecurityGroup_Egress) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SecurityGroup_Egress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SecurityGroup_Egress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-securitygroup_ingress.go b/cloudformation/resources/aws-ec2-securitygroup_ingress.go similarity index 95% rename from cloudformation/aws-ec2-securitygroup_ingress.go rename to cloudformation/resources/aws-ec2-securitygroup_ingress.go index 3683514bce..df7aa2db28 100644 --- a/cloudformation/aws-ec2-securitygroup_ingress.go +++ b/cloudformation/resources/aws-ec2-securitygroup_ingress.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SecurityGroup_Ingress AWS CloudFormation Resource (AWS::EC2::SecurityGroup.Ingress) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html @@ -55,7 +57,7 @@ type AWSEC2SecurityGroup_Ingress struct { ToPort int `json:"ToPort,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSEC2SecurityGroup_Ingress) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SecurityGroup_Ingress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SecurityGroup_Ingress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-securitygroupegress.go b/cloudformation/resources/aws-ec2-securitygroupegress.go similarity index 93% rename from cloudformation/aws-ec2-securitygroupegress.go rename to cloudformation/resources/aws-ec2-securitygroupegress.go index 7927d8291d..5ad715a671 100644 --- a/cloudformation/aws-ec2-securitygroupegress.go +++ b/cloudformation/resources/aws-ec2-securitygroupegress.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2SecurityGroupEgress AWS CloudFormation Resource (AWS::EC2::SecurityGroupEgress) @@ -56,7 +57,7 @@ type AWSEC2SecurityGroupEgress struct { ToPort int `json:"ToPort,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSEC2SecurityGroupEgress) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SecurityGroupEgress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SecurityGroupEgress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSEC2SecurityGroupEgress) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-securitygroupingress.go b/cloudformation/resources/aws-ec2-securitygroupingress.go similarity index 94% rename from cloudformation/aws-ec2-securitygroupingress.go rename to cloudformation/resources/aws-ec2-securitygroupingress.go index 075f4a7a39..cbebce3b95 100644 --- a/cloudformation/aws-ec2-securitygroupingress.go +++ b/cloudformation/resources/aws-ec2-securitygroupingress.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2SecurityGroupIngress AWS CloudFormation Resource (AWS::EC2::SecurityGroupIngress) @@ -71,7 +72,7 @@ type AWSEC2SecurityGroupIngress struct { ToPort int `json:"ToPort,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -111,7 +112,7 @@ func (r *AWSEC2SecurityGroupIngress) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SecurityGroupIngress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -122,9 +123,9 @@ func (r AWSEC2SecurityGroupIngress) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-spotfleet.go b/cloudformation/resources/aws-ec2-spotfleet.go similarity index 90% rename from cloudformation/aws-ec2-spotfleet.go rename to cloudformation/resources/aws-ec2-spotfleet.go index 60133755df..3dc7d979be 100644 --- a/cloudformation/aws-ec2-spotfleet.go +++ b/cloudformation/resources/aws-ec2-spotfleet.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2SpotFleet AWS CloudFormation Resource (AWS::EC2::SpotFleet) @@ -16,7 +17,7 @@ type AWSEC2SpotFleet struct { SpotFleetRequestConfigData *AWSEC2SpotFleet_SpotFleetRequestConfigData `json:"SpotFleetRequestConfigData,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSEC2SpotFleet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSEC2SpotFleet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-spotfleet_blockdevicemapping.go b/cloudformation/resources/aws-ec2-spotfleet_blockdevicemapping.go similarity index 95% rename from cloudformation/aws-ec2-spotfleet_blockdevicemapping.go rename to cloudformation/resources/aws-ec2-spotfleet_blockdevicemapping.go index df6f5fdbd2..31378736df 100644 --- a/cloudformation/aws-ec2-spotfleet_blockdevicemapping.go +++ b/cloudformation/resources/aws-ec2-spotfleet_blockdevicemapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_BlockDeviceMapping AWS CloudFormation Resource (AWS::EC2::SpotFleet.BlockDeviceMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html @@ -25,7 +27,7 @@ type AWSEC2SpotFleet_BlockDeviceMapping struct { VirtualName string `json:"VirtualName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEC2SpotFleet_BlockDeviceMapping) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_BlockDeviceMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_classicloadbalancer.go b/cloudformation/resources/aws-ec2-spotfleet_classicloadbalancer.go similarity index 93% rename from cloudformation/aws-ec2-spotfleet_classicloadbalancer.go rename to cloudformation/resources/aws-ec2-spotfleet_classicloadbalancer.go index 405372f5c4..8344b2671e 100644 --- a/cloudformation/aws-ec2-spotfleet_classicloadbalancer.go +++ b/cloudformation/resources/aws-ec2-spotfleet_classicloadbalancer.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_ClassicLoadBalancer AWS CloudFormation Resource (AWS::EC2::SpotFleet.ClassicLoadBalancer) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancer.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_ClassicLoadBalancer struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_ClassicLoadBalancer) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_ClassicLoadBalancer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_ClassicLoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_classicloadbalancersconfig.go b/cloudformation/resources/aws-ec2-spotfleet_classicloadbalancersconfig.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_classicloadbalancersconfig.go rename to cloudformation/resources/aws-ec2-spotfleet_classicloadbalancersconfig.go index dc517017c3..b44384b573 100644 --- a/cloudformation/aws-ec2-spotfleet_classicloadbalancersconfig.go +++ b/cloudformation/resources/aws-ec2-spotfleet_classicloadbalancersconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_ClassicLoadBalancersConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.ClassicLoadBalancersConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancersconfig.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_ClassicLoadBalancersConfig struct { ClassicLoadBalancers []AWSEC2SpotFleet_ClassicLoadBalancer `json:"ClassicLoadBalancers,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_ClassicLoadBalancersConfig) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_ClassicLoadBalancersConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_ClassicLoadBalancersConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_ebsblockdevice.go b/cloudformation/resources/aws-ec2-spotfleet_ebsblockdevice.go similarity index 96% rename from cloudformation/aws-ec2-spotfleet_ebsblockdevice.go rename to cloudformation/resources/aws-ec2-spotfleet_ebsblockdevice.go index 2574a47e04..997ba573c5 100644 --- a/cloudformation/aws-ec2-spotfleet_ebsblockdevice.go +++ b/cloudformation/resources/aws-ec2-spotfleet_ebsblockdevice.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_EbsBlockDevice AWS CloudFormation Resource (AWS::EC2::SpotFleet.EbsBlockDevice) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html @@ -35,7 +37,7 @@ type AWSEC2SpotFleet_EbsBlockDevice struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSEC2SpotFleet_EbsBlockDevice) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_EbsBlockDevice) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_EbsBlockDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go b/cloudformation/resources/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go similarity index 95% rename from cloudformation/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go rename to cloudformation/resources/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go index c9532165e4..b70248f125 100644 --- a/cloudformation/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go +++ b/cloudformation/resources/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_FleetLaunchTemplateSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.FleetLaunchTemplateSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html @@ -20,7 +22,7 @@ type AWSEC2SpotFleet_FleetLaunchTemplateSpecification struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEC2SpotFleet_FleetLaunchTemplateSpecification) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_FleetLaunchTemplateSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_FleetLaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_groupidentifier.go b/cloudformation/resources/aws-ec2-spotfleet_groupidentifier.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_groupidentifier.go rename to cloudformation/resources/aws-ec2-spotfleet_groupidentifier.go index 9c95154d0f..327c56d290 100644 --- a/cloudformation/aws-ec2-spotfleet_groupidentifier.go +++ b/cloudformation/resources/aws-ec2-spotfleet_groupidentifier.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_GroupIdentifier AWS CloudFormation Resource (AWS::EC2::SpotFleet.GroupIdentifier) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_GroupIdentifier struct { GroupId string `json:"GroupId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_GroupIdentifier) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_GroupIdentifier) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_GroupIdentifier) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_iaminstanceprofilespecification.go b/cloudformation/resources/aws-ec2-spotfleet_iaminstanceprofilespecification.go similarity index 93% rename from cloudformation/aws-ec2-spotfleet_iaminstanceprofilespecification.go rename to cloudformation/resources/aws-ec2-spotfleet_iaminstanceprofilespecification.go index 8e0edd1bc6..3cfb0859dc 100644 --- a/cloudformation/aws-ec2-spotfleet_iaminstanceprofilespecification.go +++ b/cloudformation/resources/aws-ec2-spotfleet_iaminstanceprofilespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_IamInstanceProfileSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.IamInstanceProfileSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_IamInstanceProfileSpecification struct { Arn string `json:"Arn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_IamInstanceProfileSpecification) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_IamInstanceProfileSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_IamInstanceProfileSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_instanceipv6address.go b/cloudformation/resources/aws-ec2-spotfleet_instanceipv6address.go similarity index 93% rename from cloudformation/aws-ec2-spotfleet_instanceipv6address.go rename to cloudformation/resources/aws-ec2-spotfleet_instanceipv6address.go index a83b9f1593..bde7c72e67 100644 --- a/cloudformation/aws-ec2-spotfleet_instanceipv6address.go +++ b/cloudformation/resources/aws-ec2-spotfleet_instanceipv6address.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_InstanceIpv6Address AWS CloudFormation Resource (AWS::EC2::SpotFleet.InstanceIpv6Address) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instanceipv6address.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_InstanceIpv6Address struct { Ipv6Address string `json:"Ipv6Address,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_InstanceIpv6Address) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_InstanceIpv6Address) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_InstanceIpv6Address) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_instancenetworkinterfacespecification.go b/cloudformation/resources/aws-ec2-spotfleet_instancenetworkinterfacespecification.go similarity index 97% rename from cloudformation/aws-ec2-spotfleet_instancenetworkinterfacespecification.go rename to cloudformation/resources/aws-ec2-spotfleet_instancenetworkinterfacespecification.go index 8ddbe65ac0..a864a6430a 100644 --- a/cloudformation/aws-ec2-spotfleet_instancenetworkinterfacespecification.go +++ b/cloudformation/resources/aws-ec2-spotfleet_instancenetworkinterfacespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_InstanceNetworkInterfaceSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.InstanceNetworkInterfaceSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html @@ -60,7 +62,7 @@ type AWSEC2SpotFleet_InstanceNetworkInterfaceSpecification struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -100,6 +102,6 @@ func (r *AWSEC2SpotFleet_InstanceNetworkInterfaceSpecification) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_InstanceNetworkInterfaceSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_InstanceNetworkInterfaceSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_launchtemplateconfig.go b/cloudformation/resources/aws-ec2-spotfleet_launchtemplateconfig.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_launchtemplateconfig.go rename to cloudformation/resources/aws-ec2-spotfleet_launchtemplateconfig.go index f2afafaf44..0ead8d9c1a 100644 --- a/cloudformation/aws-ec2-spotfleet_launchtemplateconfig.go +++ b/cloudformation/resources/aws-ec2-spotfleet_launchtemplateconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_LaunchTemplateConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.LaunchTemplateConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html @@ -15,7 +17,7 @@ type AWSEC2SpotFleet_LaunchTemplateConfig struct { Overrides []AWSEC2SpotFleet_LaunchTemplateOverrides `json:"Overrides,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2SpotFleet_LaunchTemplateConfig) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_LaunchTemplateConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_LaunchTemplateConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_launchtemplateoverrides.go b/cloudformation/resources/aws-ec2-spotfleet_launchtemplateoverrides.go similarity index 95% rename from cloudformation/aws-ec2-spotfleet_launchtemplateoverrides.go rename to cloudformation/resources/aws-ec2-spotfleet_launchtemplateoverrides.go index 07dd00f81c..af8ebf40a0 100644 --- a/cloudformation/aws-ec2-spotfleet_launchtemplateoverrides.go +++ b/cloudformation/resources/aws-ec2-spotfleet_launchtemplateoverrides.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_LaunchTemplateOverrides AWS CloudFormation Resource (AWS::EC2::SpotFleet.LaunchTemplateOverrides) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html @@ -30,7 +32,7 @@ type AWSEC2SpotFleet_LaunchTemplateOverrides struct { WeightedCapacity float64 `json:"WeightedCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSEC2SpotFleet_LaunchTemplateOverrides) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_LaunchTemplateOverrides) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_LaunchTemplateOverrides) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_loadbalancersconfig.go b/cloudformation/resources/aws-ec2-spotfleet_loadbalancersconfig.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_loadbalancersconfig.go rename to cloudformation/resources/aws-ec2-spotfleet_loadbalancersconfig.go index 3b64252b4c..9c40970c01 100644 --- a/cloudformation/aws-ec2-spotfleet_loadbalancersconfig.go +++ b/cloudformation/resources/aws-ec2-spotfleet_loadbalancersconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_LoadBalancersConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.LoadBalancersConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html @@ -15,7 +17,7 @@ type AWSEC2SpotFleet_LoadBalancersConfig struct { TargetGroupsConfig *AWSEC2SpotFleet_TargetGroupsConfig `json:"TargetGroupsConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2SpotFleet_LoadBalancersConfig) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_LoadBalancersConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_LoadBalancersConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_privateipaddressspecification.go b/cloudformation/resources/aws-ec2-spotfleet_privateipaddressspecification.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_privateipaddressspecification.go rename to cloudformation/resources/aws-ec2-spotfleet_privateipaddressspecification.go index 63389d60cb..91c99c7953 100644 --- a/cloudformation/aws-ec2-spotfleet_privateipaddressspecification.go +++ b/cloudformation/resources/aws-ec2-spotfleet_privateipaddressspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_PrivateIpAddressSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.PrivateIpAddressSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html @@ -15,7 +17,7 @@ type AWSEC2SpotFleet_PrivateIpAddressSpecification struct { PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2SpotFleet_PrivateIpAddressSpecification) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_PrivateIpAddressSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_PrivateIpAddressSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_spotfleetlaunchspecification.go b/cloudformation/resources/aws-ec2-spotfleet_spotfleetlaunchspecification.go similarity index 97% rename from cloudformation/aws-ec2-spotfleet_spotfleetlaunchspecification.go rename to cloudformation/resources/aws-ec2-spotfleet_spotfleetlaunchspecification.go index ab606c707e..7ed3c1e956 100644 --- a/cloudformation/aws-ec2-spotfleet_spotfleetlaunchspecification.go +++ b/cloudformation/resources/aws-ec2-spotfleet_spotfleetlaunchspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_SpotFleetLaunchSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetLaunchSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html @@ -90,7 +92,7 @@ type AWSEC2SpotFleet_SpotFleetLaunchSpecification struct { WeightedCapacity float64 `json:"WeightedCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -130,6 +132,6 @@ func (r *AWSEC2SpotFleet_SpotFleetLaunchSpecification) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_SpotFleetLaunchSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_SpotFleetLaunchSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_spotfleetmonitoring.go b/cloudformation/resources/aws-ec2-spotfleet_spotfleetmonitoring.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_spotfleetmonitoring.go rename to cloudformation/resources/aws-ec2-spotfleet_spotfleetmonitoring.go index 579805227b..4a5b3f5494 100644 --- a/cloudformation/aws-ec2-spotfleet_spotfleetmonitoring.go +++ b/cloudformation/resources/aws-ec2-spotfleet_spotfleetmonitoring.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_SpotFleetMonitoring AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetMonitoring) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_SpotFleetMonitoring struct { Enabled bool `json:"Enabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_SpotFleetMonitoring) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_SpotFleetMonitoring) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_SpotFleetMonitoring) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_spotfleetrequestconfigdata.go b/cloudformation/resources/aws-ec2-spotfleet_spotfleetrequestconfigdata.go similarity index 97% rename from cloudformation/aws-ec2-spotfleet_spotfleetrequestconfigdata.go rename to cloudformation/resources/aws-ec2-spotfleet_spotfleetrequestconfigdata.go index 77c0c4fa28..eadf5eecc8 100644 --- a/cloudformation/aws-ec2-spotfleet_spotfleetrequestconfigdata.go +++ b/cloudformation/resources/aws-ec2-spotfleet_spotfleetrequestconfigdata.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_SpotFleetRequestConfigData AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetRequestConfigData) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html @@ -75,7 +77,7 @@ type AWSEC2SpotFleet_SpotFleetRequestConfigData struct { ValidUntil string `json:"ValidUntil,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -115,6 +117,6 @@ func (r *AWSEC2SpotFleet_SpotFleetRequestConfigData) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_SpotFleetRequestConfigData) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_SpotFleetRequestConfigData) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_spotfleettagspecification.go b/cloudformation/resources/aws-ec2-spotfleet_spotfleettagspecification.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_spotfleettagspecification.go rename to cloudformation/resources/aws-ec2-spotfleet_spotfleettagspecification.go index e3f0a79246..909916ce5e 100644 --- a/cloudformation/aws-ec2-spotfleet_spotfleettagspecification.go +++ b/cloudformation/resources/aws-ec2-spotfleet_spotfleettagspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_SpotFleetTagSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetTagSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html @@ -15,7 +17,7 @@ type AWSEC2SpotFleet_SpotFleetTagSpecification struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2SpotFleet_SpotFleetTagSpecification) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_SpotFleetTagSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_SpotFleetTagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_spotplacement.go b/cloudformation/resources/aws-ec2-spotfleet_spotplacement.go similarity index 95% rename from cloudformation/aws-ec2-spotfleet_spotplacement.go rename to cloudformation/resources/aws-ec2-spotfleet_spotplacement.go index 1e0f29c9ae..745776229f 100644 --- a/cloudformation/aws-ec2-spotfleet_spotplacement.go +++ b/cloudformation/resources/aws-ec2-spotfleet_spotplacement.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_SpotPlacement AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotPlacement) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html @@ -20,7 +22,7 @@ type AWSEC2SpotFleet_SpotPlacement struct { Tenancy string `json:"Tenancy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEC2SpotFleet_SpotPlacement) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_SpotPlacement) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_SpotPlacement) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_targetgroup.go b/cloudformation/resources/aws-ec2-spotfleet_targetgroup.go similarity index 91% rename from cloudformation/aws-ec2-spotfleet_targetgroup.go rename to cloudformation/resources/aws-ec2-spotfleet_targetgroup.go index 93d03c189e..3420aea78f 100644 --- a/cloudformation/aws-ec2-spotfleet_targetgroup.go +++ b/cloudformation/resources/aws-ec2-spotfleet_targetgroup.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_TargetGroup AWS CloudFormation Resource (AWS::EC2::SpotFleet.TargetGroup) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroup.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_TargetGroup struct { Arn string `json:"Arn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_TargetGroup) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_TargetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_TargetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-spotfleet_targetgroupsconfig.go b/cloudformation/resources/aws-ec2-spotfleet_targetgroupsconfig.go similarity index 94% rename from cloudformation/aws-ec2-spotfleet_targetgroupsconfig.go rename to cloudformation/resources/aws-ec2-spotfleet_targetgroupsconfig.go index 361c967d42..13a70ff2e7 100644 --- a/cloudformation/aws-ec2-spotfleet_targetgroupsconfig.go +++ b/cloudformation/resources/aws-ec2-spotfleet_targetgroupsconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2SpotFleet_TargetGroupsConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.TargetGroupsConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroupsconfig.html @@ -10,7 +12,7 @@ type AWSEC2SpotFleet_TargetGroupsConfig struct { TargetGroups []AWSEC2SpotFleet_TargetGroup `json:"TargetGroups,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEC2SpotFleet_TargetGroupsConfig) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SpotFleet_TargetGroupsConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SpotFleet_TargetGroupsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-subnet.go b/cloudformation/resources/aws-ec2-subnet.go similarity index 92% rename from cloudformation/aws-ec2-subnet.go rename to cloudformation/resources/aws-ec2-subnet.go index 8b0ebd788d..c9245d9245 100644 --- a/cloudformation/aws-ec2-subnet.go +++ b/cloudformation/resources/aws-ec2-subnet.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2Subnet AWS CloudFormation Resource (AWS::EC2::Subnet) @@ -46,7 +47,7 @@ type AWSEC2Subnet struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSEC2Subnet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Subnet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Subnet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSEC2Subnet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-subnetcidrblock.go b/cloudformation/resources/aws-ec2-subnetcidrblock.go similarity index 90% rename from cloudformation/aws-ec2-subnetcidrblock.go rename to cloudformation/resources/aws-ec2-subnetcidrblock.go index ce050df904..ecbef34383 100644 --- a/cloudformation/aws-ec2-subnetcidrblock.go +++ b/cloudformation/resources/aws-ec2-subnetcidrblock.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2SubnetCidrBlock AWS CloudFormation Resource (AWS::EC2::SubnetCidrBlock) @@ -21,7 +22,7 @@ type AWSEC2SubnetCidrBlock struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2SubnetCidrBlock) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SubnetCidrBlock) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SubnetCidrBlock) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2SubnetCidrBlock) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-subnetnetworkaclassociation.go b/cloudformation/resources/aws-ec2-subnetnetworkaclassociation.go similarity index 92% rename from cloudformation/aws-ec2-subnetnetworkaclassociation.go rename to cloudformation/resources/aws-ec2-subnetnetworkaclassociation.go index 290a8902b3..c26afeec8d 100644 --- a/cloudformation/aws-ec2-subnetnetworkaclassociation.go +++ b/cloudformation/resources/aws-ec2-subnetnetworkaclassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2SubnetNetworkAclAssociation AWS CloudFormation Resource (AWS::EC2::SubnetNetworkAclAssociation) @@ -21,7 +22,7 @@ type AWSEC2SubnetNetworkAclAssociation struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2SubnetNetworkAclAssociation) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SubnetNetworkAclAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SubnetNetworkAclAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2SubnetNetworkAclAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-subnetroutetableassociation.go b/cloudformation/resources/aws-ec2-subnetroutetableassociation.go similarity index 92% rename from cloudformation/aws-ec2-subnetroutetableassociation.go rename to cloudformation/resources/aws-ec2-subnetroutetableassociation.go index c9418d4c11..2f573087e4 100644 --- a/cloudformation/aws-ec2-subnetroutetableassociation.go +++ b/cloudformation/resources/aws-ec2-subnetroutetableassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2SubnetRouteTableAssociation AWS CloudFormation Resource (AWS::EC2::SubnetRouteTableAssociation) @@ -21,7 +22,7 @@ type AWSEC2SubnetRouteTableAssociation struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2SubnetRouteTableAssociation) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2SubnetRouteTableAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2SubnetRouteTableAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2SubnetRouteTableAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-transitgateway.go b/cloudformation/resources/aws-ec2-transitgateway.go similarity index 93% rename from cloudformation/aws-ec2-transitgateway.go rename to cloudformation/resources/aws-ec2-transitgateway.go index 64e61eaf65..f119644532 100644 --- a/cloudformation/aws-ec2-transitgateway.go +++ b/cloudformation/resources/aws-ec2-transitgateway.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2TransitGateway AWS CloudFormation Resource (AWS::EC2::TransitGateway) @@ -51,7 +52,7 @@ type AWSEC2TransitGateway struct { VpnEcmpSupport string `json:"VpnEcmpSupport,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSEC2TransitGateway) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2TransitGateway) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2TransitGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSEC2TransitGateway) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-transitgatewayattachment.go b/cloudformation/resources/aws-ec2-transitgatewayattachment.go similarity index 92% rename from cloudformation/aws-ec2-transitgatewayattachment.go rename to cloudformation/resources/aws-ec2-transitgatewayattachment.go index 419ea27327..0ba1ac277c 100644 --- a/cloudformation/aws-ec2-transitgatewayattachment.go +++ b/cloudformation/resources/aws-ec2-transitgatewayattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2TransitGatewayAttachment AWS CloudFormation Resource (AWS::EC2::TransitGatewayAttachment) @@ -31,7 +32,7 @@ type AWSEC2TransitGatewayAttachment struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEC2TransitGatewayAttachment) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2TransitGatewayAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2TransitGatewayAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEC2TransitGatewayAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-transitgatewayroute.go b/cloudformation/resources/aws-ec2-transitgatewayroute.go similarity index 91% rename from cloudformation/aws-ec2-transitgatewayroute.go rename to cloudformation/resources/aws-ec2-transitgatewayroute.go index 24e6abce3f..04ac9986e9 100644 --- a/cloudformation/aws-ec2-transitgatewayroute.go +++ b/cloudformation/resources/aws-ec2-transitgatewayroute.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2TransitGatewayRoute AWS CloudFormation Resource (AWS::EC2::TransitGatewayRoute) @@ -31,7 +32,7 @@ type AWSEC2TransitGatewayRoute struct { TransitGatewayRouteTableId string `json:"TransitGatewayRouteTableId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEC2TransitGatewayRoute) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2TransitGatewayRoute) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2TransitGatewayRoute) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEC2TransitGatewayRoute) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-transitgatewayroutetable.go b/cloudformation/resources/aws-ec2-transitgatewayroutetable.go similarity index 92% rename from cloudformation/aws-ec2-transitgatewayroutetable.go rename to cloudformation/resources/aws-ec2-transitgatewayroutetable.go index d5180473fe..5433982bc5 100644 --- a/cloudformation/aws-ec2-transitgatewayroutetable.go +++ b/cloudformation/resources/aws-ec2-transitgatewayroutetable.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2TransitGatewayRouteTable AWS CloudFormation Resource (AWS::EC2::TransitGatewayRouteTable) @@ -21,7 +22,7 @@ type AWSEC2TransitGatewayRouteTable struct { TransitGatewayId string `json:"TransitGatewayId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2TransitGatewayRouteTable) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2TransitGatewayRouteTable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2TransitGatewayRouteTable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2TransitGatewayRouteTable) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-transitgatewayroutetableassociation.go b/cloudformation/resources/aws-ec2-transitgatewayroutetableassociation.go similarity index 92% rename from cloudformation/aws-ec2-transitgatewayroutetableassociation.go rename to cloudformation/resources/aws-ec2-transitgatewayroutetableassociation.go index 674e305e7b..c93b5033dd 100644 --- a/cloudformation/aws-ec2-transitgatewayroutetableassociation.go +++ b/cloudformation/resources/aws-ec2-transitgatewayroutetableassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2TransitGatewayRouteTableAssociation AWS CloudFormation Resource (AWS::EC2::TransitGatewayRouteTableAssociation) @@ -21,7 +22,7 @@ type AWSEC2TransitGatewayRouteTableAssociation struct { TransitGatewayRouteTableId string `json:"TransitGatewayRouteTableId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2TransitGatewayRouteTableAssociation) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2TransitGatewayRouteTableAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2TransitGatewayRouteTableAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2TransitGatewayRouteTableAssociation) MarshalJSON() ([]byte, error) return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-transitgatewayroutetablepropagation.go b/cloudformation/resources/aws-ec2-transitgatewayroutetablepropagation.go similarity index 92% rename from cloudformation/aws-ec2-transitgatewayroutetablepropagation.go rename to cloudformation/resources/aws-ec2-transitgatewayroutetablepropagation.go index dc3191bd83..1c365ee001 100644 --- a/cloudformation/aws-ec2-transitgatewayroutetablepropagation.go +++ b/cloudformation/resources/aws-ec2-transitgatewayroutetablepropagation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2TransitGatewayRouteTablePropagation AWS CloudFormation Resource (AWS::EC2::TransitGatewayRouteTablePropagation) @@ -21,7 +22,7 @@ type AWSEC2TransitGatewayRouteTablePropagation struct { TransitGatewayRouteTableId string `json:"TransitGatewayRouteTableId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2TransitGatewayRouteTablePropagation) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2TransitGatewayRouteTablePropagation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2TransitGatewayRouteTablePropagation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2TransitGatewayRouteTablePropagation) MarshalJSON() ([]byte, error) return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-trunkinterfaceassociation.go b/cloudformation/resources/aws-ec2-trunkinterfaceassociation.go similarity index 93% rename from cloudformation/aws-ec2-trunkinterfaceassociation.go rename to cloudformation/resources/aws-ec2-trunkinterfaceassociation.go index 94169f87f3..6174811718 100644 --- a/cloudformation/aws-ec2-trunkinterfaceassociation.go +++ b/cloudformation/resources/aws-ec2-trunkinterfaceassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2TrunkInterfaceAssociation AWS CloudFormation Resource (AWS::EC2::TrunkInterfaceAssociation) @@ -31,7 +32,7 @@ type AWSEC2TrunkInterfaceAssociation struct { VLANId int `json:"VLANId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEC2TrunkInterfaceAssociation) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2TrunkInterfaceAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2TrunkInterfaceAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEC2TrunkInterfaceAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-volume.go b/cloudformation/resources/aws-ec2-volume.go similarity index 93% rename from cloudformation/aws-ec2-volume.go rename to cloudformation/resources/aws-ec2-volume.go index 3233a0a4ef..fb7ab06527 100644 --- a/cloudformation/aws-ec2-volume.go +++ b/cloudformation/resources/aws-ec2-volume.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2Volume AWS CloudFormation Resource (AWS::EC2::Volume) @@ -56,7 +57,7 @@ type AWSEC2Volume struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSEC2Volume) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2Volume) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2Volume) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSEC2Volume) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-volumeattachment.go b/cloudformation/resources/aws-ec2-volumeattachment.go similarity index 91% rename from cloudformation/aws-ec2-volumeattachment.go rename to cloudformation/resources/aws-ec2-volumeattachment.go index ca7fa7bea4..ab5d9f5043 100644 --- a/cloudformation/aws-ec2-volumeattachment.go +++ b/cloudformation/resources/aws-ec2-volumeattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VolumeAttachment AWS CloudFormation Resource (AWS::EC2::VolumeAttachment) @@ -26,7 +27,7 @@ type AWSEC2VolumeAttachment struct { VolumeId string `json:"VolumeId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2VolumeAttachment) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VolumeAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VolumeAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2VolumeAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpc.go b/cloudformation/resources/aws-ec2-vpc.go similarity index 91% rename from cloudformation/aws-ec2-vpc.go rename to cloudformation/resources/aws-ec2-vpc.go index 308bcc2fe3..095b3aa4e4 100644 --- a/cloudformation/aws-ec2-vpc.go +++ b/cloudformation/resources/aws-ec2-vpc.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPC AWS CloudFormation Resource (AWS::EC2::VPC) @@ -36,7 +37,7 @@ type AWSEC2VPC struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSEC2VPC) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPC) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPC) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSEC2VPC) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpccidrblock.go b/cloudformation/resources/aws-ec2-vpccidrblock.go similarity index 91% rename from cloudformation/aws-ec2-vpccidrblock.go rename to cloudformation/resources/aws-ec2-vpccidrblock.go index 269dd070fb..31444248c8 100644 --- a/cloudformation/aws-ec2-vpccidrblock.go +++ b/cloudformation/resources/aws-ec2-vpccidrblock.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPCCidrBlock AWS CloudFormation Resource (AWS::EC2::VPCCidrBlock) @@ -26,7 +27,7 @@ type AWSEC2VPCCidrBlock struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2VPCCidrBlock) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPCCidrBlock) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPCCidrBlock) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2VPCCidrBlock) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpcdhcpoptionsassociation.go b/cloudformation/resources/aws-ec2-vpcdhcpoptionsassociation.go similarity index 92% rename from cloudformation/aws-ec2-vpcdhcpoptionsassociation.go rename to cloudformation/resources/aws-ec2-vpcdhcpoptionsassociation.go index 8cc8ab81f7..32bb2118a4 100644 --- a/cloudformation/aws-ec2-vpcdhcpoptionsassociation.go +++ b/cloudformation/resources/aws-ec2-vpcdhcpoptionsassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPCDHCPOptionsAssociation AWS CloudFormation Resource (AWS::EC2::VPCDHCPOptionsAssociation) @@ -21,7 +22,7 @@ type AWSEC2VPCDHCPOptionsAssociation struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2VPCDHCPOptionsAssociation) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPCDHCPOptionsAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPCDHCPOptionsAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2VPCDHCPOptionsAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpcendpoint.go b/cloudformation/resources/aws-ec2-vpcendpoint.go similarity index 93% rename from cloudformation/aws-ec2-vpcendpoint.go rename to cloudformation/resources/aws-ec2-vpcendpoint.go index 6f2a62bc62..84e288852a 100644 --- a/cloudformation/aws-ec2-vpcendpoint.go +++ b/cloudformation/resources/aws-ec2-vpcendpoint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPCEndpoint AWS CloudFormation Resource (AWS::EC2::VPCEndpoint) @@ -51,7 +52,7 @@ type AWSEC2VPCEndpoint struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSEC2VPCEndpoint) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPCEndpoint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPCEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSEC2VPCEndpoint) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpcendpointconnectionnotification.go b/cloudformation/resources/aws-ec2-vpcendpointconnectionnotification.go similarity index 93% rename from cloudformation/aws-ec2-vpcendpointconnectionnotification.go rename to cloudformation/resources/aws-ec2-vpcendpointconnectionnotification.go index 4ea557d973..61bdb04892 100644 --- a/cloudformation/aws-ec2-vpcendpointconnectionnotification.go +++ b/cloudformation/resources/aws-ec2-vpcendpointconnectionnotification.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPCEndpointConnectionNotification AWS CloudFormation Resource (AWS::EC2::VPCEndpointConnectionNotification) @@ -31,7 +32,7 @@ type AWSEC2VPCEndpointConnectionNotification struct { VPCEndpointId string `json:"VPCEndpointId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEC2VPCEndpointConnectionNotification) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPCEndpointConnectionNotification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPCEndpointConnectionNotification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEC2VPCEndpointConnectionNotification) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpcendpointservicepermissions.go b/cloudformation/resources/aws-ec2-vpcendpointservicepermissions.go similarity index 92% rename from cloudformation/aws-ec2-vpcendpointservicepermissions.go rename to cloudformation/resources/aws-ec2-vpcendpointservicepermissions.go index 8fb40b2222..562674997a 100644 --- a/cloudformation/aws-ec2-vpcendpointservicepermissions.go +++ b/cloudformation/resources/aws-ec2-vpcendpointservicepermissions.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPCEndpointServicePermissions AWS CloudFormation Resource (AWS::EC2::VPCEndpointServicePermissions) @@ -21,7 +22,7 @@ type AWSEC2VPCEndpointServicePermissions struct { ServiceId string `json:"ServiceId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2VPCEndpointServicePermissions) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPCEndpointServicePermissions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPCEndpointServicePermissions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2VPCEndpointServicePermissions) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpcgatewayattachment.go b/cloudformation/resources/aws-ec2-vpcgatewayattachment.go similarity index 91% rename from cloudformation/aws-ec2-vpcgatewayattachment.go rename to cloudformation/resources/aws-ec2-vpcgatewayattachment.go index b79594deda..41fad5f8b8 100644 --- a/cloudformation/aws-ec2-vpcgatewayattachment.go +++ b/cloudformation/resources/aws-ec2-vpcgatewayattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPCGatewayAttachment AWS CloudFormation Resource (AWS::EC2::VPCGatewayAttachment) @@ -26,7 +27,7 @@ type AWSEC2VPCGatewayAttachment struct { VpnGatewayId string `json:"VpnGatewayId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2VPCGatewayAttachment) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPCGatewayAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPCGatewayAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2VPCGatewayAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpcpeeringconnection.go b/cloudformation/resources/aws-ec2-vpcpeeringconnection.go similarity index 92% rename from cloudformation/aws-ec2-vpcpeeringconnection.go rename to cloudformation/resources/aws-ec2-vpcpeeringconnection.go index 0b39d1ecc9..e992d7b54d 100644 --- a/cloudformation/aws-ec2-vpcpeeringconnection.go +++ b/cloudformation/resources/aws-ec2-vpcpeeringconnection.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPCPeeringConnection AWS CloudFormation Resource (AWS::EC2::VPCPeeringConnection) @@ -41,7 +42,7 @@ type AWSEC2VPCPeeringConnection struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSEC2VPCPeeringConnection) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPCPeeringConnection) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPCPeeringConnection) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSEC2VPCPeeringConnection) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpnconnection.go b/cloudformation/resources/aws-ec2-vpnconnection.go similarity index 92% rename from cloudformation/aws-ec2-vpnconnection.go rename to cloudformation/resources/aws-ec2-vpnconnection.go index 5d8f33700d..01c1ba1895 100644 --- a/cloudformation/aws-ec2-vpnconnection.go +++ b/cloudformation/resources/aws-ec2-vpnconnection.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPNConnection AWS CloudFormation Resource (AWS::EC2::VPNConnection) @@ -41,7 +42,7 @@ type AWSEC2VPNConnection struct { VpnTunnelOptionsSpecifications []AWSEC2VPNConnection_VpnTunnelOptionsSpecification `json:"VpnTunnelOptionsSpecifications,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSEC2VPNConnection) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPNConnection) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPNConnection) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSEC2VPNConnection) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpnconnection_vpntunneloptionsspecification.go b/cloudformation/resources/aws-ec2-vpnconnection_vpntunneloptionsspecification.go similarity index 94% rename from cloudformation/aws-ec2-vpnconnection_vpntunneloptionsspecification.go rename to cloudformation/resources/aws-ec2-vpnconnection_vpntunneloptionsspecification.go index 5fb4df5f05..56fa15cd00 100644 --- a/cloudformation/aws-ec2-vpnconnection_vpntunneloptionsspecification.go +++ b/cloudformation/resources/aws-ec2-vpnconnection_vpntunneloptionsspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEC2VPNConnection_VpnTunnelOptionsSpecification AWS CloudFormation Resource (AWS::EC2::VPNConnection.VpnTunnelOptionsSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunneloptionsspecification.html @@ -15,7 +17,7 @@ type AWSEC2VPNConnection_VpnTunnelOptionsSpecification struct { TunnelInsideCidr string `json:"TunnelInsideCidr,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEC2VPNConnection_VpnTunnelOptionsSpecification) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPNConnection_VpnTunnelOptionsSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPNConnection_VpnTunnelOptionsSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ec2-vpnconnectionroute.go b/cloudformation/resources/aws-ec2-vpnconnectionroute.go similarity index 90% rename from cloudformation/aws-ec2-vpnconnectionroute.go rename to cloudformation/resources/aws-ec2-vpnconnectionroute.go index 7206e57b0a..530ebcb5f9 100644 --- a/cloudformation/aws-ec2-vpnconnectionroute.go +++ b/cloudformation/resources/aws-ec2-vpnconnectionroute.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPNConnectionRoute AWS CloudFormation Resource (AWS::EC2::VPNConnectionRoute) @@ -21,7 +22,7 @@ type AWSEC2VPNConnectionRoute struct { VpnConnectionId string `json:"VpnConnectionId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2VPNConnectionRoute) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPNConnectionRoute) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPNConnectionRoute) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2VPNConnectionRoute) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpngateway.go b/cloudformation/resources/aws-ec2-vpngateway.go similarity index 90% rename from cloudformation/aws-ec2-vpngateway.go rename to cloudformation/resources/aws-ec2-vpngateway.go index 1a3d4824ea..27cd632e4b 100644 --- a/cloudformation/aws-ec2-vpngateway.go +++ b/cloudformation/resources/aws-ec2-vpngateway.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPNGateway AWS CloudFormation Resource (AWS::EC2::VPNGateway) @@ -26,7 +27,7 @@ type AWSEC2VPNGateway struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSEC2VPNGateway) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPNGateway) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPNGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSEC2VPNGateway) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ec2-vpngatewayroutepropagation.go b/cloudformation/resources/aws-ec2-vpngatewayroutepropagation.go similarity index 92% rename from cloudformation/aws-ec2-vpngatewayroutepropagation.go rename to cloudformation/resources/aws-ec2-vpngatewayroutepropagation.go index b85127aba3..da3f7ce9ec 100644 --- a/cloudformation/aws-ec2-vpngatewayroutepropagation.go +++ b/cloudformation/resources/aws-ec2-vpngatewayroutepropagation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEC2VPNGatewayRoutePropagation AWS CloudFormation Resource (AWS::EC2::VPNGatewayRoutePropagation) @@ -21,7 +22,7 @@ type AWSEC2VPNGatewayRoutePropagation struct { VpnGatewayId string `json:"VpnGatewayId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEC2VPNGatewayRoutePropagation) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEC2VPNGatewayRoutePropagation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEC2VPNGatewayRoutePropagation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEC2VPNGatewayRoutePropagation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ecr-repository.go b/cloudformation/resources/aws-ecr-repository.go similarity index 91% rename from cloudformation/aws-ecr-repository.go rename to cloudformation/resources/aws-ecr-repository.go index da0471aff2..673464d411 100644 --- a/cloudformation/aws-ecr-repository.go +++ b/cloudformation/resources/aws-ecr-repository.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSECRRepository AWS CloudFormation Resource (AWS::ECR::Repository) @@ -26,7 +27,7 @@ type AWSECRRepository struct { RepositoryPolicyText interface{} `json:"RepositoryPolicyText,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSECRRepository) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECRRepository) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECRRepository) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSECRRepository) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ecr-repository_lifecyclepolicy.go b/cloudformation/resources/aws-ecr-repository_lifecyclepolicy.go similarity index 94% rename from cloudformation/aws-ecr-repository_lifecyclepolicy.go rename to cloudformation/resources/aws-ecr-repository_lifecyclepolicy.go index 6360d19c1e..6e5678b107 100644 --- a/cloudformation/aws-ecr-repository_lifecyclepolicy.go +++ b/cloudformation/resources/aws-ecr-repository_lifecyclepolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECRRepository_LifecyclePolicy AWS CloudFormation Resource (AWS::ECR::Repository.LifecyclePolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-lifecyclepolicy.html @@ -15,7 +17,7 @@ type AWSECRRepository_LifecyclePolicy struct { RegistryId string `json:"RegistryId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECRRepository_LifecyclePolicy) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECRRepository_LifecyclePolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECRRepository_LifecyclePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-cluster.go b/cloudformation/resources/aws-ecs-cluster.go similarity index 89% rename from cloudformation/aws-ecs-cluster.go rename to cloudformation/resources/aws-ecs-cluster.go index cdca3142b7..e7796a8b1a 100644 --- a/cloudformation/aws-ecs-cluster.go +++ b/cloudformation/resources/aws-ecs-cluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSECSCluster AWS CloudFormation Resource (AWS::ECS::Cluster) @@ -16,7 +17,7 @@ type AWSECSCluster struct { ClusterName string `json:"ClusterName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSECSCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSECSCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ecs-service.go b/cloudformation/resources/aws-ecs-service.go similarity index 94% rename from cloudformation/aws-ecs-service.go rename to cloudformation/resources/aws-ecs-service.go index 858eab1a49..1114ee198c 100644 --- a/cloudformation/aws-ecs-service.go +++ b/cloudformation/resources/aws-ecs-service.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSECSService AWS CloudFormation Resource (AWS::ECS::Service) @@ -86,7 +87,7 @@ type AWSECSService struct { TaskDefinition string `json:"TaskDefinition,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -126,7 +127,7 @@ func (r *AWSECSService) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -137,9 +138,9 @@ func (r AWSECSService) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ecs-service_awsvpcconfiguration.go b/cloudformation/resources/aws-ecs-service_awsvpcconfiguration.go similarity index 95% rename from cloudformation/aws-ecs-service_awsvpcconfiguration.go rename to cloudformation/resources/aws-ecs-service_awsvpcconfiguration.go index f276bcdc38..211386b8fc 100644 --- a/cloudformation/aws-ecs-service_awsvpcconfiguration.go +++ b/cloudformation/resources/aws-ecs-service_awsvpcconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSService_AwsVpcConfiguration AWS CloudFormation Resource (AWS::ECS::Service.AwsVpcConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html @@ -20,7 +22,7 @@ type AWSECSService_AwsVpcConfiguration struct { Subnets []string `json:"Subnets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSECSService_AwsVpcConfiguration) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService_AwsVpcConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService_AwsVpcConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-service_deploymentconfiguration.go b/cloudformation/resources/aws-ecs-service_deploymentconfiguration.go similarity index 94% rename from cloudformation/aws-ecs-service_deploymentconfiguration.go rename to cloudformation/resources/aws-ecs-service_deploymentconfiguration.go index 362f2f1914..66abde1f9d 100644 --- a/cloudformation/aws-ecs-service_deploymentconfiguration.go +++ b/cloudformation/resources/aws-ecs-service_deploymentconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSService_DeploymentConfiguration AWS CloudFormation Resource (AWS::ECS::Service.DeploymentConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html @@ -15,7 +17,7 @@ type AWSECSService_DeploymentConfiguration struct { MinimumHealthyPercent int `json:"MinimumHealthyPercent,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSService_DeploymentConfiguration) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService_DeploymentConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService_DeploymentConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-service_loadbalancer.go b/cloudformation/resources/aws-ecs-service_loadbalancer.go similarity index 93% rename from cloudformation/aws-ecs-service_loadbalancer.go rename to cloudformation/resources/aws-ecs-service_loadbalancer.go index 8955c1d547..fd4774c95a 100644 --- a/cloudformation/aws-ecs-service_loadbalancer.go +++ b/cloudformation/resources/aws-ecs-service_loadbalancer.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSService_LoadBalancer AWS CloudFormation Resource (AWS::ECS::Service.LoadBalancer) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html @@ -25,7 +27,7 @@ type AWSECSService_LoadBalancer struct { TargetGroupArn string `json:"TargetGroupArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSECSService_LoadBalancer) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService_LoadBalancer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService_LoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-service_networkconfiguration.go b/cloudformation/resources/aws-ecs-service_networkconfiguration.go similarity index 94% rename from cloudformation/aws-ecs-service_networkconfiguration.go rename to cloudformation/resources/aws-ecs-service_networkconfiguration.go index 693d99911c..5717b45c55 100644 --- a/cloudformation/aws-ecs-service_networkconfiguration.go +++ b/cloudformation/resources/aws-ecs-service_networkconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSService_NetworkConfiguration AWS CloudFormation Resource (AWS::ECS::Service.NetworkConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-networkconfiguration.html @@ -10,7 +12,7 @@ type AWSECSService_NetworkConfiguration struct { AwsvpcConfiguration *AWSECSService_AwsVpcConfiguration `json:"AwsvpcConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSECSService_NetworkConfiguration) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService_NetworkConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService_NetworkConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-service_placementconstraint.go b/cloudformation/resources/aws-ecs-service_placementconstraint.go similarity index 94% rename from cloudformation/aws-ecs-service_placementconstraint.go rename to cloudformation/resources/aws-ecs-service_placementconstraint.go index 05b35d804b..901728bd22 100644 --- a/cloudformation/aws-ecs-service_placementconstraint.go +++ b/cloudformation/resources/aws-ecs-service_placementconstraint.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSService_PlacementConstraint AWS CloudFormation Resource (AWS::ECS::Service.PlacementConstraint) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html @@ -15,7 +17,7 @@ type AWSECSService_PlacementConstraint struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSService_PlacementConstraint) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService_PlacementConstraint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService_PlacementConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-service_placementstrategy.go b/cloudformation/resources/aws-ecs-service_placementstrategy.go similarity index 94% rename from cloudformation/aws-ecs-service_placementstrategy.go rename to cloudformation/resources/aws-ecs-service_placementstrategy.go index 3914580043..f6a78f61c3 100644 --- a/cloudformation/aws-ecs-service_placementstrategy.go +++ b/cloudformation/resources/aws-ecs-service_placementstrategy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSService_PlacementStrategy AWS CloudFormation Resource (AWS::ECS::Service.PlacementStrategy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html @@ -15,7 +17,7 @@ type AWSECSService_PlacementStrategy struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSService_PlacementStrategy) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService_PlacementStrategy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService_PlacementStrategy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-service_serviceregistry.go b/cloudformation/resources/aws-ecs-service_serviceregistry.go similarity index 95% rename from cloudformation/aws-ecs-service_serviceregistry.go rename to cloudformation/resources/aws-ecs-service_serviceregistry.go index 2465a83912..bbb217d152 100644 --- a/cloudformation/aws-ecs-service_serviceregistry.go +++ b/cloudformation/resources/aws-ecs-service_serviceregistry.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSService_ServiceRegistry AWS CloudFormation Resource (AWS::ECS::Service.ServiceRegistry) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html @@ -25,7 +27,7 @@ type AWSECSService_ServiceRegistry struct { RegistryArn string `json:"RegistryArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSECSService_ServiceRegistry) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSService_ServiceRegistry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSService_ServiceRegistry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition.go b/cloudformation/resources/aws-ecs-taskdefinition.go similarity index 93% rename from cloudformation/aws-ecs-taskdefinition.go rename to cloudformation/resources/aws-ecs-taskdefinition.go index c3d103bb16..9c6e33e8bb 100644 --- a/cloudformation/aws-ecs-taskdefinition.go +++ b/cloudformation/resources/aws-ecs-taskdefinition.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSECSTaskDefinition AWS CloudFormation Resource (AWS::ECS::TaskDefinition) @@ -61,7 +62,7 @@ type AWSECSTaskDefinition struct { Volumes []AWSECSTaskDefinition_Volume `json:"Volumes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSECSTaskDefinition) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSECSTaskDefinition) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ecs-taskdefinition_containerdefinition.go b/cloudformation/resources/aws-ecs-taskdefinition_containerdefinition.go similarity index 98% rename from cloudformation/aws-ecs-taskdefinition_containerdefinition.go rename to cloudformation/resources/aws-ecs-taskdefinition_containerdefinition.go index 744837a634..9cbd93ef49 100644 --- a/cloudformation/aws-ecs-taskdefinition_containerdefinition.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_containerdefinition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_ContainerDefinition AWS CloudFormation Resource (AWS::ECS::TaskDefinition.ContainerDefinition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html @@ -150,7 +152,7 @@ type AWSECSTaskDefinition_ContainerDefinition struct { WorkingDirectory string `json:"WorkingDirectory,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -190,6 +192,6 @@ func (r *AWSECSTaskDefinition_ContainerDefinition) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_ContainerDefinition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_ContainerDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_device.go b/cloudformation/resources/aws-ecs-taskdefinition_device.go similarity index 93% rename from cloudformation/aws-ecs-taskdefinition_device.go rename to cloudformation/resources/aws-ecs-taskdefinition_device.go index cd88f64674..df2211dc62 100644 --- a/cloudformation/aws-ecs-taskdefinition_device.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_device.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_Device AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Device) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-device.html @@ -20,7 +22,7 @@ type AWSECSTaskDefinition_Device struct { Permissions []string `json:"Permissions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSECSTaskDefinition_Device) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_Device) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_Device) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_dockervolumeconfiguration.go b/cloudformation/resources/aws-ecs-taskdefinition_dockervolumeconfiguration.go similarity index 95% rename from cloudformation/aws-ecs-taskdefinition_dockervolumeconfiguration.go rename to cloudformation/resources/aws-ecs-taskdefinition_dockervolumeconfiguration.go index 2e22af5fd6..224bdd87f6 100644 --- a/cloudformation/aws-ecs-taskdefinition_dockervolumeconfiguration.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_dockervolumeconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_DockerVolumeConfiguration AWS CloudFormation Resource (AWS::ECS::TaskDefinition.DockerVolumeConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html @@ -30,7 +32,7 @@ type AWSECSTaskDefinition_DockerVolumeConfiguration struct { Scope string `json:"Scope,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSECSTaskDefinition_DockerVolumeConfiguration) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_DockerVolumeConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_DockerVolumeConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_healthcheck.go b/cloudformation/resources/aws-ecs-taskdefinition_healthcheck.go similarity index 95% rename from cloudformation/aws-ecs-taskdefinition_healthcheck.go rename to cloudformation/resources/aws-ecs-taskdefinition_healthcheck.go index a85f4c887a..156b12a230 100644 --- a/cloudformation/aws-ecs-taskdefinition_healthcheck.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_healthcheck.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_HealthCheck AWS CloudFormation Resource (AWS::ECS::TaskDefinition.HealthCheck) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html @@ -30,7 +32,7 @@ type AWSECSTaskDefinition_HealthCheck struct { Timeout int `json:"Timeout,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSECSTaskDefinition_HealthCheck) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_HealthCheck) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_HealthCheck) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_hostentry.go b/cloudformation/resources/aws-ecs-taskdefinition_hostentry.go similarity index 94% rename from cloudformation/aws-ecs-taskdefinition_hostentry.go rename to cloudformation/resources/aws-ecs-taskdefinition_hostentry.go index 29e922aab8..7ec2ccbff9 100644 --- a/cloudformation/aws-ecs-taskdefinition_hostentry.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_hostentry.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_HostEntry AWS CloudFormation Resource (AWS::ECS::TaskDefinition.HostEntry) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-hostentry.html @@ -15,7 +17,7 @@ type AWSECSTaskDefinition_HostEntry struct { IpAddress string `json:"IpAddress,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSTaskDefinition_HostEntry) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_HostEntry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_HostEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_hostvolumeproperties.go b/cloudformation/resources/aws-ecs-taskdefinition_hostvolumeproperties.go similarity index 93% rename from cloudformation/aws-ecs-taskdefinition_hostvolumeproperties.go rename to cloudformation/resources/aws-ecs-taskdefinition_hostvolumeproperties.go index a74dd2aeb0..94dddc1264 100644 --- a/cloudformation/aws-ecs-taskdefinition_hostvolumeproperties.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_hostvolumeproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_HostVolumeProperties AWS CloudFormation Resource (AWS::ECS::TaskDefinition.HostVolumeProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes-host.html @@ -10,7 +12,7 @@ type AWSECSTaskDefinition_HostVolumeProperties struct { SourcePath string `json:"SourcePath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSECSTaskDefinition_HostVolumeProperties) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_HostVolumeProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_HostVolumeProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_kernelcapabilities.go b/cloudformation/resources/aws-ecs-taskdefinition_kernelcapabilities.go similarity index 94% rename from cloudformation/aws-ecs-taskdefinition_kernelcapabilities.go rename to cloudformation/resources/aws-ecs-taskdefinition_kernelcapabilities.go index 1dcab14520..2cc1e1722f 100644 --- a/cloudformation/aws-ecs-taskdefinition_kernelcapabilities.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_kernelcapabilities.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_KernelCapabilities AWS CloudFormation Resource (AWS::ECS::TaskDefinition.KernelCapabilities) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-kernelcapabilities.html @@ -15,7 +17,7 @@ type AWSECSTaskDefinition_KernelCapabilities struct { Drop []string `json:"Drop,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSTaskDefinition_KernelCapabilities) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_KernelCapabilities) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_KernelCapabilities) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_keyvaluepair.go b/cloudformation/resources/aws-ecs-taskdefinition_keyvaluepair.go similarity index 94% rename from cloudformation/aws-ecs-taskdefinition_keyvaluepair.go rename to cloudformation/resources/aws-ecs-taskdefinition_keyvaluepair.go index 78654ab1de..b14754e781 100644 --- a/cloudformation/aws-ecs-taskdefinition_keyvaluepair.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_keyvaluepair.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_KeyValuePair AWS CloudFormation Resource (AWS::ECS::TaskDefinition.KeyValuePair) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-environment.html @@ -15,7 +17,7 @@ type AWSECSTaskDefinition_KeyValuePair struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSTaskDefinition_KeyValuePair) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_KeyValuePair) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_KeyValuePair) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_linuxparameters.go b/cloudformation/resources/aws-ecs-taskdefinition_linuxparameters.go similarity index 95% rename from cloudformation/aws-ecs-taskdefinition_linuxparameters.go rename to cloudformation/resources/aws-ecs-taskdefinition_linuxparameters.go index 56655404c2..8d5f04aa39 100644 --- a/cloudformation/aws-ecs-taskdefinition_linuxparameters.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_linuxparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_LinuxParameters AWS CloudFormation Resource (AWS::ECS::TaskDefinition.LinuxParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html @@ -30,7 +32,7 @@ type AWSECSTaskDefinition_LinuxParameters struct { Tmpfs []AWSECSTaskDefinition_Tmpfs `json:"Tmpfs,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSECSTaskDefinition_LinuxParameters) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_LinuxParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_LinuxParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_logconfiguration.go b/cloudformation/resources/aws-ecs-taskdefinition_logconfiguration.go similarity index 94% rename from cloudformation/aws-ecs-taskdefinition_logconfiguration.go rename to cloudformation/resources/aws-ecs-taskdefinition_logconfiguration.go index f9f21ca7bf..6f29b6e582 100644 --- a/cloudformation/aws-ecs-taskdefinition_logconfiguration.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_logconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_LogConfiguration AWS CloudFormation Resource (AWS::ECS::TaskDefinition.LogConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-logconfiguration.html @@ -15,7 +17,7 @@ type AWSECSTaskDefinition_LogConfiguration struct { Options map[string]string `json:"Options,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSTaskDefinition_LogConfiguration) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_LogConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_LogConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_mountpoint.go b/cloudformation/resources/aws-ecs-taskdefinition_mountpoint.go similarity index 95% rename from cloudformation/aws-ecs-taskdefinition_mountpoint.go rename to cloudformation/resources/aws-ecs-taskdefinition_mountpoint.go index aa8f27d5b6..5b1978b9a0 100644 --- a/cloudformation/aws-ecs-taskdefinition_mountpoint.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_mountpoint.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_MountPoint AWS CloudFormation Resource (AWS::ECS::TaskDefinition.MountPoint) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-mountpoints.html @@ -20,7 +22,7 @@ type AWSECSTaskDefinition_MountPoint struct { SourceVolume string `json:"SourceVolume,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSECSTaskDefinition_MountPoint) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_MountPoint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_MountPoint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_portmapping.go b/cloudformation/resources/aws-ecs-taskdefinition_portmapping.go similarity index 95% rename from cloudformation/aws-ecs-taskdefinition_portmapping.go rename to cloudformation/resources/aws-ecs-taskdefinition_portmapping.go index 45ef1b3d19..8d675ee64d 100644 --- a/cloudformation/aws-ecs-taskdefinition_portmapping.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_portmapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_PortMapping AWS CloudFormation Resource (AWS::ECS::TaskDefinition.PortMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-portmappings.html @@ -20,7 +22,7 @@ type AWSECSTaskDefinition_PortMapping struct { Protocol string `json:"Protocol,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSECSTaskDefinition_PortMapping) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_PortMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_PortMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_repositorycredentials.go b/cloudformation/resources/aws-ecs-taskdefinition_repositorycredentials.go similarity index 93% rename from cloudformation/aws-ecs-taskdefinition_repositorycredentials.go rename to cloudformation/resources/aws-ecs-taskdefinition_repositorycredentials.go index 4a0a4df0a3..586b027582 100644 --- a/cloudformation/aws-ecs-taskdefinition_repositorycredentials.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_repositorycredentials.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_RepositoryCredentials AWS CloudFormation Resource (AWS::ECS::TaskDefinition.RepositoryCredentials) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-repositorycredentials.html @@ -10,7 +12,7 @@ type AWSECSTaskDefinition_RepositoryCredentials struct { CredentialsParameter string `json:"CredentialsParameter,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSECSTaskDefinition_RepositoryCredentials) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_RepositoryCredentials) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_RepositoryCredentials) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go b/cloudformation/resources/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go similarity index 94% rename from cloudformation/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go rename to cloudformation/resources/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go index 16b76a041a..9c930928bc 100644 --- a/cloudformation/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_TaskDefinitionPlacementConstraint AWS CloudFormation Resource (AWS::ECS::TaskDefinition.TaskDefinitionPlacementConstraint) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html @@ -15,7 +17,7 @@ type AWSECSTaskDefinition_TaskDefinitionPlacementConstraint struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSTaskDefinition_TaskDefinitionPlacementConstraint) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_TaskDefinitionPlacementConstraint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_TaskDefinitionPlacementConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_tmpfs.go b/cloudformation/resources/aws-ecs-taskdefinition_tmpfs.go similarity index 92% rename from cloudformation/aws-ecs-taskdefinition_tmpfs.go rename to cloudformation/resources/aws-ecs-taskdefinition_tmpfs.go index 167a216d1d..0c09f28328 100644 --- a/cloudformation/aws-ecs-taskdefinition_tmpfs.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_tmpfs.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_Tmpfs AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Tmpfs) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-tmpfs.html @@ -20,7 +22,7 @@ type AWSECSTaskDefinition_Tmpfs struct { Size int `json:"Size,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSECSTaskDefinition_Tmpfs) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_Tmpfs) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_Tmpfs) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_ulimit.go b/cloudformation/resources/aws-ecs-taskdefinition_ulimit.go similarity index 93% rename from cloudformation/aws-ecs-taskdefinition_ulimit.go rename to cloudformation/resources/aws-ecs-taskdefinition_ulimit.go index 64642dcb6c..50d8e7a895 100644 --- a/cloudformation/aws-ecs-taskdefinition_ulimit.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_ulimit.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_Ulimit AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Ulimit) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-ulimit.html @@ -20,7 +22,7 @@ type AWSECSTaskDefinition_Ulimit struct { SoftLimit int `json:"SoftLimit"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSECSTaskDefinition_Ulimit) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_Ulimit) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_Ulimit) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_volume.go b/cloudformation/resources/aws-ecs-taskdefinition_volume.go similarity index 93% rename from cloudformation/aws-ecs-taskdefinition_volume.go rename to cloudformation/resources/aws-ecs-taskdefinition_volume.go index 586e57a915..dd3b09ead3 100644 --- a/cloudformation/aws-ecs-taskdefinition_volume.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_volume.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_Volume AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Volume) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html @@ -20,7 +22,7 @@ type AWSECSTaskDefinition_Volume struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSECSTaskDefinition_Volume) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_Volume) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_Volume) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ecs-taskdefinition_volumefrom.go b/cloudformation/resources/aws-ecs-taskdefinition_volumefrom.go similarity index 94% rename from cloudformation/aws-ecs-taskdefinition_volumefrom.go rename to cloudformation/resources/aws-ecs-taskdefinition_volumefrom.go index 01b056b0ec..dc38e454a0 100644 --- a/cloudformation/aws-ecs-taskdefinition_volumefrom.go +++ b/cloudformation/resources/aws-ecs-taskdefinition_volumefrom.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSECSTaskDefinition_VolumeFrom AWS CloudFormation Resource (AWS::ECS::TaskDefinition.VolumeFrom) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-volumesfrom.html @@ -15,7 +17,7 @@ type AWSECSTaskDefinition_VolumeFrom struct { SourceContainer string `json:"SourceContainer,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSECSTaskDefinition_VolumeFrom) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSECSTaskDefinition_VolumeFrom) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSECSTaskDefinition_VolumeFrom) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-efs-filesystem.go b/cloudformation/resources/aws-efs-filesystem.go similarity index 92% rename from cloudformation/aws-efs-filesystem.go rename to cloudformation/resources/aws-efs-filesystem.go index 4972a035f1..2ba1806800 100644 --- a/cloudformation/aws-efs-filesystem.go +++ b/cloudformation/resources/aws-efs-filesystem.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEFSFileSystem AWS CloudFormation Resource (AWS::EFS::FileSystem) @@ -41,7 +42,7 @@ type AWSEFSFileSystem struct { ThroughputMode string `json:"ThroughputMode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSEFSFileSystem) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEFSFileSystem) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEFSFileSystem) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSEFSFileSystem) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-efs-filesystem_elasticfilesystemtag.go b/cloudformation/resources/aws-efs-filesystem_elasticfilesystemtag.go similarity index 94% rename from cloudformation/aws-efs-filesystem_elasticfilesystemtag.go rename to cloudformation/resources/aws-efs-filesystem_elasticfilesystemtag.go index 662220ab4d..796e401ea8 100644 --- a/cloudformation/aws-efs-filesystem_elasticfilesystemtag.go +++ b/cloudformation/resources/aws-efs-filesystem_elasticfilesystemtag.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEFSFileSystem_ElasticFileSystemTag AWS CloudFormation Resource (AWS::EFS::FileSystem.ElasticFileSystemTag) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-filesystemtags.html @@ -15,7 +17,7 @@ type AWSEFSFileSystem_ElasticFileSystemTag struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEFSFileSystem_ElasticFileSystemTag) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEFSFileSystem_ElasticFileSystemTag) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEFSFileSystem_ElasticFileSystemTag) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-efs-mounttarget.go b/cloudformation/resources/aws-efs-mounttarget.go similarity index 91% rename from cloudformation/aws-efs-mounttarget.go rename to cloudformation/resources/aws-efs-mounttarget.go index c19577a105..545a517413 100644 --- a/cloudformation/aws-efs-mounttarget.go +++ b/cloudformation/resources/aws-efs-mounttarget.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEFSMountTarget AWS CloudFormation Resource (AWS::EFS::MountTarget) @@ -31,7 +32,7 @@ type AWSEFSMountTarget struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEFSMountTarget) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEFSMountTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEFSMountTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEFSMountTarget) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-eks-cluster.go b/cloudformation/resources/aws-eks-cluster.go similarity index 91% rename from cloudformation/aws-eks-cluster.go rename to cloudformation/resources/aws-eks-cluster.go index 5e001d796e..a627c55f65 100644 --- a/cloudformation/aws-eks-cluster.go +++ b/cloudformation/resources/aws-eks-cluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEKSCluster AWS CloudFormation Resource (AWS::EKS::Cluster) @@ -31,7 +32,7 @@ type AWSEKSCluster struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEKSCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEKSCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEKSCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEKSCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-eks-cluster_resourcesvpcconfig.go b/cloudformation/resources/aws-eks-cluster_resourcesvpcconfig.go similarity index 94% rename from cloudformation/aws-eks-cluster_resourcesvpcconfig.go rename to cloudformation/resources/aws-eks-cluster_resourcesvpcconfig.go index d9a1e94162..d05d2aa0b4 100644 --- a/cloudformation/aws-eks-cluster_resourcesvpcconfig.go +++ b/cloudformation/resources/aws-eks-cluster_resourcesvpcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEKSCluster_ResourcesVpcConfig AWS CloudFormation Resource (AWS::EKS::Cluster.ResourcesVpcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-resourcesvpcconfig.html @@ -15,7 +17,7 @@ type AWSEKSCluster_ResourcesVpcConfig struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEKSCluster_ResourcesVpcConfig) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEKSCluster_ResourcesVpcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEKSCluster_ResourcesVpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticache-cachecluster.go b/cloudformation/resources/aws-elasticache-cachecluster.go similarity index 95% rename from cloudformation/aws-elasticache-cachecluster.go rename to cloudformation/resources/aws-elasticache-cachecluster.go index cab438dcd7..6c52a514d4 100644 --- a/cloudformation/aws-elasticache-cachecluster.go +++ b/cloudformation/resources/aws-elasticache-cachecluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElastiCacheCacheCluster AWS CloudFormation Resource (AWS::ElastiCache::CacheCluster) @@ -116,7 +117,7 @@ type AWSElastiCacheCacheCluster struct { VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -156,7 +157,7 @@ func (r *AWSElastiCacheCacheCluster) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElastiCacheCacheCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElastiCacheCacheCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -167,9 +168,9 @@ func (r AWSElastiCacheCacheCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticache-parametergroup.go b/cloudformation/resources/aws-elasticache-parametergroup.go similarity index 92% rename from cloudformation/aws-elasticache-parametergroup.go rename to cloudformation/resources/aws-elasticache-parametergroup.go index fe9055f4be..1590d40a21 100644 --- a/cloudformation/aws-elasticache-parametergroup.go +++ b/cloudformation/resources/aws-elasticache-parametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElastiCacheParameterGroup AWS CloudFormation Resource (AWS::ElastiCache::ParameterGroup) @@ -26,7 +27,7 @@ type AWSElastiCacheParameterGroup struct { Properties map[string]string `json:"Properties,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSElastiCacheParameterGroup) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElastiCacheParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElastiCacheParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSElastiCacheParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticache-replicationgroup.go b/cloudformation/resources/aws-elasticache-replicationgroup.go similarity index 97% rename from cloudformation/aws-elasticache-replicationgroup.go rename to cloudformation/resources/aws-elasticache-replicationgroup.go index fe419e29cb..58100d8698 100644 --- a/cloudformation/aws-elasticache-replicationgroup.go +++ b/cloudformation/resources/aws-elasticache-replicationgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElastiCacheReplicationGroup AWS CloudFormation Resource (AWS::ElastiCache::ReplicationGroup) @@ -156,7 +157,7 @@ type AWSElastiCacheReplicationGroup struct { TransitEncryptionEnabled bool `json:"TransitEncryptionEnabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -196,7 +197,7 @@ func (r *AWSElastiCacheReplicationGroup) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElastiCacheReplicationGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElastiCacheReplicationGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -207,9 +208,9 @@ func (r AWSElastiCacheReplicationGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticache-replicationgroup_nodegroupconfiguration.go b/cloudformation/resources/aws-elasticache-replicationgroup_nodegroupconfiguration.go similarity index 95% rename from cloudformation/aws-elasticache-replicationgroup_nodegroupconfiguration.go rename to cloudformation/resources/aws-elasticache-replicationgroup_nodegroupconfiguration.go index fc8cc817b8..6445e4f5ea 100644 --- a/cloudformation/aws-elasticache-replicationgroup_nodegroupconfiguration.go +++ b/cloudformation/resources/aws-elasticache-replicationgroup_nodegroupconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElastiCacheReplicationGroup_NodeGroupConfiguration AWS CloudFormation Resource (AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html @@ -30,7 +32,7 @@ type AWSElastiCacheReplicationGroup_NodeGroupConfiguration struct { Slots string `json:"Slots,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSElastiCacheReplicationGroup_NodeGroupConfiguration) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElastiCacheReplicationGroup_NodeGroupConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElastiCacheReplicationGroup_NodeGroupConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticache-securitygroup.go b/cloudformation/resources/aws-elasticache-securitygroup.go similarity index 90% rename from cloudformation/aws-elasticache-securitygroup.go rename to cloudformation/resources/aws-elasticache-securitygroup.go index c82ec2de68..16f0646cc0 100644 --- a/cloudformation/aws-elasticache-securitygroup.go +++ b/cloudformation/resources/aws-elasticache-securitygroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElastiCacheSecurityGroup AWS CloudFormation Resource (AWS::ElastiCache::SecurityGroup) @@ -16,7 +17,7 @@ type AWSElastiCacheSecurityGroup struct { Description string `json:"Description,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSElastiCacheSecurityGroup) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElastiCacheSecurityGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElastiCacheSecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSElastiCacheSecurityGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticache-securitygroupingress.go b/cloudformation/resources/aws-elasticache-securitygroupingress.go similarity index 92% rename from cloudformation/aws-elasticache-securitygroupingress.go rename to cloudformation/resources/aws-elasticache-securitygroupingress.go index fed8920be2..ec9118c433 100644 --- a/cloudformation/aws-elasticache-securitygroupingress.go +++ b/cloudformation/resources/aws-elasticache-securitygroupingress.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElastiCacheSecurityGroupIngress AWS CloudFormation Resource (AWS::ElastiCache::SecurityGroupIngress) @@ -26,7 +27,7 @@ type AWSElastiCacheSecurityGroupIngress struct { EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSElastiCacheSecurityGroupIngress) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElastiCacheSecurityGroupIngress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElastiCacheSecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSElastiCacheSecurityGroupIngress) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticache-subnetgroup.go b/cloudformation/resources/aws-elasticache-subnetgroup.go similarity index 91% rename from cloudformation/aws-elasticache-subnetgroup.go rename to cloudformation/resources/aws-elasticache-subnetgroup.go index 5d37489662..4cb47283fe 100644 --- a/cloudformation/aws-elasticache-subnetgroup.go +++ b/cloudformation/resources/aws-elasticache-subnetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElastiCacheSubnetGroup AWS CloudFormation Resource (AWS::ElastiCache::SubnetGroup) @@ -26,7 +27,7 @@ type AWSElastiCacheSubnetGroup struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSElastiCacheSubnetGroup) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElastiCacheSubnetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElastiCacheSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSElastiCacheSubnetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticbeanstalk-application.go b/cloudformation/resources/aws-elasticbeanstalk-application.go similarity index 92% rename from cloudformation/aws-elasticbeanstalk-application.go rename to cloudformation/resources/aws-elasticbeanstalk-application.go index 744ec6646d..e293d33841 100644 --- a/cloudformation/aws-elasticbeanstalk-application.go +++ b/cloudformation/resources/aws-elasticbeanstalk-application.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticBeanstalkApplication AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application) @@ -26,7 +27,7 @@ type AWSElasticBeanstalkApplication struct { ResourceLifecycleConfig *AWSElasticBeanstalkApplication_ApplicationResourceLifecycleConfig `json:"ResourceLifecycleConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSElasticBeanstalkApplication) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkApplication) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSElasticBeanstalkApplication) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go b/cloudformation/resources/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go similarity index 94% rename from cloudformation/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go rename to cloudformation/resources/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go index 184b16e7fe..2f72e097c8 100644 --- a/cloudformation/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go +++ b/cloudformation/resources/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkApplication_ApplicationResourceLifecycleConfig AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.ApplicationResourceLifecycleConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationresourcelifecycleconfig.html @@ -15,7 +17,7 @@ type AWSElasticBeanstalkApplication_ApplicationResourceLifecycleConfig struct { VersionLifecycleConfig *AWSElasticBeanstalkApplication_ApplicationVersionLifecycleConfig `json:"VersionLifecycleConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticBeanstalkApplication_ApplicationResourceLifecycleConfig) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkApplication_ApplicationResourceLifecycleConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkApplication_ApplicationResourceLifecycleConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go b/cloudformation/resources/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go similarity index 94% rename from cloudformation/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go rename to cloudformation/resources/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go index b919f6b0c5..40d6f8ae48 100644 --- a/cloudformation/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go +++ b/cloudformation/resources/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkApplication_ApplicationVersionLifecycleConfig AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.ApplicationVersionLifecycleConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationversionlifecycleconfig.html @@ -15,7 +17,7 @@ type AWSElasticBeanstalkApplication_ApplicationVersionLifecycleConfig struct { MaxCountRule *AWSElasticBeanstalkApplication_MaxCountRule `json:"MaxCountRule,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticBeanstalkApplication_ApplicationVersionLifecycleConfig) SetMe // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkApplication_ApplicationVersionLifecycleConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkApplication_ApplicationVersionLifecycleConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-application_maxagerule.go b/cloudformation/resources/aws-elasticbeanstalk-application_maxagerule.go similarity index 95% rename from cloudformation/aws-elasticbeanstalk-application_maxagerule.go rename to cloudformation/resources/aws-elasticbeanstalk-application_maxagerule.go index 02291c91d9..84ec829c46 100644 --- a/cloudformation/aws-elasticbeanstalk-application_maxagerule.go +++ b/cloudformation/resources/aws-elasticbeanstalk-application_maxagerule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkApplication_MaxAgeRule AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.MaxAgeRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxagerule.html @@ -20,7 +22,7 @@ type AWSElasticBeanstalkApplication_MaxAgeRule struct { MaxAgeInDays int `json:"MaxAgeInDays,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSElasticBeanstalkApplication_MaxAgeRule) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkApplication_MaxAgeRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkApplication_MaxAgeRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-application_maxcountrule.go b/cloudformation/resources/aws-elasticbeanstalk-application_maxcountrule.go similarity index 95% rename from cloudformation/aws-elasticbeanstalk-application_maxcountrule.go rename to cloudformation/resources/aws-elasticbeanstalk-application_maxcountrule.go index 07da974072..9e626b1d18 100644 --- a/cloudformation/aws-elasticbeanstalk-application_maxcountrule.go +++ b/cloudformation/resources/aws-elasticbeanstalk-application_maxcountrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkApplication_MaxCountRule AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.MaxCountRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxcountrule.html @@ -20,7 +22,7 @@ type AWSElasticBeanstalkApplication_MaxCountRule struct { MaxCount int `json:"MaxCount,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSElasticBeanstalkApplication_MaxCountRule) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkApplication_MaxCountRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkApplication_MaxCountRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-applicationversion.go b/cloudformation/resources/aws-elasticbeanstalk-applicationversion.go similarity index 92% rename from cloudformation/aws-elasticbeanstalk-applicationversion.go rename to cloudformation/resources/aws-elasticbeanstalk-applicationversion.go index 7b42004ab3..297a096c88 100644 --- a/cloudformation/aws-elasticbeanstalk-applicationversion.go +++ b/cloudformation/resources/aws-elasticbeanstalk-applicationversion.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticBeanstalkApplicationVersion AWS CloudFormation Resource (AWS::ElasticBeanstalk::ApplicationVersion) @@ -26,7 +27,7 @@ type AWSElasticBeanstalkApplicationVersion struct { SourceBundle *AWSElasticBeanstalkApplicationVersion_SourceBundle `json:"SourceBundle,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSElasticBeanstalkApplicationVersion) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkApplicationVersion) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkApplicationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSElasticBeanstalkApplicationVersion) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticbeanstalk-applicationversion_sourcebundle.go b/cloudformation/resources/aws-elasticbeanstalk-applicationversion_sourcebundle.go similarity index 94% rename from cloudformation/aws-elasticbeanstalk-applicationversion_sourcebundle.go rename to cloudformation/resources/aws-elasticbeanstalk-applicationversion_sourcebundle.go index 9a79a614c6..d0ad5f973d 100644 --- a/cloudformation/aws-elasticbeanstalk-applicationversion_sourcebundle.go +++ b/cloudformation/resources/aws-elasticbeanstalk-applicationversion_sourcebundle.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkApplicationVersion_SourceBundle AWS CloudFormation Resource (AWS::ElasticBeanstalk::ApplicationVersion.SourceBundle) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-sourcebundle.html @@ -15,7 +17,7 @@ type AWSElasticBeanstalkApplicationVersion_SourceBundle struct { S3Key string `json:"S3Key,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticBeanstalkApplicationVersion_SourceBundle) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkApplicationVersion_SourceBundle) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkApplicationVersion_SourceBundle) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-configurationtemplate.go b/cloudformation/resources/aws-elasticbeanstalk-configurationtemplate.go similarity index 94% rename from cloudformation/aws-elasticbeanstalk-configurationtemplate.go rename to cloudformation/resources/aws-elasticbeanstalk-configurationtemplate.go index e492d5f6aa..7350c7efc4 100644 --- a/cloudformation/aws-elasticbeanstalk-configurationtemplate.go +++ b/cloudformation/resources/aws-elasticbeanstalk-configurationtemplate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticBeanstalkConfigurationTemplate AWS CloudFormation Resource (AWS::ElasticBeanstalk::ConfigurationTemplate) @@ -46,7 +47,7 @@ type AWSElasticBeanstalkConfigurationTemplate struct { SourceConfiguration *AWSElasticBeanstalkConfigurationTemplate_SourceConfiguration `json:"SourceConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSElasticBeanstalkConfigurationTemplate) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkConfigurationTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkConfigurationTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSElasticBeanstalkConfigurationTemplate) MarshalJSON() ([]byte, error) return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go b/cloudformation/resources/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go similarity index 95% rename from cloudformation/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go rename to cloudformation/resources/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go index fd50342191..78b9fc3f9a 100644 --- a/cloudformation/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go +++ b/cloudformation/resources/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkConfigurationTemplate_ConfigurationOptionSetting AWS CloudFormation Resource (AWS::ElasticBeanstalk::ConfigurationTemplate.ConfigurationOptionSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html @@ -25,7 +27,7 @@ type AWSElasticBeanstalkConfigurationTemplate_ConfigurationOptionSetting struct Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSElasticBeanstalkConfigurationTemplate_ConfigurationOptionSetting) Se // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkConfigurationTemplate_ConfigurationOptionSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkConfigurationTemplate_ConfigurationOptionSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go b/cloudformation/resources/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go similarity index 94% rename from cloudformation/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go rename to cloudformation/resources/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go index 53f710566f..6b6f7733df 100644 --- a/cloudformation/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go +++ b/cloudformation/resources/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkConfigurationTemplate_SourceConfiguration AWS CloudFormation Resource (AWS::ElasticBeanstalk::ConfigurationTemplate.SourceConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-sourceconfiguration.html @@ -15,7 +17,7 @@ type AWSElasticBeanstalkConfigurationTemplate_SourceConfiguration struct { TemplateName string `json:"TemplateName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticBeanstalkConfigurationTemplate_SourceConfiguration) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkConfigurationTemplate_SourceConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkConfigurationTemplate_SourceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-environment.go b/cloudformation/resources/aws-elasticbeanstalk-environment.go similarity index 94% rename from cloudformation/aws-elasticbeanstalk-environment.go rename to cloudformation/resources/aws-elasticbeanstalk-environment.go index 140ec80f41..38920d8bce 100644 --- a/cloudformation/aws-elasticbeanstalk-environment.go +++ b/cloudformation/resources/aws-elasticbeanstalk-environment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticBeanstalkEnvironment AWS CloudFormation Resource (AWS::ElasticBeanstalk::Environment) @@ -66,7 +67,7 @@ type AWSElasticBeanstalkEnvironment struct { VersionLabel string `json:"VersionLabel,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -106,7 +107,7 @@ func (r *AWSElasticBeanstalkEnvironment) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkEnvironment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkEnvironment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -117,9 +118,9 @@ func (r AWSElasticBeanstalkEnvironment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticbeanstalk-environment_optionsetting.go b/cloudformation/resources/aws-elasticbeanstalk-environment_optionsetting.go similarity index 95% rename from cloudformation/aws-elasticbeanstalk-environment_optionsetting.go rename to cloudformation/resources/aws-elasticbeanstalk-environment_optionsetting.go index da543ded72..ccf96d0da2 100644 --- a/cloudformation/aws-elasticbeanstalk-environment_optionsetting.go +++ b/cloudformation/resources/aws-elasticbeanstalk-environment_optionsetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkEnvironment_OptionSetting AWS CloudFormation Resource (AWS::ElasticBeanstalk::Environment.OptionSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html @@ -25,7 +27,7 @@ type AWSElasticBeanstalkEnvironment_OptionSetting struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSElasticBeanstalkEnvironment_OptionSetting) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkEnvironment_OptionSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkEnvironment_OptionSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticbeanstalk-environment_tier.go b/cloudformation/resources/aws-elasticbeanstalk-environment_tier.go similarity index 94% rename from cloudformation/aws-elasticbeanstalk-environment_tier.go rename to cloudformation/resources/aws-elasticbeanstalk-environment_tier.go index 8ccb1b5cd7..46340dc973 100644 --- a/cloudformation/aws-elasticbeanstalk-environment_tier.go +++ b/cloudformation/resources/aws-elasticbeanstalk-environment_tier.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticBeanstalkEnvironment_Tier AWS CloudFormation Resource (AWS::ElasticBeanstalk::Environment.Tier) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html @@ -20,7 +22,7 @@ type AWSElasticBeanstalkEnvironment_Tier struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSElasticBeanstalkEnvironment_Tier) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticBeanstalkEnvironment_Tier) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticBeanstalkEnvironment_Tier) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer.go similarity index 95% rename from cloudformation/aws-elasticloadbalancing-loadbalancer.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer.go index ccdc654cc7..b6882d4730 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticLoadBalancingLoadBalancer AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer) @@ -91,7 +92,7 @@ type AWSElasticLoadBalancingLoadBalancer struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -131,7 +132,7 @@ func (r *AWSElasticLoadBalancingLoadBalancer) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -142,9 +143,9 @@ func (r AWSElasticLoadBalancingLoadBalancer) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go similarity index 95% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go index 0f2e91b779..ddaba61484 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_AccessLoggingPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.AccessLoggingPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html @@ -25,7 +27,7 @@ type AWSElasticLoadBalancingLoadBalancer_AccessLoggingPolicy struct { S3BucketPrefix string `json:"S3BucketPrefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_AccessLoggingPolicy) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_AccessLoggingPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_AccessLoggingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go similarity index 94% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go index ea2762d450..b05234ca88 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_AppCookieStickinessPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.AppCookieStickinessPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html @@ -15,7 +17,7 @@ type AWSElasticLoadBalancingLoadBalancer_AppCookieStickinessPolicy struct { PolicyName string `json:"PolicyName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_AppCookieStickinessPolicy) SetMetad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_AppCookieStickinessPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_AppCookieStickinessPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go similarity index 94% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go index 40c5f2d0d9..132ec698c5 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_ConnectionDrainingPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.ConnectionDrainingPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html @@ -15,7 +17,7 @@ type AWSElasticLoadBalancingLoadBalancer_ConnectionDrainingPolicy struct { Timeout int `json:"Timeout,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_ConnectionDrainingPolicy) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_ConnectionDrainingPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_ConnectionDrainingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_connectionsettings.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_connectionsettings.go similarity index 93% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_connectionsettings.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_connectionsettings.go index 98e69e6979..2be4b86ee8 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_connectionsettings.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_connectionsettings.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_ConnectionSettings AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.ConnectionSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectionsettings.html @@ -10,7 +12,7 @@ type AWSElasticLoadBalancingLoadBalancer_ConnectionSettings struct { IdleTimeout int `json:"IdleTimeout"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_ConnectionSettings) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_ConnectionSettings) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_ConnectionSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_healthcheck.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_healthcheck.go similarity index 95% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_healthcheck.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_healthcheck.go index 5394c91971..1ac6e50d38 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_healthcheck.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_healthcheck.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_HealthCheck AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.HealthCheck) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html @@ -30,7 +32,7 @@ type AWSElasticLoadBalancingLoadBalancer_HealthCheck struct { UnhealthyThreshold string `json:"UnhealthyThreshold,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_HealthCheck) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_HealthCheck) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_HealthCheck) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go similarity index 94% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go index f4c855ca15..f84e36eb1d 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_LBCookieStickinessPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.LBCookieStickinessPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html @@ -15,7 +17,7 @@ type AWSElasticLoadBalancingLoadBalancer_LBCookieStickinessPolicy struct { PolicyName string `json:"PolicyName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_LBCookieStickinessPolicy) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_LBCookieStickinessPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_LBCookieStickinessPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_listeners.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_listeners.go similarity index 95% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_listeners.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_listeners.go index f267d89f77..6e7286ac71 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_listeners.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_listeners.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_Listeners AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.Listeners) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html @@ -35,7 +37,7 @@ type AWSElasticLoadBalancingLoadBalancer_Listeners struct { SSLCertificateId string `json:"SSLCertificateId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_Listeners) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_Listeners) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_Listeners) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancing-loadbalancer_policies.go b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_policies.go similarity index 95% rename from cloudformation/aws-elasticloadbalancing-loadbalancer_policies.go rename to cloudformation/resources/aws-elasticloadbalancing-loadbalancer_policies.go index ff372bbd5c..2953d5be14 100644 --- a/cloudformation/aws-elasticloadbalancing-loadbalancer_policies.go +++ b/cloudformation/resources/aws-elasticloadbalancing-loadbalancer_policies.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingLoadBalancer_Policies AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.Policies) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html @@ -30,7 +32,7 @@ type AWSElasticLoadBalancingLoadBalancer_Policies struct { PolicyType string `json:"PolicyType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSElasticLoadBalancingLoadBalancer_Policies) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingLoadBalancer_Policies) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingLoadBalancer_Policies) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listener.go b/cloudformation/resources/aws-elasticloadbalancingv2-listener.go similarity index 93% rename from cloudformation/aws-elasticloadbalancingv2-listener.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listener.go index e940026ca3..bdf137768e 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listener.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listener.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticLoadBalancingV2Listener AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener) @@ -41,7 +42,7 @@ type AWSElasticLoadBalancingV2Listener struct { SslPolicy string `json:"SslPolicy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSElasticLoadBalancingV2Listener) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2Listener) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2Listener) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSElasticLoadBalancingV2Listener) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticloadbalancingv2-listener_action.go b/cloudformation/resources/aws-elasticloadbalancingv2-listener_action.go similarity index 96% rename from cloudformation/aws-elasticloadbalancingv2-listener_action.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listener_action.go index 2ac77fe1f0..62345288ea 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listener_action.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listener_action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2Listener_Action AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-defaultactions.html @@ -40,7 +42,7 @@ type AWSElasticLoadBalancingV2Listener_Action struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSElasticLoadBalancingV2Listener_Action) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2Listener_Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2Listener_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go similarity index 96% rename from cloudformation/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go index 5d05f4024e..a7b31fb256 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2Listener_AuthenticateCognitoConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.AuthenticateCognitoConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-authenticatecognitoconfig.html @@ -45,7 +47,7 @@ type AWSElasticLoadBalancingV2Listener_AuthenticateCognitoConfig struct { UserPoolDomain string `json:"UserPoolDomain,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSElasticLoadBalancingV2Listener_AuthenticateCognitoConfig) SetMetadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2Listener_AuthenticateCognitoConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2Listener_AuthenticateCognitoConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go similarity index 97% rename from cloudformation/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go index 9c4f40aa77..81f702d176 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2Listener_AuthenticateOidcConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.AuthenticateOidcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-authenticateoidcconfig.html @@ -60,7 +62,7 @@ type AWSElasticLoadBalancingV2Listener_AuthenticateOidcConfig struct { UserInfoEndpoint string `json:"UserInfoEndpoint,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -100,6 +102,6 @@ func (r *AWSElasticLoadBalancingV2Listener_AuthenticateOidcConfig) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2Listener_AuthenticateOidcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2Listener_AuthenticateOidcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listener_certificate.go b/cloudformation/resources/aws-elasticloadbalancingv2-listener_certificate.go similarity index 93% rename from cloudformation/aws-elasticloadbalancingv2-listener_certificate.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listener_certificate.go index a5c1c9f6ec..8eda80c4e9 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listener_certificate.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listener_certificate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2Listener_Certificate AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.Certificate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html @@ -10,7 +12,7 @@ type AWSElasticLoadBalancingV2Listener_Certificate struct { CertificateArn string `json:"CertificateArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSElasticLoadBalancingV2Listener_Certificate) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2Listener_Certificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2Listener_Certificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go index 72f4114455..09bc676fe2 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2Listener_FixedResponseConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.FixedResponseConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-fixedresponseconfig.html @@ -20,7 +22,7 @@ type AWSElasticLoadBalancingV2Listener_FixedResponseConfig struct { StatusCode string `json:"StatusCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSElasticLoadBalancingV2Listener_FixedResponseConfig) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2Listener_FixedResponseConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2Listener_FixedResponseConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listener_redirectconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listener_redirectconfig.go similarity index 95% rename from cloudformation/aws-elasticloadbalancingv2-listener_redirectconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listener_redirectconfig.go index 515bde15b7..eaec45fba7 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listener_redirectconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listener_redirectconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2Listener_RedirectConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.RedirectConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-redirectconfig.html @@ -35,7 +37,7 @@ type AWSElasticLoadBalancingV2Listener_RedirectConfig struct { StatusCode string `json:"StatusCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSElasticLoadBalancingV2Listener_RedirectConfig) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2Listener_RedirectConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2Listener_RedirectConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listenercertificate.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenercertificate.go similarity index 92% rename from cloudformation/aws-elasticloadbalancingv2-listenercertificate.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenercertificate.go index a745ee6aa2..3e6d50edee 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenercertificate.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenercertificate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticLoadBalancingV2ListenerCertificate AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerCertificate) @@ -21,7 +22,7 @@ type AWSElasticLoadBalancingV2ListenerCertificate struct { ListenerArn string `json:"ListenerArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSElasticLoadBalancingV2ListenerCertificate) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerCertificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSElasticLoadBalancingV2ListenerCertificate) MarshalJSON() ([]byte, err return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticloadbalancingv2-listenercertificate_certificate.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenercertificate_certificate.go similarity index 93% rename from cloudformation/aws-elasticloadbalancingv2-listenercertificate_certificate.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenercertificate_certificate.go index ecf6233176..43ed791257 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenercertificate_certificate.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenercertificate_certificate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2ListenerCertificate_Certificate AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerCertificate.Certificate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html @@ -10,7 +12,7 @@ type AWSElasticLoadBalancingV2ListenerCertificate_Certificate struct { CertificateArn string `json:"CertificateArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSElasticLoadBalancingV2ListenerCertificate_Certificate) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerCertificate_Certificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerCertificate_Certificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listenerrule.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule.go similarity index 93% rename from cloudformation/aws-elasticloadbalancingv2-listenerrule.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenerrule.go index 717978b0f6..ab9297df69 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenerrule.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticLoadBalancingV2ListenerRule AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule) @@ -31,7 +32,7 @@ type AWSElasticLoadBalancingV2ListenerRule struct { Priority int `json:"Priority"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSElasticLoadBalancingV2ListenerRule) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSElasticLoadBalancingV2ListenerRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticloadbalancingv2-listenerrule_action.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_action.go similarity index 96% rename from cloudformation/aws-elasticloadbalancingv2-listenerrule_action.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_action.go index f490bd3276..eeac342448 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenerrule_action.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2ListenerRule_Action AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-actions.html @@ -40,7 +42,7 @@ type AWSElasticLoadBalancingV2ListenerRule_Action struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSElasticLoadBalancingV2ListenerRule_Action) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerRule_Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerRule_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go similarity index 96% rename from cloudformation/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go index 02c56ce382..bb888cf959 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2ListenerRule_AuthenticateCognitoConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.AuthenticateCognitoConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-authenticatecognitoconfig.html @@ -45,7 +47,7 @@ type AWSElasticLoadBalancingV2ListenerRule_AuthenticateCognitoConfig struct { UserPoolDomain string `json:"UserPoolDomain,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSElasticLoadBalancingV2ListenerRule_AuthenticateCognitoConfig) SetMet // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerRule_AuthenticateCognitoConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerRule_AuthenticateCognitoConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go similarity index 97% rename from cloudformation/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go index 616c7ca032..49a1d127ca 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2ListenerRule_AuthenticateOidcConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.AuthenticateOidcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-authenticateoidcconfig.html @@ -60,7 +62,7 @@ type AWSElasticLoadBalancingV2ListenerRule_AuthenticateOidcConfig struct { UserInfoEndpoint string `json:"UserInfoEndpoint,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -100,6 +102,6 @@ func (r *AWSElasticLoadBalancingV2ListenerRule_AuthenticateOidcConfig) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerRule_AuthenticateOidcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerRule_AuthenticateOidcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go index 00a9830096..7443b4f4c5 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2ListenerRule_FixedResponseConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.FixedResponseConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-fixedresponseconfig.html @@ -20,7 +22,7 @@ type AWSElasticLoadBalancingV2ListenerRule_FixedResponseConfig struct { StatusCode string `json:"StatusCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSElasticLoadBalancingV2ListenerRule_FixedResponseConfig) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerRule_FixedResponseConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerRule_FixedResponseConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go similarity index 95% rename from cloudformation/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go index 58c645a7fc..d1b769e942 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2ListenerRule_RedirectConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.RedirectConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-redirectconfig.html @@ -35,7 +37,7 @@ type AWSElasticLoadBalancingV2ListenerRule_RedirectConfig struct { StatusCode string `json:"StatusCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSElasticLoadBalancingV2ListenerRule_RedirectConfig) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerRule_RedirectConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerRule_RedirectConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-listenerrule_rulecondition.go b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_rulecondition.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-listenerrule_rulecondition.go rename to cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_rulecondition.go index 4988df3ea2..3bbb283615 100644 --- a/cloudformation/aws-elasticloadbalancingv2-listenerrule_rulecondition.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-listenerrule_rulecondition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2ListenerRule_RuleCondition AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.RuleCondition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-conditions.html @@ -15,7 +17,7 @@ type AWSElasticLoadBalancingV2ListenerRule_RuleCondition struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticLoadBalancingV2ListenerRule_RuleCondition) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2ListenerRule_RuleCondition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2ListenerRule_RuleCondition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-loadbalancer.go b/cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-loadbalancer.go rename to cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer.go index 8ba3b335de..158e24085f 100644 --- a/cloudformation/aws-elasticloadbalancingv2-loadbalancer.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticLoadBalancingV2LoadBalancer AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::LoadBalancer) @@ -56,7 +57,7 @@ type AWSElasticLoadBalancingV2LoadBalancer struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSElasticLoadBalancingV2LoadBalancer) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2LoadBalancer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2LoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSElasticLoadBalancingV2LoadBalancer) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go b/cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go rename to cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go index 6d3af155ee..0f0bdd9648 100644 --- a/cloudformation/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2LoadBalancer_LoadBalancerAttribute AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttribute) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattributes.html @@ -15,7 +17,7 @@ type AWSElasticLoadBalancingV2LoadBalancer_LoadBalancerAttribute struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticLoadBalancingV2LoadBalancer_LoadBalancerAttribute) SetMetadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2LoadBalancer_LoadBalancerAttribute) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2LoadBalancer_LoadBalancerAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go b/cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go rename to cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go index 74518be7c6..7b578526e8 100644 --- a/cloudformation/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2LoadBalancer_SubnetMapping AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::LoadBalancer.SubnetMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-subnetmapping.html @@ -15,7 +17,7 @@ type AWSElasticLoadBalancingV2LoadBalancer_SubnetMapping struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticLoadBalancingV2LoadBalancer_SubnetMapping) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2LoadBalancer_SubnetMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2LoadBalancer_SubnetMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-targetgroup.go b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup.go similarity index 96% rename from cloudformation/aws-elasticloadbalancingv2-targetgroup.go rename to cloudformation/resources/aws-elasticloadbalancingv2-targetgroup.go index d6dbe4b2a2..cf96dc5a4a 100644 --- a/cloudformation/aws-elasticloadbalancingv2-targetgroup.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticLoadBalancingV2TargetGroup AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup) @@ -96,7 +97,7 @@ type AWSElasticLoadBalancingV2TargetGroup struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -136,7 +137,7 @@ func (r *AWSElasticLoadBalancingV2TargetGroup) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2TargetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2TargetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -147,9 +148,9 @@ func (r AWSElasticLoadBalancingV2TargetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticloadbalancingv2-targetgroup_matcher.go b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_matcher.go similarity index 93% rename from cloudformation/aws-elasticloadbalancingv2-targetgroup_matcher.go rename to cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_matcher.go index af784226ff..51fff35e0b 100644 --- a/cloudformation/aws-elasticloadbalancingv2-targetgroup_matcher.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_matcher.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2TargetGroup_Matcher AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup.Matcher) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-matcher.html @@ -10,7 +12,7 @@ type AWSElasticLoadBalancingV2TargetGroup_Matcher struct { HttpCode string `json:"HttpCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSElasticLoadBalancingV2TargetGroup_Matcher) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2TargetGroup_Matcher) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2TargetGroup_Matcher) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-targetgroup_targetdescription.go b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_targetdescription.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-targetgroup_targetdescription.go rename to cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_targetdescription.go index 0107a94100..ac986c981d 100644 --- a/cloudformation/aws-elasticloadbalancingv2-targetgroup_targetdescription.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_targetdescription.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2TargetGroup_TargetDescription AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup.TargetDescription) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html @@ -20,7 +22,7 @@ type AWSElasticLoadBalancingV2TargetGroup_TargetDescription struct { Port int `json:"Port,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSElasticLoadBalancingV2TargetGroup_TargetDescription) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2TargetGroup_TargetDescription) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2TargetGroup_TargetDescription) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go similarity index 94% rename from cloudformation/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go rename to cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go index ea9dad0db6..1048a569f1 100644 --- a/cloudformation/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go +++ b/cloudformation/resources/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticLoadBalancingV2TargetGroup_TargetGroupAttribute AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup.TargetGroupAttribute) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html @@ -15,7 +17,7 @@ type AWSElasticLoadBalancingV2TargetGroup_TargetGroupAttribute struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticLoadBalancingV2TargetGroup_TargetGroupAttribute) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticLoadBalancingV2TargetGroup_TargetGroupAttribute) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticLoadBalancingV2TargetGroup_TargetGroupAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticsearch-domain.go b/cloudformation/resources/aws-elasticsearch-domain.go similarity index 94% rename from cloudformation/aws-elasticsearch-domain.go rename to cloudformation/resources/aws-elasticsearch-domain.go index a3cc9579a9..8021426b8c 100644 --- a/cloudformation/aws-elasticsearch-domain.go +++ b/cloudformation/resources/aws-elasticsearch-domain.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSElasticsearchDomain AWS CloudFormation Resource (AWS::Elasticsearch::Domain) @@ -66,7 +67,7 @@ type AWSElasticsearchDomain struct { VPCOptions *AWSElasticsearchDomain_VPCOptions `json:"VPCOptions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -106,7 +107,7 @@ func (r *AWSElasticsearchDomain) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticsearchDomain) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticsearchDomain) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -117,9 +118,9 @@ func (r AWSElasticsearchDomain) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-elasticsearch-domain_ebsoptions.go b/cloudformation/resources/aws-elasticsearch-domain_ebsoptions.go similarity index 95% rename from cloudformation/aws-elasticsearch-domain_ebsoptions.go rename to cloudformation/resources/aws-elasticsearch-domain_ebsoptions.go index 81d6536d17..7ab1ce4ce9 100644 --- a/cloudformation/aws-elasticsearch-domain_ebsoptions.go +++ b/cloudformation/resources/aws-elasticsearch-domain_ebsoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticsearchDomain_EBSOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.EBSOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-ebsoptions.html @@ -25,7 +27,7 @@ type AWSElasticsearchDomain_EBSOptions struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSElasticsearchDomain_EBSOptions) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticsearchDomain_EBSOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticsearchDomain_EBSOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticsearch-domain_elasticsearchclusterconfig.go b/cloudformation/resources/aws-elasticsearch-domain_elasticsearchclusterconfig.go similarity index 96% rename from cloudformation/aws-elasticsearch-domain_elasticsearchclusterconfig.go rename to cloudformation/resources/aws-elasticsearch-domain_elasticsearchclusterconfig.go index 590c118b3e..83f5f151a3 100644 --- a/cloudformation/aws-elasticsearch-domain_elasticsearchclusterconfig.go +++ b/cloudformation/resources/aws-elasticsearch-domain_elasticsearchclusterconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticsearchDomain_ElasticsearchClusterConfig AWS CloudFormation Resource (AWS::Elasticsearch::Domain.ElasticsearchClusterConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html @@ -35,7 +37,7 @@ type AWSElasticsearchDomain_ElasticsearchClusterConfig struct { ZoneAwarenessEnabled bool `json:"ZoneAwarenessEnabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSElasticsearchDomain_ElasticsearchClusterConfig) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticsearchDomain_ElasticsearchClusterConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticsearchDomain_ElasticsearchClusterConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticsearch-domain_encryptionatrestoptions.go b/cloudformation/resources/aws-elasticsearch-domain_encryptionatrestoptions.go similarity index 94% rename from cloudformation/aws-elasticsearch-domain_encryptionatrestoptions.go rename to cloudformation/resources/aws-elasticsearch-domain_encryptionatrestoptions.go index 058fd97039..d82a0288f0 100644 --- a/cloudformation/aws-elasticsearch-domain_encryptionatrestoptions.go +++ b/cloudformation/resources/aws-elasticsearch-domain_encryptionatrestoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticsearchDomain_EncryptionAtRestOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.EncryptionAtRestOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-encryptionatrestoptions.html @@ -15,7 +17,7 @@ type AWSElasticsearchDomain_EncryptionAtRestOptions struct { KmsKeyId string `json:"KmsKeyId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticsearchDomain_EncryptionAtRestOptions) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticsearchDomain_EncryptionAtRestOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticsearchDomain_EncryptionAtRestOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticsearch-domain_nodetonodeencryptionoptions.go b/cloudformation/resources/aws-elasticsearch-domain_nodetonodeencryptionoptions.go similarity index 93% rename from cloudformation/aws-elasticsearch-domain_nodetonodeencryptionoptions.go rename to cloudformation/resources/aws-elasticsearch-domain_nodetonodeencryptionoptions.go index 14aeb80f16..511ec57bc5 100644 --- a/cloudformation/aws-elasticsearch-domain_nodetonodeencryptionoptions.go +++ b/cloudformation/resources/aws-elasticsearch-domain_nodetonodeencryptionoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticsearchDomain_NodeToNodeEncryptionOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-nodetonodeencryptionoptions.html @@ -10,7 +12,7 @@ type AWSElasticsearchDomain_NodeToNodeEncryptionOptions struct { Enabled bool `json:"Enabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSElasticsearchDomain_NodeToNodeEncryptionOptions) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticsearchDomain_NodeToNodeEncryptionOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticsearchDomain_NodeToNodeEncryptionOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticsearch-domain_snapshotoptions.go b/cloudformation/resources/aws-elasticsearch-domain_snapshotoptions.go similarity index 94% rename from cloudformation/aws-elasticsearch-domain_snapshotoptions.go rename to cloudformation/resources/aws-elasticsearch-domain_snapshotoptions.go index 3791d2ff50..619491b706 100644 --- a/cloudformation/aws-elasticsearch-domain_snapshotoptions.go +++ b/cloudformation/resources/aws-elasticsearch-domain_snapshotoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticsearchDomain_SnapshotOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.SnapshotOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-snapshotoptions.html @@ -10,7 +12,7 @@ type AWSElasticsearchDomain_SnapshotOptions struct { AutomatedSnapshotStartHour int `json:"AutomatedSnapshotStartHour,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSElasticsearchDomain_SnapshotOptions) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticsearchDomain_SnapshotOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticsearchDomain_SnapshotOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-elasticsearch-domain_vpcoptions.go b/cloudformation/resources/aws-elasticsearch-domain_vpcoptions.go similarity index 94% rename from cloudformation/aws-elasticsearch-domain_vpcoptions.go rename to cloudformation/resources/aws-elasticsearch-domain_vpcoptions.go index 5eb160594f..bf7eb20a06 100644 --- a/cloudformation/aws-elasticsearch-domain_vpcoptions.go +++ b/cloudformation/resources/aws-elasticsearch-domain_vpcoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSElasticsearchDomain_VPCOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.VPCOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-vpcoptions.html @@ -15,7 +17,7 @@ type AWSElasticsearchDomain_VPCOptions struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSElasticsearchDomain_VPCOptions) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSElasticsearchDomain_VPCOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSElasticsearchDomain_VPCOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster.go b/cloudformation/resources/aws-emr-cluster.go similarity index 95% rename from cloudformation/aws-emr-cluster.go rename to cloudformation/resources/aws-emr-cluster.go index 4a3bf34a1d..5149803aec 100644 --- a/cloudformation/aws-emr-cluster.go +++ b/cloudformation/resources/aws-emr-cluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEMRCluster AWS CloudFormation Resource (AWS::EMR::Cluster) @@ -106,7 +107,7 @@ type AWSEMRCluster struct { VisibleToAllUsers bool `json:"VisibleToAllUsers,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -146,7 +147,7 @@ func (r *AWSEMRCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -157,9 +158,9 @@ func (r AWSEMRCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-emr-cluster_application.go b/cloudformation/resources/aws-emr-cluster_application.go similarity index 93% rename from cloudformation/aws-emr-cluster_application.go rename to cloudformation/resources/aws-emr-cluster_application.go index 5e24566dcd..6fa76b2a0a 100644 --- a/cloudformation/aws-emr-cluster_application.go +++ b/cloudformation/resources/aws-emr-cluster_application.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_Application AWS CloudFormation Resource (AWS::EMR::Cluster.Application) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-application.html @@ -25,7 +27,7 @@ type AWSEMRCluster_Application struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEMRCluster_Application) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_Application) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_Application) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_autoscalingpolicy.go b/cloudformation/resources/aws-emr-cluster_autoscalingpolicy.go similarity index 94% rename from cloudformation/aws-emr-cluster_autoscalingpolicy.go rename to cloudformation/resources/aws-emr-cluster_autoscalingpolicy.go index 75da5b22fc..d232822f30 100644 --- a/cloudformation/aws-emr-cluster_autoscalingpolicy.go +++ b/cloudformation/resources/aws-emr-cluster_autoscalingpolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_AutoScalingPolicy AWS CloudFormation Resource (AWS::EMR::Cluster.AutoScalingPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.html @@ -15,7 +17,7 @@ type AWSEMRCluster_AutoScalingPolicy struct { Rules []AWSEMRCluster_ScalingRule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_AutoScalingPolicy) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_AutoScalingPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_AutoScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_bootstrapactionconfig.go b/cloudformation/resources/aws-emr-cluster_bootstrapactionconfig.go similarity index 94% rename from cloudformation/aws-emr-cluster_bootstrapactionconfig.go rename to cloudformation/resources/aws-emr-cluster_bootstrapactionconfig.go index 19593de49f..f9eef00bbb 100644 --- a/cloudformation/aws-emr-cluster_bootstrapactionconfig.go +++ b/cloudformation/resources/aws-emr-cluster_bootstrapactionconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_BootstrapActionConfig AWS CloudFormation Resource (AWS::EMR::Cluster.BootstrapActionConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-bootstrapactionconfig.html @@ -15,7 +17,7 @@ type AWSEMRCluster_BootstrapActionConfig struct { ScriptBootstrapAction *AWSEMRCluster_ScriptBootstrapActionConfig `json:"ScriptBootstrapAction,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_BootstrapActionConfig) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_BootstrapActionConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_BootstrapActionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_cloudwatchalarmdefinition.go b/cloudformation/resources/aws-emr-cluster_cloudwatchalarmdefinition.go similarity index 96% rename from cloudformation/aws-emr-cluster_cloudwatchalarmdefinition.go rename to cloudformation/resources/aws-emr-cluster_cloudwatchalarmdefinition.go index 7009f1b2a8..ffda033178 100644 --- a/cloudformation/aws-emr-cluster_cloudwatchalarmdefinition.go +++ b/cloudformation/resources/aws-emr-cluster_cloudwatchalarmdefinition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_CloudWatchAlarmDefinition AWS CloudFormation Resource (AWS::EMR::Cluster.CloudWatchAlarmDefinition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html @@ -50,7 +52,7 @@ type AWSEMRCluster_CloudWatchAlarmDefinition struct { Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -90,6 +92,6 @@ func (r *AWSEMRCluster_CloudWatchAlarmDefinition) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_CloudWatchAlarmDefinition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_CloudWatchAlarmDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_configuration.go b/cloudformation/resources/aws-emr-cluster_configuration.go similarity index 93% rename from cloudformation/aws-emr-cluster_configuration.go rename to cloudformation/resources/aws-emr-cluster_configuration.go index 7286eea760..37a76a5834 100644 --- a/cloudformation/aws-emr-cluster_configuration.go +++ b/cloudformation/resources/aws-emr-cluster_configuration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_Configuration AWS CloudFormation Resource (AWS::EMR::Cluster.Configuration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-configuration.html @@ -20,7 +22,7 @@ type AWSEMRCluster_Configuration struct { Configurations []AWSEMRCluster_Configuration `json:"Configurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRCluster_Configuration) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_Configuration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_ebsblockdeviceconfig.go b/cloudformation/resources/aws-emr-cluster_ebsblockdeviceconfig.go similarity index 94% rename from cloudformation/aws-emr-cluster_ebsblockdeviceconfig.go rename to cloudformation/resources/aws-emr-cluster_ebsblockdeviceconfig.go index 32e6236943..eb61956046 100644 --- a/cloudformation/aws-emr-cluster_ebsblockdeviceconfig.go +++ b/cloudformation/resources/aws-emr-cluster_ebsblockdeviceconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_EbsBlockDeviceConfig AWS CloudFormation Resource (AWS::EMR::Cluster.EbsBlockDeviceConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsblockdeviceconfig.html @@ -15,7 +17,7 @@ type AWSEMRCluster_EbsBlockDeviceConfig struct { VolumesPerInstance int `json:"VolumesPerInstance,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_EbsBlockDeviceConfig) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_EbsBlockDeviceConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_EbsBlockDeviceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_ebsconfiguration.go b/cloudformation/resources/aws-emr-cluster_ebsconfiguration.go similarity index 94% rename from cloudformation/aws-emr-cluster_ebsconfiguration.go rename to cloudformation/resources/aws-emr-cluster_ebsconfiguration.go index 5faeca227d..a97bbfdab6 100644 --- a/cloudformation/aws-emr-cluster_ebsconfiguration.go +++ b/cloudformation/resources/aws-emr-cluster_ebsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_EbsConfiguration AWS CloudFormation Resource (AWS::EMR::Cluster.EbsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsconfiguration.html @@ -15,7 +17,7 @@ type AWSEMRCluster_EbsConfiguration struct { EbsOptimized bool `json:"EbsOptimized,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_EbsConfiguration) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_EbsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_EbsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_hadoopjarstepconfig.go b/cloudformation/resources/aws-emr-cluster_hadoopjarstepconfig.go similarity index 95% rename from cloudformation/aws-emr-cluster_hadoopjarstepconfig.go rename to cloudformation/resources/aws-emr-cluster_hadoopjarstepconfig.go index 7a2f950524..79d0b95b5c 100644 --- a/cloudformation/aws-emr-cluster_hadoopjarstepconfig.go +++ b/cloudformation/resources/aws-emr-cluster_hadoopjarstepconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_HadoopJarStepConfig AWS CloudFormation Resource (AWS::EMR::Cluster.HadoopJarStepConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-hadoopjarstepconfig.html @@ -25,7 +27,7 @@ type AWSEMRCluster_HadoopJarStepConfig struct { StepProperties []AWSEMRCluster_KeyValue `json:"StepProperties,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEMRCluster_HadoopJarStepConfig) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_HadoopJarStepConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_HadoopJarStepConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_instancefleetconfig.go b/cloudformation/resources/aws-emr-cluster_instancefleetconfig.go similarity index 96% rename from cloudformation/aws-emr-cluster_instancefleetconfig.go rename to cloudformation/resources/aws-emr-cluster_instancefleetconfig.go index 3d6c0f67da..1fe1d0fa51 100644 --- a/cloudformation/aws-emr-cluster_instancefleetconfig.go +++ b/cloudformation/resources/aws-emr-cluster_instancefleetconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_InstanceFleetConfig AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceFleetConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html @@ -30,7 +32,7 @@ type AWSEMRCluster_InstanceFleetConfig struct { TargetSpotCapacity int `json:"TargetSpotCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSEMRCluster_InstanceFleetConfig) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_InstanceFleetConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_InstanceFleetConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_instancefleetprovisioningspecifications.go b/cloudformation/resources/aws-emr-cluster_instancefleetprovisioningspecifications.go similarity index 94% rename from cloudformation/aws-emr-cluster_instancefleetprovisioningspecifications.go rename to cloudformation/resources/aws-emr-cluster_instancefleetprovisioningspecifications.go index 3f7618dab7..770e4b7f92 100644 --- a/cloudformation/aws-emr-cluster_instancefleetprovisioningspecifications.go +++ b/cloudformation/resources/aws-emr-cluster_instancefleetprovisioningspecifications.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_InstanceFleetProvisioningSpecifications AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceFleetProvisioningSpecifications) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetprovisioningspecifications.html @@ -10,7 +12,7 @@ type AWSEMRCluster_InstanceFleetProvisioningSpecifications struct { SpotSpecification *AWSEMRCluster_SpotProvisioningSpecification `json:"SpotSpecification,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEMRCluster_InstanceFleetProvisioningSpecifications) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_InstanceFleetProvisioningSpecifications) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_InstanceFleetProvisioningSpecifications) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_instancegroupconfig.go b/cloudformation/resources/aws-emr-cluster_instancegroupconfig.go similarity index 96% rename from cloudformation/aws-emr-cluster_instancegroupconfig.go rename to cloudformation/resources/aws-emr-cluster_instancegroupconfig.go index 92f963df91..f697e8d2cd 100644 --- a/cloudformation/aws-emr-cluster_instancegroupconfig.go +++ b/cloudformation/resources/aws-emr-cluster_instancegroupconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_InstanceGroupConfig AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceGroupConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html @@ -45,7 +47,7 @@ type AWSEMRCluster_InstanceGroupConfig struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSEMRCluster_InstanceGroupConfig) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_InstanceGroupConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_InstanceGroupConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_instancetypeconfig.go b/cloudformation/resources/aws-emr-cluster_instancetypeconfig.go similarity index 96% rename from cloudformation/aws-emr-cluster_instancetypeconfig.go rename to cloudformation/resources/aws-emr-cluster_instancetypeconfig.go index 958d57e75a..603d049377 100644 --- a/cloudformation/aws-emr-cluster_instancetypeconfig.go +++ b/cloudformation/resources/aws-emr-cluster_instancetypeconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_InstanceTypeConfig AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceTypeConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html @@ -35,7 +37,7 @@ type AWSEMRCluster_InstanceTypeConfig struct { WeightedCapacity int `json:"WeightedCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSEMRCluster_InstanceTypeConfig) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_InstanceTypeConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_InstanceTypeConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_jobflowinstancesconfig.go b/cloudformation/resources/aws-emr-cluster_jobflowinstancesconfig.go similarity index 97% rename from cloudformation/aws-emr-cluster_jobflowinstancesconfig.go rename to cloudformation/resources/aws-emr-cluster_jobflowinstancesconfig.go index 2703eb6a2f..a85517a79f 100644 --- a/cloudformation/aws-emr-cluster_jobflowinstancesconfig.go +++ b/cloudformation/resources/aws-emr-cluster_jobflowinstancesconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_JobFlowInstancesConfig AWS CloudFormation Resource (AWS::EMR::Cluster.JobFlowInstancesConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html @@ -80,7 +82,7 @@ type AWSEMRCluster_JobFlowInstancesConfig struct { TerminationProtected bool `json:"TerminationProtected,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -120,6 +122,6 @@ func (r *AWSEMRCluster_JobFlowInstancesConfig) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_JobFlowInstancesConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_JobFlowInstancesConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_kerberosattributes.go b/cloudformation/resources/aws-emr-cluster_kerberosattributes.go similarity index 96% rename from cloudformation/aws-emr-cluster_kerberosattributes.go rename to cloudformation/resources/aws-emr-cluster_kerberosattributes.go index 57627382f8..538d2d5741 100644 --- a/cloudformation/aws-emr-cluster_kerberosattributes.go +++ b/cloudformation/resources/aws-emr-cluster_kerberosattributes.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_KerberosAttributes AWS CloudFormation Resource (AWS::EMR::Cluster.KerberosAttributes) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html @@ -30,7 +32,7 @@ type AWSEMRCluster_KerberosAttributes struct { Realm string `json:"Realm,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSEMRCluster_KerberosAttributes) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_KerberosAttributes) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_KerberosAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_keyvalue.go b/cloudformation/resources/aws-emr-cluster_keyvalue.go similarity index 92% rename from cloudformation/aws-emr-cluster_keyvalue.go rename to cloudformation/resources/aws-emr-cluster_keyvalue.go index 9696733433..98e85c51be 100644 --- a/cloudformation/aws-emr-cluster_keyvalue.go +++ b/cloudformation/resources/aws-emr-cluster_keyvalue.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_KeyValue AWS CloudFormation Resource (AWS::EMR::Cluster.KeyValue) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-keyvalue.html @@ -15,7 +17,7 @@ type AWSEMRCluster_KeyValue struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_KeyValue) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_KeyValue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_KeyValue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_metricdimension.go b/cloudformation/resources/aws-emr-cluster_metricdimension.go similarity index 94% rename from cloudformation/aws-emr-cluster_metricdimension.go rename to cloudformation/resources/aws-emr-cluster_metricdimension.go index 97bf5ee61f..2a233446ee 100644 --- a/cloudformation/aws-emr-cluster_metricdimension.go +++ b/cloudformation/resources/aws-emr-cluster_metricdimension.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_MetricDimension AWS CloudFormation Resource (AWS::EMR::Cluster.MetricDimension) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-metricdimension.html @@ -15,7 +17,7 @@ type AWSEMRCluster_MetricDimension struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_MetricDimension) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_MetricDimension) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_placementtype.go b/cloudformation/resources/aws-emr-cluster_placementtype.go similarity index 91% rename from cloudformation/aws-emr-cluster_placementtype.go rename to cloudformation/resources/aws-emr-cluster_placementtype.go index 66dbbc2897..13d9d9cb74 100644 --- a/cloudformation/aws-emr-cluster_placementtype.go +++ b/cloudformation/resources/aws-emr-cluster_placementtype.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_PlacementType AWS CloudFormation Resource (AWS::EMR::Cluster.PlacementType) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-placementtype.html @@ -10,7 +12,7 @@ type AWSEMRCluster_PlacementType struct { AvailabilityZone string `json:"AvailabilityZone,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEMRCluster_PlacementType) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_PlacementType) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_PlacementType) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_scalingaction.go b/cloudformation/resources/aws-emr-cluster_scalingaction.go similarity index 92% rename from cloudformation/aws-emr-cluster_scalingaction.go rename to cloudformation/resources/aws-emr-cluster_scalingaction.go index 2956715545..1ea768c157 100644 --- a/cloudformation/aws-emr-cluster_scalingaction.go +++ b/cloudformation/resources/aws-emr-cluster_scalingaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_ScalingAction AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingaction.html @@ -15,7 +17,7 @@ type AWSEMRCluster_ScalingAction struct { SimpleScalingPolicyConfiguration *AWSEMRCluster_SimpleScalingPolicyConfiguration `json:"SimpleScalingPolicyConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_ScalingAction) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_ScalingAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_ScalingAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_scalingconstraints.go b/cloudformation/resources/aws-emr-cluster_scalingconstraints.go similarity index 94% rename from cloudformation/aws-emr-cluster_scalingconstraints.go rename to cloudformation/resources/aws-emr-cluster_scalingconstraints.go index fc16bb613b..908864b40a 100644 --- a/cloudformation/aws-emr-cluster_scalingconstraints.go +++ b/cloudformation/resources/aws-emr-cluster_scalingconstraints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_ScalingConstraints AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingConstraints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingconstraints.html @@ -15,7 +17,7 @@ type AWSEMRCluster_ScalingConstraints struct { MinCapacity int `json:"MinCapacity"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_ScalingConstraints) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_ScalingConstraints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_ScalingConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_scalingrule.go b/cloudformation/resources/aws-emr-cluster_scalingrule.go similarity index 93% rename from cloudformation/aws-emr-cluster_scalingrule.go rename to cloudformation/resources/aws-emr-cluster_scalingrule.go index f5d0f8a3c1..3830897f14 100644 --- a/cloudformation/aws-emr-cluster_scalingrule.go +++ b/cloudformation/resources/aws-emr-cluster_scalingrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_ScalingRule AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingrule.html @@ -25,7 +27,7 @@ type AWSEMRCluster_ScalingRule struct { Trigger *AWSEMRCluster_ScalingTrigger `json:"Trigger,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEMRCluster_ScalingRule) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_ScalingRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_ScalingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_scalingtrigger.go b/cloudformation/resources/aws-emr-cluster_scalingtrigger.go similarity index 94% rename from cloudformation/aws-emr-cluster_scalingtrigger.go rename to cloudformation/resources/aws-emr-cluster_scalingtrigger.go index 26af803e3d..8d465c6b6d 100644 --- a/cloudformation/aws-emr-cluster_scalingtrigger.go +++ b/cloudformation/resources/aws-emr-cluster_scalingtrigger.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_ScalingTrigger AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingTrigger) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingtrigger.html @@ -10,7 +12,7 @@ type AWSEMRCluster_ScalingTrigger struct { CloudWatchAlarmDefinition *AWSEMRCluster_CloudWatchAlarmDefinition `json:"CloudWatchAlarmDefinition,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEMRCluster_ScalingTrigger) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_ScalingTrigger) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_ScalingTrigger) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_scriptbootstrapactionconfig.go b/cloudformation/resources/aws-emr-cluster_scriptbootstrapactionconfig.go similarity index 94% rename from cloudformation/aws-emr-cluster_scriptbootstrapactionconfig.go rename to cloudformation/resources/aws-emr-cluster_scriptbootstrapactionconfig.go index 51bc7c3bd6..3e376ca6d0 100644 --- a/cloudformation/aws-emr-cluster_scriptbootstrapactionconfig.go +++ b/cloudformation/resources/aws-emr-cluster_scriptbootstrapactionconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_ScriptBootstrapActionConfig AWS CloudFormation Resource (AWS::EMR::Cluster.ScriptBootstrapActionConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scriptbootstrapactionconfig.html @@ -15,7 +17,7 @@ type AWSEMRCluster_ScriptBootstrapActionConfig struct { Path string `json:"Path,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRCluster_ScriptBootstrapActionConfig) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_ScriptBootstrapActionConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_ScriptBootstrapActionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_simplescalingpolicyconfiguration.go b/cloudformation/resources/aws-emr-cluster_simplescalingpolicyconfiguration.go similarity index 95% rename from cloudformation/aws-emr-cluster_simplescalingpolicyconfiguration.go rename to cloudformation/resources/aws-emr-cluster_simplescalingpolicyconfiguration.go index f42695c782..9f85f990db 100644 --- a/cloudformation/aws-emr-cluster_simplescalingpolicyconfiguration.go +++ b/cloudformation/resources/aws-emr-cluster_simplescalingpolicyconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_SimpleScalingPolicyConfiguration AWS CloudFormation Resource (AWS::EMR::Cluster.SimpleScalingPolicyConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-simplescalingpolicyconfiguration.html @@ -20,7 +22,7 @@ type AWSEMRCluster_SimpleScalingPolicyConfiguration struct { ScalingAdjustment int `json:"ScalingAdjustment"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRCluster_SimpleScalingPolicyConfiguration) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_SimpleScalingPolicyConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_SimpleScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_spotprovisioningspecification.go b/cloudformation/resources/aws-emr-cluster_spotprovisioningspecification.go similarity index 95% rename from cloudformation/aws-emr-cluster_spotprovisioningspecification.go rename to cloudformation/resources/aws-emr-cluster_spotprovisioningspecification.go index 9bd5d3ffe9..d330dc8cc3 100644 --- a/cloudformation/aws-emr-cluster_spotprovisioningspecification.go +++ b/cloudformation/resources/aws-emr-cluster_spotprovisioningspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_SpotProvisioningSpecification AWS CloudFormation Resource (AWS::EMR::Cluster.SpotProvisioningSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-spotprovisioningspecification.html @@ -20,7 +22,7 @@ type AWSEMRCluster_SpotProvisioningSpecification struct { TimeoutDurationMinutes int `json:"TimeoutDurationMinutes"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRCluster_SpotProvisioningSpecification) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_SpotProvisioningSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_SpotProvisioningSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_stepconfig.go b/cloudformation/resources/aws-emr-cluster_stepconfig.go similarity index 93% rename from cloudformation/aws-emr-cluster_stepconfig.go rename to cloudformation/resources/aws-emr-cluster_stepconfig.go index 257e041724..347a5a9596 100644 --- a/cloudformation/aws-emr-cluster_stepconfig.go +++ b/cloudformation/resources/aws-emr-cluster_stepconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_StepConfig AWS CloudFormation Resource (AWS::EMR::Cluster.StepConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-stepconfig.html @@ -20,7 +22,7 @@ type AWSEMRCluster_StepConfig struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRCluster_StepConfig) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_StepConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_StepConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-cluster_volumespecification.go b/cloudformation/resources/aws-emr-cluster_volumespecification.go similarity index 95% rename from cloudformation/aws-emr-cluster_volumespecification.go rename to cloudformation/resources/aws-emr-cluster_volumespecification.go index db3b932f0f..bf68f7aebc 100644 --- a/cloudformation/aws-emr-cluster_volumespecification.go +++ b/cloudformation/resources/aws-emr-cluster_volumespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRCluster_VolumeSpecification AWS CloudFormation Resource (AWS::EMR::Cluster.VolumeSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-volumespecification.html @@ -20,7 +22,7 @@ type AWSEMRCluster_VolumeSpecification struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRCluster_VolumeSpecification) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRCluster_VolumeSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRCluster_VolumeSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancefleetconfig.go b/cloudformation/resources/aws-emr-instancefleetconfig.go similarity index 93% rename from cloudformation/aws-emr-instancefleetconfig.go rename to cloudformation/resources/aws-emr-instancefleetconfig.go index b192ecb824..f4147960c2 100644 --- a/cloudformation/aws-emr-instancefleetconfig.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEMRInstanceFleetConfig AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig) @@ -46,7 +47,7 @@ type AWSEMRInstanceFleetConfig struct { TargetSpotCapacity int `json:"TargetSpotCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSEMRInstanceFleetConfig) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSEMRInstanceFleetConfig) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-emr-instancefleetconfig_configuration.go b/cloudformation/resources/aws-emr-instancefleetconfig_configuration.go similarity index 95% rename from cloudformation/aws-emr-instancefleetconfig_configuration.go rename to cloudformation/resources/aws-emr-instancefleetconfig_configuration.go index d792d6cebd..3767ae58db 100644 --- a/cloudformation/aws-emr-instancefleetconfig_configuration.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig_configuration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceFleetConfig_Configuration AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.Configuration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-configuration.html @@ -20,7 +22,7 @@ type AWSEMRInstanceFleetConfig_Configuration struct { Configurations []AWSEMRInstanceFleetConfig_Configuration `json:"Configurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRInstanceFleetConfig_Configuration) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig_Configuration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig_Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go b/cloudformation/resources/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go similarity index 94% rename from cloudformation/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go rename to cloudformation/resources/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go index 8126d00273..0ba7c6f19a 100644 --- a/cloudformation/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceFleetConfig_EbsBlockDeviceConfig AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.EbsBlockDeviceConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig.html @@ -15,7 +17,7 @@ type AWSEMRInstanceFleetConfig_EbsBlockDeviceConfig struct { VolumesPerInstance int `json:"VolumesPerInstance,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceFleetConfig_EbsBlockDeviceConfig) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig_EbsBlockDeviceConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig_EbsBlockDeviceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancefleetconfig_ebsconfiguration.go b/cloudformation/resources/aws-emr-instancefleetconfig_ebsconfiguration.go similarity index 94% rename from cloudformation/aws-emr-instancefleetconfig_ebsconfiguration.go rename to cloudformation/resources/aws-emr-instancefleetconfig_ebsconfiguration.go index c1ce7bf219..5c384d460c 100644 --- a/cloudformation/aws-emr-instancefleetconfig_ebsconfiguration.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig_ebsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceFleetConfig_EbsConfiguration AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.EbsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsconfiguration.html @@ -15,7 +17,7 @@ type AWSEMRInstanceFleetConfig_EbsConfiguration struct { EbsOptimized bool `json:"EbsOptimized,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceFleetConfig_EbsConfiguration) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig_EbsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig_EbsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go b/cloudformation/resources/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go similarity index 93% rename from cloudformation/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go rename to cloudformation/resources/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go index efe7b56c7e..1119a78d64 100644 --- a/cloudformation/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceFleetConfig_InstanceFleetProvisioningSpecifications AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.InstanceFleetProvisioningSpecifications) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancefleetprovisioningspecifications.html @@ -10,7 +12,7 @@ type AWSEMRInstanceFleetConfig_InstanceFleetProvisioningSpecifications struct { SpotSpecification *AWSEMRInstanceFleetConfig_SpotProvisioningSpecification `json:"SpotSpecification,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEMRInstanceFleetConfig_InstanceFleetProvisioningSpecifications) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig_InstanceFleetProvisioningSpecifications) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig_InstanceFleetProvisioningSpecifications) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancefleetconfig_instancetypeconfig.go b/cloudformation/resources/aws-emr-instancefleetconfig_instancetypeconfig.go similarity index 96% rename from cloudformation/aws-emr-instancefleetconfig_instancetypeconfig.go rename to cloudformation/resources/aws-emr-instancefleetconfig_instancetypeconfig.go index faa934a34a..16110dc1dd 100644 --- a/cloudformation/aws-emr-instancefleetconfig_instancetypeconfig.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig_instancetypeconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceFleetConfig_InstanceTypeConfig AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.InstanceTypeConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html @@ -35,7 +37,7 @@ type AWSEMRInstanceFleetConfig_InstanceTypeConfig struct { WeightedCapacity int `json:"WeightedCapacity,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSEMRInstanceFleetConfig_InstanceTypeConfig) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig_InstanceTypeConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig_InstanceTypeConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancefleetconfig_spotprovisioningspecification.go b/cloudformation/resources/aws-emr-instancefleetconfig_spotprovisioningspecification.go similarity index 95% rename from cloudformation/aws-emr-instancefleetconfig_spotprovisioningspecification.go rename to cloudformation/resources/aws-emr-instancefleetconfig_spotprovisioningspecification.go index d527e81e35..514876da26 100644 --- a/cloudformation/aws-emr-instancefleetconfig_spotprovisioningspecification.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig_spotprovisioningspecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceFleetConfig_SpotProvisioningSpecification AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.SpotProvisioningSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotprovisioningspecification.html @@ -20,7 +22,7 @@ type AWSEMRInstanceFleetConfig_SpotProvisioningSpecification struct { TimeoutDurationMinutes int `json:"TimeoutDurationMinutes"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRInstanceFleetConfig_SpotProvisioningSpecification) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig_SpotProvisioningSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig_SpotProvisioningSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancefleetconfig_volumespecification.go b/cloudformation/resources/aws-emr-instancefleetconfig_volumespecification.go similarity index 95% rename from cloudformation/aws-emr-instancefleetconfig_volumespecification.go rename to cloudformation/resources/aws-emr-instancefleetconfig_volumespecification.go index ffef7190bd..8ec59ae6fb 100644 --- a/cloudformation/aws-emr-instancefleetconfig_volumespecification.go +++ b/cloudformation/resources/aws-emr-instancefleetconfig_volumespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceFleetConfig_VolumeSpecification AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.VolumeSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-volumespecification.html @@ -20,7 +22,7 @@ type AWSEMRInstanceFleetConfig_VolumeSpecification struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRInstanceFleetConfig_VolumeSpecification) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceFleetConfig_VolumeSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceFleetConfig_VolumeSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig.go b/cloudformation/resources/aws-emr-instancegroupconfig.go similarity index 93% rename from cloudformation/aws-emr-instancegroupconfig.go rename to cloudformation/resources/aws-emr-instancegroupconfig.go index 1f60f628a2..3e28ec68e7 100644 --- a/cloudformation/aws-emr-instancegroupconfig.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEMRInstanceGroupConfig AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig) @@ -61,7 +62,7 @@ type AWSEMRInstanceGroupConfig struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSEMRInstanceGroupConfig) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSEMRInstanceGroupConfig) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-emr-instancegroupconfig_autoscalingpolicy.go b/cloudformation/resources/aws-emr-instancegroupconfig_autoscalingpolicy.go similarity index 94% rename from cloudformation/aws-emr-instancegroupconfig_autoscalingpolicy.go rename to cloudformation/resources/aws-emr-instancegroupconfig_autoscalingpolicy.go index 5f9b5bcead..9df52b40d0 100644 --- a/cloudformation/aws-emr-instancegroupconfig_autoscalingpolicy.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_autoscalingpolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_AutoScalingPolicy AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.AutoScalingPolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-autoscalingpolicy.html @@ -15,7 +17,7 @@ type AWSEMRInstanceGroupConfig_AutoScalingPolicy struct { Rules []AWSEMRInstanceGroupConfig_ScalingRule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceGroupConfig_AutoScalingPolicy) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_AutoScalingPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_AutoScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go b/cloudformation/resources/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go similarity index 96% rename from cloudformation/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go rename to cloudformation/resources/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go index daa09a6a47..879f3a4971 100644 --- a/cloudformation/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_CloudWatchAlarmDefinition AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.CloudWatchAlarmDefinition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html @@ -50,7 +52,7 @@ type AWSEMRInstanceGroupConfig_CloudWatchAlarmDefinition struct { Unit string `json:"Unit,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -90,6 +92,6 @@ func (r *AWSEMRInstanceGroupConfig_CloudWatchAlarmDefinition) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_CloudWatchAlarmDefinition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_CloudWatchAlarmDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_configuration.go b/cloudformation/resources/aws-emr-instancegroupconfig_configuration.go similarity index 95% rename from cloudformation/aws-emr-instancegroupconfig_configuration.go rename to cloudformation/resources/aws-emr-instancegroupconfig_configuration.go index 68fd7394bf..4491b56285 100644 --- a/cloudformation/aws-emr-instancegroupconfig_configuration.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_configuration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_Configuration AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.Configuration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-configuration.html @@ -20,7 +22,7 @@ type AWSEMRInstanceGroupConfig_Configuration struct { Configurations []AWSEMRInstanceGroupConfig_Configuration `json:"Configurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRInstanceGroupConfig_Configuration) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_Configuration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go b/cloudformation/resources/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go similarity index 94% rename from cloudformation/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go rename to cloudformation/resources/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go index 48835933f5..5d82d739b6 100644 --- a/cloudformation/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_EbsBlockDeviceConfig AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.EbsBlockDeviceConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig.html @@ -15,7 +17,7 @@ type AWSEMRInstanceGroupConfig_EbsBlockDeviceConfig struct { VolumesPerInstance int `json:"VolumesPerInstance,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceGroupConfig_EbsBlockDeviceConfig) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_EbsBlockDeviceConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_EbsBlockDeviceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_ebsconfiguration.go b/cloudformation/resources/aws-emr-instancegroupconfig_ebsconfiguration.go similarity index 94% rename from cloudformation/aws-emr-instancegroupconfig_ebsconfiguration.go rename to cloudformation/resources/aws-emr-instancegroupconfig_ebsconfiguration.go index b684903301..11ba62ff48 100644 --- a/cloudformation/aws-emr-instancegroupconfig_ebsconfiguration.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_ebsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_EbsConfiguration AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.EbsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html @@ -15,7 +17,7 @@ type AWSEMRInstanceGroupConfig_EbsConfiguration struct { EbsOptimized bool `json:"EbsOptimized,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceGroupConfig_EbsConfiguration) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_EbsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_EbsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_metricdimension.go b/cloudformation/resources/aws-emr-instancegroupconfig_metricdimension.go similarity index 94% rename from cloudformation/aws-emr-instancegroupconfig_metricdimension.go rename to cloudformation/resources/aws-emr-instancegroupconfig_metricdimension.go index 15a6421c60..ba7770d375 100644 --- a/cloudformation/aws-emr-instancegroupconfig_metricdimension.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_metricdimension.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_MetricDimension AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.MetricDimension) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-metricdimension.html @@ -15,7 +17,7 @@ type AWSEMRInstanceGroupConfig_MetricDimension struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceGroupConfig_MetricDimension) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_MetricDimension) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_scalingaction.go b/cloudformation/resources/aws-emr-instancegroupconfig_scalingaction.go similarity index 94% rename from cloudformation/aws-emr-instancegroupconfig_scalingaction.go rename to cloudformation/resources/aws-emr-instancegroupconfig_scalingaction.go index 431cd1135c..283c16b9a0 100644 --- a/cloudformation/aws-emr-instancegroupconfig_scalingaction.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_scalingaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_ScalingAction AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingaction.html @@ -15,7 +17,7 @@ type AWSEMRInstanceGroupConfig_ScalingAction struct { SimpleScalingPolicyConfiguration *AWSEMRInstanceGroupConfig_SimpleScalingPolicyConfiguration `json:"SimpleScalingPolicyConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceGroupConfig_ScalingAction) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_ScalingAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_ScalingAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_scalingconstraints.go b/cloudformation/resources/aws-emr-instancegroupconfig_scalingconstraints.go similarity index 94% rename from cloudformation/aws-emr-instancegroupconfig_scalingconstraints.go rename to cloudformation/resources/aws-emr-instancegroupconfig_scalingconstraints.go index ee6929d209..5ba9e1173b 100644 --- a/cloudformation/aws-emr-instancegroupconfig_scalingconstraints.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_scalingconstraints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_ScalingConstraints AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingConstraints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingconstraints.html @@ -15,7 +17,7 @@ type AWSEMRInstanceGroupConfig_ScalingConstraints struct { MinCapacity int `json:"MinCapacity"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRInstanceGroupConfig_ScalingConstraints) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_ScalingConstraints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_ScalingConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_scalingrule.go b/cloudformation/resources/aws-emr-instancegroupconfig_scalingrule.go similarity index 95% rename from cloudformation/aws-emr-instancegroupconfig_scalingrule.go rename to cloudformation/resources/aws-emr-instancegroupconfig_scalingrule.go index b06934faf3..b270701520 100644 --- a/cloudformation/aws-emr-instancegroupconfig_scalingrule.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_scalingrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_ScalingRule AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingrule.html @@ -25,7 +27,7 @@ type AWSEMRInstanceGroupConfig_ScalingRule struct { Trigger *AWSEMRInstanceGroupConfig_ScalingTrigger `json:"Trigger,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEMRInstanceGroupConfig_ScalingRule) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_ScalingRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_ScalingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_scalingtrigger.go b/cloudformation/resources/aws-emr-instancegroupconfig_scalingtrigger.go similarity index 94% rename from cloudformation/aws-emr-instancegroupconfig_scalingtrigger.go rename to cloudformation/resources/aws-emr-instancegroupconfig_scalingtrigger.go index ce97caac11..bd06f6b0a6 100644 --- a/cloudformation/aws-emr-instancegroupconfig_scalingtrigger.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_scalingtrigger.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_ScalingTrigger AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingTrigger) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingtrigger.html @@ -10,7 +12,7 @@ type AWSEMRInstanceGroupConfig_ScalingTrigger struct { CloudWatchAlarmDefinition *AWSEMRInstanceGroupConfig_CloudWatchAlarmDefinition `json:"CloudWatchAlarmDefinition,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEMRInstanceGroupConfig_ScalingTrigger) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_ScalingTrigger) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_ScalingTrigger) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go b/cloudformation/resources/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go similarity index 95% rename from cloudformation/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go rename to cloudformation/resources/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go index 45aed2341a..62741e3d47 100644 --- a/cloudformation/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_SimpleScalingPolicyConfiguration AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.SimpleScalingPolicyConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration.html @@ -20,7 +22,7 @@ type AWSEMRInstanceGroupConfig_SimpleScalingPolicyConfiguration struct { ScalingAdjustment int `json:"ScalingAdjustment"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRInstanceGroupConfig_SimpleScalingPolicyConfiguration) SetMetadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_SimpleScalingPolicyConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_SimpleScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-instancegroupconfig_volumespecification.go b/cloudformation/resources/aws-emr-instancegroupconfig_volumespecification.go similarity index 95% rename from cloudformation/aws-emr-instancegroupconfig_volumespecification.go rename to cloudformation/resources/aws-emr-instancegroupconfig_volumespecification.go index b7ada352b4..7be246ff1d 100644 --- a/cloudformation/aws-emr-instancegroupconfig_volumespecification.go +++ b/cloudformation/resources/aws-emr-instancegroupconfig_volumespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRInstanceGroupConfig_VolumeSpecification AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.VolumeSpecification) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html @@ -20,7 +22,7 @@ type AWSEMRInstanceGroupConfig_VolumeSpecification struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEMRInstanceGroupConfig_VolumeSpecification) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRInstanceGroupConfig_VolumeSpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRInstanceGroupConfig_VolumeSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-securityconfiguration.go b/cloudformation/resources/aws-emr-securityconfiguration.go similarity index 90% rename from cloudformation/aws-emr-securityconfiguration.go rename to cloudformation/resources/aws-emr-securityconfiguration.go index 1f601d6d4f..d840718d0a 100644 --- a/cloudformation/aws-emr-securityconfiguration.go +++ b/cloudformation/resources/aws-emr-securityconfiguration.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEMRSecurityConfiguration AWS CloudFormation Resource (AWS::EMR::SecurityConfiguration) @@ -21,7 +22,7 @@ type AWSEMRSecurityConfiguration struct { SecurityConfiguration interface{} `json:"SecurityConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSEMRSecurityConfiguration) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRSecurityConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRSecurityConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSEMRSecurityConfiguration) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-emr-step.go b/cloudformation/resources/aws-emr-step.go similarity index 91% rename from cloudformation/aws-emr-step.go rename to cloudformation/resources/aws-emr-step.go index ed17284c41..1a49586d82 100644 --- a/cloudformation/aws-emr-step.go +++ b/cloudformation/resources/aws-emr-step.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEMRStep AWS CloudFormation Resource (AWS::EMR::Step) @@ -31,7 +32,7 @@ type AWSEMRStep struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEMRStep) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRStep) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRStep) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEMRStep) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-emr-step_hadoopjarstepconfig.go b/cloudformation/resources/aws-emr-step_hadoopjarstepconfig.go similarity index 95% rename from cloudformation/aws-emr-step_hadoopjarstepconfig.go rename to cloudformation/resources/aws-emr-step_hadoopjarstepconfig.go index c9368a4730..8fe8ccad0a 100644 --- a/cloudformation/aws-emr-step_hadoopjarstepconfig.go +++ b/cloudformation/resources/aws-emr-step_hadoopjarstepconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRStep_HadoopJarStepConfig AWS CloudFormation Resource (AWS::EMR::Step.HadoopJarStepConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-hadoopjarstepconfig.html @@ -25,7 +27,7 @@ type AWSEMRStep_HadoopJarStepConfig struct { StepProperties []AWSEMRStep_KeyValue `json:"StepProperties,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSEMRStep_HadoopJarStepConfig) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRStep_HadoopJarStepConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRStep_HadoopJarStepConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-emr-step_keyvalue.go b/cloudformation/resources/aws-emr-step_keyvalue.go similarity index 92% rename from cloudformation/aws-emr-step_keyvalue.go rename to cloudformation/resources/aws-emr-step_keyvalue.go index d5bc67dc84..ea4a2df028 100644 --- a/cloudformation/aws-emr-step_keyvalue.go +++ b/cloudformation/resources/aws-emr-step_keyvalue.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEMRStep_KeyValue AWS CloudFormation Resource (AWS::EMR::Step.KeyValue) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-keyvalue.html @@ -15,7 +17,7 @@ type AWSEMRStep_KeyValue struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEMRStep_KeyValue) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEMRStep_KeyValue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEMRStep_KeyValue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-eventbuspolicy.go b/cloudformation/resources/aws-events-eventbuspolicy.go similarity index 91% rename from cloudformation/aws-events-eventbuspolicy.go rename to cloudformation/resources/aws-events-eventbuspolicy.go index cbeac45700..f6c1c69ffe 100644 --- a/cloudformation/aws-events-eventbuspolicy.go +++ b/cloudformation/resources/aws-events-eventbuspolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEventsEventBusPolicy AWS CloudFormation Resource (AWS::Events::EventBusPolicy) @@ -31,7 +32,7 @@ type AWSEventsEventBusPolicy struct { StatementId string `json:"StatementId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSEventsEventBusPolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsEventBusPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsEventBusPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSEventsEventBusPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-events-eventbuspolicy_condition.go b/cloudformation/resources/aws-events-eventbuspolicy_condition.go similarity index 94% rename from cloudformation/aws-events-eventbuspolicy_condition.go rename to cloudformation/resources/aws-events-eventbuspolicy_condition.go index 56530f50a2..4d0e90f5d9 100644 --- a/cloudformation/aws-events-eventbuspolicy_condition.go +++ b/cloudformation/resources/aws-events-eventbuspolicy_condition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsEventBusPolicy_Condition AWS CloudFormation Resource (AWS::Events::EventBusPolicy.Condition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbuspolicy-condition.html @@ -20,7 +22,7 @@ type AWSEventsEventBusPolicy_Condition struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSEventsEventBusPolicy_Condition) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsEventBusPolicy_Condition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsEventBusPolicy_Condition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-rule.go b/cloudformation/resources/aws-events-rule.go similarity index 92% rename from cloudformation/aws-events-rule.go rename to cloudformation/resources/aws-events-rule.go index a2d1d50ef5..53fd085b3c 100644 --- a/cloudformation/aws-events-rule.go +++ b/cloudformation/resources/aws-events-rule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSEventsRule AWS CloudFormation Resource (AWS::Events::Rule) @@ -46,7 +47,7 @@ type AWSEventsRule struct { Targets []AWSEventsRule_Target `json:"Targets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSEventsRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSEventsRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-events-rule_ecsparameters.go b/cloudformation/resources/aws-events-rule_ecsparameters.go similarity index 92% rename from cloudformation/aws-events-rule_ecsparameters.go rename to cloudformation/resources/aws-events-rule_ecsparameters.go index ec5197bb66..b70c1d3721 100644 --- a/cloudformation/aws-events-rule_ecsparameters.go +++ b/cloudformation/resources/aws-events-rule_ecsparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsRule_EcsParameters AWS CloudFormation Resource (AWS::Events::Rule.EcsParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-ecsparameters.html @@ -15,7 +17,7 @@ type AWSEventsRule_EcsParameters struct { TaskDefinitionArn string `json:"TaskDefinitionArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEventsRule_EcsParameters) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule_EcsParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule_EcsParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-rule_inputtransformer.go b/cloudformation/resources/aws-events-rule_inputtransformer.go similarity index 94% rename from cloudformation/aws-events-rule_inputtransformer.go rename to cloudformation/resources/aws-events-rule_inputtransformer.go index 5e15aa1b3f..8791d3487a 100644 --- a/cloudformation/aws-events-rule_inputtransformer.go +++ b/cloudformation/resources/aws-events-rule_inputtransformer.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsRule_InputTransformer AWS CloudFormation Resource (AWS::Events::Rule.InputTransformer) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html @@ -15,7 +17,7 @@ type AWSEventsRule_InputTransformer struct { InputTemplate string `json:"InputTemplate,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEventsRule_InputTransformer) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule_InputTransformer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule_InputTransformer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-rule_kinesisparameters.go b/cloudformation/resources/aws-events-rule_kinesisparameters.go similarity index 94% rename from cloudformation/aws-events-rule_kinesisparameters.go rename to cloudformation/resources/aws-events-rule_kinesisparameters.go index 8505543a7c..5c25feaa7c 100644 --- a/cloudformation/aws-events-rule_kinesisparameters.go +++ b/cloudformation/resources/aws-events-rule_kinesisparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsRule_KinesisParameters AWS CloudFormation Resource (AWS::Events::Rule.KinesisParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-kinesisparameters.html @@ -10,7 +12,7 @@ type AWSEventsRule_KinesisParameters struct { PartitionKeyPath string `json:"PartitionKeyPath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEventsRule_KinesisParameters) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule_KinesisParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule_KinesisParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-rule_runcommandparameters.go b/cloudformation/resources/aws-events-rule_runcommandparameters.go similarity index 94% rename from cloudformation/aws-events-rule_runcommandparameters.go rename to cloudformation/resources/aws-events-rule_runcommandparameters.go index c5a467d9e0..31820681ff 100644 --- a/cloudformation/aws-events-rule_runcommandparameters.go +++ b/cloudformation/resources/aws-events-rule_runcommandparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsRule_RunCommandParameters AWS CloudFormation Resource (AWS::Events::Rule.RunCommandParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandparameters.html @@ -10,7 +12,7 @@ type AWSEventsRule_RunCommandParameters struct { RunCommandTargets []AWSEventsRule_RunCommandTarget `json:"RunCommandTargets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEventsRule_RunCommandParameters) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule_RunCommandParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule_RunCommandParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-rule_runcommandtarget.go b/cloudformation/resources/aws-events-rule_runcommandtarget.go similarity index 94% rename from cloudformation/aws-events-rule_runcommandtarget.go rename to cloudformation/resources/aws-events-rule_runcommandtarget.go index 2e74ceab0b..b8e606a22c 100644 --- a/cloudformation/aws-events-rule_runcommandtarget.go +++ b/cloudformation/resources/aws-events-rule_runcommandtarget.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsRule_RunCommandTarget AWS CloudFormation Resource (AWS::Events::Rule.RunCommandTarget) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html @@ -15,7 +17,7 @@ type AWSEventsRule_RunCommandTarget struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSEventsRule_RunCommandTarget) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule_RunCommandTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule_RunCommandTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-rule_sqsparameters.go b/cloudformation/resources/aws-events-rule_sqsparameters.go similarity index 91% rename from cloudformation/aws-events-rule_sqsparameters.go rename to cloudformation/resources/aws-events-rule_sqsparameters.go index c7423130e0..4f3bff955a 100644 --- a/cloudformation/aws-events-rule_sqsparameters.go +++ b/cloudformation/resources/aws-events-rule_sqsparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsRule_SqsParameters AWS CloudFormation Resource (AWS::Events::Rule.SqsParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-sqsparameters.html @@ -10,7 +12,7 @@ type AWSEventsRule_SqsParameters struct { MessageGroupId string `json:"MessageGroupId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSEventsRule_SqsParameters) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule_SqsParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule_SqsParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-events-rule_target.go b/cloudformation/resources/aws-events-rule_target.go similarity index 95% rename from cloudformation/aws-events-rule_target.go rename to cloudformation/resources/aws-events-rule_target.go index 8cab1826fd..a683346533 100644 --- a/cloudformation/aws-events-rule_target.go +++ b/cloudformation/resources/aws-events-rule_target.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSEventsRule_Target AWS CloudFormation Resource (AWS::Events::Rule.Target) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html @@ -55,7 +57,7 @@ type AWSEventsRule_Target struct { SqsParameters *AWSEventsRule_SqsParameters `json:"SqsParameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSEventsRule_Target) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSEventsRule_Target) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSEventsRule_Target) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-fsx-filesystem.go b/cloudformation/resources/aws-fsx-filesystem.go similarity index 93% rename from cloudformation/aws-fsx-filesystem.go rename to cloudformation/resources/aws-fsx-filesystem.go index 8fdc2d2aeb..499333b311 100644 --- a/cloudformation/aws-fsx-filesystem.go +++ b/cloudformation/resources/aws-fsx-filesystem.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSFSxFileSystem AWS CloudFormation Resource (AWS::FSx::FileSystem) @@ -56,7 +57,7 @@ type AWSFSxFileSystem struct { WindowsConfiguration *AWSFSxFileSystem_WindowsConfiguration `json:"WindowsConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -96,7 +97,7 @@ func (r *AWSFSxFileSystem) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSFSxFileSystem) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSFSxFileSystem) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -107,9 +108,9 @@ func (r AWSFSxFileSystem) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-fsx-filesystem_lustreconfiguration.go b/cloudformation/resources/aws-fsx-filesystem_lustreconfiguration.go similarity index 95% rename from cloudformation/aws-fsx-filesystem_lustreconfiguration.go rename to cloudformation/resources/aws-fsx-filesystem_lustreconfiguration.go index 9b904af355..af02473a88 100644 --- a/cloudformation/aws-fsx-filesystem_lustreconfiguration.go +++ b/cloudformation/resources/aws-fsx-filesystem_lustreconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSFSxFileSystem_LustreConfiguration AWS CloudFormation Resource (AWS::FSx::FileSystem.LustreConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-lustreconfiguration.html @@ -25,7 +27,7 @@ type AWSFSxFileSystem_LustreConfiguration struct { WeeklyMaintenanceStartTime string `json:"WeeklyMaintenanceStartTime,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSFSxFileSystem_LustreConfiguration) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSFSxFileSystem_LustreConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSFSxFileSystem_LustreConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-fsx-filesystem_tagentry.go b/cloudformation/resources/aws-fsx-filesystem_tagentry.go similarity index 92% rename from cloudformation/aws-fsx-filesystem_tagentry.go rename to cloudformation/resources/aws-fsx-filesystem_tagentry.go index 74bfcfd91e..85dbefa427 100644 --- a/cloudformation/aws-fsx-filesystem_tagentry.go +++ b/cloudformation/resources/aws-fsx-filesystem_tagentry.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSFSxFileSystem_TagEntry AWS CloudFormation Resource (AWS::FSx::FileSystem.TagEntry) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-tagentry.html @@ -15,7 +17,7 @@ type AWSFSxFileSystem_TagEntry struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSFSxFileSystem_TagEntry) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSFSxFileSystem_TagEntry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSFSxFileSystem_TagEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-fsx-filesystem_windowsconfiguration.go b/cloudformation/resources/aws-fsx-filesystem_windowsconfiguration.go similarity index 96% rename from cloudformation/aws-fsx-filesystem_windowsconfiguration.go rename to cloudformation/resources/aws-fsx-filesystem_windowsconfiguration.go index d5b2fa42ee..985c4f100b 100644 --- a/cloudformation/aws-fsx-filesystem_windowsconfiguration.go +++ b/cloudformation/resources/aws-fsx-filesystem_windowsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSFSxFileSystem_WindowsConfiguration AWS CloudFormation Resource (AWS::FSx::FileSystem.WindowsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-windowsconfiguration.html @@ -35,7 +37,7 @@ type AWSFSxFileSystem_WindowsConfiguration struct { WeeklyMaintenanceStartTime string `json:"WeeklyMaintenanceStartTime,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSFSxFileSystem_WindowsConfiguration) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSFSxFileSystem_WindowsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSFSxFileSystem_WindowsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-gamelift-alias.go b/cloudformation/resources/aws-gamelift-alias.go similarity index 91% rename from cloudformation/aws-gamelift-alias.go rename to cloudformation/resources/aws-gamelift-alias.go index 3dbbc54c6c..2b5ae0f710 100644 --- a/cloudformation/aws-gamelift-alias.go +++ b/cloudformation/resources/aws-gamelift-alias.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGameLiftAlias AWS CloudFormation Resource (AWS::GameLift::Alias) @@ -26,7 +27,7 @@ type AWSGameLiftAlias struct { RoutingStrategy *AWSGameLiftAlias_RoutingStrategy `json:"RoutingStrategy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSGameLiftAlias) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGameLiftAlias) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGameLiftAlias) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSGameLiftAlias) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-gamelift-alias_routingstrategy.go b/cloudformation/resources/aws-gamelift-alias_routingstrategy.go similarity index 94% rename from cloudformation/aws-gamelift-alias_routingstrategy.go rename to cloudformation/resources/aws-gamelift-alias_routingstrategy.go index 9608261838..55ca0ab4e3 100644 --- a/cloudformation/aws-gamelift-alias_routingstrategy.go +++ b/cloudformation/resources/aws-gamelift-alias_routingstrategy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGameLiftAlias_RoutingStrategy AWS CloudFormation Resource (AWS::GameLift::Alias.RoutingStrategy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-alias-routingstrategy.html @@ -20,7 +22,7 @@ type AWSGameLiftAlias_RoutingStrategy struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGameLiftAlias_RoutingStrategy) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGameLiftAlias_RoutingStrategy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGameLiftAlias_RoutingStrategy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-gamelift-build.go b/cloudformation/resources/aws-gamelift-build.go similarity index 90% rename from cloudformation/aws-gamelift-build.go rename to cloudformation/resources/aws-gamelift-build.go index f602ebddc9..a34a30b32a 100644 --- a/cloudformation/aws-gamelift-build.go +++ b/cloudformation/resources/aws-gamelift-build.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGameLiftBuild AWS CloudFormation Resource (AWS::GameLift::Build) @@ -26,7 +27,7 @@ type AWSGameLiftBuild struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSGameLiftBuild) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGameLiftBuild) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGameLiftBuild) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSGameLiftBuild) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-gamelift-build_s3location.go b/cloudformation/resources/aws-gamelift-build_s3location.go similarity index 92% rename from cloudformation/aws-gamelift-build_s3location.go rename to cloudformation/resources/aws-gamelift-build_s3location.go index c04524e00b..0fc587f4bf 100644 --- a/cloudformation/aws-gamelift-build_s3location.go +++ b/cloudformation/resources/aws-gamelift-build_s3location.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGameLiftBuild_S3Location AWS CloudFormation Resource (AWS::GameLift::Build.S3Location) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html @@ -20,7 +22,7 @@ type AWSGameLiftBuild_S3Location struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGameLiftBuild_S3Location) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGameLiftBuild_S3Location) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGameLiftBuild_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-gamelift-fleet.go b/cloudformation/resources/aws-gamelift-fleet.go similarity index 93% rename from cloudformation/aws-gamelift-fleet.go rename to cloudformation/resources/aws-gamelift-fleet.go index 4f6f22e3a8..98f81f62ea 100644 --- a/cloudformation/aws-gamelift-fleet.go +++ b/cloudformation/resources/aws-gamelift-fleet.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGameLiftFleet AWS CloudFormation Resource (AWS::GameLift::Fleet) @@ -66,7 +67,7 @@ type AWSGameLiftFleet struct { ServerLaunchPath string `json:"ServerLaunchPath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -106,7 +107,7 @@ func (r *AWSGameLiftFleet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGameLiftFleet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGameLiftFleet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -117,9 +118,9 @@ func (r AWSGameLiftFleet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-gamelift-fleet_ippermission.go b/cloudformation/resources/aws-gamelift-fleet_ippermission.go similarity index 95% rename from cloudformation/aws-gamelift-fleet_ippermission.go rename to cloudformation/resources/aws-gamelift-fleet_ippermission.go index 539b3dc6e0..df50834bc6 100644 --- a/cloudformation/aws-gamelift-fleet_ippermission.go +++ b/cloudformation/resources/aws-gamelift-fleet_ippermission.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGameLiftFleet_IpPermission AWS CloudFormation Resource (AWS::GameLift::Fleet.IpPermission) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html @@ -25,7 +27,7 @@ type AWSGameLiftFleet_IpPermission struct { ToPort int `json:"ToPort"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSGameLiftFleet_IpPermission) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGameLiftFleet_IpPermission) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGameLiftFleet_IpPermission) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-classifier.go b/cloudformation/resources/aws-glue-classifier.go similarity index 91% rename from cloudformation/aws-glue-classifier.go rename to cloudformation/resources/aws-glue-classifier.go index 35641955c0..4ea871bbfa 100644 --- a/cloudformation/aws-glue-classifier.go +++ b/cloudformation/resources/aws-glue-classifier.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueClassifier AWS CloudFormation Resource (AWS::Glue::Classifier) @@ -26,7 +27,7 @@ type AWSGlueClassifier struct { XMLClassifier *AWSGlueClassifier_XMLClassifier `json:"XMLClassifier,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSGlueClassifier) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueClassifier) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSGlueClassifier) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-classifier_grokclassifier.go b/cloudformation/resources/aws-glue-classifier_grokclassifier.go similarity index 95% rename from cloudformation/aws-glue-classifier_grokclassifier.go rename to cloudformation/resources/aws-glue-classifier_grokclassifier.go index 4fcaebbb3b..58b8012743 100644 --- a/cloudformation/aws-glue-classifier_grokclassifier.go +++ b/cloudformation/resources/aws-glue-classifier_grokclassifier.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueClassifier_GrokClassifier AWS CloudFormation Resource (AWS::Glue::Classifier.GrokClassifier) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html @@ -25,7 +27,7 @@ type AWSGlueClassifier_GrokClassifier struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSGlueClassifier_GrokClassifier) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueClassifier_GrokClassifier) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueClassifier_GrokClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-classifier_jsonclassifier.go b/cloudformation/resources/aws-glue-classifier_jsonclassifier.go similarity index 94% rename from cloudformation/aws-glue-classifier_jsonclassifier.go rename to cloudformation/resources/aws-glue-classifier_jsonclassifier.go index 7624825330..124c14c400 100644 --- a/cloudformation/aws-glue-classifier_jsonclassifier.go +++ b/cloudformation/resources/aws-glue-classifier_jsonclassifier.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueClassifier_JsonClassifier AWS CloudFormation Resource (AWS::Glue::Classifier.JsonClassifier) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html @@ -15,7 +17,7 @@ type AWSGlueClassifier_JsonClassifier struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueClassifier_JsonClassifier) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueClassifier_JsonClassifier) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueClassifier_JsonClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-classifier_xmlclassifier.go b/cloudformation/resources/aws-glue-classifier_xmlclassifier.go similarity index 95% rename from cloudformation/aws-glue-classifier_xmlclassifier.go rename to cloudformation/resources/aws-glue-classifier_xmlclassifier.go index 7e6d4d4759..fd4b8cc4ea 100644 --- a/cloudformation/aws-glue-classifier_xmlclassifier.go +++ b/cloudformation/resources/aws-glue-classifier_xmlclassifier.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueClassifier_XMLClassifier AWS CloudFormation Resource (AWS::Glue::Classifier.XMLClassifier) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html @@ -20,7 +22,7 @@ type AWSGlueClassifier_XMLClassifier struct { RowTag string `json:"RowTag,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGlueClassifier_XMLClassifier) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueClassifier_XMLClassifier) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueClassifier_XMLClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-connection.go b/cloudformation/resources/aws-glue-connection.go similarity index 90% rename from cloudformation/aws-glue-connection.go rename to cloudformation/resources/aws-glue-connection.go index b3dea513c3..3b056cbc33 100644 --- a/cloudformation/aws-glue-connection.go +++ b/cloudformation/resources/aws-glue-connection.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueConnection AWS CloudFormation Resource (AWS::Glue::Connection) @@ -21,7 +22,7 @@ type AWSGlueConnection struct { ConnectionInput *AWSGlueConnection_ConnectionInput `json:"ConnectionInput,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSGlueConnection) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueConnection) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueConnection) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSGlueConnection) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-connection_connectioninput.go b/cloudformation/resources/aws-glue-connection_connectioninput.go similarity index 96% rename from cloudformation/aws-glue-connection_connectioninput.go rename to cloudformation/resources/aws-glue-connection_connectioninput.go index c2096be3d3..6618763523 100644 --- a/cloudformation/aws-glue-connection_connectioninput.go +++ b/cloudformation/resources/aws-glue-connection_connectioninput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueConnection_ConnectionInput AWS CloudFormation Resource (AWS::Glue::Connection.ConnectionInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html @@ -35,7 +37,7 @@ type AWSGlueConnection_ConnectionInput struct { PhysicalConnectionRequirements *AWSGlueConnection_PhysicalConnectionRequirements `json:"PhysicalConnectionRequirements,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSGlueConnection_ConnectionInput) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueConnection_ConnectionInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueConnection_ConnectionInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-connection_physicalconnectionrequirements.go b/cloudformation/resources/aws-glue-connection_physicalconnectionrequirements.go similarity index 95% rename from cloudformation/aws-glue-connection_physicalconnectionrequirements.go rename to cloudformation/resources/aws-glue-connection_physicalconnectionrequirements.go index 98045af908..5db3a2c126 100644 --- a/cloudformation/aws-glue-connection_physicalconnectionrequirements.go +++ b/cloudformation/resources/aws-glue-connection_physicalconnectionrequirements.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueConnection_PhysicalConnectionRequirements AWS CloudFormation Resource (AWS::Glue::Connection.PhysicalConnectionRequirements) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html @@ -20,7 +22,7 @@ type AWSGlueConnection_PhysicalConnectionRequirements struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGlueConnection_PhysicalConnectionRequirements) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueConnection_PhysicalConnectionRequirements) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueConnection_PhysicalConnectionRequirements) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-crawler.go b/cloudformation/resources/aws-glue-crawler.go similarity index 93% rename from cloudformation/aws-glue-crawler.go rename to cloudformation/resources/aws-glue-crawler.go index 87ea664695..ccc55d9e07 100644 --- a/cloudformation/aws-glue-crawler.go +++ b/cloudformation/resources/aws-glue-crawler.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueCrawler AWS CloudFormation Resource (AWS::Glue::Crawler) @@ -61,7 +62,7 @@ type AWSGlueCrawler struct { Targets *AWSGlueCrawler_Targets `json:"Targets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSGlueCrawler) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueCrawler) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueCrawler) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSGlueCrawler) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-crawler_jdbctarget.go b/cloudformation/resources/aws-glue-crawler_jdbctarget.go similarity index 92% rename from cloudformation/aws-glue-crawler_jdbctarget.go rename to cloudformation/resources/aws-glue-crawler_jdbctarget.go index 002f4eaa1f..1e73cb9d97 100644 --- a/cloudformation/aws-glue-crawler_jdbctarget.go +++ b/cloudformation/resources/aws-glue-crawler_jdbctarget.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueCrawler_JdbcTarget AWS CloudFormation Resource (AWS::Glue::Crawler.JdbcTarget) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html @@ -20,7 +22,7 @@ type AWSGlueCrawler_JdbcTarget struct { Path string `json:"Path,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGlueCrawler_JdbcTarget) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueCrawler_JdbcTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueCrawler_JdbcTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-crawler_s3target.go b/cloudformation/resources/aws-glue-crawler_s3target.go similarity index 92% rename from cloudformation/aws-glue-crawler_s3target.go rename to cloudformation/resources/aws-glue-crawler_s3target.go index d622789b97..5b9a51c594 100644 --- a/cloudformation/aws-glue-crawler_s3target.go +++ b/cloudformation/resources/aws-glue-crawler_s3target.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueCrawler_S3Target AWS CloudFormation Resource (AWS::Glue::Crawler.S3Target) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-s3target.html @@ -15,7 +17,7 @@ type AWSGlueCrawler_S3Target struct { Path string `json:"Path,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueCrawler_S3Target) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueCrawler_S3Target) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueCrawler_S3Target) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-crawler_schedule.go b/cloudformation/resources/aws-glue-crawler_schedule.go similarity index 91% rename from cloudformation/aws-glue-crawler_schedule.go rename to cloudformation/resources/aws-glue-crawler_schedule.go index 1d6fc473f9..b4b4cb8a01 100644 --- a/cloudformation/aws-glue-crawler_schedule.go +++ b/cloudformation/resources/aws-glue-crawler_schedule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueCrawler_Schedule AWS CloudFormation Resource (AWS::Glue::Crawler.Schedule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schedule.html @@ -10,7 +12,7 @@ type AWSGlueCrawler_Schedule struct { ScheduleExpression string `json:"ScheduleExpression,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSGlueCrawler_Schedule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueCrawler_Schedule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueCrawler_Schedule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-crawler_schemachangepolicy.go b/cloudformation/resources/aws-glue-crawler_schemachangepolicy.go similarity index 94% rename from cloudformation/aws-glue-crawler_schemachangepolicy.go rename to cloudformation/resources/aws-glue-crawler_schemachangepolicy.go index e66a43beb3..2f9ee18133 100644 --- a/cloudformation/aws-glue-crawler_schemachangepolicy.go +++ b/cloudformation/resources/aws-glue-crawler_schemachangepolicy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueCrawler_SchemaChangePolicy AWS CloudFormation Resource (AWS::Glue::Crawler.SchemaChangePolicy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schemachangepolicy.html @@ -15,7 +17,7 @@ type AWSGlueCrawler_SchemaChangePolicy struct { UpdateBehavior string `json:"UpdateBehavior,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueCrawler_SchemaChangePolicy) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueCrawler_SchemaChangePolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueCrawler_SchemaChangePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-crawler_targets.go b/cloudformation/resources/aws-glue-crawler_targets.go similarity index 92% rename from cloudformation/aws-glue-crawler_targets.go rename to cloudformation/resources/aws-glue-crawler_targets.go index 61600df62b..eb192f9c2a 100644 --- a/cloudformation/aws-glue-crawler_targets.go +++ b/cloudformation/resources/aws-glue-crawler_targets.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueCrawler_Targets AWS CloudFormation Resource (AWS::Glue::Crawler.Targets) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html @@ -15,7 +17,7 @@ type AWSGlueCrawler_Targets struct { S3Targets []AWSGlueCrawler_S3Target `json:"S3Targets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueCrawler_Targets) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueCrawler_Targets) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueCrawler_Targets) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-database.go b/cloudformation/resources/aws-glue-database.go similarity index 90% rename from cloudformation/aws-glue-database.go rename to cloudformation/resources/aws-glue-database.go index b8ce722c28..bf69aede6c 100644 --- a/cloudformation/aws-glue-database.go +++ b/cloudformation/resources/aws-glue-database.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueDatabase AWS CloudFormation Resource (AWS::Glue::Database) @@ -21,7 +22,7 @@ type AWSGlueDatabase struct { DatabaseInput *AWSGlueDatabase_DatabaseInput `json:"DatabaseInput,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSGlueDatabase) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueDatabase) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueDatabase) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSGlueDatabase) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-database_databaseinput.go b/cloudformation/resources/aws-glue-database_databaseinput.go similarity index 95% rename from cloudformation/aws-glue-database_databaseinput.go rename to cloudformation/resources/aws-glue-database_databaseinput.go index efb9f8ca41..c8b7fc89bd 100644 --- a/cloudformation/aws-glue-database_databaseinput.go +++ b/cloudformation/resources/aws-glue-database_databaseinput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueDatabase_DatabaseInput AWS CloudFormation Resource (AWS::Glue::Database.DatabaseInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html @@ -25,7 +27,7 @@ type AWSGlueDatabase_DatabaseInput struct { Parameters interface{} `json:"Parameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSGlueDatabase_DatabaseInput) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueDatabase_DatabaseInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueDatabase_DatabaseInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-devendpoint.go b/cloudformation/resources/aws-glue-devendpoint.go similarity index 93% rename from cloudformation/aws-glue-devendpoint.go rename to cloudformation/resources/aws-glue-devendpoint.go index a0b69a0439..db4c2a6865 100644 --- a/cloudformation/aws-glue-devendpoint.go +++ b/cloudformation/resources/aws-glue-devendpoint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueDevEndpoint AWS CloudFormation Resource (AWS::Glue::DevEndpoint) @@ -51,7 +52,7 @@ type AWSGlueDevEndpoint struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSGlueDevEndpoint) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueDevEndpoint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueDevEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSGlueDevEndpoint) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-job.go b/cloudformation/resources/aws-glue-job.go similarity index 93% rename from cloudformation/aws-glue-job.go rename to cloudformation/resources/aws-glue-job.go index a71dfa8a96..0dace9b43f 100644 --- a/cloudformation/aws-glue-job.go +++ b/cloudformation/resources/aws-glue-job.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueJob AWS CloudFormation Resource (AWS::Glue::Job) @@ -61,7 +62,7 @@ type AWSGlueJob struct { Role string `json:"Role,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSGlueJob) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueJob) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueJob) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSGlueJob) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-job_connectionslist.go b/cloudformation/resources/aws-glue-job_connectionslist.go similarity index 91% rename from cloudformation/aws-glue-job_connectionslist.go rename to cloudformation/resources/aws-glue-job_connectionslist.go index 590c497f37..b2949a9e3f 100644 --- a/cloudformation/aws-glue-job_connectionslist.go +++ b/cloudformation/resources/aws-glue-job_connectionslist.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueJob_ConnectionsList AWS CloudFormation Resource (AWS::Glue::Job.ConnectionsList) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-connectionslist.html @@ -10,7 +12,7 @@ type AWSGlueJob_ConnectionsList struct { Connections []string `json:"Connections,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSGlueJob_ConnectionsList) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueJob_ConnectionsList) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueJob_ConnectionsList) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-job_executionproperty.go b/cloudformation/resources/aws-glue-job_executionproperty.go similarity index 94% rename from cloudformation/aws-glue-job_executionproperty.go rename to cloudformation/resources/aws-glue-job_executionproperty.go index b7d72cd77b..8d64354158 100644 --- a/cloudformation/aws-glue-job_executionproperty.go +++ b/cloudformation/resources/aws-glue-job_executionproperty.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueJob_ExecutionProperty AWS CloudFormation Resource (AWS::Glue::Job.ExecutionProperty) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-executionproperty.html @@ -10,7 +12,7 @@ type AWSGlueJob_ExecutionProperty struct { MaxConcurrentRuns float64 `json:"MaxConcurrentRuns,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSGlueJob_ExecutionProperty) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueJob_ExecutionProperty) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueJob_ExecutionProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-job_jobcommand.go b/cloudformation/resources/aws-glue-job_jobcommand.go similarity index 92% rename from cloudformation/aws-glue-job_jobcommand.go rename to cloudformation/resources/aws-glue-job_jobcommand.go index 80ce404428..db57b6e202 100644 --- a/cloudformation/aws-glue-job_jobcommand.go +++ b/cloudformation/resources/aws-glue-job_jobcommand.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueJob_JobCommand AWS CloudFormation Resource (AWS::Glue::Job.JobCommand) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-jobcommand.html @@ -15,7 +17,7 @@ type AWSGlueJob_JobCommand struct { ScriptLocation string `json:"ScriptLocation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueJob_JobCommand) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueJob_JobCommand) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueJob_JobCommand) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-partition.go b/cloudformation/resources/aws-glue-partition.go similarity index 91% rename from cloudformation/aws-glue-partition.go rename to cloudformation/resources/aws-glue-partition.go index f3b829430e..a8be49be45 100644 --- a/cloudformation/aws-glue-partition.go +++ b/cloudformation/resources/aws-glue-partition.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGluePartition AWS CloudFormation Resource (AWS::Glue::Partition) @@ -31,7 +32,7 @@ type AWSGluePartition struct { TableName string `json:"TableName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSGluePartition) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGluePartition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGluePartition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSGluePartition) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-partition_column.go b/cloudformation/resources/aws-glue-partition_column.go similarity index 92% rename from cloudformation/aws-glue-partition_column.go rename to cloudformation/resources/aws-glue-partition_column.go index d7f0c33a9e..24d0913f96 100644 --- a/cloudformation/aws-glue-partition_column.go +++ b/cloudformation/resources/aws-glue-partition_column.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGluePartition_Column AWS CloudFormation Resource (AWS::Glue::Partition.Column) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-column.html @@ -20,7 +22,7 @@ type AWSGluePartition_Column struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGluePartition_Column) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGluePartition_Column) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGluePartition_Column) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-partition_order.go b/cloudformation/resources/aws-glue-partition_order.go similarity index 92% rename from cloudformation/aws-glue-partition_order.go rename to cloudformation/resources/aws-glue-partition_order.go index 6ae772e6d6..fd67aefd69 100644 --- a/cloudformation/aws-glue-partition_order.go +++ b/cloudformation/resources/aws-glue-partition_order.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGluePartition_Order AWS CloudFormation Resource (AWS::Glue::Partition.Order) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-order.html @@ -15,7 +17,7 @@ type AWSGluePartition_Order struct { SortOrder int `json:"SortOrder,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGluePartition_Order) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGluePartition_Order) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGluePartition_Order) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-partition_partitioninput.go b/cloudformation/resources/aws-glue-partition_partitioninput.go similarity index 95% rename from cloudformation/aws-glue-partition_partitioninput.go rename to cloudformation/resources/aws-glue-partition_partitioninput.go index 7fc8992c46..eb054ed209 100644 --- a/cloudformation/aws-glue-partition_partitioninput.go +++ b/cloudformation/resources/aws-glue-partition_partitioninput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGluePartition_PartitionInput AWS CloudFormation Resource (AWS::Glue::Partition.PartitionInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html @@ -20,7 +22,7 @@ type AWSGluePartition_PartitionInput struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGluePartition_PartitionInput) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGluePartition_PartitionInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGluePartition_PartitionInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-partition_serdeinfo.go b/cloudformation/resources/aws-glue-partition_serdeinfo.go similarity index 93% rename from cloudformation/aws-glue-partition_serdeinfo.go rename to cloudformation/resources/aws-glue-partition_serdeinfo.go index 73554f7bcb..3f061ed083 100644 --- a/cloudformation/aws-glue-partition_serdeinfo.go +++ b/cloudformation/resources/aws-glue-partition_serdeinfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGluePartition_SerdeInfo AWS CloudFormation Resource (AWS::Glue::Partition.SerdeInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-serdeinfo.html @@ -20,7 +22,7 @@ type AWSGluePartition_SerdeInfo struct { SerializationLibrary string `json:"SerializationLibrary,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGluePartition_SerdeInfo) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGluePartition_SerdeInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGluePartition_SerdeInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-partition_skewedinfo.go b/cloudformation/resources/aws-glue-partition_skewedinfo.go similarity index 93% rename from cloudformation/aws-glue-partition_skewedinfo.go rename to cloudformation/resources/aws-glue-partition_skewedinfo.go index 8b752bd73a..1c53b83ece 100644 --- a/cloudformation/aws-glue-partition_skewedinfo.go +++ b/cloudformation/resources/aws-glue-partition_skewedinfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGluePartition_SkewedInfo AWS CloudFormation Resource (AWS::Glue::Partition.SkewedInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-skewedinfo.html @@ -20,7 +22,7 @@ type AWSGluePartition_SkewedInfo struct { SkewedColumnValues []string `json:"SkewedColumnValues,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGluePartition_SkewedInfo) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGluePartition_SkewedInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGluePartition_SkewedInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-partition_storagedescriptor.go b/cloudformation/resources/aws-glue-partition_storagedescriptor.go similarity index 97% rename from cloudformation/aws-glue-partition_storagedescriptor.go rename to cloudformation/resources/aws-glue-partition_storagedescriptor.go index 8bf02cf666..e07276c713 100644 --- a/cloudformation/aws-glue-partition_storagedescriptor.go +++ b/cloudformation/resources/aws-glue-partition_storagedescriptor.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGluePartition_StorageDescriptor AWS CloudFormation Resource (AWS::Glue::Partition.StorageDescriptor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html @@ -65,7 +67,7 @@ type AWSGluePartition_StorageDescriptor struct { StoredAsSubDirectories bool `json:"StoredAsSubDirectories,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -105,6 +107,6 @@ func (r *AWSGluePartition_StorageDescriptor) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGluePartition_StorageDescriptor) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGluePartition_StorageDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-table.go b/cloudformation/resources/aws-glue-table.go similarity index 90% rename from cloudformation/aws-glue-table.go rename to cloudformation/resources/aws-glue-table.go index 2cbd626a7a..c3075539c9 100644 --- a/cloudformation/aws-glue-table.go +++ b/cloudformation/resources/aws-glue-table.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueTable AWS CloudFormation Resource (AWS::Glue::Table) @@ -26,7 +27,7 @@ type AWSGlueTable struct { TableInput *AWSGlueTable_TableInput `json:"TableInput,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSGlueTable) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSGlueTable) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-table_column.go b/cloudformation/resources/aws-glue-table_column.go similarity index 92% rename from cloudformation/aws-glue-table_column.go rename to cloudformation/resources/aws-glue-table_column.go index ff3f0e9944..d510ebb713 100644 --- a/cloudformation/aws-glue-table_column.go +++ b/cloudformation/resources/aws-glue-table_column.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTable_Column AWS CloudFormation Resource (AWS::Glue::Table.Column) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-column.html @@ -20,7 +22,7 @@ type AWSGlueTable_Column struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGlueTable_Column) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTable_Column) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTable_Column) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-table_order.go b/cloudformation/resources/aws-glue-table_order.go similarity index 92% rename from cloudformation/aws-glue-table_order.go rename to cloudformation/resources/aws-glue-table_order.go index 8a17b3f330..b9e6c82f9b 100644 --- a/cloudformation/aws-glue-table_order.go +++ b/cloudformation/resources/aws-glue-table_order.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTable_Order AWS CloudFormation Resource (AWS::Glue::Table.Order) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-order.html @@ -15,7 +17,7 @@ type AWSGlueTable_Order struct { SortOrder int `json:"SortOrder"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueTable_Order) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTable_Order) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTable_Order) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-table_serdeinfo.go b/cloudformation/resources/aws-glue-table_serdeinfo.go similarity index 93% rename from cloudformation/aws-glue-table_serdeinfo.go rename to cloudformation/resources/aws-glue-table_serdeinfo.go index 455d856c61..ff7cd1fb72 100644 --- a/cloudformation/aws-glue-table_serdeinfo.go +++ b/cloudformation/resources/aws-glue-table_serdeinfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTable_SerdeInfo AWS CloudFormation Resource (AWS::Glue::Table.SerdeInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-serdeinfo.html @@ -20,7 +22,7 @@ type AWSGlueTable_SerdeInfo struct { SerializationLibrary string `json:"SerializationLibrary,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGlueTable_SerdeInfo) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTable_SerdeInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTable_SerdeInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-table_skewedinfo.go b/cloudformation/resources/aws-glue-table_skewedinfo.go similarity index 93% rename from cloudformation/aws-glue-table_skewedinfo.go rename to cloudformation/resources/aws-glue-table_skewedinfo.go index 8686b1bd2e..933bd6cf9c 100644 --- a/cloudformation/aws-glue-table_skewedinfo.go +++ b/cloudformation/resources/aws-glue-table_skewedinfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTable_SkewedInfo AWS CloudFormation Resource (AWS::Glue::Table.SkewedInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-skewedinfo.html @@ -20,7 +22,7 @@ type AWSGlueTable_SkewedInfo struct { SkewedColumnValues []string `json:"SkewedColumnValues,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGlueTable_SkewedInfo) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTable_SkewedInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTable_SkewedInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-table_storagedescriptor.go b/cloudformation/resources/aws-glue-table_storagedescriptor.go similarity index 97% rename from cloudformation/aws-glue-table_storagedescriptor.go rename to cloudformation/resources/aws-glue-table_storagedescriptor.go index 1b0849ac7a..54a2dff8c9 100644 --- a/cloudformation/aws-glue-table_storagedescriptor.go +++ b/cloudformation/resources/aws-glue-table_storagedescriptor.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTable_StorageDescriptor AWS CloudFormation Resource (AWS::Glue::Table.StorageDescriptor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html @@ -65,7 +67,7 @@ type AWSGlueTable_StorageDescriptor struct { StoredAsSubDirectories bool `json:"StoredAsSubDirectories,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -105,6 +107,6 @@ func (r *AWSGlueTable_StorageDescriptor) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTable_StorageDescriptor) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTable_StorageDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-table_tableinput.go b/cloudformation/resources/aws-glue-table_tableinput.go similarity index 95% rename from cloudformation/aws-glue-table_tableinput.go rename to cloudformation/resources/aws-glue-table_tableinput.go index 1595650899..1f498369ab 100644 --- a/cloudformation/aws-glue-table_tableinput.go +++ b/cloudformation/resources/aws-glue-table_tableinput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTable_TableInput AWS CloudFormation Resource (AWS::Glue::Table.TableInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html @@ -55,7 +57,7 @@ type AWSGlueTable_TableInput struct { ViewOriginalText string `json:"ViewOriginalText,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSGlueTable_TableInput) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTable_TableInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTable_TableInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-trigger.go b/cloudformation/resources/aws-glue-trigger.go similarity index 92% rename from cloudformation/aws-glue-trigger.go rename to cloudformation/resources/aws-glue-trigger.go index 522b4ae040..23717fdc9e 100644 --- a/cloudformation/aws-glue-trigger.go +++ b/cloudformation/resources/aws-glue-trigger.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGlueTrigger AWS CloudFormation Resource (AWS::Glue::Trigger) @@ -41,7 +42,7 @@ type AWSGlueTrigger struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSGlueTrigger) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTrigger) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTrigger) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSGlueTrigger) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-glue-trigger_action.go b/cloudformation/resources/aws-glue-trigger_action.go similarity index 92% rename from cloudformation/aws-glue-trigger_action.go rename to cloudformation/resources/aws-glue-trigger_action.go index ae4583040e..20724efc87 100644 --- a/cloudformation/aws-glue-trigger_action.go +++ b/cloudformation/resources/aws-glue-trigger_action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTrigger_Action AWS CloudFormation Resource (AWS::Glue::Trigger.Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-action.html @@ -15,7 +17,7 @@ type AWSGlueTrigger_Action struct { JobName string `json:"JobName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueTrigger_Action) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTrigger_Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTrigger_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-trigger_condition.go b/cloudformation/resources/aws-glue-trigger_condition.go similarity index 92% rename from cloudformation/aws-glue-trigger_condition.go rename to cloudformation/resources/aws-glue-trigger_condition.go index f9c00351bf..5f5cdcdf55 100644 --- a/cloudformation/aws-glue-trigger_condition.go +++ b/cloudformation/resources/aws-glue-trigger_condition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTrigger_Condition AWS CloudFormation Resource (AWS::Glue::Trigger.Condition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-condition.html @@ -20,7 +22,7 @@ type AWSGlueTrigger_Condition struct { State string `json:"State,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSGlueTrigger_Condition) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTrigger_Condition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTrigger_Condition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-glue-trigger_predicate.go b/cloudformation/resources/aws-glue-trigger_predicate.go similarity index 92% rename from cloudformation/aws-glue-trigger_predicate.go rename to cloudformation/resources/aws-glue-trigger_predicate.go index 37cb13624f..c52ca9be2d 100644 --- a/cloudformation/aws-glue-trigger_predicate.go +++ b/cloudformation/resources/aws-glue-trigger_predicate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGlueTrigger_Predicate AWS CloudFormation Resource (AWS::Glue::Trigger.Predicate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-predicate.html @@ -15,7 +17,7 @@ type AWSGlueTrigger_Predicate struct { Logical string `json:"Logical,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGlueTrigger_Predicate) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGlueTrigger_Predicate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGlueTrigger_Predicate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-guardduty-detector.go b/cloudformation/resources/aws-guardduty-detector.go similarity index 90% rename from cloudformation/aws-guardduty-detector.go rename to cloudformation/resources/aws-guardduty-detector.go index dac04ba0cc..e825cd58e3 100644 --- a/cloudformation/aws-guardduty-detector.go +++ b/cloudformation/resources/aws-guardduty-detector.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGuardDutyDetector AWS CloudFormation Resource (AWS::GuardDuty::Detector) @@ -21,7 +22,7 @@ type AWSGuardDutyDetector struct { FindingPublishingFrequency string `json:"FindingPublishingFrequency,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSGuardDutyDetector) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyDetector) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyDetector) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSGuardDutyDetector) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-guardduty-filter.go b/cloudformation/resources/aws-guardduty-filter.go similarity index 92% rename from cloudformation/aws-guardduty-filter.go rename to cloudformation/resources/aws-guardduty-filter.go index 4905642e13..bf9021cb91 100644 --- a/cloudformation/aws-guardduty-filter.go +++ b/cloudformation/resources/aws-guardduty-filter.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGuardDutyFilter AWS CloudFormation Resource (AWS::GuardDuty::Filter) @@ -41,7 +42,7 @@ type AWSGuardDutyFilter struct { Rank int `json:"Rank"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSGuardDutyFilter) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSGuardDutyFilter) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-guardduty-filter_condition.go b/cloudformation/resources/aws-guardduty-filter_condition.go similarity index 95% rename from cloudformation/aws-guardduty-filter_condition.go rename to cloudformation/resources/aws-guardduty-filter_condition.go index a3611e5c16..c59550f03a 100644 --- a/cloudformation/aws-guardduty-filter_condition.go +++ b/cloudformation/resources/aws-guardduty-filter_condition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGuardDutyFilter_Condition AWS CloudFormation Resource (AWS::GuardDuty::Filter.Condition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html @@ -30,7 +32,7 @@ type AWSGuardDutyFilter_Condition struct { Neq []string `json:"Neq,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSGuardDutyFilter_Condition) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyFilter_Condition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyFilter_Condition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-guardduty-filter_findingcriteria.go b/cloudformation/resources/aws-guardduty-filter_findingcriteria.go similarity index 94% rename from cloudformation/aws-guardduty-filter_findingcriteria.go rename to cloudformation/resources/aws-guardduty-filter_findingcriteria.go index 62b2b36151..0ac198335c 100644 --- a/cloudformation/aws-guardduty-filter_findingcriteria.go +++ b/cloudformation/resources/aws-guardduty-filter_findingcriteria.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSGuardDutyFilter_FindingCriteria AWS CloudFormation Resource (AWS::GuardDuty::Filter.FindingCriteria) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-findingcriteria.html @@ -15,7 +17,7 @@ type AWSGuardDutyFilter_FindingCriteria struct { ItemType *AWSGuardDutyFilter_Condition `json:"ItemType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSGuardDutyFilter_FindingCriteria) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyFilter_FindingCriteria) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyFilter_FindingCriteria) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-guardduty-ipset.go b/cloudformation/resources/aws-guardduty-ipset.go similarity index 91% rename from cloudformation/aws-guardduty-ipset.go rename to cloudformation/resources/aws-guardduty-ipset.go index 6c7fead858..7f4d732452 100644 --- a/cloudformation/aws-guardduty-ipset.go +++ b/cloudformation/resources/aws-guardduty-ipset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGuardDutyIPSet AWS CloudFormation Resource (AWS::GuardDuty::IPSet) @@ -36,7 +37,7 @@ type AWSGuardDutyIPSet struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSGuardDutyIPSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyIPSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyIPSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSGuardDutyIPSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-guardduty-master.go b/cloudformation/resources/aws-guardduty-master.go similarity index 90% rename from cloudformation/aws-guardduty-master.go rename to cloudformation/resources/aws-guardduty-master.go index 608afb6195..ef3ff5d584 100644 --- a/cloudformation/aws-guardduty-master.go +++ b/cloudformation/resources/aws-guardduty-master.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGuardDutyMaster AWS CloudFormation Resource (AWS::GuardDuty::Master) @@ -26,7 +27,7 @@ type AWSGuardDutyMaster struct { MasterId string `json:"MasterId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSGuardDutyMaster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyMaster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyMaster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSGuardDutyMaster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-guardduty-member.go b/cloudformation/resources/aws-guardduty-member.go similarity index 92% rename from cloudformation/aws-guardduty-member.go rename to cloudformation/resources/aws-guardduty-member.go index 9a3b1f6fa3..3b96e440d5 100644 --- a/cloudformation/aws-guardduty-member.go +++ b/cloudformation/resources/aws-guardduty-member.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGuardDutyMember AWS CloudFormation Resource (AWS::GuardDuty::Member) @@ -41,7 +42,7 @@ type AWSGuardDutyMember struct { Status string `json:"Status,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSGuardDutyMember) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyMember) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyMember) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSGuardDutyMember) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-guardduty-threatintelset.go b/cloudformation/resources/aws-guardduty-threatintelset.go similarity index 91% rename from cloudformation/aws-guardduty-threatintelset.go rename to cloudformation/resources/aws-guardduty-threatintelset.go index 79645521d2..c9960d0683 100644 --- a/cloudformation/aws-guardduty-threatintelset.go +++ b/cloudformation/resources/aws-guardduty-threatintelset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSGuardDutyThreatIntelSet AWS CloudFormation Resource (AWS::GuardDuty::ThreatIntelSet) @@ -36,7 +37,7 @@ type AWSGuardDutyThreatIntelSet struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSGuardDutyThreatIntelSet) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSGuardDutyThreatIntelSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSGuardDutyThreatIntelSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSGuardDutyThreatIntelSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-accesskey.go b/cloudformation/resources/aws-iam-accesskey.go similarity index 90% rename from cloudformation/aws-iam-accesskey.go rename to cloudformation/resources/aws-iam-accesskey.go index f1ce69838a..c608330eb2 100644 --- a/cloudformation/aws-iam-accesskey.go +++ b/cloudformation/resources/aws-iam-accesskey.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMAccessKey AWS CloudFormation Resource (AWS::IAM::AccessKey) @@ -26,7 +27,7 @@ type AWSIAMAccessKey struct { UserName string `json:"UserName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSIAMAccessKey) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMAccessKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMAccessKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSIAMAccessKey) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-group.go b/cloudformation/resources/aws-iam-group.go similarity index 91% rename from cloudformation/aws-iam-group.go rename to cloudformation/resources/aws-iam-group.go index 8fe390cd3b..26b93da3ab 100644 --- a/cloudformation/aws-iam-group.go +++ b/cloudformation/resources/aws-iam-group.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMGroup AWS CloudFormation Resource (AWS::IAM::Group) @@ -31,7 +32,7 @@ type AWSIAMGroup struct { Policies []AWSIAMGroup_Policy `json:"Policies,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSIAMGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSIAMGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-group_policy.go b/cloudformation/resources/aws-iam-group_policy.go similarity index 92% rename from cloudformation/aws-iam-group_policy.go rename to cloudformation/resources/aws-iam-group_policy.go index 1bf1aa2010..02b69a3ee4 100644 --- a/cloudformation/aws-iam-group_policy.go +++ b/cloudformation/resources/aws-iam-group_policy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIAMGroup_Policy AWS CloudFormation Resource (AWS::IAM::Group.Policy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html @@ -15,7 +17,7 @@ type AWSIAMGroup_Policy struct { PolicyName string `json:"PolicyName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIAMGroup_Policy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMGroup_Policy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMGroup_Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iam-instanceprofile.go b/cloudformation/resources/aws-iam-instanceprofile.go similarity index 91% rename from cloudformation/aws-iam-instanceprofile.go rename to cloudformation/resources/aws-iam-instanceprofile.go index 82f67eb5d9..b70978abc7 100644 --- a/cloudformation/aws-iam-instanceprofile.go +++ b/cloudformation/resources/aws-iam-instanceprofile.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMInstanceProfile AWS CloudFormation Resource (AWS::IAM::InstanceProfile) @@ -26,7 +27,7 @@ type AWSIAMInstanceProfile struct { Roles []string `json:"Roles,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSIAMInstanceProfile) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMInstanceProfile) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMInstanceProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSIAMInstanceProfile) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-managedpolicy.go b/cloudformation/resources/aws-iam-managedpolicy.go similarity index 92% rename from cloudformation/aws-iam-managedpolicy.go rename to cloudformation/resources/aws-iam-managedpolicy.go index 5467f38fc4..d85264a687 100644 --- a/cloudformation/aws-iam-managedpolicy.go +++ b/cloudformation/resources/aws-iam-managedpolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMManagedPolicy AWS CloudFormation Resource (AWS::IAM::ManagedPolicy) @@ -46,7 +47,7 @@ type AWSIAMManagedPolicy struct { Users []string `json:"Users,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSIAMManagedPolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMManagedPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMManagedPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSIAMManagedPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-policy.go b/cloudformation/resources/aws-iam-policy.go similarity index 91% rename from cloudformation/aws-iam-policy.go rename to cloudformation/resources/aws-iam-policy.go index 1edf73dfad..3bc9c556b2 100644 --- a/cloudformation/aws-iam-policy.go +++ b/cloudformation/resources/aws-iam-policy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMPolicy AWS CloudFormation Resource (AWS::IAM::Policy) @@ -36,7 +37,7 @@ type AWSIAMPolicy struct { Users []string `json:"Users,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSIAMPolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSIAMPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-role.go b/cloudformation/resources/aws-iam-role.go similarity index 92% rename from cloudformation/aws-iam-role.go rename to cloudformation/resources/aws-iam-role.go index 3363bd64a9..f2406886ce 100644 --- a/cloudformation/aws-iam-role.go +++ b/cloudformation/resources/aws-iam-role.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMRole AWS CloudFormation Resource (AWS::IAM::Role) @@ -46,7 +47,7 @@ type AWSIAMRole struct { RoleName string `json:"RoleName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSIAMRole) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMRole) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMRole) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSIAMRole) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-role_policy.go b/cloudformation/resources/aws-iam-role_policy.go similarity index 92% rename from cloudformation/aws-iam-role_policy.go rename to cloudformation/resources/aws-iam-role_policy.go index e6cf0f0377..55964fba60 100644 --- a/cloudformation/aws-iam-role_policy.go +++ b/cloudformation/resources/aws-iam-role_policy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIAMRole_Policy AWS CloudFormation Resource (AWS::IAM::Role.Policy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html @@ -15,7 +17,7 @@ type AWSIAMRole_Policy struct { PolicyName string `json:"PolicyName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIAMRole_Policy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMRole_Policy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMRole_Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iam-servicelinkedrole.go b/cloudformation/resources/aws-iam-servicelinkedrole.go similarity index 91% rename from cloudformation/aws-iam-servicelinkedrole.go rename to cloudformation/resources/aws-iam-servicelinkedrole.go index 1c32062557..fdc77246a3 100644 --- a/cloudformation/aws-iam-servicelinkedrole.go +++ b/cloudformation/resources/aws-iam-servicelinkedrole.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMServiceLinkedRole AWS CloudFormation Resource (AWS::IAM::ServiceLinkedRole) @@ -26,7 +27,7 @@ type AWSIAMServiceLinkedRole struct { Description string `json:"Description,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSIAMServiceLinkedRole) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMServiceLinkedRole) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMServiceLinkedRole) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSIAMServiceLinkedRole) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-user.go b/cloudformation/resources/aws-iam-user.go similarity index 92% rename from cloudformation/aws-iam-user.go rename to cloudformation/resources/aws-iam-user.go index ebd5971e04..5a102bb2f5 100644 --- a/cloudformation/aws-iam-user.go +++ b/cloudformation/resources/aws-iam-user.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMUser AWS CloudFormation Resource (AWS::IAM::User) @@ -46,7 +47,7 @@ type AWSIAMUser struct { UserName string `json:"UserName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSIAMUser) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMUser) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMUser) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSIAMUser) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iam-user_loginprofile.go b/cloudformation/resources/aws-iam-user_loginprofile.go similarity index 92% rename from cloudformation/aws-iam-user_loginprofile.go rename to cloudformation/resources/aws-iam-user_loginprofile.go index 902892ca7e..d234dd1849 100644 --- a/cloudformation/aws-iam-user_loginprofile.go +++ b/cloudformation/resources/aws-iam-user_loginprofile.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIAMUser_LoginProfile AWS CloudFormation Resource (AWS::IAM::User.LoginProfile) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html @@ -15,7 +17,7 @@ type AWSIAMUser_LoginProfile struct { PasswordResetRequired bool `json:"PasswordResetRequired,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIAMUser_LoginProfile) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMUser_LoginProfile) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMUser_LoginProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iam-user_policy.go b/cloudformation/resources/aws-iam-user_policy.go similarity index 92% rename from cloudformation/aws-iam-user_policy.go rename to cloudformation/resources/aws-iam-user_policy.go index fa25827a5a..b738f98570 100644 --- a/cloudformation/aws-iam-user_policy.go +++ b/cloudformation/resources/aws-iam-user_policy.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIAMUser_Policy AWS CloudFormation Resource (AWS::IAM::User.Policy) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html @@ -15,7 +17,7 @@ type AWSIAMUser_Policy struct { PolicyName string `json:"PolicyName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIAMUser_Policy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMUser_Policy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMUser_Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iam-usertogroupaddition.go b/cloudformation/resources/aws-iam-usertogroupaddition.go similarity index 90% rename from cloudformation/aws-iam-usertogroupaddition.go rename to cloudformation/resources/aws-iam-usertogroupaddition.go index b828ae08f2..124c2c5d84 100644 --- a/cloudformation/aws-iam-usertogroupaddition.go +++ b/cloudformation/resources/aws-iam-usertogroupaddition.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIAMUserToGroupAddition AWS CloudFormation Resource (AWS::IAM::UserToGroupAddition) @@ -21,7 +22,7 @@ type AWSIAMUserToGroupAddition struct { Users []string `json:"Users,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIAMUserToGroupAddition) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIAMUserToGroupAddition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIAMUserToGroupAddition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIAMUserToGroupAddition) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-inspector-assessmenttarget.go b/cloudformation/resources/aws-inspector-assessmenttarget.go similarity index 92% rename from cloudformation/aws-inspector-assessmenttarget.go rename to cloudformation/resources/aws-inspector-assessmenttarget.go index af712d72ca..593b078f6a 100644 --- a/cloudformation/aws-inspector-assessmenttarget.go +++ b/cloudformation/resources/aws-inspector-assessmenttarget.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSInspectorAssessmentTarget AWS CloudFormation Resource (AWS::Inspector::AssessmentTarget) @@ -21,7 +22,7 @@ type AWSInspectorAssessmentTarget struct { ResourceGroupArn string `json:"ResourceGroupArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSInspectorAssessmentTarget) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSInspectorAssessmentTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSInspectorAssessmentTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSInspectorAssessmentTarget) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-inspector-assessmenttemplate.go b/cloudformation/resources/aws-inspector-assessmenttemplate.go similarity index 93% rename from cloudformation/aws-inspector-assessmenttemplate.go rename to cloudformation/resources/aws-inspector-assessmenttemplate.go index 81c556914b..0414ea334a 100644 --- a/cloudformation/aws-inspector-assessmenttemplate.go +++ b/cloudformation/resources/aws-inspector-assessmenttemplate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSInspectorAssessmentTemplate AWS CloudFormation Resource (AWS::Inspector::AssessmentTemplate) @@ -36,7 +37,7 @@ type AWSInspectorAssessmentTemplate struct { UserAttributesForFindings []Tag `json:"UserAttributesForFindings,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSInspectorAssessmentTemplate) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSInspectorAssessmentTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSInspectorAssessmentTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSInspectorAssessmentTemplate) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-inspector-resourcegroup.go b/cloudformation/resources/aws-inspector-resourcegroup.go similarity index 90% rename from cloudformation/aws-inspector-resourcegroup.go rename to cloudformation/resources/aws-inspector-resourcegroup.go index ce2d57b3ee..c92d7867d7 100644 --- a/cloudformation/aws-inspector-resourcegroup.go +++ b/cloudformation/resources/aws-inspector-resourcegroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSInspectorResourceGroup AWS CloudFormation Resource (AWS::Inspector::ResourceGroup) @@ -16,7 +17,7 @@ type AWSInspectorResourceGroup struct { ResourceGroupTags []Tag `json:"ResourceGroupTags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSInspectorResourceGroup) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSInspectorResourceGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSInspectorResourceGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSInspectorResourceGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot-certificate.go b/cloudformation/resources/aws-iot-certificate.go similarity index 90% rename from cloudformation/aws-iot-certificate.go rename to cloudformation/resources/aws-iot-certificate.go index a48fba8124..be58ea3536 100644 --- a/cloudformation/aws-iot-certificate.go +++ b/cloudformation/resources/aws-iot-certificate.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTCertificate AWS CloudFormation Resource (AWS::IoT::Certificate) @@ -21,7 +22,7 @@ type AWSIoTCertificate struct { Status string `json:"Status,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIoTCertificate) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTCertificate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIoTCertificate) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot-policy.go b/cloudformation/resources/aws-iot-policy.go similarity index 90% rename from cloudformation/aws-iot-policy.go rename to cloudformation/resources/aws-iot-policy.go index 90eb1b332e..3fb922da76 100644 --- a/cloudformation/aws-iot-policy.go +++ b/cloudformation/resources/aws-iot-policy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTPolicy AWS CloudFormation Resource (AWS::IoT::Policy) @@ -21,7 +22,7 @@ type AWSIoTPolicy struct { PolicyName string `json:"PolicyName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIoTPolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIoTPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot-policyprincipalattachment.go b/cloudformation/resources/aws-iot-policyprincipalattachment.go similarity index 92% rename from cloudformation/aws-iot-policyprincipalattachment.go rename to cloudformation/resources/aws-iot-policyprincipalattachment.go index 39b22a4d8b..61a33d0d48 100644 --- a/cloudformation/aws-iot-policyprincipalattachment.go +++ b/cloudformation/resources/aws-iot-policyprincipalattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTPolicyPrincipalAttachment AWS CloudFormation Resource (AWS::IoT::PolicyPrincipalAttachment) @@ -21,7 +22,7 @@ type AWSIoTPolicyPrincipalAttachment struct { Principal string `json:"Principal,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIoTPolicyPrincipalAttachment) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTPolicyPrincipalAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTPolicyPrincipalAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIoTPolicyPrincipalAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot-thing.go b/cloudformation/resources/aws-iot-thing.go similarity index 90% rename from cloudformation/aws-iot-thing.go rename to cloudformation/resources/aws-iot-thing.go index 26242570e0..00adbd9dc0 100644 --- a/cloudformation/aws-iot-thing.go +++ b/cloudformation/resources/aws-iot-thing.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTThing AWS CloudFormation Resource (AWS::IoT::Thing) @@ -21,7 +22,7 @@ type AWSIoTThing struct { ThingName string `json:"ThingName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIoTThing) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTThing) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTThing) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIoTThing) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot-thing_attributepayload.go b/cloudformation/resources/aws-iot-thing_attributepayload.go similarity index 94% rename from cloudformation/aws-iot-thing_attributepayload.go rename to cloudformation/resources/aws-iot-thing_attributepayload.go index 81eb24abb6..0717f30d1a 100644 --- a/cloudformation/aws-iot-thing_attributepayload.go +++ b/cloudformation/resources/aws-iot-thing_attributepayload.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTThing_AttributePayload AWS CloudFormation Resource (AWS::IoT::Thing.AttributePayload) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thing-attributepayload.html @@ -10,7 +12,7 @@ type AWSIoTThing_AttributePayload struct { Attributes map[string]string `json:"Attributes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTThing_AttributePayload) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTThing_AttributePayload) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTThing_AttributePayload) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-thingprincipalattachment.go b/cloudformation/resources/aws-iot-thingprincipalattachment.go similarity index 92% rename from cloudformation/aws-iot-thingprincipalattachment.go rename to cloudformation/resources/aws-iot-thingprincipalattachment.go index 5ce60df325..f48c8d40cf 100644 --- a/cloudformation/aws-iot-thingprincipalattachment.go +++ b/cloudformation/resources/aws-iot-thingprincipalattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTThingPrincipalAttachment AWS CloudFormation Resource (AWS::IoT::ThingPrincipalAttachment) @@ -21,7 +22,7 @@ type AWSIoTThingPrincipalAttachment struct { ThingName string `json:"ThingName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIoTThingPrincipalAttachment) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTThingPrincipalAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTThingPrincipalAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIoTThingPrincipalAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot-topicrule.go b/cloudformation/resources/aws-iot-topicrule.go similarity index 90% rename from cloudformation/aws-iot-topicrule.go rename to cloudformation/resources/aws-iot-topicrule.go index 94570e13e8..c9c9817fda 100644 --- a/cloudformation/aws-iot-topicrule.go +++ b/cloudformation/resources/aws-iot-topicrule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTTopicRule AWS CloudFormation Resource (AWS::IoT::TopicRule) @@ -21,7 +22,7 @@ type AWSIoTTopicRule struct { TopicRulePayload *AWSIoTTopicRule_TopicRulePayload `json:"TopicRulePayload,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIoTTopicRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIoTTopicRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot-topicrule_action.go b/cloudformation/resources/aws-iot-topicrule_action.go similarity index 96% rename from cloudformation/aws-iot-topicrule_action.go rename to cloudformation/resources/aws-iot-topicrule_action.go index 0158585e41..77b7cd8c24 100644 --- a/cloudformation/aws-iot-topicrule_action.go +++ b/cloudformation/resources/aws-iot-topicrule_action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_Action AWS CloudFormation Resource (AWS::IoT::TopicRule.Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html @@ -75,7 +77,7 @@ type AWSIoTTopicRule_Action struct { StepFunctions *AWSIoTTopicRule_StepFunctionsAction `json:"StepFunctions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -115,6 +117,6 @@ func (r *AWSIoTTopicRule_Action) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_cloudwatchalarmaction.go b/cloudformation/resources/aws-iot-topicrule_cloudwatchalarmaction.go similarity index 95% rename from cloudformation/aws-iot-topicrule_cloudwatchalarmaction.go rename to cloudformation/resources/aws-iot-topicrule_cloudwatchalarmaction.go index fb05cf2ea4..1031a2c36a 100644 --- a/cloudformation/aws-iot-topicrule_cloudwatchalarmaction.go +++ b/cloudformation/resources/aws-iot-topicrule_cloudwatchalarmaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_CloudwatchAlarmAction AWS CloudFormation Resource (AWS::IoT::TopicRule.CloudwatchAlarmAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html @@ -25,7 +27,7 @@ type AWSIoTTopicRule_CloudwatchAlarmAction struct { StateValue string `json:"StateValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSIoTTopicRule_CloudwatchAlarmAction) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_CloudwatchAlarmAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_CloudwatchAlarmAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_cloudwatchmetricaction.go b/cloudformation/resources/aws-iot-topicrule_cloudwatchmetricaction.go similarity index 96% rename from cloudformation/aws-iot-topicrule_cloudwatchmetricaction.go rename to cloudformation/resources/aws-iot-topicrule_cloudwatchmetricaction.go index 24fb286691..fedfb1f74b 100644 --- a/cloudformation/aws-iot-topicrule_cloudwatchmetricaction.go +++ b/cloudformation/resources/aws-iot-topicrule_cloudwatchmetricaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_CloudwatchMetricAction AWS CloudFormation Resource (AWS::IoT::TopicRule.CloudwatchMetricAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html @@ -35,7 +37,7 @@ type AWSIoTTopicRule_CloudwatchMetricAction struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSIoTTopicRule_CloudwatchMetricAction) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_CloudwatchMetricAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_CloudwatchMetricAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_dynamodbaction.go b/cloudformation/resources/aws-iot-topicrule_dynamodbaction.go similarity index 96% rename from cloudformation/aws-iot-topicrule_dynamodbaction.go rename to cloudformation/resources/aws-iot-topicrule_dynamodbaction.go index c525d48bcb..4d98deb0d0 100644 --- a/cloudformation/aws-iot-topicrule_dynamodbaction.go +++ b/cloudformation/resources/aws-iot-topicrule_dynamodbaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_DynamoDBAction AWS CloudFormation Resource (AWS::IoT::TopicRule.DynamoDBAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html @@ -50,7 +52,7 @@ type AWSIoTTopicRule_DynamoDBAction struct { TableName string `json:"TableName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -90,6 +92,6 @@ func (r *AWSIoTTopicRule_DynamoDBAction) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_DynamoDBAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_DynamoDBAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_dynamodbv2action.go b/cloudformation/resources/aws-iot-topicrule_dynamodbv2action.go similarity index 94% rename from cloudformation/aws-iot-topicrule_dynamodbv2action.go rename to cloudformation/resources/aws-iot-topicrule_dynamodbv2action.go index d3cd7a3ec7..135fde1c87 100644 --- a/cloudformation/aws-iot-topicrule_dynamodbv2action.go +++ b/cloudformation/resources/aws-iot-topicrule_dynamodbv2action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_DynamoDBv2Action AWS CloudFormation Resource (AWS::IoT::TopicRule.DynamoDBv2Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html @@ -15,7 +17,7 @@ type AWSIoTTopicRule_DynamoDBv2Action struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTTopicRule_DynamoDBv2Action) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_DynamoDBv2Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_DynamoDBv2Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_elasticsearchaction.go b/cloudformation/resources/aws-iot-topicrule_elasticsearchaction.go similarity index 95% rename from cloudformation/aws-iot-topicrule_elasticsearchaction.go rename to cloudformation/resources/aws-iot-topicrule_elasticsearchaction.go index 24f5d72bd5..d6bac187b9 100644 --- a/cloudformation/aws-iot-topicrule_elasticsearchaction.go +++ b/cloudformation/resources/aws-iot-topicrule_elasticsearchaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_ElasticsearchAction AWS CloudFormation Resource (AWS::IoT::TopicRule.ElasticsearchAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html @@ -30,7 +32,7 @@ type AWSIoTTopicRule_ElasticsearchAction struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSIoTTopicRule_ElasticsearchAction) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_ElasticsearchAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_ElasticsearchAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_firehoseaction.go b/cloudformation/resources/aws-iot-topicrule_firehoseaction.go similarity index 95% rename from cloudformation/aws-iot-topicrule_firehoseaction.go rename to cloudformation/resources/aws-iot-topicrule_firehoseaction.go index b3ddd6ad3a..ed6409375a 100644 --- a/cloudformation/aws-iot-topicrule_firehoseaction.go +++ b/cloudformation/resources/aws-iot-topicrule_firehoseaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_FirehoseAction AWS CloudFormation Resource (AWS::IoT::TopicRule.FirehoseAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-firehoseaction.html @@ -20,7 +22,7 @@ type AWSIoTTopicRule_FirehoseAction struct { Separator string `json:"Separator,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTTopicRule_FirehoseAction) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_FirehoseAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_FirehoseAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_iotanalyticsaction.go b/cloudformation/resources/aws-iot-topicrule_iotanalyticsaction.go similarity index 94% rename from cloudformation/aws-iot-topicrule_iotanalyticsaction.go rename to cloudformation/resources/aws-iot-topicrule_iotanalyticsaction.go index 0a84f128c6..2745ba45d8 100644 --- a/cloudformation/aws-iot-topicrule_iotanalyticsaction.go +++ b/cloudformation/resources/aws-iot-topicrule_iotanalyticsaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_IotAnalyticsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.IotAnalyticsAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-iotanalyticsaction.html @@ -15,7 +17,7 @@ type AWSIoTTopicRule_IotAnalyticsAction struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTTopicRule_IotAnalyticsAction) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_IotAnalyticsAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_IotAnalyticsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_kinesisaction.go b/cloudformation/resources/aws-iot-topicrule_kinesisaction.go similarity index 95% rename from cloudformation/aws-iot-topicrule_kinesisaction.go rename to cloudformation/resources/aws-iot-topicrule_kinesisaction.go index d6e25c7f11..1211c11204 100644 --- a/cloudformation/aws-iot-topicrule_kinesisaction.go +++ b/cloudformation/resources/aws-iot-topicrule_kinesisaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_KinesisAction AWS CloudFormation Resource (AWS::IoT::TopicRule.KinesisAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-kinesisaction.html @@ -20,7 +22,7 @@ type AWSIoTTopicRule_KinesisAction struct { StreamName string `json:"StreamName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTTopicRule_KinesisAction) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_KinesisAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_KinesisAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_lambdaaction.go b/cloudformation/resources/aws-iot-topicrule_lambdaaction.go similarity index 94% rename from cloudformation/aws-iot-topicrule_lambdaaction.go rename to cloudformation/resources/aws-iot-topicrule_lambdaaction.go index 35b7a7797d..b2c9b0d33c 100644 --- a/cloudformation/aws-iot-topicrule_lambdaaction.go +++ b/cloudformation/resources/aws-iot-topicrule_lambdaaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_LambdaAction AWS CloudFormation Resource (AWS::IoT::TopicRule.LambdaAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-lambdaaction.html @@ -10,7 +12,7 @@ type AWSIoTTopicRule_LambdaAction struct { FunctionArn string `json:"FunctionArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTTopicRule_LambdaAction) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_LambdaAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_LambdaAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_putiteminput.go b/cloudformation/resources/aws-iot-topicrule_putiteminput.go similarity index 94% rename from cloudformation/aws-iot-topicrule_putiteminput.go rename to cloudformation/resources/aws-iot-topicrule_putiteminput.go index 167799b516..089f94ef07 100644 --- a/cloudformation/aws-iot-topicrule_putiteminput.go +++ b/cloudformation/resources/aws-iot-topicrule_putiteminput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_PutItemInput AWS CloudFormation Resource (AWS::IoT::TopicRule.PutItemInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-putiteminput.html @@ -10,7 +12,7 @@ type AWSIoTTopicRule_PutItemInput struct { TableName string `json:"TableName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTTopicRule_PutItemInput) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_PutItemInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_PutItemInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_republishaction.go b/cloudformation/resources/aws-iot-topicrule_republishaction.go similarity index 94% rename from cloudformation/aws-iot-topicrule_republishaction.go rename to cloudformation/resources/aws-iot-topicrule_republishaction.go index 38452b0865..3adcfaaf22 100644 --- a/cloudformation/aws-iot-topicrule_republishaction.go +++ b/cloudformation/resources/aws-iot-topicrule_republishaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_RepublishAction AWS CloudFormation Resource (AWS::IoT::TopicRule.RepublishAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-republishaction.html @@ -15,7 +17,7 @@ type AWSIoTTopicRule_RepublishAction struct { Topic string `json:"Topic,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTTopicRule_RepublishAction) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_RepublishAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_RepublishAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_s3action.go b/cloudformation/resources/aws-iot-topicrule_s3action.go similarity index 92% rename from cloudformation/aws-iot-topicrule_s3action.go rename to cloudformation/resources/aws-iot-topicrule_s3action.go index d6d397d1c8..a518bc77c8 100644 --- a/cloudformation/aws-iot-topicrule_s3action.go +++ b/cloudformation/resources/aws-iot-topicrule_s3action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_S3Action AWS CloudFormation Resource (AWS::IoT::TopicRule.S3Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-s3action.html @@ -20,7 +22,7 @@ type AWSIoTTopicRule_S3Action struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTTopicRule_S3Action) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_S3Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_S3Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_snsaction.go b/cloudformation/resources/aws-iot-topicrule_snsaction.go similarity index 92% rename from cloudformation/aws-iot-topicrule_snsaction.go rename to cloudformation/resources/aws-iot-topicrule_snsaction.go index c5299a9e13..7d65493f35 100644 --- a/cloudformation/aws-iot-topicrule_snsaction.go +++ b/cloudformation/resources/aws-iot-topicrule_snsaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_SnsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.SnsAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html @@ -20,7 +22,7 @@ type AWSIoTTopicRule_SnsAction struct { TargetArn string `json:"TargetArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTTopicRule_SnsAction) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_SnsAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_SnsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_sqsaction.go b/cloudformation/resources/aws-iot-topicrule_sqsaction.go similarity index 92% rename from cloudformation/aws-iot-topicrule_sqsaction.go rename to cloudformation/resources/aws-iot-topicrule_sqsaction.go index e285a80847..9abdd87212 100644 --- a/cloudformation/aws-iot-topicrule_sqsaction.go +++ b/cloudformation/resources/aws-iot-topicrule_sqsaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_SqsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.SqsAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-sqsaction.html @@ -20,7 +22,7 @@ type AWSIoTTopicRule_SqsAction struct { UseBase64 bool `json:"UseBase64,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTTopicRule_SqsAction) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_SqsAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_SqsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_stepfunctionsaction.go b/cloudformation/resources/aws-iot-topicrule_stepfunctionsaction.go similarity index 95% rename from cloudformation/aws-iot-topicrule_stepfunctionsaction.go rename to cloudformation/resources/aws-iot-topicrule_stepfunctionsaction.go index e777a20650..0cc34c77b4 100644 --- a/cloudformation/aws-iot-topicrule_stepfunctionsaction.go +++ b/cloudformation/resources/aws-iot-topicrule_stepfunctionsaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_StepFunctionsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.StepFunctionsAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html @@ -20,7 +22,7 @@ type AWSIoTTopicRule_StepFunctionsAction struct { StateMachineName string `json:"StateMachineName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTTopicRule_StepFunctionsAction) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_StepFunctionsAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_StepFunctionsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot-topicrule_topicrulepayload.go b/cloudformation/resources/aws-iot-topicrule_topicrulepayload.go similarity index 96% rename from cloudformation/aws-iot-topicrule_topicrulepayload.go rename to cloudformation/resources/aws-iot-topicrule_topicrulepayload.go index 4d5612b364..641456be7b 100644 --- a/cloudformation/aws-iot-topicrule_topicrulepayload.go +++ b/cloudformation/resources/aws-iot-topicrule_topicrulepayload.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTTopicRule_TopicRulePayload AWS CloudFormation Resource (AWS::IoT::TopicRule.TopicRulePayload) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html @@ -35,7 +37,7 @@ type AWSIoTTopicRule_TopicRulePayload struct { Sql string `json:"Sql,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSIoTTopicRule_TopicRulePayload) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTTopicRule_TopicRulePayload) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTTopicRule_TopicRulePayload) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot1click-device.go b/cloudformation/resources/aws-iot1click-device.go similarity index 90% rename from cloudformation/aws-iot1click-device.go rename to cloudformation/resources/aws-iot1click-device.go index b900f766ff..3a40e3db4a 100644 --- a/cloudformation/aws-iot1click-device.go +++ b/cloudformation/resources/aws-iot1click-device.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoT1ClickDevice AWS CloudFormation Resource (AWS::IoT1Click::Device) @@ -21,7 +22,7 @@ type AWSIoT1ClickDevice struct { Enabled bool `json:"Enabled"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSIoT1ClickDevice) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoT1ClickDevice) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoT1ClickDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSIoT1ClickDevice) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot1click-placement.go b/cloudformation/resources/aws-iot1click-placement.go similarity index 91% rename from cloudformation/aws-iot1click-placement.go rename to cloudformation/resources/aws-iot1click-placement.go index b646c04ea0..680ea25acc 100644 --- a/cloudformation/aws-iot1click-placement.go +++ b/cloudformation/resources/aws-iot1click-placement.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoT1ClickPlacement AWS CloudFormation Resource (AWS::IoT1Click::Placement) @@ -31,7 +32,7 @@ type AWSIoT1ClickPlacement struct { ProjectName string `json:"ProjectName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSIoT1ClickPlacement) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoT1ClickPlacement) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoT1ClickPlacement) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSIoT1ClickPlacement) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot1click-project.go b/cloudformation/resources/aws-iot1click-project.go similarity index 91% rename from cloudformation/aws-iot1click-project.go rename to cloudformation/resources/aws-iot1click-project.go index 0d606abe67..54bcd589e7 100644 --- a/cloudformation/aws-iot1click-project.go +++ b/cloudformation/resources/aws-iot1click-project.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoT1ClickProject AWS CloudFormation Resource (AWS::IoT1Click::Project) @@ -26,7 +27,7 @@ type AWSIoT1ClickProject struct { ProjectName string `json:"ProjectName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSIoT1ClickProject) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoT1ClickProject) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoT1ClickProject) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSIoT1ClickProject) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iot1click-project_devicetemplate.go b/cloudformation/resources/aws-iot1click-project_devicetemplate.go similarity index 94% rename from cloudformation/aws-iot1click-project_devicetemplate.go rename to cloudformation/resources/aws-iot1click-project_devicetemplate.go index fd22812f92..d0518b396b 100644 --- a/cloudformation/aws-iot1click-project_devicetemplate.go +++ b/cloudformation/resources/aws-iot1click-project_devicetemplate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoT1ClickProject_DeviceTemplate AWS CloudFormation Resource (AWS::IoT1Click::Project.DeviceTemplate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html @@ -15,7 +17,7 @@ type AWSIoT1ClickProject_DeviceTemplate struct { DeviceType string `json:"DeviceType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoT1ClickProject_DeviceTemplate) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoT1ClickProject_DeviceTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoT1ClickProject_DeviceTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iot1click-project_placementtemplate.go b/cloudformation/resources/aws-iot1click-project_placementtemplate.go similarity index 94% rename from cloudformation/aws-iot1click-project_placementtemplate.go rename to cloudformation/resources/aws-iot1click-project_placementtemplate.go index 9237f317d2..c12de33588 100644 --- a/cloudformation/aws-iot1click-project_placementtemplate.go +++ b/cloudformation/resources/aws-iot1click-project_placementtemplate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoT1ClickProject_PlacementTemplate AWS CloudFormation Resource (AWS::IoT1Click::Project.PlacementTemplate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html @@ -15,7 +17,7 @@ type AWSIoT1ClickProject_PlacementTemplate struct { DeviceTemplates interface{} `json:"DeviceTemplates,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoT1ClickProject_PlacementTemplate) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoT1ClickProject_PlacementTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoT1ClickProject_PlacementTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-channel.go b/cloudformation/resources/aws-iotanalytics-channel.go similarity index 91% rename from cloudformation/aws-iotanalytics-channel.go rename to cloudformation/resources/aws-iotanalytics-channel.go index ea3590923c..8e8fba44b6 100644 --- a/cloudformation/aws-iotanalytics-channel.go +++ b/cloudformation/resources/aws-iotanalytics-channel.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTAnalyticsChannel AWS CloudFormation Resource (AWS::IoTAnalytics::Channel) @@ -26,7 +27,7 @@ type AWSIoTAnalyticsChannel struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSIoTAnalyticsChannel) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsChannel) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSIoTAnalyticsChannel) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iotanalytics-channel_retentionperiod.go b/cloudformation/resources/aws-iotanalytics-channel_retentionperiod.go similarity index 94% rename from cloudformation/aws-iotanalytics-channel_retentionperiod.go rename to cloudformation/resources/aws-iotanalytics-channel_retentionperiod.go index dd2cad0f29..c1a58d2b43 100644 --- a/cloudformation/aws-iotanalytics-channel_retentionperiod.go +++ b/cloudformation/resources/aws-iotanalytics-channel_retentionperiod.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsChannel_RetentionPeriod AWS CloudFormation Resource (AWS::IoTAnalytics::Channel.RetentionPeriod) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-channel-retentionperiod.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsChannel_RetentionPeriod struct { Unlimited bool `json:"Unlimited,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsChannel_RetentionPeriod) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsChannel_RetentionPeriod) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsChannel_RetentionPeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset.go b/cloudformation/resources/aws-iotanalytics-dataset.go similarity index 92% rename from cloudformation/aws-iotanalytics-dataset.go rename to cloudformation/resources/aws-iotanalytics-dataset.go index 00a85879f3..48ddf8f5ee 100644 --- a/cloudformation/aws-iotanalytics-dataset.go +++ b/cloudformation/resources/aws-iotanalytics-dataset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTAnalyticsDataset AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset) @@ -36,7 +37,7 @@ type AWSIoTAnalyticsDataset struct { Triggers []AWSIoTAnalyticsDataset_Trigger `json:"Triggers,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSIoTAnalyticsDataset) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSIoTAnalyticsDataset) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iotanalytics-dataset_action.go b/cloudformation/resources/aws-iotanalytics-dataset_action.go similarity index 95% rename from cloudformation/aws-iotanalytics-dataset_action.go rename to cloudformation/resources/aws-iotanalytics-dataset_action.go index 0267563d8e..0020cbfffb 100644 --- a/cloudformation/aws-iotanalytics-dataset_action.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_Action AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-action.html @@ -20,7 +22,7 @@ type AWSIoTAnalyticsDataset_Action struct { QueryAction *AWSIoTAnalyticsDataset_QueryAction `json:"QueryAction,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTAnalyticsDataset_Action) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_containeraction.go b/cloudformation/resources/aws-iotanalytics-dataset_containeraction.go similarity index 95% rename from cloudformation/aws-iotanalytics-dataset_containeraction.go rename to cloudformation/resources/aws-iotanalytics-dataset_containeraction.go index 048a93092b..b8af0dfcd8 100644 --- a/cloudformation/aws-iotanalytics-dataset_containeraction.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_containeraction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_ContainerAction AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.ContainerAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html @@ -25,7 +27,7 @@ type AWSIoTAnalyticsDataset_ContainerAction struct { Variables []AWSIoTAnalyticsDataset_Variable `json:"Variables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSIoTAnalyticsDataset_ContainerAction) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_ContainerAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_ContainerAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_datasetcontentversionvalue.go b/cloudformation/resources/aws-iotanalytics-dataset_datasetcontentversionvalue.go similarity index 93% rename from cloudformation/aws-iotanalytics-dataset_datasetcontentversionvalue.go rename to cloudformation/resources/aws-iotanalytics-dataset_datasetcontentversionvalue.go index 852c084fff..fc450c17e0 100644 --- a/cloudformation/aws-iotanalytics-dataset_datasetcontentversionvalue.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_datasetcontentversionvalue.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_DatasetContentVersionValue AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.DatasetContentVersionValue) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable-datasetcontentversionvalue.html @@ -10,7 +12,7 @@ type AWSIoTAnalyticsDataset_DatasetContentVersionValue struct { DatasetName string `json:"DatasetName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTAnalyticsDataset_DatasetContentVersionValue) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_DatasetContentVersionValue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_DatasetContentVersionValue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_deltatime.go b/cloudformation/resources/aws-iotanalytics-dataset_deltatime.go similarity index 94% rename from cloudformation/aws-iotanalytics-dataset_deltatime.go rename to cloudformation/resources/aws-iotanalytics-dataset_deltatime.go index 0bdd3a3903..d16f585388 100644 --- a/cloudformation/aws-iotanalytics-dataset_deltatime.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_deltatime.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_DeltaTime AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.DeltaTime) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-deltatime.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsDataset_DeltaTime struct { TimeExpression string `json:"TimeExpression,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsDataset_DeltaTime) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_DeltaTime) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_DeltaTime) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_filter.go b/cloudformation/resources/aws-iotanalytics-dataset_filter.go similarity index 94% rename from cloudformation/aws-iotanalytics-dataset_filter.go rename to cloudformation/resources/aws-iotanalytics-dataset_filter.go index 9a1a034733..e95872beb1 100644 --- a/cloudformation/aws-iotanalytics-dataset_filter.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_filter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_Filter AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Filter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-filter.html @@ -10,7 +12,7 @@ type AWSIoTAnalyticsDataset_Filter struct { DeltaTime *AWSIoTAnalyticsDataset_DeltaTime `json:"DeltaTime,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTAnalyticsDataset_Filter) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_Filter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_Filter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_outputfileurivalue.go b/cloudformation/resources/aws-iotanalytics-dataset_outputfileurivalue.go similarity index 93% rename from cloudformation/aws-iotanalytics-dataset_outputfileurivalue.go rename to cloudformation/resources/aws-iotanalytics-dataset_outputfileurivalue.go index 23ccd50bc0..d0add89a2a 100644 --- a/cloudformation/aws-iotanalytics-dataset_outputfileurivalue.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_outputfileurivalue.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_OutputFileUriValue AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.OutputFileUriValue) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable-outputfileurivalue.html @@ -10,7 +12,7 @@ type AWSIoTAnalyticsDataset_OutputFileUriValue struct { FileName string `json:"FileName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTAnalyticsDataset_OutputFileUriValue) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_OutputFileUriValue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_OutputFileUriValue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_queryaction.go b/cloudformation/resources/aws-iotanalytics-dataset_queryaction.go similarity index 94% rename from cloudformation/aws-iotanalytics-dataset_queryaction.go rename to cloudformation/resources/aws-iotanalytics-dataset_queryaction.go index bf769abed8..1c18496733 100644 --- a/cloudformation/aws-iotanalytics-dataset_queryaction.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_queryaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_QueryAction AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.QueryAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-queryaction.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsDataset_QueryAction struct { SqlQuery string `json:"SqlQuery,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsDataset_QueryAction) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_QueryAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_QueryAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_resourceconfiguration.go b/cloudformation/resources/aws-iotanalytics-dataset_resourceconfiguration.go similarity index 94% rename from cloudformation/aws-iotanalytics-dataset_resourceconfiguration.go rename to cloudformation/resources/aws-iotanalytics-dataset_resourceconfiguration.go index d6ca08840d..fc24b04db3 100644 --- a/cloudformation/aws-iotanalytics-dataset_resourceconfiguration.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_resourceconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_ResourceConfiguration AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.ResourceConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsDataset_ResourceConfiguration struct { VolumeSizeInGB int `json:"VolumeSizeInGB"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsDataset_ResourceConfiguration) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_ResourceConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_ResourceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_retentionperiod.go b/cloudformation/resources/aws-iotanalytics-dataset_retentionperiod.go similarity index 94% rename from cloudformation/aws-iotanalytics-dataset_retentionperiod.go rename to cloudformation/resources/aws-iotanalytics-dataset_retentionperiod.go index 99537165b4..0b530251a7 100644 --- a/cloudformation/aws-iotanalytics-dataset_retentionperiod.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_retentionperiod.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_RetentionPeriod AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.RetentionPeriod) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-retentionperiod.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsDataset_RetentionPeriod struct { Unlimited bool `json:"Unlimited"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsDataset_RetentionPeriod) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_RetentionPeriod) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_RetentionPeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_schedule.go b/cloudformation/resources/aws-iotanalytics-dataset_schedule.go similarity index 94% rename from cloudformation/aws-iotanalytics-dataset_schedule.go rename to cloudformation/resources/aws-iotanalytics-dataset_schedule.go index 78501ddb88..1f43f46d6e 100644 --- a/cloudformation/aws-iotanalytics-dataset_schedule.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_schedule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_Schedule AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Schedule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-trigger-schedule.html @@ -10,7 +12,7 @@ type AWSIoTAnalyticsDataset_Schedule struct { ScheduleExpression string `json:"ScheduleExpression,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTAnalyticsDataset_Schedule) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_Schedule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_Schedule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_trigger.go b/cloudformation/resources/aws-iotanalytics-dataset_trigger.go similarity index 94% rename from cloudformation/aws-iotanalytics-dataset_trigger.go rename to cloudformation/resources/aws-iotanalytics-dataset_trigger.go index ba0b35cf3d..ed5803a372 100644 --- a/cloudformation/aws-iotanalytics-dataset_trigger.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_trigger.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_Trigger AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Trigger) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-trigger.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsDataset_Trigger struct { TriggeringDataset *AWSIoTAnalyticsDataset_TriggeringDataset `json:"TriggeringDataset,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsDataset_Trigger) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_Trigger) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_Trigger) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_triggeringdataset.go b/cloudformation/resources/aws-iotanalytics-dataset_triggeringdataset.go similarity index 93% rename from cloudformation/aws-iotanalytics-dataset_triggeringdataset.go rename to cloudformation/resources/aws-iotanalytics-dataset_triggeringdataset.go index dd826fb7a5..ce96e87f1c 100644 --- a/cloudformation/aws-iotanalytics-dataset_triggeringdataset.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_triggeringdataset.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_TriggeringDataset AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.TriggeringDataset) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-triggeringdataset.html @@ -10,7 +12,7 @@ type AWSIoTAnalyticsDataset_TriggeringDataset struct { DatasetName string `json:"DatasetName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSIoTAnalyticsDataset_TriggeringDataset) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_TriggeringDataset) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_TriggeringDataset) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-dataset_variable.go b/cloudformation/resources/aws-iotanalytics-dataset_variable.go similarity index 96% rename from cloudformation/aws-iotanalytics-dataset_variable.go rename to cloudformation/resources/aws-iotanalytics-dataset_variable.go index 0d91213b01..b72986200e 100644 --- a/cloudformation/aws-iotanalytics-dataset_variable.go +++ b/cloudformation/resources/aws-iotanalytics-dataset_variable.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDataset_Variable AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Variable) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html @@ -30,7 +32,7 @@ type AWSIoTAnalyticsDataset_Variable struct { VariableName string `json:"VariableName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSIoTAnalyticsDataset_Variable) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDataset_Variable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDataset_Variable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-datastore.go b/cloudformation/resources/aws-iotanalytics-datastore.go similarity index 91% rename from cloudformation/aws-iotanalytics-datastore.go rename to cloudformation/resources/aws-iotanalytics-datastore.go index 2895be8571..4f33739c64 100644 --- a/cloudformation/aws-iotanalytics-datastore.go +++ b/cloudformation/resources/aws-iotanalytics-datastore.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTAnalyticsDatastore AWS CloudFormation Resource (AWS::IoTAnalytics::Datastore) @@ -26,7 +27,7 @@ type AWSIoTAnalyticsDatastore struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSIoTAnalyticsDatastore) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDatastore) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDatastore) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSIoTAnalyticsDatastore) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iotanalytics-datastore_retentionperiod.go b/cloudformation/resources/aws-iotanalytics-datastore_retentionperiod.go similarity index 94% rename from cloudformation/aws-iotanalytics-datastore_retentionperiod.go rename to cloudformation/resources/aws-iotanalytics-datastore_retentionperiod.go index ff5b1c577d..4a1b7c0be9 100644 --- a/cloudformation/aws-iotanalytics-datastore_retentionperiod.go +++ b/cloudformation/resources/aws-iotanalytics-datastore_retentionperiod.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsDatastore_RetentionPeriod AWS CloudFormation Resource (AWS::IoTAnalytics::Datastore.RetentionPeriod) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-retentionperiod.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsDatastore_RetentionPeriod struct { Unlimited bool `json:"Unlimited,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsDatastore_RetentionPeriod) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsDatastore_RetentionPeriod) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsDatastore_RetentionPeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline.go b/cloudformation/resources/aws-iotanalytics-pipeline.go similarity index 91% rename from cloudformation/aws-iotanalytics-pipeline.go rename to cloudformation/resources/aws-iotanalytics-pipeline.go index bc10bf23ab..8b5aa2ca37 100644 --- a/cloudformation/aws-iotanalytics-pipeline.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSIoTAnalyticsPipeline AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline) @@ -26,7 +27,7 @@ type AWSIoTAnalyticsPipeline struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSIoTAnalyticsPipeline) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSIoTAnalyticsPipeline) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-iotanalytics-pipeline_activity.go b/cloudformation/resources/aws-iotanalytics-pipeline_activity.go similarity index 97% rename from cloudformation/aws-iotanalytics-pipeline_activity.go rename to cloudformation/resources/aws-iotanalytics-pipeline_activity.go index 24c8848284..84a31dc410 100644 --- a/cloudformation/aws-iotanalytics-pipeline_activity.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_activity.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_Activity AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Activity) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-activity.html @@ -55,7 +57,7 @@ type AWSIoTAnalyticsPipeline_Activity struct { SelectAttributes *AWSIoTAnalyticsPipeline_SelectAttributes `json:"SelectAttributes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSIoTAnalyticsPipeline_Activity) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_Activity) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_Activity) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_addattributes.go b/cloudformation/resources/aws-iotanalytics-pipeline_addattributes.go similarity index 94% rename from cloudformation/aws-iotanalytics-pipeline_addattributes.go rename to cloudformation/resources/aws-iotanalytics-pipeline_addattributes.go index 65d208a8bd..5385d4378d 100644 --- a/cloudformation/aws-iotanalytics-pipeline_addattributes.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_addattributes.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_AddAttributes AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.AddAttributes) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-addattributes.html @@ -20,7 +22,7 @@ type AWSIoTAnalyticsPipeline_AddAttributes struct { Next string `json:"Next,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTAnalyticsPipeline_AddAttributes) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_AddAttributes) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_AddAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_channel.go b/cloudformation/resources/aws-iotanalytics-pipeline_channel.go similarity index 94% rename from cloudformation/aws-iotanalytics-pipeline_channel.go rename to cloudformation/resources/aws-iotanalytics-pipeline_channel.go index ae38d1a432..2c99981d68 100644 --- a/cloudformation/aws-iotanalytics-pipeline_channel.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_channel.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_Channel AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Channel) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-channel.html @@ -20,7 +22,7 @@ type AWSIoTAnalyticsPipeline_Channel struct { Next string `json:"Next,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTAnalyticsPipeline_Channel) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_Channel) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_Channel) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_datastore.go b/cloudformation/resources/aws-iotanalytics-pipeline_datastore.go similarity index 94% rename from cloudformation/aws-iotanalytics-pipeline_datastore.go rename to cloudformation/resources/aws-iotanalytics-pipeline_datastore.go index f31a8bb959..1d63c09740 100644 --- a/cloudformation/aws-iotanalytics-pipeline_datastore.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_datastore.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_Datastore AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Datastore) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-datastore.html @@ -15,7 +17,7 @@ type AWSIoTAnalyticsPipeline_Datastore struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSIoTAnalyticsPipeline_Datastore) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_Datastore) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_Datastore) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_deviceregistryenrich.go b/cloudformation/resources/aws-iotanalytics-pipeline_deviceregistryenrich.go similarity index 95% rename from cloudformation/aws-iotanalytics-pipeline_deviceregistryenrich.go rename to cloudformation/resources/aws-iotanalytics-pipeline_deviceregistryenrich.go index e30e67f7f6..d2a3075c3c 100644 --- a/cloudformation/aws-iotanalytics-pipeline_deviceregistryenrich.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_deviceregistryenrich.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_DeviceRegistryEnrich AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.DeviceRegistryEnrich) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html @@ -30,7 +32,7 @@ type AWSIoTAnalyticsPipeline_DeviceRegistryEnrich struct { ThingName string `json:"ThingName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSIoTAnalyticsPipeline_DeviceRegistryEnrich) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_DeviceRegistryEnrich) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_DeviceRegistryEnrich) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_deviceshadowenrich.go b/cloudformation/resources/aws-iotanalytics-pipeline_deviceshadowenrich.go similarity index 95% rename from cloudformation/aws-iotanalytics-pipeline_deviceshadowenrich.go rename to cloudformation/resources/aws-iotanalytics-pipeline_deviceshadowenrich.go index 5923b04e10..b43b34c9b2 100644 --- a/cloudformation/aws-iotanalytics-pipeline_deviceshadowenrich.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_deviceshadowenrich.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_DeviceShadowEnrich AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.DeviceShadowEnrich) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceshadowenrich.html @@ -30,7 +32,7 @@ type AWSIoTAnalyticsPipeline_DeviceShadowEnrich struct { ThingName string `json:"ThingName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSIoTAnalyticsPipeline_DeviceShadowEnrich) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_DeviceShadowEnrich) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_DeviceShadowEnrich) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_filter.go b/cloudformation/resources/aws-iotanalytics-pipeline_filter.go similarity index 94% rename from cloudformation/aws-iotanalytics-pipeline_filter.go rename to cloudformation/resources/aws-iotanalytics-pipeline_filter.go index ff53308a21..37d9a44b7f 100644 --- a/cloudformation/aws-iotanalytics-pipeline_filter.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_filter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_Filter AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Filter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-filter.html @@ -20,7 +22,7 @@ type AWSIoTAnalyticsPipeline_Filter struct { Next string `json:"Next,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTAnalyticsPipeline_Filter) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_Filter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_Filter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_lambda.go b/cloudformation/resources/aws-iotanalytics-pipeline_lambda.go similarity index 95% rename from cloudformation/aws-iotanalytics-pipeline_lambda.go rename to cloudformation/resources/aws-iotanalytics-pipeline_lambda.go index 293dcff6da..8e8c7a690c 100644 --- a/cloudformation/aws-iotanalytics-pipeline_lambda.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_lambda.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_Lambda AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Lambda) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-lambda.html @@ -25,7 +27,7 @@ type AWSIoTAnalyticsPipeline_Lambda struct { Next string `json:"Next,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSIoTAnalyticsPipeline_Lambda) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_Lambda) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_Lambda) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_math.go b/cloudformation/resources/aws-iotanalytics-pipeline_math.go similarity index 95% rename from cloudformation/aws-iotanalytics-pipeline_math.go rename to cloudformation/resources/aws-iotanalytics-pipeline_math.go index a33d7a4449..d90bfb9207 100644 --- a/cloudformation/aws-iotanalytics-pipeline_math.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_math.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_Math AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Math) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-math.html @@ -25,7 +27,7 @@ type AWSIoTAnalyticsPipeline_Math struct { Next string `json:"Next,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSIoTAnalyticsPipeline_Math) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_Math) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_Math) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_removeattributes.go b/cloudformation/resources/aws-iotanalytics-pipeline_removeattributes.go similarity index 94% rename from cloudformation/aws-iotanalytics-pipeline_removeattributes.go rename to cloudformation/resources/aws-iotanalytics-pipeline_removeattributes.go index b4b2c51c47..0cd79fba13 100644 --- a/cloudformation/aws-iotanalytics-pipeline_removeattributes.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_removeattributes.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_RemoveAttributes AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.RemoveAttributes) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-removeattributes.html @@ -20,7 +22,7 @@ type AWSIoTAnalyticsPipeline_RemoveAttributes struct { Next string `json:"Next,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTAnalyticsPipeline_RemoveAttributes) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_RemoveAttributes) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_RemoveAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-iotanalytics-pipeline_selectattributes.go b/cloudformation/resources/aws-iotanalytics-pipeline_selectattributes.go similarity index 94% rename from cloudformation/aws-iotanalytics-pipeline_selectattributes.go rename to cloudformation/resources/aws-iotanalytics-pipeline_selectattributes.go index d322c63467..7b684707b1 100644 --- a/cloudformation/aws-iotanalytics-pipeline_selectattributes.go +++ b/cloudformation/resources/aws-iotanalytics-pipeline_selectattributes.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSIoTAnalyticsPipeline_SelectAttributes AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.SelectAttributes) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-selectattributes.html @@ -20,7 +22,7 @@ type AWSIoTAnalyticsPipeline_SelectAttributes struct { Next string `json:"Next,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSIoTAnalyticsPipeline_SelectAttributes) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSIoTAnalyticsPipeline_SelectAttributes) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSIoTAnalyticsPipeline_SelectAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesis-stream.go b/cloudformation/resources/aws-kinesis-stream.go similarity index 91% rename from cloudformation/aws-kinesis-stream.go rename to cloudformation/resources/aws-kinesis-stream.go index 49a81cd8dd..f82115c109 100644 --- a/cloudformation/aws-kinesis-stream.go +++ b/cloudformation/resources/aws-kinesis-stream.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisStream AWS CloudFormation Resource (AWS::Kinesis::Stream) @@ -36,7 +37,7 @@ type AWSKinesisStream struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSKinesisStream) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisStream) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisStream) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSKinesisStream) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesis-stream_streamencryption.go b/cloudformation/resources/aws-kinesis-stream_streamencryption.go similarity index 94% rename from cloudformation/aws-kinesis-stream_streamencryption.go rename to cloudformation/resources/aws-kinesis-stream_streamencryption.go index ba9d6dd84b..c88e48dc4f 100644 --- a/cloudformation/aws-kinesis-stream_streamencryption.go +++ b/cloudformation/resources/aws-kinesis-stream_streamencryption.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisStream_StreamEncryption AWS CloudFormation Resource (AWS::Kinesis::Stream.StreamEncryption) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html @@ -15,7 +17,7 @@ type AWSKinesisStream_StreamEncryption struct { KeyId string `json:"KeyId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisStream_StreamEncryption) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisStream_StreamEncryption) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisStream_StreamEncryption) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesis-streamconsumer.go b/cloudformation/resources/aws-kinesis-streamconsumer.go similarity index 90% rename from cloudformation/aws-kinesis-streamconsumer.go rename to cloudformation/resources/aws-kinesis-streamconsumer.go index 6b0592d14b..fb3ab0115c 100644 --- a/cloudformation/aws-kinesis-streamconsumer.go +++ b/cloudformation/resources/aws-kinesis-streamconsumer.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisStreamConsumer AWS CloudFormation Resource (AWS::Kinesis::StreamConsumer) @@ -21,7 +22,7 @@ type AWSKinesisStreamConsumer struct { StreamARN string `json:"StreamARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSKinesisStreamConsumer) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisStreamConsumer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisStreamConsumer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSKinesisStreamConsumer) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalytics-application.go b/cloudformation/resources/aws-kinesisanalytics-application.go similarity index 93% rename from cloudformation/aws-kinesisanalytics-application.go rename to cloudformation/resources/aws-kinesisanalytics-application.go index 6643b6430b..82c007c464 100644 --- a/cloudformation/aws-kinesisanalytics-application.go +++ b/cloudformation/resources/aws-kinesisanalytics-application.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisAnalyticsApplication AWS CloudFormation Resource (AWS::KinesisAnalytics::Application) @@ -31,7 +32,7 @@ type AWSKinesisAnalyticsApplication struct { Inputs []AWSKinesisAnalyticsApplication_Input `json:"Inputs,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSKinesisAnalyticsApplication) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSKinesisAnalyticsApplication) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalytics-application_csvmappingparameters.go b/cloudformation/resources/aws-kinesisanalytics-application_csvmappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-application_csvmappingparameters.go rename to cloudformation/resources/aws-kinesisanalytics-application_csvmappingparameters.go index bde37f73ff..71745a27f1 100644 --- a/cloudformation/aws-kinesisanalytics-application_csvmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_csvmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.CSVMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-csvmappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplication_CSVMappingParameters struct { RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplication_CSVMappingParameters) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_CSVMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_input.go b/cloudformation/resources/aws-kinesisanalytics-application_input.go similarity index 96% rename from cloudformation/aws-kinesisanalytics-application_input.go rename to cloudformation/resources/aws-kinesisanalytics-application_input.go index b72c5dade7..7b7e3cdeff 100644 --- a/cloudformation/aws-kinesisanalytics-application_input.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_input.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_Input AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.Input) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html @@ -35,7 +37,7 @@ type AWSKinesisAnalyticsApplication_Input struct { NamePrefix string `json:"NamePrefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSKinesisAnalyticsApplication_Input) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_Input) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_Input) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_inputlambdaprocessor.go b/cloudformation/resources/aws-kinesisanalytics-application_inputlambdaprocessor.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-application_inputlambdaprocessor.go rename to cloudformation/resources/aws-kinesisanalytics-application_inputlambdaprocessor.go index 3493fbd2a4..716969eff6 100644 --- a/cloudformation/aws-kinesisanalytics-application_inputlambdaprocessor.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_inputlambdaprocessor.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_InputLambdaProcessor AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputLambdaProcessor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplication_InputLambdaProcessor struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplication_InputLambdaProcessor) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_InputLambdaProcessor) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_InputLambdaProcessor) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_inputparallelism.go b/cloudformation/resources/aws-kinesisanalytics-application_inputparallelism.go similarity index 93% rename from cloudformation/aws-kinesisanalytics-application_inputparallelism.go rename to cloudformation/resources/aws-kinesisanalytics-application_inputparallelism.go index 1124b4c69e..20d6c7dd58 100644 --- a/cloudformation/aws-kinesisanalytics-application_inputparallelism.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_inputparallelism.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_InputParallelism AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputParallelism) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputparallelism.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsApplication_InputParallelism struct { Count int `json:"Count,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsApplication_InputParallelism) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_InputParallelism) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_InputParallelism) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_inputprocessingconfiguration.go b/cloudformation/resources/aws-kinesisanalytics-application_inputprocessingconfiguration.go similarity index 93% rename from cloudformation/aws-kinesisanalytics-application_inputprocessingconfiguration.go rename to cloudformation/resources/aws-kinesisanalytics-application_inputprocessingconfiguration.go index 3ac8bd258b..7eaca16407 100644 --- a/cloudformation/aws-kinesisanalytics-application_inputprocessingconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_inputprocessingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_InputProcessingConfiguration AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputProcessingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputprocessingconfiguration.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsApplication_InputProcessingConfiguration struct { InputLambdaProcessor *AWSKinesisAnalyticsApplication_InputLambdaProcessor `json:"InputLambdaProcessor,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsApplication_InputProcessingConfiguration) SetMetadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_InputProcessingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_InputProcessingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_inputschema.go b/cloudformation/resources/aws-kinesisanalytics-application_inputschema.go similarity index 95% rename from cloudformation/aws-kinesisanalytics-application_inputschema.go rename to cloudformation/resources/aws-kinesisanalytics-application_inputschema.go index a01febeff9..eb544fda40 100644 --- a/cloudformation/aws-kinesisanalytics-application_inputschema.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_inputschema.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_InputSchema AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputSchema) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputschema.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsApplication_InputSchema struct { RecordFormat *AWSKinesisAnalyticsApplication_RecordFormat `json:"RecordFormat,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsApplication_InputSchema) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_InputSchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_InputSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_jsonmappingparameters.go b/cloudformation/resources/aws-kinesisanalytics-application_jsonmappingparameters.go similarity index 93% rename from cloudformation/aws-kinesisanalytics-application_jsonmappingparameters.go rename to cloudformation/resources/aws-kinesisanalytics-application_jsonmappingparameters.go index 16d72a5bbe..23588a4eea 100644 --- a/cloudformation/aws-kinesisanalytics-application_jsonmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_jsonmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.JSONMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-jsonmappingparameters.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsApplication_JSONMappingParameters struct { RecordRowPath string `json:"RecordRowPath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsApplication_JSONMappingParameters) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_JSONMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_kinesisfirehoseinput.go b/cloudformation/resources/aws-kinesisanalytics-application_kinesisfirehoseinput.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-application_kinesisfirehoseinput.go rename to cloudformation/resources/aws-kinesisanalytics-application_kinesisfirehoseinput.go index e059006423..df546286da 100644 --- a/cloudformation/aws-kinesisanalytics-application_kinesisfirehoseinput.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_kinesisfirehoseinput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_KinesisFirehoseInput AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.KinesisFirehoseInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisfirehoseinput.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplication_KinesisFirehoseInput struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplication_KinesisFirehoseInput) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_KinesisFirehoseInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_KinesisFirehoseInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_kinesisstreamsinput.go b/cloudformation/resources/aws-kinesisanalytics-application_kinesisstreamsinput.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-application_kinesisstreamsinput.go rename to cloudformation/resources/aws-kinesisanalytics-application_kinesisstreamsinput.go index 271862bec4..06375c7c0d 100644 --- a/cloudformation/aws-kinesisanalytics-application_kinesisstreamsinput.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_kinesisstreamsinput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_KinesisStreamsInput AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.KinesisStreamsInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisstreamsinput.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplication_KinesisStreamsInput struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplication_KinesisStreamsInput) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_KinesisStreamsInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_KinesisStreamsInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_mappingparameters.go b/cloudformation/resources/aws-kinesisanalytics-application_mappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-application_mappingparameters.go rename to cloudformation/resources/aws-kinesisanalytics-application_mappingparameters.go index 25d116c4d1..e265484732 100644 --- a/cloudformation/aws-kinesisanalytics-application_mappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_mappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.MappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-mappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplication_MappingParameters struct { JSONMappingParameters *AWSKinesisAnalyticsApplication_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplication_MappingParameters) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_MappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_recordcolumn.go b/cloudformation/resources/aws-kinesisanalytics-application_recordcolumn.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-application_recordcolumn.go rename to cloudformation/resources/aws-kinesisanalytics-application_recordcolumn.go index 5cc03c65e7..597dfd4386 100644 --- a/cloudformation/aws-kinesisanalytics-application_recordcolumn.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_recordcolumn.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.RecordColumn) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordcolumn.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsApplication_RecordColumn struct { SqlType string `json:"SqlType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsApplication_RecordColumn) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_RecordColumn) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-application_recordformat.go b/cloudformation/resources/aws-kinesisanalytics-application_recordformat.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-application_recordformat.go rename to cloudformation/resources/aws-kinesisanalytics-application_recordformat.go index 5cfb720ff2..eb2b5c7e22 100644 --- a/cloudformation/aws-kinesisanalytics-application_recordformat.go +++ b/cloudformation/resources/aws-kinesisanalytics-application_recordformat.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplication_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.RecordFormat) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordformat.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplication_RecordFormat struct { RecordFormatType string `json:"RecordFormatType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplication_RecordFormat) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplication_RecordFormat) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplication_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationoutput.go b/cloudformation/resources/aws-kinesisanalytics-applicationoutput.go similarity index 92% rename from cloudformation/aws-kinesisanalytics-applicationoutput.go rename to cloudformation/resources/aws-kinesisanalytics-applicationoutput.go index 233a93ba79..9d1dfc2a22 100644 --- a/cloudformation/aws-kinesisanalytics-applicationoutput.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationoutput.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisAnalyticsApplicationOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput) @@ -21,7 +22,7 @@ type AWSKinesisAnalyticsApplicationOutput struct { Output *AWSKinesisAnalyticsApplicationOutput_Output `json:"Output,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSKinesisAnalyticsApplicationOutput) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSKinesisAnalyticsApplicationOutput) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalytics-applicationoutput_destinationschema.go b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_destinationschema.go similarity index 93% rename from cloudformation/aws-kinesisanalytics-applicationoutput_destinationschema.go rename to cloudformation/resources/aws-kinesisanalytics-applicationoutput_destinationschema.go index 56c6419708..f9e5f9c08a 100644 --- a/cloudformation/aws-kinesisanalytics-applicationoutput_destinationschema.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_destinationschema.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationOutput_DestinationSchema AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.DestinationSchema) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-destinationschema.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsApplicationOutput_DestinationSchema struct { RecordFormatType string `json:"RecordFormatType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsApplicationOutput_DestinationSchema) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationOutput_DestinationSchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationOutput_DestinationSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go rename to cloudformation/resources/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go index 97b99f0d4c..1e2ec2f210 100644 --- a/cloudformation/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationOutput_KinesisFirehoseOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.KinesisFirehoseOutput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisfirehoseoutput.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplicationOutput_KinesisFirehoseOutput struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplicationOutput_KinesisFirehoseOutput) SetMetadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationOutput_KinesisFirehoseOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationOutput_KinesisFirehoseOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go rename to cloudformation/resources/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go index b0d12e105a..a90f38dfe7 100644 --- a/cloudformation/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationOutput_KinesisStreamsOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.KinesisStreamsOutput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisstreamsoutput.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplicationOutput_KinesisStreamsOutput struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplicationOutput_KinesisStreamsOutput) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationOutput_KinesisStreamsOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationOutput_KinesisStreamsOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationoutput_lambdaoutput.go b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_lambdaoutput.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationoutput_lambdaoutput.go rename to cloudformation/resources/aws-kinesisanalytics-applicationoutput_lambdaoutput.go index 98c1e66ef1..3cf74ef042 100644 --- a/cloudformation/aws-kinesisanalytics-applicationoutput_lambdaoutput.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_lambdaoutput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationOutput_LambdaOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.LambdaOutput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-lambdaoutput.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplicationOutput_LambdaOutput struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplicationOutput_LambdaOutput) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationOutput_LambdaOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationOutput_LambdaOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationoutput_output.go b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_output.go similarity index 96% rename from cloudformation/aws-kinesisanalytics-applicationoutput_output.go rename to cloudformation/resources/aws-kinesisanalytics-applicationoutput_output.go index d52efe25bd..1ee4f6b47d 100644 --- a/cloudformation/aws-kinesisanalytics-applicationoutput_output.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationoutput_output.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationOutput_Output AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.Output) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html @@ -30,7 +32,7 @@ type AWSKinesisAnalyticsApplicationOutput_Output struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSKinesisAnalyticsApplicationOutput_Output) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationOutput_Output) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationOutput_Output) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource.go similarity index 92% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource.go index 9b96e3dfb2..3ed92b808b 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisAnalyticsApplicationReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource) @@ -21,7 +22,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource struct { ReferenceDataSource *AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceDataSource `json:"ReferenceDataSource,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSKinesisAnalyticsApplicationReferenceDataSource) MarshalJSON() ([]byte return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go index 3dc106bcd4..671b8137d8 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.CSVMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_CSVMappingParameters stru RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_CSVMappingParameters) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_CSVMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go similarity index 93% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go index 1676486824..12c8c60049 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.JSONMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_JSONMappingParameters str RecordRowPath string `json:"RecordRowPath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_JSONMappingParameters // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_JSONMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go index f0a8279d94..acdfd0f5a8 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.MappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-mappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_MappingParameters struct JSONMappingParameters *AWSKinesisAnalyticsApplicationReferenceDataSource_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_MappingParameters) Se // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_MappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go index 494a23e1af..0440c53dcd 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordColumn) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordcolumn.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_RecordColumn struct { SqlType string `json:"SqlType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_RecordColumn) SetMeta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_RecordColumn) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go index 10ac8835c2..90e145b8a1 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordFormat) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordformat.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_RecordFormat struct { RecordFormatType string `json:"RecordFormatType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_RecordFormat) SetMeta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_RecordFormat) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go similarity index 95% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go index 00ad2b782d..be6028988f 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceDataSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referencedatasource.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceDataSource struc TableName string `json:"TableName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceDataSource) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceDataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go similarity index 95% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go index a194267330..61f3d12ec5 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceSchema AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceSchema) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referenceschema.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceSchema struct { RecordFormat *AWSKinesisAnalyticsApplicationReferenceDataSource_RecordFormat `json:"RecordFormat,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceSchema) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceSchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_ReferenceSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go similarity index 94% rename from cloudformation/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go rename to cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go index 07e95cf7fc..21817ebb5c 100644 --- a/cloudformation/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go +++ b/cloudformation/resources/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsApplicationReferenceDataSource_S3ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.S3ReferenceDataSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-s3referencedatasource.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsApplicationReferenceDataSource_S3ReferenceDataSource str ReferenceRoleARN string `json:"ReferenceRoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_S3ReferenceDataSource // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_S3ReferenceDataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsApplicationReferenceDataSource_S3ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application.go b/cloudformation/resources/aws-kinesisanalyticsv2-application.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application.go index b28d3f0554..59651b9e88 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisAnalyticsV2Application AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application) @@ -36,7 +37,7 @@ type AWSKinesisAnalyticsV2Application struct { ServiceExecutionRole string `json:"ServiceExecutionRole,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSKinesisAnalyticsV2Application) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSKinesisAnalyticsV2Application) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go index 0ce4f9d04d..7e42c136a6 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_ApplicationCodeConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ApplicationCodeConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationcodeconfiguration.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2Application_ApplicationCodeConfiguration struct { CodeContentType string `json:"CodeContentType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2Application_ApplicationCodeConfiguration) SetMetad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_ApplicationCodeConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_ApplicationCodeConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_applicationconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_applicationconfiguration.go similarity index 96% rename from cloudformation/aws-kinesisanalyticsv2-application_applicationconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_applicationconfiguration.go index cc941aa4a4..98096dadce 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_applicationconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_applicationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_ApplicationConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ApplicationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationconfiguration.html @@ -30,7 +32,7 @@ type AWSKinesisAnalyticsV2Application_ApplicationConfiguration struct { SqlApplicationConfiguration *AWSKinesisAnalyticsV2Application_SqlApplicationConfiguration `json:"SqlApplicationConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSKinesisAnalyticsV2Application_ApplicationConfiguration) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_ApplicationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_ApplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go index 3f2f924ae4..69ddef9968 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_ApplicationSnapshotConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ApplicationSnapshotConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsnapshotconfiguration.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_ApplicationSnapshotConfiguration struct { SnapshotsEnabled bool `json:"SnapshotsEnabled"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_ApplicationSnapshotConfiguration) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_ApplicationSnapshotConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_ApplicationSnapshotConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_checkpointconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_checkpointconfiguration.go similarity index 95% rename from cloudformation/aws-kinesisanalyticsv2-application_checkpointconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_checkpointconfiguration.go index 9f7581226e..7cb186d061 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_checkpointconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_checkpointconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_CheckpointConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.CheckpointConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-checkpointconfiguration.html @@ -25,7 +27,7 @@ type AWSKinesisAnalyticsV2Application_CheckpointConfiguration struct { MinPauseBetweenCheckpoints int `json:"MinPauseBetweenCheckpoints,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSKinesisAnalyticsV2Application_CheckpointConfiguration) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_CheckpointConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_CheckpointConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_codecontent.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_codecontent.go similarity index 95% rename from cloudformation/aws-kinesisanalyticsv2-application_codecontent.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_codecontent.go index bf965a45e7..28a7c0b96a 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_codecontent.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_codecontent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_CodeContent AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.CodeContent) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-codecontent.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2Application_CodeContent struct { ZipFileContent string `json:"ZipFileContent,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2Application_CodeContent) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_CodeContent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_CodeContent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_csvmappingparameters.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_csvmappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_csvmappingparameters.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_csvmappingparameters.go index 8ea56e59d2..0a17637785 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_csvmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_csvmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.CSVMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-csvmappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2Application_CSVMappingParameters struct { RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2Application_CSVMappingParameters) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_CSVMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_environmentproperties.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_environmentproperties.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_environmentproperties.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_environmentproperties.go index 408ce61180..9e53146c21 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_environmentproperties.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_environmentproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_EnvironmentProperties AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.EnvironmentProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-environmentproperties.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_EnvironmentProperties struct { PropertyGroups []AWSKinesisAnalyticsV2Application_PropertyGroup `json:"PropertyGroups,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_EnvironmentProperties) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_EnvironmentProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_EnvironmentProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go similarity index 95% rename from cloudformation/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go index 6bea12bd31..e939c2de10 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_FlinkApplicationConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.FlinkApplicationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-flinkapplicationconfiguration.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2Application_FlinkApplicationConfiguration struct { ParallelismConfiguration *AWSKinesisAnalyticsV2Application_ParallelismConfiguration `json:"ParallelismConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2Application_FlinkApplicationConfiguration) SetMeta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_FlinkApplicationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_FlinkApplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_input.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_input.go similarity index 96% rename from cloudformation/aws-kinesisanalyticsv2-application_input.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_input.go index 3a1d1f9d91..d6aa2a9a37 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_input.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_input.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_Input AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.Input) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-input.html @@ -35,7 +37,7 @@ type AWSKinesisAnalyticsV2Application_Input struct { NamePrefix string `json:"NamePrefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSKinesisAnalyticsV2Application_Input) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_Input) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_Input) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go index 3e72979d52..2046a96399 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_InputLambdaProcessor AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputLambdaProcessor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputlambdaprocessor.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_InputLambdaProcessor struct { ResourceARN string `json:"ResourceARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_InputLambdaProcessor) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_InputLambdaProcessor) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_InputLambdaProcessor) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_inputparallelism.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputparallelism.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_inputparallelism.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_inputparallelism.go index 39cc22d5db..ff75dee76a 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_inputparallelism.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputparallelism.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_InputParallelism AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputParallelism) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputparallelism.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_InputParallelism struct { Count int `json:"Count,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_InputParallelism) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_InputParallelism) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_InputParallelism) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go index 142ad1f043..a03bca62a2 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_InputProcessingConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputProcessingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputprocessingconfiguration.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_InputProcessingConfiguration struct { InputLambdaProcessor *AWSKinesisAnalyticsV2Application_InputLambdaProcessor `json:"InputLambdaProcessor,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_InputProcessingConfiguration) SetMetad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_InputProcessingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_InputProcessingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_inputschema.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputschema.go similarity index 95% rename from cloudformation/aws-kinesisanalyticsv2-application_inputschema.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_inputschema.go index 689bec4854..8354f4b5f5 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_inputschema.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_inputschema.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_InputSchema AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputSchema) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputschema.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2Application_InputSchema struct { RecordFormat *AWSKinesisAnalyticsV2Application_RecordFormat `json:"RecordFormat,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2Application_InputSchema) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_InputSchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_InputSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_jsonmappingparameters.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_jsonmappingparameters.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_jsonmappingparameters.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_jsonmappingparameters.go index b697af65a9..54d1a31c87 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_jsonmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_jsonmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.JSONMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-jsonmappingparameters.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_JSONMappingParameters struct { RecordRowPath string `json:"RecordRowPath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_JSONMappingParameters) SetMetadata(met // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_JSONMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go index 380e783d25..8580958070 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_KinesisFirehoseInput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.KinesisFirehoseInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-kinesisfirehoseinput.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_KinesisFirehoseInput struct { ResourceARN string `json:"ResourceARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_KinesisFirehoseInput) SetMetadata(meta // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_KinesisFirehoseInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_KinesisFirehoseInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go index ecc9436276..0780e765df 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_KinesisStreamsInput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.KinesisStreamsInput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-kinesisstreamsinput.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_KinesisStreamsInput struct { ResourceARN string `json:"ResourceARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_KinesisStreamsInput) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_KinesisStreamsInput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_KinesisStreamsInput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_mappingparameters.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_mappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_mappingparameters.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_mappingparameters.go index dc70e64623..4405e0069b 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_mappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_mappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.MappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-mappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2Application_MappingParameters struct { JSONMappingParameters *AWSKinesisAnalyticsV2Application_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2Application_MappingParameters) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_MappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_monitoringconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_monitoringconfiguration.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_monitoringconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_monitoringconfiguration.go index be2d16de36..90d4613951 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_monitoringconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_monitoringconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_MonitoringConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.MonitoringConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-monitoringconfiguration.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2Application_MonitoringConfiguration struct { MetricsLevel string `json:"MetricsLevel,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2Application_MonitoringConfiguration) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_MonitoringConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_MonitoringConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_parallelismconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_parallelismconfiguration.go similarity index 95% rename from cloudformation/aws-kinesisanalyticsv2-application_parallelismconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_parallelismconfiguration.go index f763cfc1dd..09113a1f08 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_parallelismconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_parallelismconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_ParallelismConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ParallelismConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-parallelismconfiguration.html @@ -25,7 +27,7 @@ type AWSKinesisAnalyticsV2Application_ParallelismConfiguration struct { ParallelismPerKPU int `json:"ParallelismPerKPU,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSKinesisAnalyticsV2Application_ParallelismConfiguration) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_ParallelismConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_ParallelismConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_propertygroup.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_propertygroup.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_propertygroup.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_propertygroup.go index 6100d143ec..ce6b3f56b9 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_propertygroup.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_propertygroup.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_PropertyGroup AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.PropertyGroup) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-propertygroup.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2Application_PropertyGroup struct { PropertyMap interface{} `json:"PropertyMap,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2Application_PropertyGroup) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_PropertyGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_PropertyGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_recordcolumn.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_recordcolumn.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_recordcolumn.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_recordcolumn.go index 9631103d34..cde6267918 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_recordcolumn.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_recordcolumn.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.RecordColumn) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-recordcolumn.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2Application_RecordColumn struct { SqlType string `json:"SqlType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2Application_RecordColumn) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_RecordColumn) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_recordformat.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_recordformat.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_recordformat.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_recordformat.go index 01bda0a0f9..0bb25eb317 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_recordformat.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_recordformat.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.RecordFormat) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-recordformat.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2Application_RecordFormat struct { RecordFormatType string `json:"RecordFormatType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2Application_RecordFormat) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_RecordFormat) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_s3contentlocation.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_s3contentlocation.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-application_s3contentlocation.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_s3contentlocation.go index e8ce3bf672..1ca6d5ac87 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_s3contentlocation.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_s3contentlocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_S3ContentLocation AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.S3ContentLocation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-s3contentlocation.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2Application_S3ContentLocation struct { ObjectVersion string `json:"ObjectVersion,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2Application_S3ContentLocation) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_S3ContentLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_S3ContentLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go b/cloudformation/resources/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go rename to cloudformation/resources/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go index c5d3cad475..85afe0e1cd 100644 --- a/cloudformation/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2Application_SqlApplicationConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.SqlApplicationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-sqlapplicationconfiguration.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2Application_SqlApplicationConfiguration struct { Inputs []AWSKinesisAnalyticsV2Application_Input `json:"Inputs,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2Application_SqlApplicationConfiguration) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2Application_SqlApplicationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2Application_SqlApplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go similarity index 92% rename from cloudformation/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go index d17350cc14..a3d8b5dc1a 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption) @@ -21,7 +22,7 @@ type AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption struct { CloudWatchLoggingOption *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption `json:"CloudWatchLoggingOption,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption) MarshalJSON() ( return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go index 1eec946d6b..c51ee315f0 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption.CloudWatchLoggingOption) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationcloudwatchloggingoption-cloudwatchloggingoption.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption_CloudWatchLoggingOp LogStreamARN string `json:"LogStreamARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption_CloudWatchLoggi // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationoutput.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput.go similarity index 92% rename from cloudformation/aws-kinesisanalyticsv2-applicationoutput.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput.go index 5ab14f41c8..935cd70c18 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationoutput.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisAnalyticsV2ApplicationOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput) @@ -21,7 +22,7 @@ type AWSKinesisAnalyticsV2ApplicationOutput struct { Output *AWSKinesisAnalyticsV2ApplicationOutput_Output `json:"Output,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSKinesisAnalyticsV2ApplicationOutput) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSKinesisAnalyticsV2ApplicationOutput) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go index bd1a1b18bd..e7910bfab3 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationOutput_DestinationSchema AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.DestinationSchema) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-destinationschema.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2ApplicationOutput_DestinationSchema struct { RecordFormatType string `json:"RecordFormatType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationOutput_DestinationSchema) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationOutput_DestinationSchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationOutput_DestinationSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go index 15bc21c7ac..65f9e08baf 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationOutput_KinesisFirehoseOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.KinesisFirehoseOutput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-kinesisfirehoseoutput.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2ApplicationOutput_KinesisFirehoseOutput struct { ResourceARN string `json:"ResourceARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationOutput_KinesisFirehoseOutput) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationOutput_KinesisFirehoseOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationOutput_KinesisFirehoseOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go index 8747532d4a..376fa29390 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationOutput_KinesisStreamsOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.KinesisStreamsOutput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-kinesisstreamsoutput.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2ApplicationOutput_KinesisStreamsOutput struct { ResourceARN string `json:"ResourceARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationOutput_KinesisStreamsOutput) SetMetadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationOutput_KinesisStreamsOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationOutput_KinesisStreamsOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go index f7568bd7fe..bc70bc7b46 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationOutput_LambdaOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.LambdaOutput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-lambdaoutput.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2ApplicationOutput_LambdaOutput struct { ResourceARN string `json:"ResourceARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationOutput_LambdaOutput) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationOutput_LambdaOutput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationOutput_LambdaOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_output.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_output.go similarity index 96% rename from cloudformation/aws-kinesisanalyticsv2-applicationoutput_output.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_output.go index 541265fa81..5c45e43f65 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationoutput_output.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationoutput_output.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationOutput_Output AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.Output) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-output.html @@ -30,7 +32,7 @@ type AWSKinesisAnalyticsV2ApplicationOutput_Output struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationOutput_Output) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationOutput_Output) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationOutput_Output) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource.go similarity index 92% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource.go index 8aae00ccc8..e5708bd816 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisAnalyticsV2ApplicationReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource) @@ -21,7 +22,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource struct { ReferenceDataSource *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceDataSource `json:"ReferenceDataSource,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSKinesisAnalyticsV2ApplicationReferenceDataSource) MarshalJSON() ([]by return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go index 934af5914e..c2b7187b9b 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.CSVMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-csvmappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_CSVMappingParameters st RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_CSVMappingParameter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_CSVMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go similarity index 93% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go index bce17aa3de..c5b77ea5b9 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.JSONMappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-jsonmappingparameters.html @@ -10,7 +12,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_JSONMappingParameters s RecordRowPath string `json:"RecordRowPath,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_JSONMappingParamete // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_JSONMappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go index ceb8fec33d..9d3d094532 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.MappingParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-mappingparameters.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_MappingParameters struc JSONMappingParameters *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_MappingParameters) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_MappingParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go index 8f438e30dc..81eaabe3d3 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.RecordColumn) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-recordcolumn.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordColumn struct { SqlType string `json:"SqlType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordColumn) SetMe // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordColumn) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go index 8fb613a5c0..b525ef4d71 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.RecordFormat) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-recordformat.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordFormat struct { RecordFormatType string `json:"RecordFormatType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordFormat) SetMe // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordFormat) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go similarity index 95% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go index 2502cb197d..5aa5b9975f 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.ReferenceDataSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceDataSource str TableName string `json:"TableName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceDataSource // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceDataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go similarity index 95% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go index 4e9c792c49..8f554a2c4f 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceSchema AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.ReferenceSchema) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referenceschema.html @@ -20,7 +22,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceSchema struct RecordFormat *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_RecordFormat `json:"RecordFormat,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceSchema) Se // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceSchema) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_ReferenceSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go similarity index 94% rename from cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go rename to cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go index ed511c8268..72f35303d2 100644 --- a/cloudformation/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go +++ b/cloudformation/resources/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisAnalyticsV2ApplicationReferenceDataSource_S3ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.S3ReferenceDataSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html @@ -15,7 +17,7 @@ type AWSKinesisAnalyticsV2ApplicationReferenceDataSource_S3ReferenceDataSource s FileKey string `json:"FileKey,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_S3ReferenceDataSour // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_S3ReferenceDataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisAnalyticsV2ApplicationReferenceDataSource_S3ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream.go similarity index 95% rename from cloudformation/aws-kinesisfirehose-deliverystream.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream.go index b097356839..8e01b0dcea 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKinesisFirehoseDeliveryStream AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream) @@ -51,7 +52,7 @@ type AWSKinesisFirehoseDeliveryStream struct { SplunkDestinationConfiguration *AWSKinesisFirehoseDeliveryStream_SplunkDestinationConfiguration `json:"SplunkDestinationConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSKinesisFirehoseDeliveryStream) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSKinesisFirehoseDeliveryStream) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_bufferinghints.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_bufferinghints.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_bufferinghints.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_bufferinghints.go index 26f4e49f7b..1815dec1be 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_bufferinghints.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_bufferinghints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_BufferingHints AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.BufferingHints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-bufferinghints.html @@ -15,7 +17,7 @@ type AWSKinesisFirehoseDeliveryStream_BufferingHints struct { SizeInMBs int `json:"SizeInMBs"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_BufferingHints) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_BufferingHints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_BufferingHints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go index 237d7bd9f3..c89b0c98b8 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_CloudWatchLoggingOptions AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.CloudWatchLoggingOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-cloudwatchloggingoptions.html @@ -20,7 +22,7 @@ type AWSKinesisFirehoseDeliveryStream_CloudWatchLoggingOptions struct { LogStreamName string `json:"LogStreamName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_CloudWatchLoggingOptions) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_CloudWatchLoggingOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_CloudWatchLoggingOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_copycommand.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_copycommand.go similarity index 95% rename from cloudformation/aws-kinesisfirehose-deliverystream_copycommand.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_copycommand.go index 4ecc5878c1..1ab3064b98 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_copycommand.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_copycommand.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_CopyCommand AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.CopyCommand) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html @@ -20,7 +22,7 @@ type AWSKinesisFirehoseDeliveryStream_CopyCommand struct { DataTableName string `json:"DataTableName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_CopyCommand) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_CopyCommand) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_CopyCommand) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go index c6789b4848..1778f6d892 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_ElasticsearchBufferingHints AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ElasticsearchBufferingHints) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchbufferinghints.html @@ -15,7 +17,7 @@ type AWSKinesisFirehoseDeliveryStream_ElasticsearchBufferingHints struct { SizeInMBs int `json:"SizeInMBs"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchBufferingHints) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchBufferingHints) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchBufferingHints) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go similarity index 97% rename from cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go index 3e836eb46b..9e166e08f0 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_ElasticsearchDestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ElasticsearchDestinationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html @@ -60,7 +62,7 @@ type AWSKinesisFirehoseDeliveryStream_ElasticsearchDestinationConfiguration stru TypeName string `json:"TypeName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -100,6 +102,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchDestinationConfiguration) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchDestinationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchDestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go similarity index 93% rename from cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go index ba6c5714ff..1957c3b696 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_ElasticsearchRetryOptions AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ElasticsearchRetryOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchretryoptions.html @@ -10,7 +12,7 @@ type AWSKinesisFirehoseDeliveryStream_ElasticsearchRetryOptions struct { DurationInSeconds int `json:"DurationInSeconds"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchRetryOptions) SetMetadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchRetryOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_ElasticsearchRetryOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go index 1698c9651c..a161bb76b1 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_EncryptionConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.EncryptionConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-encryptionconfiguration.html @@ -15,7 +17,7 @@ type AWSKinesisFirehoseDeliveryStream_EncryptionConfiguration struct { NoEncryptionConfig string `json:"NoEncryptionConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_EncryptionConfiguration) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_EncryptionConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_EncryptionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go similarity index 97% rename from cloudformation/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go index 1724a7b729..99d61eee88 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_ExtendedS3DestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ExtendedS3DestinationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html @@ -55,7 +57,7 @@ type AWSKinesisFirehoseDeliveryStream_ExtendedS3DestinationConfiguration struct S3BackupMode string `json:"S3BackupMode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_ExtendedS3DestinationConfiguration) Se // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_ExtendedS3DestinationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_ExtendedS3DestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go index d215367fbf..c118bd02f0 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_KinesisStreamSourceConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.KinesisStreamSourceConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html @@ -15,7 +17,7 @@ type AWSKinesisFirehoseDeliveryStream_KinesisStreamSourceConfiguration struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_KinesisStreamSourceConfiguration) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_KinesisStreamSourceConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_KinesisStreamSourceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go similarity index 93% rename from cloudformation/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go index a9686e76c2..dc1947be88 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_KMSEncryptionConfig AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.KMSEncryptionConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kmsencryptionconfig.html @@ -10,7 +12,7 @@ type AWSKinesisFirehoseDeliveryStream_KMSEncryptionConfig struct { AWSKMSKeyARN string `json:"AWSKMSKeyARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_KMSEncryptionConfig) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_KMSEncryptionConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_KMSEncryptionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_processingconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_processingconfiguration.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_processingconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_processingconfiguration.go index e78883d01a..3847458caf 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_processingconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_processingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_ProcessingConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ProcessingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processingconfiguration.html @@ -15,7 +17,7 @@ type AWSKinesisFirehoseDeliveryStream_ProcessingConfiguration struct { Processors []AWSKinesisFirehoseDeliveryStream_Processor `json:"Processors,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_ProcessingConfiguration) SetMetadata(m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_ProcessingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_ProcessingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_processor.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_processor.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_processor.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_processor.go index 9c49d801d1..d8015b0849 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_processor.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_processor.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_Processor AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.Processor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processor.html @@ -15,7 +17,7 @@ type AWSKinesisFirehoseDeliveryStream_Processor struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_Processor) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_Processor) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_Processor) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_processorparameter.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_processorparameter.go similarity index 94% rename from cloudformation/aws-kinesisfirehose-deliverystream_processorparameter.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_processorparameter.go index 124602912f..24ca86a6e1 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_processorparameter.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_processorparameter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_ProcessorParameter AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ProcessorParameter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processorparameter.html @@ -15,7 +17,7 @@ type AWSKinesisFirehoseDeliveryStream_ProcessorParameter struct { ParameterValue string `json:"ParameterValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_ProcessorParameter) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_ProcessorParameter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_ProcessorParameter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go similarity index 96% rename from cloudformation/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go index c89e232f04..4bfe5bb816 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_RedshiftDestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.RedshiftDestinationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html @@ -45,7 +47,7 @@ type AWSKinesisFirehoseDeliveryStream_RedshiftDestinationConfiguration struct { Username string `json:"Username,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -85,6 +87,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_RedshiftDestinationConfiguration) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_RedshiftDestinationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_RedshiftDestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go similarity index 96% rename from cloudformation/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go index 6a30919676..e271672229 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_S3DestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.S3DestinationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html @@ -40,7 +42,7 @@ type AWSKinesisFirehoseDeliveryStream_S3DestinationConfiguration struct { RoleARN string `json:"RoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_S3DestinationConfiguration) SetMetadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_S3DestinationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_S3DestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go similarity index 96% rename from cloudformation/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go index e987e5e0a3..3d7e79c48a 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_SplunkDestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.SplunkDestinationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html @@ -50,7 +52,7 @@ type AWSKinesisFirehoseDeliveryStream_SplunkDestinationConfiguration struct { S3Configuration *AWSKinesisFirehoseDeliveryStream_S3DestinationConfiguration `json:"S3Configuration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -90,6 +92,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_SplunkDestinationConfiguration) SetMet // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_SplunkDestinationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_SplunkDestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kinesisfirehose-deliverystream_splunkretryoptions.go b/cloudformation/resources/aws-kinesisfirehose-deliverystream_splunkretryoptions.go similarity index 93% rename from cloudformation/aws-kinesisfirehose-deliverystream_splunkretryoptions.go rename to cloudformation/resources/aws-kinesisfirehose-deliverystream_splunkretryoptions.go index b3a4f213a8..d4a9872f0b 100644 --- a/cloudformation/aws-kinesisfirehose-deliverystream_splunkretryoptions.go +++ b/cloudformation/resources/aws-kinesisfirehose-deliverystream_splunkretryoptions.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSKinesisFirehoseDeliveryStream_SplunkRetryOptions AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.SplunkRetryOptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkretryoptions.html @@ -10,7 +12,7 @@ type AWSKinesisFirehoseDeliveryStream_SplunkRetryOptions struct { DurationInSeconds int `json:"DurationInSeconds"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSKinesisFirehoseDeliveryStream_SplunkRetryOptions) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKinesisFirehoseDeliveryStream_SplunkRetryOptions) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKinesisFirehoseDeliveryStream_SplunkRetryOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-kms-alias.go b/cloudformation/resources/aws-kms-alias.go similarity index 90% rename from cloudformation/aws-kms-alias.go rename to cloudformation/resources/aws-kms-alias.go index b10ffa7021..134ee859c5 100644 --- a/cloudformation/aws-kms-alias.go +++ b/cloudformation/resources/aws-kms-alias.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKMSAlias AWS CloudFormation Resource (AWS::KMS::Alias) @@ -21,7 +22,7 @@ type AWSKMSAlias struct { TargetKeyId string `json:"TargetKeyId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSKMSAlias) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKMSAlias) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKMSAlias) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSKMSAlias) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-kms-key.go b/cloudformation/resources/aws-kms-key.go similarity index 92% rename from cloudformation/aws-kms-key.go rename to cloudformation/resources/aws-kms-key.go index a07eb8c540..f36d8dac5f 100644 --- a/cloudformation/aws-kms-key.go +++ b/cloudformation/resources/aws-kms-key.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSKMSKey AWS CloudFormation Resource (AWS::KMS::Key) @@ -46,7 +47,7 @@ type AWSKMSKey struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSKMSKey) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSKMSKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSKMSKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSKMSKey) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-lambda-alias.go b/cloudformation/resources/aws-lambda-alias.go similarity index 89% rename from cloudformation/aws-lambda-alias.go rename to cloudformation/resources/aws-lambda-alias.go index f9aa9cc455..a5f812d495 100644 --- a/cloudformation/aws-lambda-alias.go +++ b/cloudformation/resources/aws-lambda-alias.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLambdaAlias AWS CloudFormation Resource (AWS::Lambda::Alias) @@ -36,10 +37,10 @@ type AWSLambdaAlias struct { RoutingConfig *AWSLambdaAlias_AliasRoutingConfiguration `json:"RoutingConfig,omitempty"` // _updatePolicy represents a CloudFormation UpdatePolicy - _updatePolicy *UpdatePolicy + _updatePolicy *policies.UpdatePolicy // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -79,13 +80,13 @@ func (r *AWSLambdaAlias) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaAlias) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaAlias) 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 *AWSLambdaAlias) SetUpdatePolicy(policy *UpdatePolicy) { +func (r *AWSLambdaAlias) SetUpdatePolicy(policy *policies.UpdatePolicy) { r._updatePolicy = policy } @@ -96,10 +97,10 @@ func (r AWSLambdaAlias) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` - UpdatePolicy *UpdatePolicy `json:"UpdatePolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + UpdatePolicy *policies.UpdatePolicy `json:"UpdatePolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-lambda-alias_aliasroutingconfiguration.go b/cloudformation/resources/aws-lambda-alias_aliasroutingconfiguration.go similarity index 94% rename from cloudformation/aws-lambda-alias_aliasroutingconfiguration.go rename to cloudformation/resources/aws-lambda-alias_aliasroutingconfiguration.go index 2fa70e1b56..7b89f196ac 100644 --- a/cloudformation/aws-lambda-alias_aliasroutingconfiguration.go +++ b/cloudformation/resources/aws-lambda-alias_aliasroutingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaAlias_AliasRoutingConfiguration AWS CloudFormation Resource (AWS::Lambda::Alias.AliasRoutingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html @@ -10,7 +12,7 @@ type AWSLambdaAlias_AliasRoutingConfiguration struct { AdditionalVersionWeights []AWSLambdaAlias_VersionWeight `json:"AdditionalVersionWeights,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSLambdaAlias_AliasRoutingConfiguration) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaAlias_AliasRoutingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaAlias_AliasRoutingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-alias_versionweight.go b/cloudformation/resources/aws-lambda-alias_versionweight.go similarity index 94% rename from cloudformation/aws-lambda-alias_versionweight.go rename to cloudformation/resources/aws-lambda-alias_versionweight.go index 668b399c67..aa7a0d35da 100644 --- a/cloudformation/aws-lambda-alias_versionweight.go +++ b/cloudformation/resources/aws-lambda-alias_versionweight.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaAlias_VersionWeight AWS CloudFormation Resource (AWS::Lambda::Alias.VersionWeight) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html @@ -15,7 +17,7 @@ type AWSLambdaAlias_VersionWeight struct { FunctionWeight float64 `json:"FunctionWeight"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSLambdaAlias_VersionWeight) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaAlias_VersionWeight) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaAlias_VersionWeight) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-eventsourcemapping.go b/cloudformation/resources/aws-lambda-eventsourcemapping.go similarity index 92% rename from cloudformation/aws-lambda-eventsourcemapping.go rename to cloudformation/resources/aws-lambda-eventsourcemapping.go index fa073225e8..5ca89eba71 100644 --- a/cloudformation/aws-lambda-eventsourcemapping.go +++ b/cloudformation/resources/aws-lambda-eventsourcemapping.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLambdaEventSourceMapping AWS CloudFormation Resource (AWS::Lambda::EventSourceMapping) @@ -36,7 +37,7 @@ type AWSLambdaEventSourceMapping struct { StartingPosition string `json:"StartingPosition,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSLambdaEventSourceMapping) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaEventSourceMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaEventSourceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSLambdaEventSourceMapping) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-lambda-function.go b/cloudformation/resources/aws-lambda-function.go similarity index 94% rename from cloudformation/aws-lambda-function.go rename to cloudformation/resources/aws-lambda-function.go index a74294c7db..6f1ad8d2b1 100644 --- a/cloudformation/aws-lambda-function.go +++ b/cloudformation/resources/aws-lambda-function.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLambdaFunction AWS CloudFormation Resource (AWS::Lambda::Function) @@ -91,7 +92,7 @@ type AWSLambdaFunction struct { VpcConfig *AWSLambdaFunction_VpcConfig `json:"VpcConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -131,7 +132,7 @@ func (r *AWSLambdaFunction) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaFunction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaFunction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -142,9 +143,9 @@ func (r AWSLambdaFunction) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-lambda-function_code.go b/cloudformation/resources/aws-lambda-function_code.go similarity index 93% rename from cloudformation/aws-lambda-function_code.go rename to cloudformation/resources/aws-lambda-function_code.go index 08e25f3e7b..d3d254b3bb 100644 --- a/cloudformation/aws-lambda-function_code.go +++ b/cloudformation/resources/aws-lambda-function_code.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaFunction_Code AWS CloudFormation Resource (AWS::Lambda::Function.Code) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html @@ -25,7 +27,7 @@ type AWSLambdaFunction_Code struct { ZipFile string `json:"ZipFile,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSLambdaFunction_Code) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaFunction_Code) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaFunction_Code) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-function_deadletterconfig.go b/cloudformation/resources/aws-lambda-function_deadletterconfig.go similarity index 93% rename from cloudformation/aws-lambda-function_deadletterconfig.go rename to cloudformation/resources/aws-lambda-function_deadletterconfig.go index 54f169c9b4..164a766014 100644 --- a/cloudformation/aws-lambda-function_deadletterconfig.go +++ b/cloudformation/resources/aws-lambda-function_deadletterconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaFunction_DeadLetterConfig AWS CloudFormation Resource (AWS::Lambda::Function.DeadLetterConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html @@ -10,7 +12,7 @@ type AWSLambdaFunction_DeadLetterConfig struct { TargetArn string `json:"TargetArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSLambdaFunction_DeadLetterConfig) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaFunction_DeadLetterConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaFunction_DeadLetterConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-function_environment.go b/cloudformation/resources/aws-lambda-function_environment.go similarity index 94% rename from cloudformation/aws-lambda-function_environment.go rename to cloudformation/resources/aws-lambda-function_environment.go index 7136e02822..bcb8ca3154 100644 --- a/cloudformation/aws-lambda-function_environment.go +++ b/cloudformation/resources/aws-lambda-function_environment.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaFunction_Environment AWS CloudFormation Resource (AWS::Lambda::Function.Environment) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html @@ -10,7 +12,7 @@ type AWSLambdaFunction_Environment struct { Variables map[string]string `json:"Variables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSLambdaFunction_Environment) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaFunction_Environment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaFunction_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-function_tracingconfig.go b/cloudformation/resources/aws-lambda-function_tracingconfig.go similarity index 93% rename from cloudformation/aws-lambda-function_tracingconfig.go rename to cloudformation/resources/aws-lambda-function_tracingconfig.go index f350f34942..d48b5fbc4b 100644 --- a/cloudformation/aws-lambda-function_tracingconfig.go +++ b/cloudformation/resources/aws-lambda-function_tracingconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaFunction_TracingConfig AWS CloudFormation Resource (AWS::Lambda::Function.TracingConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html @@ -10,7 +12,7 @@ type AWSLambdaFunction_TracingConfig struct { Mode string `json:"Mode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSLambdaFunction_TracingConfig) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaFunction_TracingConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaFunction_TracingConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-function_vpcconfig.go b/cloudformation/resources/aws-lambda-function_vpcconfig.go similarity index 92% rename from cloudformation/aws-lambda-function_vpcconfig.go rename to cloudformation/resources/aws-lambda-function_vpcconfig.go index 722fc52916..c70163924a 100644 --- a/cloudformation/aws-lambda-function_vpcconfig.go +++ b/cloudformation/resources/aws-lambda-function_vpcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaFunction_VpcConfig AWS CloudFormation Resource (AWS::Lambda::Function.VpcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html @@ -15,7 +17,7 @@ type AWSLambdaFunction_VpcConfig struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSLambdaFunction_VpcConfig) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaFunction_VpcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaFunction_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-layerversion.go b/cloudformation/resources/aws-lambda-layerversion.go similarity index 92% rename from cloudformation/aws-lambda-layerversion.go rename to cloudformation/resources/aws-lambda-layerversion.go index fec7eca581..a90955741f 100644 --- a/cloudformation/aws-lambda-layerversion.go +++ b/cloudformation/resources/aws-lambda-layerversion.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLambdaLayerVersion AWS CloudFormation Resource (AWS::Lambda::LayerVersion) @@ -36,7 +37,7 @@ type AWSLambdaLayerVersion struct { LicenseInfo string `json:"LicenseInfo,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSLambdaLayerVersion) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaLayerVersion) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaLayerVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSLambdaLayerVersion) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-lambda-layerversion_content.go b/cloudformation/resources/aws-lambda-layerversion_content.go similarity index 95% rename from cloudformation/aws-lambda-layerversion_content.go rename to cloudformation/resources/aws-lambda-layerversion_content.go index 8b788425fe..d7ac6d2714 100644 --- a/cloudformation/aws-lambda-layerversion_content.go +++ b/cloudformation/resources/aws-lambda-layerversion_content.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLambdaLayerVersion_Content AWS CloudFormation Resource (AWS::Lambda::LayerVersion.Content) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html @@ -20,7 +22,7 @@ type AWSLambdaLayerVersion_Content struct { S3ObjectVersion string `json:"S3ObjectVersion,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSLambdaLayerVersion_Content) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaLayerVersion_Content) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaLayerVersion_Content) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-lambda-layerversionpermission.go b/cloudformation/resources/aws-lambda-layerversionpermission.go similarity index 93% rename from cloudformation/aws-lambda-layerversionpermission.go rename to cloudformation/resources/aws-lambda-layerversionpermission.go index 12d871304d..6dda3582ff 100644 --- a/cloudformation/aws-lambda-layerversionpermission.go +++ b/cloudformation/resources/aws-lambda-layerversionpermission.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLambdaLayerVersionPermission AWS CloudFormation Resource (AWS::Lambda::LayerVersionPermission) @@ -31,7 +32,7 @@ type AWSLambdaLayerVersionPermission struct { Principal string `json:"Principal,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSLambdaLayerVersionPermission) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaLayerVersionPermission) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaLayerVersionPermission) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSLambdaLayerVersionPermission) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-lambda-permission.go b/cloudformation/resources/aws-lambda-permission.go similarity index 92% rename from cloudformation/aws-lambda-permission.go rename to cloudformation/resources/aws-lambda-permission.go index 4b47cfd9e9..265e809c07 100644 --- a/cloudformation/aws-lambda-permission.go +++ b/cloudformation/resources/aws-lambda-permission.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLambdaPermission AWS CloudFormation Resource (AWS::Lambda::Permission) @@ -41,7 +42,7 @@ type AWSLambdaPermission struct { SourceArn string `json:"SourceArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSLambdaPermission) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaPermission) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaPermission) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSLambdaPermission) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-lambda-version.go b/cloudformation/resources/aws-lambda-version.go similarity index 90% rename from cloudformation/aws-lambda-version.go rename to cloudformation/resources/aws-lambda-version.go index c08fa10a06..7ca82468b1 100644 --- a/cloudformation/aws-lambda-version.go +++ b/cloudformation/resources/aws-lambda-version.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLambdaVersion AWS CloudFormation Resource (AWS::Lambda::Version) @@ -26,7 +27,7 @@ type AWSLambdaVersion struct { FunctionName string `json:"FunctionName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSLambdaVersion) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLambdaVersion) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLambdaVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSLambdaVersion) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-logs-destination.go b/cloudformation/resources/aws-logs-destination.go similarity index 91% rename from cloudformation/aws-logs-destination.go rename to cloudformation/resources/aws-logs-destination.go index 0adc3d99f1..8a7de650ce 100644 --- a/cloudformation/aws-logs-destination.go +++ b/cloudformation/resources/aws-logs-destination.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLogsDestination AWS CloudFormation Resource (AWS::Logs::Destination) @@ -31,7 +32,7 @@ type AWSLogsDestination struct { TargetArn string `json:"TargetArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSLogsDestination) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLogsDestination) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLogsDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSLogsDestination) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-logs-loggroup.go b/cloudformation/resources/aws-logs-loggroup.go similarity index 90% rename from cloudformation/aws-logs-loggroup.go rename to cloudformation/resources/aws-logs-loggroup.go index 79a67b7dad..1b60b4224a 100644 --- a/cloudformation/aws-logs-loggroup.go +++ b/cloudformation/resources/aws-logs-loggroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLogsLogGroup AWS CloudFormation Resource (AWS::Logs::LogGroup) @@ -21,7 +22,7 @@ type AWSLogsLogGroup struct { RetentionInDays int `json:"RetentionInDays,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSLogsLogGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLogsLogGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLogsLogGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSLogsLogGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-logs-logstream.go b/cloudformation/resources/aws-logs-logstream.go similarity index 90% rename from cloudformation/aws-logs-logstream.go rename to cloudformation/resources/aws-logs-logstream.go index 95a5b59bf1..cb99c54101 100644 --- a/cloudformation/aws-logs-logstream.go +++ b/cloudformation/resources/aws-logs-logstream.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLogsLogStream AWS CloudFormation Resource (AWS::Logs::LogStream) @@ -21,7 +22,7 @@ type AWSLogsLogStream struct { LogStreamName string `json:"LogStreamName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSLogsLogStream) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLogsLogStream) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLogsLogStream) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSLogsLogStream) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-logs-metricfilter.go b/cloudformation/resources/aws-logs-metricfilter.go similarity index 91% rename from cloudformation/aws-logs-metricfilter.go rename to cloudformation/resources/aws-logs-metricfilter.go index 27c97db21b..c6eb426682 100644 --- a/cloudformation/aws-logs-metricfilter.go +++ b/cloudformation/resources/aws-logs-metricfilter.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLogsMetricFilter AWS CloudFormation Resource (AWS::Logs::MetricFilter) @@ -26,7 +27,7 @@ type AWSLogsMetricFilter struct { MetricTransformations []AWSLogsMetricFilter_MetricTransformation `json:"MetricTransformations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSLogsMetricFilter) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLogsMetricFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLogsMetricFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSLogsMetricFilter) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-logs-metricfilter_metrictransformation.go b/cloudformation/resources/aws-logs-metricfilter_metrictransformation.go similarity index 95% rename from cloudformation/aws-logs-metricfilter_metrictransformation.go rename to cloudformation/resources/aws-logs-metricfilter_metrictransformation.go index 15c41adab0..87681176b2 100644 --- a/cloudformation/aws-logs-metricfilter_metrictransformation.go +++ b/cloudformation/resources/aws-logs-metricfilter_metrictransformation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSLogsMetricFilter_MetricTransformation AWS CloudFormation Resource (AWS::Logs::MetricFilter.MetricTransformation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html @@ -25,7 +27,7 @@ type AWSLogsMetricFilter_MetricTransformation struct { MetricValue string `json:"MetricValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSLogsMetricFilter_MetricTransformation) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLogsMetricFilter_MetricTransformation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLogsMetricFilter_MetricTransformation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-logs-subscriptionfilter.go b/cloudformation/resources/aws-logs-subscriptionfilter.go similarity index 91% rename from cloudformation/aws-logs-subscriptionfilter.go rename to cloudformation/resources/aws-logs-subscriptionfilter.go index 14b891132b..4f2e78437a 100644 --- a/cloudformation/aws-logs-subscriptionfilter.go +++ b/cloudformation/resources/aws-logs-subscriptionfilter.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSLogsSubscriptionFilter AWS CloudFormation Resource (AWS::Logs::SubscriptionFilter) @@ -31,7 +32,7 @@ type AWSLogsSubscriptionFilter struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSLogsSubscriptionFilter) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSLogsSubscriptionFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSLogsSubscriptionFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSLogsSubscriptionFilter) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-neptune-dbcluster.go b/cloudformation/resources/aws-neptune-dbcluster.go similarity index 94% rename from cloudformation/aws-neptune-dbcluster.go rename to cloudformation/resources/aws-neptune-dbcluster.go index 743931ab2e..caa534bb2f 100644 --- a/cloudformation/aws-neptune-dbcluster.go +++ b/cloudformation/resources/aws-neptune-dbcluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSNeptuneDBCluster AWS CloudFormation Resource (AWS::Neptune::DBCluster) @@ -81,7 +82,7 @@ type AWSNeptuneDBCluster struct { VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -121,7 +122,7 @@ func (r *AWSNeptuneDBCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSNeptuneDBCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSNeptuneDBCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -132,9 +133,9 @@ func (r AWSNeptuneDBCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-neptune-dbclusterparametergroup.go b/cloudformation/resources/aws-neptune-dbclusterparametergroup.go similarity index 93% rename from cloudformation/aws-neptune-dbclusterparametergroup.go rename to cloudformation/resources/aws-neptune-dbclusterparametergroup.go index b534a1dd93..f65d1ec1e6 100644 --- a/cloudformation/aws-neptune-dbclusterparametergroup.go +++ b/cloudformation/resources/aws-neptune-dbclusterparametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSNeptuneDBClusterParameterGroup AWS CloudFormation Resource (AWS::Neptune::DBClusterParameterGroup) @@ -36,7 +37,7 @@ type AWSNeptuneDBClusterParameterGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSNeptuneDBClusterParameterGroup) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSNeptuneDBClusterParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSNeptuneDBClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSNeptuneDBClusterParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-neptune-dbinstance.go b/cloudformation/resources/aws-neptune-dbinstance.go similarity index 94% rename from cloudformation/aws-neptune-dbinstance.go rename to cloudformation/resources/aws-neptune-dbinstance.go index b73ff14e09..4f2da7cf45 100644 --- a/cloudformation/aws-neptune-dbinstance.go +++ b/cloudformation/resources/aws-neptune-dbinstance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSNeptuneDBInstance AWS CloudFormation Resource (AWS::Neptune::DBInstance) @@ -66,7 +67,7 @@ type AWSNeptuneDBInstance struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -106,7 +107,7 @@ func (r *AWSNeptuneDBInstance) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSNeptuneDBInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSNeptuneDBInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -117,9 +118,9 @@ func (r AWSNeptuneDBInstance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-neptune-dbparametergroup.go b/cloudformation/resources/aws-neptune-dbparametergroup.go similarity index 91% rename from cloudformation/aws-neptune-dbparametergroup.go rename to cloudformation/resources/aws-neptune-dbparametergroup.go index 8996b71208..4558565b39 100644 --- a/cloudformation/aws-neptune-dbparametergroup.go +++ b/cloudformation/resources/aws-neptune-dbparametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSNeptuneDBParameterGroup AWS CloudFormation Resource (AWS::Neptune::DBParameterGroup) @@ -36,7 +37,7 @@ type AWSNeptuneDBParameterGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSNeptuneDBParameterGroup) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSNeptuneDBParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSNeptuneDBParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSNeptuneDBParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-neptune-dbsubnetgroup.go b/cloudformation/resources/aws-neptune-dbsubnetgroup.go similarity index 91% rename from cloudformation/aws-neptune-dbsubnetgroup.go rename to cloudformation/resources/aws-neptune-dbsubnetgroup.go index 579c6f484b..4a77a87cb8 100644 --- a/cloudformation/aws-neptune-dbsubnetgroup.go +++ b/cloudformation/resources/aws-neptune-dbsubnetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSNeptuneDBSubnetGroup AWS CloudFormation Resource (AWS::Neptune::DBSubnetGroup) @@ -31,7 +32,7 @@ type AWSNeptuneDBSubnetGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSNeptuneDBSubnetGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSNeptuneDBSubnetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSNeptuneDBSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSNeptuneDBSubnetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworks-app.go b/cloudformation/resources/aws-opsworks-app.go similarity index 93% rename from cloudformation/aws-opsworks-app.go rename to cloudformation/resources/aws-opsworks-app.go index 48e775ea2d..613415c56b 100644 --- a/cloudformation/aws-opsworks-app.go +++ b/cloudformation/resources/aws-opsworks-app.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksApp AWS CloudFormation Resource (AWS::OpsWorks::App) @@ -71,7 +72,7 @@ type AWSOpsWorksApp struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -111,7 +112,7 @@ func (r *AWSOpsWorksApp) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksApp) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksApp) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -122,9 +123,9 @@ func (r AWSOpsWorksApp) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworks-app_datasource.go b/cloudformation/resources/aws-opsworks-app_datasource.go similarity index 92% rename from cloudformation/aws-opsworks-app_datasource.go rename to cloudformation/resources/aws-opsworks-app_datasource.go index e7eb0ebed4..0da08d621f 100644 --- a/cloudformation/aws-opsworks-app_datasource.go +++ b/cloudformation/resources/aws-opsworks-app_datasource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksApp_DataSource AWS CloudFormation Resource (AWS::OpsWorks::App.DataSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-datasource.html @@ -20,7 +22,7 @@ type AWSOpsWorksApp_DataSource struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSOpsWorksApp_DataSource) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksApp_DataSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksApp_DataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-app_environmentvariable.go b/cloudformation/resources/aws-opsworks-app_environmentvariable.go similarity index 94% rename from cloudformation/aws-opsworks-app_environmentvariable.go rename to cloudformation/resources/aws-opsworks-app_environmentvariable.go index d4f1fda0aa..40ff4c2553 100644 --- a/cloudformation/aws-opsworks-app_environmentvariable.go +++ b/cloudformation/resources/aws-opsworks-app_environmentvariable.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksApp_EnvironmentVariable AWS CloudFormation Resource (AWS::OpsWorks::App.EnvironmentVariable) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-environment.html @@ -20,7 +22,7 @@ type AWSOpsWorksApp_EnvironmentVariable struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSOpsWorksApp_EnvironmentVariable) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksApp_EnvironmentVariable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksApp_EnvironmentVariable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-app_source.go b/cloudformation/resources/aws-opsworks-app_source.go similarity index 94% rename from cloudformation/aws-opsworks-app_source.go rename to cloudformation/resources/aws-opsworks-app_source.go index 2b78e2f2ae..fead4ceff2 100644 --- a/cloudformation/aws-opsworks-app_source.go +++ b/cloudformation/resources/aws-opsworks-app_source.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksApp_Source AWS CloudFormation Resource (AWS::OpsWorks::App.Source) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html @@ -35,7 +37,7 @@ type AWSOpsWorksApp_Source struct { Username string `json:"Username,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSOpsWorksApp_Source) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksApp_Source) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksApp_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-app_sslconfiguration.go b/cloudformation/resources/aws-opsworks-app_sslconfiguration.go similarity index 95% rename from cloudformation/aws-opsworks-app_sslconfiguration.go rename to cloudformation/resources/aws-opsworks-app_sslconfiguration.go index 4c3304c423..8753192fdf 100644 --- a/cloudformation/aws-opsworks-app_sslconfiguration.go +++ b/cloudformation/resources/aws-opsworks-app_sslconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksApp_SslConfiguration AWS CloudFormation Resource (AWS::OpsWorks::App.SslConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-sslconfiguration.html @@ -20,7 +22,7 @@ type AWSOpsWorksApp_SslConfiguration struct { PrivateKey string `json:"PrivateKey,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSOpsWorksApp_SslConfiguration) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksApp_SslConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksApp_SslConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-elasticloadbalancerattachment.go b/cloudformation/resources/aws-opsworks-elasticloadbalancerattachment.go similarity index 92% rename from cloudformation/aws-opsworks-elasticloadbalancerattachment.go rename to cloudformation/resources/aws-opsworks-elasticloadbalancerattachment.go index 08c607417a..c900d214ee 100644 --- a/cloudformation/aws-opsworks-elasticloadbalancerattachment.go +++ b/cloudformation/resources/aws-opsworks-elasticloadbalancerattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksElasticLoadBalancerAttachment AWS CloudFormation Resource (AWS::OpsWorks::ElasticLoadBalancerAttachment) @@ -21,7 +22,7 @@ type AWSOpsWorksElasticLoadBalancerAttachment struct { LayerId string `json:"LayerId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSOpsWorksElasticLoadBalancerAttachment) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksElasticLoadBalancerAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksElasticLoadBalancerAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSOpsWorksElasticLoadBalancerAttachment) MarshalJSON() ([]byte, error) return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworks-instance.go b/cloudformation/resources/aws-opsworks-instance.go similarity index 95% rename from cloudformation/aws-opsworks-instance.go rename to cloudformation/resources/aws-opsworks-instance.go index 055fcf023f..5f72ee79d7 100644 --- a/cloudformation/aws-opsworks-instance.go +++ b/cloudformation/resources/aws-opsworks-instance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksInstance AWS CloudFormation Resource (AWS::OpsWorks::Instance) @@ -116,7 +117,7 @@ type AWSOpsWorksInstance struct { Volumes []string `json:"Volumes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -156,7 +157,7 @@ func (r *AWSOpsWorksInstance) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -167,9 +168,9 @@ func (r AWSOpsWorksInstance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworks-instance_blockdevicemapping.go b/cloudformation/resources/aws-opsworks-instance_blockdevicemapping.go similarity index 95% rename from cloudformation/aws-opsworks-instance_blockdevicemapping.go rename to cloudformation/resources/aws-opsworks-instance_blockdevicemapping.go index 5565db0dab..9517e0701d 100644 --- a/cloudformation/aws-opsworks-instance_blockdevicemapping.go +++ b/cloudformation/resources/aws-opsworks-instance_blockdevicemapping.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksInstance_BlockDeviceMapping AWS CloudFormation Resource (AWS::OpsWorks::Instance.BlockDeviceMapping) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-blockdevicemapping.html @@ -25,7 +27,7 @@ type AWSOpsWorksInstance_BlockDeviceMapping struct { VirtualName string `json:"VirtualName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSOpsWorksInstance_BlockDeviceMapping) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksInstance_BlockDeviceMapping) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksInstance_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-instance_ebsblockdevice.go b/cloudformation/resources/aws-opsworks-instance_ebsblockdevice.go similarity index 95% rename from cloudformation/aws-opsworks-instance_ebsblockdevice.go rename to cloudformation/resources/aws-opsworks-instance_ebsblockdevice.go index d2acb255b1..6edc31a19d 100644 --- a/cloudformation/aws-opsworks-instance_ebsblockdevice.go +++ b/cloudformation/resources/aws-opsworks-instance_ebsblockdevice.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksInstance_EbsBlockDevice AWS CloudFormation Resource (AWS::OpsWorks::Instance.EbsBlockDevice) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html @@ -30,7 +32,7 @@ type AWSOpsWorksInstance_EbsBlockDevice struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSOpsWorksInstance_EbsBlockDevice) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksInstance_EbsBlockDevice) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksInstance_EbsBlockDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-instance_timebasedautoscaling.go b/cloudformation/resources/aws-opsworks-instance_timebasedautoscaling.go similarity index 96% rename from cloudformation/aws-opsworks-instance_timebasedautoscaling.go rename to cloudformation/resources/aws-opsworks-instance_timebasedautoscaling.go index 38de7e9b99..a7c2de8999 100644 --- a/cloudformation/aws-opsworks-instance_timebasedautoscaling.go +++ b/cloudformation/resources/aws-opsworks-instance_timebasedautoscaling.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksInstance_TimeBasedAutoScaling AWS CloudFormation Resource (AWS::OpsWorks::Instance.TimeBasedAutoScaling) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html @@ -40,7 +42,7 @@ type AWSOpsWorksInstance_TimeBasedAutoScaling struct { Wednesday map[string]string `json:"Wednesday,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSOpsWorksInstance_TimeBasedAutoScaling) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksInstance_TimeBasedAutoScaling) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksInstance_TimeBasedAutoScaling) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-layer.go b/cloudformation/resources/aws-opsworks-layer.go similarity index 95% rename from cloudformation/aws-opsworks-layer.go rename to cloudformation/resources/aws-opsworks-layer.go index 1e4de40063..d30dadbdfc 100644 --- a/cloudformation/aws-opsworks-layer.go +++ b/cloudformation/resources/aws-opsworks-layer.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksLayer AWS CloudFormation Resource (AWS::OpsWorks::Layer) @@ -106,7 +107,7 @@ type AWSOpsWorksLayer struct { VolumeConfigurations []AWSOpsWorksLayer_VolumeConfiguration `json:"VolumeConfigurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -146,7 +147,7 @@ func (r *AWSOpsWorksLayer) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksLayer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksLayer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -157,9 +158,9 @@ func (r AWSOpsWorksLayer) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworks-layer_autoscalingthresholds.go b/cloudformation/resources/aws-opsworks-layer_autoscalingthresholds.go similarity index 96% rename from cloudformation/aws-opsworks-layer_autoscalingthresholds.go rename to cloudformation/resources/aws-opsworks-layer_autoscalingthresholds.go index d0a6d33bf2..15798ea4b8 100644 --- a/cloudformation/aws-opsworks-layer_autoscalingthresholds.go +++ b/cloudformation/resources/aws-opsworks-layer_autoscalingthresholds.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksLayer_AutoScalingThresholds AWS CloudFormation Resource (AWS::OpsWorks::Layer.AutoScalingThresholds) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html @@ -35,7 +37,7 @@ type AWSOpsWorksLayer_AutoScalingThresholds struct { ThresholdsWaitTime int `json:"ThresholdsWaitTime,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSOpsWorksLayer_AutoScalingThresholds) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksLayer_AutoScalingThresholds) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksLayer_AutoScalingThresholds) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-layer_lifecycleeventconfiguration.go b/cloudformation/resources/aws-opsworks-layer_lifecycleeventconfiguration.go similarity index 94% rename from cloudformation/aws-opsworks-layer_lifecycleeventconfiguration.go rename to cloudformation/resources/aws-opsworks-layer_lifecycleeventconfiguration.go index 14dd69c99d..203015688d 100644 --- a/cloudformation/aws-opsworks-layer_lifecycleeventconfiguration.go +++ b/cloudformation/resources/aws-opsworks-layer_lifecycleeventconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksLayer_LifecycleEventConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Layer.LifecycleEventConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration.html @@ -10,7 +12,7 @@ type AWSOpsWorksLayer_LifecycleEventConfiguration struct { ShutdownEventConfiguration *AWSOpsWorksLayer_ShutdownEventConfiguration `json:"ShutdownEventConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSOpsWorksLayer_LifecycleEventConfiguration) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksLayer_LifecycleEventConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksLayer_LifecycleEventConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-layer_loadbasedautoscaling.go b/cloudformation/resources/aws-opsworks-layer_loadbasedautoscaling.go similarity index 95% rename from cloudformation/aws-opsworks-layer_loadbasedautoscaling.go rename to cloudformation/resources/aws-opsworks-layer_loadbasedautoscaling.go index 258656d99b..e09037e781 100644 --- a/cloudformation/aws-opsworks-layer_loadbasedautoscaling.go +++ b/cloudformation/resources/aws-opsworks-layer_loadbasedautoscaling.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksLayer_LoadBasedAutoScaling AWS CloudFormation Resource (AWS::OpsWorks::Layer.LoadBasedAutoScaling) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html @@ -20,7 +22,7 @@ type AWSOpsWorksLayer_LoadBasedAutoScaling struct { UpScaling *AWSOpsWorksLayer_AutoScalingThresholds `json:"UpScaling,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSOpsWorksLayer_LoadBasedAutoScaling) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksLayer_LoadBasedAutoScaling) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksLayer_LoadBasedAutoScaling) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-layer_recipes.go b/cloudformation/resources/aws-opsworks-layer_recipes.go similarity index 94% rename from cloudformation/aws-opsworks-layer_recipes.go rename to cloudformation/resources/aws-opsworks-layer_recipes.go index 1a5fd777d3..8b84b0b94b 100644 --- a/cloudformation/aws-opsworks-layer_recipes.go +++ b/cloudformation/resources/aws-opsworks-layer_recipes.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksLayer_Recipes AWS CloudFormation Resource (AWS::OpsWorks::Layer.Recipes) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html @@ -30,7 +32,7 @@ type AWSOpsWorksLayer_Recipes struct { Undeploy []string `json:"Undeploy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSOpsWorksLayer_Recipes) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksLayer_Recipes) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksLayer_Recipes) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-layer_shutdowneventconfiguration.go b/cloudformation/resources/aws-opsworks-layer_shutdowneventconfiguration.go similarity index 94% rename from cloudformation/aws-opsworks-layer_shutdowneventconfiguration.go rename to cloudformation/resources/aws-opsworks-layer_shutdowneventconfiguration.go index 14ebc3f782..549429301e 100644 --- a/cloudformation/aws-opsworks-layer_shutdowneventconfiguration.go +++ b/cloudformation/resources/aws-opsworks-layer_shutdowneventconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksLayer_ShutdownEventConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Layer.ShutdownEventConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration-shutdowneventconfiguration.html @@ -15,7 +17,7 @@ type AWSOpsWorksLayer_ShutdownEventConfiguration struct { ExecutionTimeout int `json:"ExecutionTimeout,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSOpsWorksLayer_ShutdownEventConfiguration) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksLayer_ShutdownEventConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksLayer_ShutdownEventConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-layer_volumeconfiguration.go b/cloudformation/resources/aws-opsworks-layer_volumeconfiguration.go similarity index 96% rename from cloudformation/aws-opsworks-layer_volumeconfiguration.go rename to cloudformation/resources/aws-opsworks-layer_volumeconfiguration.go index bcbefe59b0..f276c33046 100644 --- a/cloudformation/aws-opsworks-layer_volumeconfiguration.go +++ b/cloudformation/resources/aws-opsworks-layer_volumeconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksLayer_VolumeConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Layer.VolumeConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html @@ -40,7 +42,7 @@ type AWSOpsWorksLayer_VolumeConfiguration struct { VolumeType string `json:"VolumeType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSOpsWorksLayer_VolumeConfiguration) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksLayer_VolumeConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksLayer_VolumeConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-stack.go b/cloudformation/resources/aws-opsworks-stack.go similarity index 96% rename from cloudformation/aws-opsworks-stack.go rename to cloudformation/resources/aws-opsworks-stack.go index d01dca6598..22fa4f8475 100644 --- a/cloudformation/aws-opsworks-stack.go +++ b/cloudformation/resources/aws-opsworks-stack.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksStack AWS CloudFormation Resource (AWS::OpsWorks::Stack) @@ -136,7 +137,7 @@ type AWSOpsWorksStack struct { VpcId string `json:"VpcId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -176,7 +177,7 @@ func (r *AWSOpsWorksStack) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksStack) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksStack) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -187,9 +188,9 @@ func (r AWSOpsWorksStack) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworks-stack_chefconfiguration.go b/cloudformation/resources/aws-opsworks-stack_chefconfiguration.go similarity index 94% rename from cloudformation/aws-opsworks-stack_chefconfiguration.go rename to cloudformation/resources/aws-opsworks-stack_chefconfiguration.go index 9cd9a24e41..da7594a67a 100644 --- a/cloudformation/aws-opsworks-stack_chefconfiguration.go +++ b/cloudformation/resources/aws-opsworks-stack_chefconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksStack_ChefConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Stack.ChefConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-chefconfiguration.html @@ -15,7 +17,7 @@ type AWSOpsWorksStack_ChefConfiguration struct { ManageBerkshelf bool `json:"ManageBerkshelf,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSOpsWorksStack_ChefConfiguration) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksStack_ChefConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksStack_ChefConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-stack_elasticip.go b/cloudformation/resources/aws-opsworks-stack_elasticip.go similarity index 92% rename from cloudformation/aws-opsworks-stack_elasticip.go rename to cloudformation/resources/aws-opsworks-stack_elasticip.go index f0a5a08674..485160e354 100644 --- a/cloudformation/aws-opsworks-stack_elasticip.go +++ b/cloudformation/resources/aws-opsworks-stack_elasticip.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksStack_ElasticIp AWS CloudFormation Resource (AWS::OpsWorks::Stack.ElasticIp) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-elasticip.html @@ -15,7 +17,7 @@ type AWSOpsWorksStack_ElasticIp struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSOpsWorksStack_ElasticIp) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksStack_ElasticIp) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksStack_ElasticIp) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-stack_rdsdbinstance.go b/cloudformation/resources/aws-opsworks-stack_rdsdbinstance.go similarity index 95% rename from cloudformation/aws-opsworks-stack_rdsdbinstance.go rename to cloudformation/resources/aws-opsworks-stack_rdsdbinstance.go index b6a1f98e03..1b01cb6479 100644 --- a/cloudformation/aws-opsworks-stack_rdsdbinstance.go +++ b/cloudformation/resources/aws-opsworks-stack_rdsdbinstance.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksStack_RdsDbInstance AWS CloudFormation Resource (AWS::OpsWorks::Stack.RdsDbInstance) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-rdsdbinstance.html @@ -20,7 +22,7 @@ type AWSOpsWorksStack_RdsDbInstance struct { RdsDbInstanceArn string `json:"RdsDbInstanceArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSOpsWorksStack_RdsDbInstance) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksStack_RdsDbInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksStack_RdsDbInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-stack_source.go b/cloudformation/resources/aws-opsworks-stack_source.go similarity index 94% rename from cloudformation/aws-opsworks-stack_source.go rename to cloudformation/resources/aws-opsworks-stack_source.go index 53d89727e1..2a9376dfbe 100644 --- a/cloudformation/aws-opsworks-stack_source.go +++ b/cloudformation/resources/aws-opsworks-stack_source.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksStack_Source AWS CloudFormation Resource (AWS::OpsWorks::Stack.Source) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html @@ -35,7 +37,7 @@ type AWSOpsWorksStack_Source struct { Username string `json:"Username,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSOpsWorksStack_Source) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksStack_Source) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksStack_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-stack_stackconfigurationmanager.go b/cloudformation/resources/aws-opsworks-stack_stackconfigurationmanager.go similarity index 94% rename from cloudformation/aws-opsworks-stack_stackconfigurationmanager.go rename to cloudformation/resources/aws-opsworks-stack_stackconfigurationmanager.go index 97027148e0..a8b482c4b5 100644 --- a/cloudformation/aws-opsworks-stack_stackconfigurationmanager.go +++ b/cloudformation/resources/aws-opsworks-stack_stackconfigurationmanager.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksStack_StackConfigurationManager AWS CloudFormation Resource (AWS::OpsWorks::Stack.StackConfigurationManager) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html @@ -15,7 +17,7 @@ type AWSOpsWorksStack_StackConfigurationManager struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSOpsWorksStack_StackConfigurationManager) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksStack_StackConfigurationManager) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksStack_StackConfigurationManager) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-opsworks-userprofile.go b/cloudformation/resources/aws-opsworks-userprofile.go similarity index 91% rename from cloudformation/aws-opsworks-userprofile.go rename to cloudformation/resources/aws-opsworks-userprofile.go index 23b074a185..ef1a1bd4ab 100644 --- a/cloudformation/aws-opsworks-userprofile.go +++ b/cloudformation/resources/aws-opsworks-userprofile.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksUserProfile AWS CloudFormation Resource (AWS::OpsWorks::UserProfile) @@ -31,7 +32,7 @@ type AWSOpsWorksUserProfile struct { SshUsername string `json:"SshUsername,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSOpsWorksUserProfile) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksUserProfile) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksUserProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSOpsWorksUserProfile) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworks-volume.go b/cloudformation/resources/aws-opsworks-volume.go similarity index 91% rename from cloudformation/aws-opsworks-volume.go rename to cloudformation/resources/aws-opsworks-volume.go index 39a5385692..0ae5f60a8c 100644 --- a/cloudformation/aws-opsworks-volume.go +++ b/cloudformation/resources/aws-opsworks-volume.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksVolume AWS CloudFormation Resource (AWS::OpsWorks::Volume) @@ -31,7 +32,7 @@ type AWSOpsWorksVolume struct { StackId string `json:"StackId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSOpsWorksVolume) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksVolume) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksVolume) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSOpsWorksVolume) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworkscm-server.go b/cloudformation/resources/aws-opsworkscm-server.go similarity index 95% rename from cloudformation/aws-opsworkscm-server.go rename to cloudformation/resources/aws-opsworkscm-server.go index bcdc7415d4..204e063268 100644 --- a/cloudformation/aws-opsworkscm-server.go +++ b/cloudformation/resources/aws-opsworkscm-server.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSOpsWorksCMServer AWS CloudFormation Resource (AWS::OpsWorksCM::Server) @@ -96,7 +97,7 @@ type AWSOpsWorksCMServer struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -136,7 +137,7 @@ func (r *AWSOpsWorksCMServer) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksCMServer) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksCMServer) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -147,9 +148,9 @@ func (r AWSOpsWorksCMServer) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-opsworkscm-server_engineattribute.go b/cloudformation/resources/aws-opsworkscm-server_engineattribute.go similarity index 94% rename from cloudformation/aws-opsworkscm-server_engineattribute.go rename to cloudformation/resources/aws-opsworkscm-server_engineattribute.go index a01e708e88..89dd5877bc 100644 --- a/cloudformation/aws-opsworkscm-server_engineattribute.go +++ b/cloudformation/resources/aws-opsworkscm-server_engineattribute.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSOpsWorksCMServer_EngineAttribute AWS CloudFormation Resource (AWS::OpsWorksCM::Server.EngineAttribute) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworkscm-server-engineattribute.html @@ -15,7 +17,7 @@ type AWSOpsWorksCMServer_EngineAttribute struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSOpsWorksCMServer_EngineAttribute) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSOpsWorksCMServer_EngineAttribute) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSOpsWorksCMServer_EngineAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ram-resourceshare.go b/cloudformation/resources/aws-ram-resourceshare.go similarity index 91% rename from cloudformation/aws-ram-resourceshare.go rename to cloudformation/resources/aws-ram-resourceshare.go index 39c3a70ab2..9775ccd990 100644 --- a/cloudformation/aws-ram-resourceshare.go +++ b/cloudformation/resources/aws-ram-resourceshare.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRAMResourceShare AWS CloudFormation Resource (AWS::RAM::ResourceShare) @@ -36,7 +37,7 @@ type AWSRAMResourceShare struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRAMResourceShare) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRAMResourceShare) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRAMResourceShare) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRAMResourceShare) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-dbcluster.go b/cloudformation/resources/aws-rds-dbcluster.go similarity index 96% rename from cloudformation/aws-rds-dbcluster.go rename to cloudformation/resources/aws-rds-dbcluster.go index 35cd942eb0..64fdac2889 100644 --- a/cloudformation/aws-rds-dbcluster.go +++ b/cloudformation/resources/aws-rds-dbcluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSDBCluster AWS CloudFormation Resource (AWS::RDS::DBCluster) @@ -141,7 +142,7 @@ type AWSRDSDBCluster struct { VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -181,7 +182,7 @@ func (r *AWSRDSDBCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -192,9 +193,9 @@ func (r AWSRDSDBCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-dbcluster_scalingconfiguration.go b/cloudformation/resources/aws-rds-dbcluster_scalingconfiguration.go similarity index 95% rename from cloudformation/aws-rds-dbcluster_scalingconfiguration.go rename to cloudformation/resources/aws-rds-dbcluster_scalingconfiguration.go index 9f47a05e79..800169ed4c 100644 --- a/cloudformation/aws-rds-dbcluster_scalingconfiguration.go +++ b/cloudformation/resources/aws-rds-dbcluster_scalingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRDSDBCluster_ScalingConfiguration AWS CloudFormation Resource (AWS::RDS::DBCluster.ScalingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-scalingconfiguration.html @@ -25,7 +27,7 @@ type AWSRDSDBCluster_ScalingConfiguration struct { SecondsUntilAutoPause int `json:"SecondsUntilAutoPause,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSRDSDBCluster_ScalingConfiguration) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBCluster_ScalingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBCluster_ScalingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-rds-dbclusterparametergroup.go b/cloudformation/resources/aws-rds-dbclusterparametergroup.go similarity index 92% rename from cloudformation/aws-rds-dbclusterparametergroup.go rename to cloudformation/resources/aws-rds-dbclusterparametergroup.go index 1304e9ec65..17f321b732 100644 --- a/cloudformation/aws-rds-dbclusterparametergroup.go +++ b/cloudformation/resources/aws-rds-dbclusterparametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSDBClusterParameterGroup AWS CloudFormation Resource (AWS::RDS::DBClusterParameterGroup) @@ -31,7 +32,7 @@ type AWSRDSDBClusterParameterGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSRDSDBClusterParameterGroup) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBClusterParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSRDSDBClusterParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-dbinstance.go b/cloudformation/resources/aws-rds-dbinstance.go similarity index 97% rename from cloudformation/aws-rds-dbinstance.go rename to cloudformation/resources/aws-rds-dbinstance.go index fbc3df03fd..1acdfd5e33 100644 --- a/cloudformation/aws-rds-dbinstance.go +++ b/cloudformation/resources/aws-rds-dbinstance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSDBInstance AWS CloudFormation Resource (AWS::RDS::DBInstance) @@ -256,7 +257,7 @@ type AWSRDSDBInstance struct { VPCSecurityGroups []string `json:"VPCSecurityGroups,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -296,7 +297,7 @@ func (r *AWSRDSDBInstance) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -307,9 +308,9 @@ func (r AWSRDSDBInstance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-dbinstance_processorfeature.go b/cloudformation/resources/aws-rds-dbinstance_processorfeature.go similarity index 94% rename from cloudformation/aws-rds-dbinstance_processorfeature.go rename to cloudformation/resources/aws-rds-dbinstance_processorfeature.go index f9275f84f1..424d19b263 100644 --- a/cloudformation/aws-rds-dbinstance_processorfeature.go +++ b/cloudformation/resources/aws-rds-dbinstance_processorfeature.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRDSDBInstance_ProcessorFeature AWS CloudFormation Resource (AWS::RDS::DBInstance.ProcessorFeature) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html @@ -15,7 +17,7 @@ type AWSRDSDBInstance_ProcessorFeature struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRDSDBInstance_ProcessorFeature) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBInstance_ProcessorFeature) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBInstance_ProcessorFeature) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-rds-dbparametergroup.go b/cloudformation/resources/aws-rds-dbparametergroup.go similarity index 91% rename from cloudformation/aws-rds-dbparametergroup.go rename to cloudformation/resources/aws-rds-dbparametergroup.go index 79ea0228e0..6c9a10d6bc 100644 --- a/cloudformation/aws-rds-dbparametergroup.go +++ b/cloudformation/resources/aws-rds-dbparametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSDBParameterGroup AWS CloudFormation Resource (AWS::RDS::DBParameterGroup) @@ -31,7 +32,7 @@ type AWSRDSDBParameterGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSRDSDBParameterGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSRDSDBParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-dbsecuritygroup.go b/cloudformation/resources/aws-rds-dbsecuritygroup.go similarity index 91% rename from cloudformation/aws-rds-dbsecuritygroup.go rename to cloudformation/resources/aws-rds-dbsecuritygroup.go index 1f2d0ead4f..83ba8bf575 100644 --- a/cloudformation/aws-rds-dbsecuritygroup.go +++ b/cloudformation/resources/aws-rds-dbsecuritygroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSDBSecurityGroup AWS CloudFormation Resource (AWS::RDS::DBSecurityGroup) @@ -31,7 +32,7 @@ type AWSRDSDBSecurityGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSRDSDBSecurityGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBSecurityGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBSecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSRDSDBSecurityGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-dbsecuritygroup_ingress.go b/cloudformation/resources/aws-rds-dbsecuritygroup_ingress.go similarity index 95% rename from cloudformation/aws-rds-dbsecuritygroup_ingress.go rename to cloudformation/resources/aws-rds-dbsecuritygroup_ingress.go index 275c604ffc..41ece7985d 100644 --- a/cloudformation/aws-rds-dbsecuritygroup_ingress.go +++ b/cloudformation/resources/aws-rds-dbsecuritygroup_ingress.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRDSDBSecurityGroup_Ingress AWS CloudFormation Resource (AWS::RDS::DBSecurityGroup.Ingress) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html @@ -25,7 +27,7 @@ type AWSRDSDBSecurityGroup_Ingress struct { EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSRDSDBSecurityGroup_Ingress) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBSecurityGroup_Ingress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBSecurityGroup_Ingress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-rds-dbsecuritygroupingress.go b/cloudformation/resources/aws-rds-dbsecuritygroupingress.go similarity index 93% rename from cloudformation/aws-rds-dbsecuritygroupingress.go rename to cloudformation/resources/aws-rds-dbsecuritygroupingress.go index c0ab9d45c2..cea9a3b7f5 100644 --- a/cloudformation/aws-rds-dbsecuritygroupingress.go +++ b/cloudformation/resources/aws-rds-dbsecuritygroupingress.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSDBSecurityGroupIngress AWS CloudFormation Resource (AWS::RDS::DBSecurityGroupIngress) @@ -36,7 +37,7 @@ type AWSRDSDBSecurityGroupIngress struct { EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRDSDBSecurityGroupIngress) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBSecurityGroupIngress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBSecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRDSDBSecurityGroupIngress) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-dbsubnetgroup.go b/cloudformation/resources/aws-rds-dbsubnetgroup.go similarity index 91% rename from cloudformation/aws-rds-dbsubnetgroup.go rename to cloudformation/resources/aws-rds-dbsubnetgroup.go index 277a96ce43..5b40ac6677 100644 --- a/cloudformation/aws-rds-dbsubnetgroup.go +++ b/cloudformation/resources/aws-rds-dbsubnetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSDBSubnetGroup AWS CloudFormation Resource (AWS::RDS::DBSubnetGroup) @@ -31,7 +32,7 @@ type AWSRDSDBSubnetGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSRDSDBSubnetGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSDBSubnetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSDBSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSRDSDBSubnetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-eventsubscription.go b/cloudformation/resources/aws-rds-eventsubscription.go similarity index 92% rename from cloudformation/aws-rds-eventsubscription.go rename to cloudformation/resources/aws-rds-eventsubscription.go index 92cdd49c5e..32c1f14ecb 100644 --- a/cloudformation/aws-rds-eventsubscription.go +++ b/cloudformation/resources/aws-rds-eventsubscription.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSEventSubscription AWS CloudFormation Resource (AWS::RDS::EventSubscription) @@ -36,7 +37,7 @@ type AWSRDSEventSubscription struct { SourceType string `json:"SourceType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRDSEventSubscription) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSEventSubscription) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSEventSubscription) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRDSEventSubscription) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-optiongroup.go b/cloudformation/resources/aws-rds-optiongroup.go similarity index 92% rename from cloudformation/aws-rds-optiongroup.go rename to cloudformation/resources/aws-rds-optiongroup.go index 094d56aa49..c079841fdb 100644 --- a/cloudformation/aws-rds-optiongroup.go +++ b/cloudformation/resources/aws-rds-optiongroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRDSOptionGroup AWS CloudFormation Resource (AWS::RDS::OptionGroup) @@ -36,7 +37,7 @@ type AWSRDSOptionGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRDSOptionGroup) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSOptionGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSOptionGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRDSOptionGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-rds-optiongroup_optionconfiguration.go b/cloudformation/resources/aws-rds-optiongroup_optionconfiguration.go similarity index 96% rename from cloudformation/aws-rds-optiongroup_optionconfiguration.go rename to cloudformation/resources/aws-rds-optiongroup_optionconfiguration.go index a97e713285..f588d29051 100644 --- a/cloudformation/aws-rds-optiongroup_optionconfiguration.go +++ b/cloudformation/resources/aws-rds-optiongroup_optionconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRDSOptionGroup_OptionConfiguration AWS CloudFormation Resource (AWS::RDS::OptionGroup.OptionConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html @@ -35,7 +37,7 @@ type AWSRDSOptionGroup_OptionConfiguration struct { VpcSecurityGroupMemberships []string `json:"VpcSecurityGroupMemberships,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSRDSOptionGroup_OptionConfiguration) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSOptionGroup_OptionConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSOptionGroup_OptionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-rds-optiongroup_optionsetting.go b/cloudformation/resources/aws-rds-optiongroup_optionsetting.go similarity index 94% rename from cloudformation/aws-rds-optiongroup_optionsetting.go rename to cloudformation/resources/aws-rds-optiongroup_optionsetting.go index 9367e968ba..ddf252d3c9 100644 --- a/cloudformation/aws-rds-optiongroup_optionsetting.go +++ b/cloudformation/resources/aws-rds-optiongroup_optionsetting.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRDSOptionGroup_OptionSetting AWS CloudFormation Resource (AWS::RDS::OptionGroup.OptionSetting) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations-optionsettings.html @@ -15,7 +17,7 @@ type AWSRDSOptionGroup_OptionSetting struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRDSOptionGroup_OptionSetting) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRDSOptionGroup_OptionSetting) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRDSOptionGroup_OptionSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-redshift-cluster.go b/cloudformation/resources/aws-redshift-cluster.go similarity index 96% rename from cloudformation/aws-redshift-cluster.go rename to cloudformation/resources/aws-redshift-cluster.go index 253fa5816e..b26acdcc9f 100644 --- a/cloudformation/aws-redshift-cluster.go +++ b/cloudformation/resources/aws-redshift-cluster.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRedshiftCluster AWS CloudFormation Resource (AWS::Redshift::Cluster) @@ -156,7 +157,7 @@ type AWSRedshiftCluster struct { VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -196,7 +197,7 @@ func (r *AWSRedshiftCluster) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRedshiftCluster) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRedshiftCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -207,9 +208,9 @@ func (r AWSRedshiftCluster) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-redshift-cluster_loggingproperties.go b/cloudformation/resources/aws-redshift-cluster_loggingproperties.go similarity index 94% rename from cloudformation/aws-redshift-cluster_loggingproperties.go rename to cloudformation/resources/aws-redshift-cluster_loggingproperties.go index 87ed18680c..bf59006903 100644 --- a/cloudformation/aws-redshift-cluster_loggingproperties.go +++ b/cloudformation/resources/aws-redshift-cluster_loggingproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRedshiftCluster_LoggingProperties AWS CloudFormation Resource (AWS::Redshift::Cluster.LoggingProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html @@ -15,7 +17,7 @@ type AWSRedshiftCluster_LoggingProperties struct { S3KeyPrefix string `json:"S3KeyPrefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRedshiftCluster_LoggingProperties) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRedshiftCluster_LoggingProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRedshiftCluster_LoggingProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-redshift-clusterparametergroup.go b/cloudformation/resources/aws-redshift-clusterparametergroup.go similarity index 93% rename from cloudformation/aws-redshift-clusterparametergroup.go rename to cloudformation/resources/aws-redshift-clusterparametergroup.go index ec9d7fcce9..946a575328 100644 --- a/cloudformation/aws-redshift-clusterparametergroup.go +++ b/cloudformation/resources/aws-redshift-clusterparametergroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRedshiftClusterParameterGroup AWS CloudFormation Resource (AWS::Redshift::ClusterParameterGroup) @@ -31,7 +32,7 @@ type AWSRedshiftClusterParameterGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSRedshiftClusterParameterGroup) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRedshiftClusterParameterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRedshiftClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSRedshiftClusterParameterGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-redshift-clusterparametergroup_parameter.go b/cloudformation/resources/aws-redshift-clusterparametergroup_parameter.go similarity index 94% rename from cloudformation/aws-redshift-clusterparametergroup_parameter.go rename to cloudformation/resources/aws-redshift-clusterparametergroup_parameter.go index 3011f1f818..847915edad 100644 --- a/cloudformation/aws-redshift-clusterparametergroup_parameter.go +++ b/cloudformation/resources/aws-redshift-clusterparametergroup_parameter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRedshiftClusterParameterGroup_Parameter AWS CloudFormation Resource (AWS::Redshift::ClusterParameterGroup.Parameter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-property-redshift-clusterparametergroup-parameter.html @@ -15,7 +17,7 @@ type AWSRedshiftClusterParameterGroup_Parameter struct { ParameterValue string `json:"ParameterValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRedshiftClusterParameterGroup_Parameter) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRedshiftClusterParameterGroup_Parameter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRedshiftClusterParameterGroup_Parameter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-redshift-clustersecuritygroup.go b/cloudformation/resources/aws-redshift-clustersecuritygroup.go similarity index 92% rename from cloudformation/aws-redshift-clustersecuritygroup.go rename to cloudformation/resources/aws-redshift-clustersecuritygroup.go index f8cfe2391c..ec104fba5c 100644 --- a/cloudformation/aws-redshift-clustersecuritygroup.go +++ b/cloudformation/resources/aws-redshift-clustersecuritygroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRedshiftClusterSecurityGroup AWS CloudFormation Resource (AWS::Redshift::ClusterSecurityGroup) @@ -21,7 +22,7 @@ type AWSRedshiftClusterSecurityGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSRedshiftClusterSecurityGroup) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRedshiftClusterSecurityGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRedshiftClusterSecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSRedshiftClusterSecurityGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-redshift-clustersecuritygroupingress.go b/cloudformation/resources/aws-redshift-clustersecuritygroupingress.go similarity index 93% rename from cloudformation/aws-redshift-clustersecuritygroupingress.go rename to cloudformation/resources/aws-redshift-clustersecuritygroupingress.go index e91d198d42..81a013d407 100644 --- a/cloudformation/aws-redshift-clustersecuritygroupingress.go +++ b/cloudformation/resources/aws-redshift-clustersecuritygroupingress.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRedshiftClusterSecurityGroupIngress AWS CloudFormation Resource (AWS::Redshift::ClusterSecurityGroupIngress) @@ -31,7 +32,7 @@ type AWSRedshiftClusterSecurityGroupIngress struct { EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSRedshiftClusterSecurityGroupIngress) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRedshiftClusterSecurityGroupIngress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRedshiftClusterSecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSRedshiftClusterSecurityGroupIngress) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-redshift-clustersubnetgroup.go b/cloudformation/resources/aws-redshift-clustersubnetgroup.go similarity index 92% rename from cloudformation/aws-redshift-clustersubnetgroup.go rename to cloudformation/resources/aws-redshift-clustersubnetgroup.go index 7b52afea84..da84702078 100644 --- a/cloudformation/aws-redshift-clustersubnetgroup.go +++ b/cloudformation/resources/aws-redshift-clustersubnetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRedshiftClusterSubnetGroup AWS CloudFormation Resource (AWS::Redshift::ClusterSubnetGroup) @@ -26,7 +27,7 @@ type AWSRedshiftClusterSubnetGroup struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSRedshiftClusterSubnetGroup) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRedshiftClusterSubnetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRedshiftClusterSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSRedshiftClusterSubnetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-robomaker-fleet.go b/cloudformation/resources/aws-robomaker-fleet.go similarity index 90% rename from cloudformation/aws-robomaker-fleet.go rename to cloudformation/resources/aws-robomaker-fleet.go index af60d368b5..df68fdf2fd 100644 --- a/cloudformation/aws-robomaker-fleet.go +++ b/cloudformation/resources/aws-robomaker-fleet.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoboMakerFleet AWS CloudFormation Resource (AWS::RoboMaker::Fleet) @@ -21,7 +22,7 @@ type AWSRoboMakerFleet struct { Tags interface{} `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSRoboMakerFleet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerFleet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerFleet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSRoboMakerFleet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-robomaker-robot.go b/cloudformation/resources/aws-robomaker-robot.go similarity index 91% rename from cloudformation/aws-robomaker-robot.go rename to cloudformation/resources/aws-robomaker-robot.go index c8affc5492..eece848839 100644 --- a/cloudformation/aws-robomaker-robot.go +++ b/cloudformation/resources/aws-robomaker-robot.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoboMakerRobot AWS CloudFormation Resource (AWS::RoboMaker::Robot) @@ -36,7 +37,7 @@ type AWSRoboMakerRobot struct { Tags interface{} `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRoboMakerRobot) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerRobot) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerRobot) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRoboMakerRobot) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-robomaker-robotapplication.go b/cloudformation/resources/aws-robomaker-robotapplication.go similarity index 93% rename from cloudformation/aws-robomaker-robotapplication.go rename to cloudformation/resources/aws-robomaker-robotapplication.go index 1ba9565146..9c239a8b0d 100644 --- a/cloudformation/aws-robomaker-robotapplication.go +++ b/cloudformation/resources/aws-robomaker-robotapplication.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoboMakerRobotApplication AWS CloudFormation Resource (AWS::RoboMaker::RobotApplication) @@ -36,7 +37,7 @@ type AWSRoboMakerRobotApplication struct { Tags interface{} `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRoboMakerRobotApplication) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerRobotApplication) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerRobotApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRoboMakerRobotApplication) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-robomaker-robotapplication_robotsoftwaresuite.go b/cloudformation/resources/aws-robomaker-robotapplication_robotsoftwaresuite.go similarity index 94% rename from cloudformation/aws-robomaker-robotapplication_robotsoftwaresuite.go rename to cloudformation/resources/aws-robomaker-robotapplication_robotsoftwaresuite.go index 4d21b29d6b..cdf44c7b46 100644 --- a/cloudformation/aws-robomaker-robotapplication_robotsoftwaresuite.go +++ b/cloudformation/resources/aws-robomaker-robotapplication_robotsoftwaresuite.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoboMakerRobotApplication_RobotSoftwareSuite AWS CloudFormation Resource (AWS::RoboMaker::RobotApplication.RobotSoftwareSuite) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-robotapplication-robotsoftwaresuite.html @@ -15,7 +17,7 @@ type AWSRoboMakerRobotApplication_RobotSoftwareSuite struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoboMakerRobotApplication_RobotSoftwareSuite) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerRobotApplication_RobotSoftwareSuite) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerRobotApplication_RobotSoftwareSuite) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-robomaker-robotapplication_sourceconfig.go b/cloudformation/resources/aws-robomaker-robotapplication_sourceconfig.go similarity index 94% rename from cloudformation/aws-robomaker-robotapplication_sourceconfig.go rename to cloudformation/resources/aws-robomaker-robotapplication_sourceconfig.go index 84375d29f7..dc0088ffcf 100644 --- a/cloudformation/aws-robomaker-robotapplication_sourceconfig.go +++ b/cloudformation/resources/aws-robomaker-robotapplication_sourceconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoboMakerRobotApplication_SourceConfig AWS CloudFormation Resource (AWS::RoboMaker::RobotApplication.SourceConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-robotapplication-sourceconfig.html @@ -20,7 +22,7 @@ type AWSRoboMakerRobotApplication_SourceConfig struct { S3Key string `json:"S3Key,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSRoboMakerRobotApplication_SourceConfig) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerRobotApplication_SourceConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerRobotApplication_SourceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-robomaker-robotapplicationversion.go b/cloudformation/resources/aws-robomaker-robotapplicationversion.go similarity index 92% rename from cloudformation/aws-robomaker-robotapplicationversion.go rename to cloudformation/resources/aws-robomaker-robotapplicationversion.go index b5ecfecf2e..c81f0e3780 100644 --- a/cloudformation/aws-robomaker-robotapplicationversion.go +++ b/cloudformation/resources/aws-robomaker-robotapplicationversion.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoboMakerRobotApplicationVersion AWS CloudFormation Resource (AWS::RoboMaker::RobotApplicationVersion) @@ -21,7 +22,7 @@ type AWSRoboMakerRobotApplicationVersion struct { CurrentRevisionId string `json:"CurrentRevisionId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSRoboMakerRobotApplicationVersion) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerRobotApplicationVersion) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerRobotApplicationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSRoboMakerRobotApplicationVersion) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-robomaker-simulationapplication.go b/cloudformation/resources/aws-robomaker-simulationapplication.go similarity index 94% rename from cloudformation/aws-robomaker-simulationapplication.go rename to cloudformation/resources/aws-robomaker-simulationapplication.go index f44936e6ac..3e04ebcea6 100644 --- a/cloudformation/aws-robomaker-simulationapplication.go +++ b/cloudformation/resources/aws-robomaker-simulationapplication.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoboMakerSimulationApplication AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication) @@ -46,7 +47,7 @@ type AWSRoboMakerSimulationApplication struct { Tags interface{} `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSRoboMakerSimulationApplication) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerSimulationApplication) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerSimulationApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSRoboMakerSimulationApplication) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-robomaker-simulationapplication_renderingengine.go b/cloudformation/resources/aws-robomaker-simulationapplication_renderingengine.go similarity index 94% rename from cloudformation/aws-robomaker-simulationapplication_renderingengine.go rename to cloudformation/resources/aws-robomaker-simulationapplication_renderingengine.go index 29f9aee0a4..875f77a232 100644 --- a/cloudformation/aws-robomaker-simulationapplication_renderingengine.go +++ b/cloudformation/resources/aws-robomaker-simulationapplication_renderingengine.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoboMakerSimulationApplication_RenderingEngine AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.RenderingEngine) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-renderingengine.html @@ -15,7 +17,7 @@ type AWSRoboMakerSimulationApplication_RenderingEngine struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoboMakerSimulationApplication_RenderingEngine) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerSimulationApplication_RenderingEngine) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerSimulationApplication_RenderingEngine) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-robomaker-simulationapplication_robotsoftwaresuite.go b/cloudformation/resources/aws-robomaker-simulationapplication_robotsoftwaresuite.go similarity index 94% rename from cloudformation/aws-robomaker-simulationapplication_robotsoftwaresuite.go rename to cloudformation/resources/aws-robomaker-simulationapplication_robotsoftwaresuite.go index 7bc329e68e..33d562be41 100644 --- a/cloudformation/aws-robomaker-simulationapplication_robotsoftwaresuite.go +++ b/cloudformation/resources/aws-robomaker-simulationapplication_robotsoftwaresuite.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoboMakerSimulationApplication_RobotSoftwareSuite AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.RobotSoftwareSuite) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-robotsoftwaresuite.html @@ -15,7 +17,7 @@ type AWSRoboMakerSimulationApplication_RobotSoftwareSuite struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoboMakerSimulationApplication_RobotSoftwareSuite) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerSimulationApplication_RobotSoftwareSuite) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerSimulationApplication_RobotSoftwareSuite) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-robomaker-simulationapplication_simulationsoftwaresuite.go b/cloudformation/resources/aws-robomaker-simulationapplication_simulationsoftwaresuite.go similarity index 94% rename from cloudformation/aws-robomaker-simulationapplication_simulationsoftwaresuite.go rename to cloudformation/resources/aws-robomaker-simulationapplication_simulationsoftwaresuite.go index 5788a50f85..c0a30bac32 100644 --- a/cloudformation/aws-robomaker-simulationapplication_simulationsoftwaresuite.go +++ b/cloudformation/resources/aws-robomaker-simulationapplication_simulationsoftwaresuite.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoboMakerSimulationApplication_SimulationSoftwareSuite AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.SimulationSoftwareSuite) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-simulationsoftwaresuite.html @@ -15,7 +17,7 @@ type AWSRoboMakerSimulationApplication_SimulationSoftwareSuite struct { Version string `json:"Version,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoboMakerSimulationApplication_SimulationSoftwareSuite) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerSimulationApplication_SimulationSoftwareSuite) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerSimulationApplication_SimulationSoftwareSuite) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-robomaker-simulationapplication_sourceconfig.go b/cloudformation/resources/aws-robomaker-simulationapplication_sourceconfig.go similarity index 94% rename from cloudformation/aws-robomaker-simulationapplication_sourceconfig.go rename to cloudformation/resources/aws-robomaker-simulationapplication_sourceconfig.go index a480571186..6d07050ce5 100644 --- a/cloudformation/aws-robomaker-simulationapplication_sourceconfig.go +++ b/cloudformation/resources/aws-robomaker-simulationapplication_sourceconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoboMakerSimulationApplication_SourceConfig AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.SourceConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-sourceconfig.html @@ -20,7 +22,7 @@ type AWSRoboMakerSimulationApplication_SourceConfig struct { S3Key string `json:"S3Key,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSRoboMakerSimulationApplication_SourceConfig) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerSimulationApplication_SourceConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerSimulationApplication_SourceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-robomaker-simulationapplicationversion.go b/cloudformation/resources/aws-robomaker-simulationapplicationversion.go similarity index 92% rename from cloudformation/aws-robomaker-simulationapplicationversion.go rename to cloudformation/resources/aws-robomaker-simulationapplicationversion.go index c433182ee9..589a33c981 100644 --- a/cloudformation/aws-robomaker-simulationapplicationversion.go +++ b/cloudformation/resources/aws-robomaker-simulationapplicationversion.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoboMakerSimulationApplicationVersion AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplicationVersion) @@ -21,7 +22,7 @@ type AWSRoboMakerSimulationApplicationVersion struct { CurrentRevisionId string `json:"CurrentRevisionId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSRoboMakerSimulationApplicationVersion) SetMetadata(metadata map[stri // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoboMakerSimulationApplicationVersion) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoboMakerSimulationApplicationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSRoboMakerSimulationApplicationVersion) MarshalJSON() ([]byte, error) return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-route53-healthcheck.go b/cloudformation/resources/aws-route53-healthcheck.go similarity index 90% rename from cloudformation/aws-route53-healthcheck.go rename to cloudformation/resources/aws-route53-healthcheck.go index fb7c520c76..b15d46c552 100644 --- a/cloudformation/aws-route53-healthcheck.go +++ b/cloudformation/resources/aws-route53-healthcheck.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoute53HealthCheck AWS CloudFormation Resource (AWS::Route53::HealthCheck) @@ -21,7 +22,7 @@ type AWSRoute53HealthCheck struct { HealthCheckTags []AWSRoute53HealthCheck_HealthCheckTag `json:"HealthCheckTags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSRoute53HealthCheck) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HealthCheck) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HealthCheck) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSRoute53HealthCheck) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-route53-healthcheck_alarmidentifier.go b/cloudformation/resources/aws-route53-healthcheck_alarmidentifier.go similarity index 94% rename from cloudformation/aws-route53-healthcheck_alarmidentifier.go rename to cloudformation/resources/aws-route53-healthcheck_alarmidentifier.go index d581ab8770..ec69afb943 100644 --- a/cloudformation/aws-route53-healthcheck_alarmidentifier.go +++ b/cloudformation/resources/aws-route53-healthcheck_alarmidentifier.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53HealthCheck_AlarmIdentifier AWS CloudFormation Resource (AWS::Route53::HealthCheck.AlarmIdentifier) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-alarmidentifier.html @@ -15,7 +17,7 @@ type AWSRoute53HealthCheck_AlarmIdentifier struct { Region string `json:"Region,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoute53HealthCheck_AlarmIdentifier) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HealthCheck_AlarmIdentifier) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HealthCheck_AlarmIdentifier) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-healthcheck_healthcheckconfig.go b/cloudformation/resources/aws-route53-healthcheck_healthcheckconfig.go similarity index 97% rename from cloudformation/aws-route53-healthcheck_healthcheckconfig.go rename to cloudformation/resources/aws-route53-healthcheck_healthcheckconfig.go index 5e83705a70..c0c8abe432 100644 --- a/cloudformation/aws-route53-healthcheck_healthcheckconfig.go +++ b/cloudformation/resources/aws-route53-healthcheck_healthcheckconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53HealthCheck_HealthCheckConfig AWS CloudFormation Resource (AWS::Route53::HealthCheck.HealthCheckConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html @@ -85,7 +87,7 @@ type AWSRoute53HealthCheck_HealthCheckConfig struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -125,6 +127,6 @@ func (r *AWSRoute53HealthCheck_HealthCheckConfig) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HealthCheck_HealthCheckConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HealthCheck_HealthCheckConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-healthcheck_healthchecktag.go b/cloudformation/resources/aws-route53-healthcheck_healthchecktag.go similarity index 94% rename from cloudformation/aws-route53-healthcheck_healthchecktag.go rename to cloudformation/resources/aws-route53-healthcheck_healthchecktag.go index fba6f5d0b2..51641e3b1b 100644 --- a/cloudformation/aws-route53-healthcheck_healthchecktag.go +++ b/cloudformation/resources/aws-route53-healthcheck_healthchecktag.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53HealthCheck_HealthCheckTag AWS CloudFormation Resource (AWS::Route53::HealthCheck.HealthCheckTag) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthchecktag.html @@ -15,7 +17,7 @@ type AWSRoute53HealthCheck_HealthCheckTag struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoute53HealthCheck_HealthCheckTag) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HealthCheck_HealthCheckTag) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HealthCheck_HealthCheckTag) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-hostedzone.go b/cloudformation/resources/aws-route53-hostedzone.go similarity index 92% rename from cloudformation/aws-route53-hostedzone.go rename to cloudformation/resources/aws-route53-hostedzone.go index 7312abf381..c0144afa59 100644 --- a/cloudformation/aws-route53-hostedzone.go +++ b/cloudformation/resources/aws-route53-hostedzone.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoute53HostedZone AWS CloudFormation Resource (AWS::Route53::HostedZone) @@ -36,7 +37,7 @@ type AWSRoute53HostedZone struct { VPCs []AWSRoute53HostedZone_VPC `json:"VPCs,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRoute53HostedZone) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HostedZone) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HostedZone) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRoute53HostedZone) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-route53-hostedzone_hostedzoneconfig.go b/cloudformation/resources/aws-route53-hostedzone_hostedzoneconfig.go similarity index 93% rename from cloudformation/aws-route53-hostedzone_hostedzoneconfig.go rename to cloudformation/resources/aws-route53-hostedzone_hostedzoneconfig.go index 7db063d365..fe499ebd7a 100644 --- a/cloudformation/aws-route53-hostedzone_hostedzoneconfig.go +++ b/cloudformation/resources/aws-route53-hostedzone_hostedzoneconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53HostedZone_HostedZoneConfig AWS CloudFormation Resource (AWS::Route53::HostedZone.HostedZoneConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzoneconfig.html @@ -10,7 +12,7 @@ type AWSRoute53HostedZone_HostedZoneConfig struct { Comment string `json:"Comment,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSRoute53HostedZone_HostedZoneConfig) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HostedZone_HostedZoneConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HostedZone_HostedZoneConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-hostedzone_hostedzonetag.go b/cloudformation/resources/aws-route53-hostedzone_hostedzonetag.go similarity index 94% rename from cloudformation/aws-route53-hostedzone_hostedzonetag.go rename to cloudformation/resources/aws-route53-hostedzone_hostedzonetag.go index b97f536771..94e88d1e33 100644 --- a/cloudformation/aws-route53-hostedzone_hostedzonetag.go +++ b/cloudformation/resources/aws-route53-hostedzone_hostedzonetag.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53HostedZone_HostedZoneTag AWS CloudFormation Resource (AWS::Route53::HostedZone.HostedZoneTag) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetags.html @@ -15,7 +17,7 @@ type AWSRoute53HostedZone_HostedZoneTag struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoute53HostedZone_HostedZoneTag) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HostedZone_HostedZoneTag) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HostedZone_HostedZoneTag) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-hostedzone_queryloggingconfig.go b/cloudformation/resources/aws-route53-hostedzone_queryloggingconfig.go similarity index 94% rename from cloudformation/aws-route53-hostedzone_queryloggingconfig.go rename to cloudformation/resources/aws-route53-hostedzone_queryloggingconfig.go index d0b6e7e944..093d341266 100644 --- a/cloudformation/aws-route53-hostedzone_queryloggingconfig.go +++ b/cloudformation/resources/aws-route53-hostedzone_queryloggingconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53HostedZone_QueryLoggingConfig AWS CloudFormation Resource (AWS::Route53::HostedZone.QueryLoggingConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-queryloggingconfig.html @@ -10,7 +12,7 @@ type AWSRoute53HostedZone_QueryLoggingConfig struct { CloudWatchLogsLogGroupArn string `json:"CloudWatchLogsLogGroupArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSRoute53HostedZone_QueryLoggingConfig) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HostedZone_QueryLoggingConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HostedZone_QueryLoggingConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-hostedzone_vpc.go b/cloudformation/resources/aws-route53-hostedzone_vpc.go similarity index 92% rename from cloudformation/aws-route53-hostedzone_vpc.go rename to cloudformation/resources/aws-route53-hostedzone_vpc.go index 38c4bea360..bdd1978e91 100644 --- a/cloudformation/aws-route53-hostedzone_vpc.go +++ b/cloudformation/resources/aws-route53-hostedzone_vpc.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53HostedZone_VPC AWS CloudFormation Resource (AWS::Route53::HostedZone.VPC) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone-hostedzonevpcs.html @@ -15,7 +17,7 @@ type AWSRoute53HostedZone_VPC struct { VPCRegion string `json:"VPCRegion,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoute53HostedZone_VPC) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53HostedZone_VPC) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53HostedZone_VPC) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-recordset.go b/cloudformation/resources/aws-route53-recordset.go similarity index 94% rename from cloudformation/aws-route53-recordset.go rename to cloudformation/resources/aws-route53-recordset.go index 4d84880c6f..e3f7d8262b 100644 --- a/cloudformation/aws-route53-recordset.go +++ b/cloudformation/resources/aws-route53-recordset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoute53RecordSet AWS CloudFormation Resource (AWS::Route53::RecordSet) @@ -86,7 +87,7 @@ type AWSRoute53RecordSet struct { Weight int `json:"Weight,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -126,7 +127,7 @@ func (r *AWSRoute53RecordSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53RecordSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53RecordSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -137,9 +138,9 @@ func (r AWSRoute53RecordSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-route53-recordset_aliastarget.go b/cloudformation/resources/aws-route53-recordset_aliastarget.go similarity index 95% rename from cloudformation/aws-route53-recordset_aliastarget.go rename to cloudformation/resources/aws-route53-recordset_aliastarget.go index df417907ee..0a63f4a96c 100644 --- a/cloudformation/aws-route53-recordset_aliastarget.go +++ b/cloudformation/resources/aws-route53-recordset_aliastarget.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53RecordSet_AliasTarget AWS CloudFormation Resource (AWS::Route53::RecordSet.AliasTarget) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html @@ -20,7 +22,7 @@ type AWSRoute53RecordSet_AliasTarget struct { HostedZoneId string `json:"HostedZoneId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSRoute53RecordSet_AliasTarget) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53RecordSet_AliasTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53RecordSet_AliasTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-recordset_geolocation.go b/cloudformation/resources/aws-route53-recordset_geolocation.go similarity index 95% rename from cloudformation/aws-route53-recordset_geolocation.go rename to cloudformation/resources/aws-route53-recordset_geolocation.go index 2e7e1be4ff..61105b031f 100644 --- a/cloudformation/aws-route53-recordset_geolocation.go +++ b/cloudformation/resources/aws-route53-recordset_geolocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53RecordSet_GeoLocation AWS CloudFormation Resource (AWS::Route53::RecordSet.GeoLocation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html @@ -20,7 +22,7 @@ type AWSRoute53RecordSet_GeoLocation struct { SubdivisionCode string `json:"SubdivisionCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSRoute53RecordSet_GeoLocation) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53RecordSet_GeoLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53RecordSet_GeoLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-recordsetgroup.go b/cloudformation/resources/aws-route53-recordsetgroup.go similarity index 91% rename from cloudformation/aws-route53-recordsetgroup.go rename to cloudformation/resources/aws-route53-recordsetgroup.go index 4bdee1f816..118204c497 100644 --- a/cloudformation/aws-route53-recordsetgroup.go +++ b/cloudformation/resources/aws-route53-recordsetgroup.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoute53RecordSetGroup AWS CloudFormation Resource (AWS::Route53::RecordSetGroup) @@ -31,7 +32,7 @@ type AWSRoute53RecordSetGroup struct { RecordSets []AWSRoute53RecordSetGroup_RecordSet `json:"RecordSets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSRoute53RecordSetGroup) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53RecordSetGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53RecordSetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSRoute53RecordSetGroup) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-route53-recordsetgroup_aliastarget.go b/cloudformation/resources/aws-route53-recordsetgroup_aliastarget.go similarity index 94% rename from cloudformation/aws-route53-recordsetgroup_aliastarget.go rename to cloudformation/resources/aws-route53-recordsetgroup_aliastarget.go index 96a576f871..f1f0530a33 100644 --- a/cloudformation/aws-route53-recordsetgroup_aliastarget.go +++ b/cloudformation/resources/aws-route53-recordsetgroup_aliastarget.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53RecordSetGroup_AliasTarget AWS CloudFormation Resource (AWS::Route53::RecordSetGroup.AliasTarget) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html @@ -20,7 +22,7 @@ type AWSRoute53RecordSetGroup_AliasTarget struct { HostedZoneId string `json:"HostedZoneId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSRoute53RecordSetGroup_AliasTarget) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53RecordSetGroup_AliasTarget) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53RecordSetGroup_AliasTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-recordsetgroup_geolocation.go b/cloudformation/resources/aws-route53-recordsetgroup_geolocation.go similarity index 95% rename from cloudformation/aws-route53-recordsetgroup_geolocation.go rename to cloudformation/resources/aws-route53-recordsetgroup_geolocation.go index cc96c0cb27..6f8397b3e1 100644 --- a/cloudformation/aws-route53-recordsetgroup_geolocation.go +++ b/cloudformation/resources/aws-route53-recordsetgroup_geolocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53RecordSetGroup_GeoLocation AWS CloudFormation Resource (AWS::Route53::RecordSetGroup.GeoLocation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html @@ -20,7 +22,7 @@ type AWSRoute53RecordSetGroup_GeoLocation struct { SubdivisionCode string `json:"SubdivisionCode,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSRoute53RecordSetGroup_GeoLocation) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53RecordSetGroup_GeoLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53RecordSetGroup_GeoLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53-recordsetgroup_recordset.go b/cloudformation/resources/aws-route53-recordsetgroup_recordset.go similarity index 97% rename from cloudformation/aws-route53-recordsetgroup_recordset.go rename to cloudformation/resources/aws-route53-recordsetgroup_recordset.go index c6d2e840aa..e579874beb 100644 --- a/cloudformation/aws-route53-recordsetgroup_recordset.go +++ b/cloudformation/resources/aws-route53-recordsetgroup_recordset.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53RecordSetGroup_RecordSet AWS CloudFormation Resource (AWS::Route53::RecordSetGroup.RecordSet) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html @@ -80,7 +82,7 @@ type AWSRoute53RecordSetGroup_RecordSet struct { Weight int `json:"Weight,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -120,6 +122,6 @@ func (r *AWSRoute53RecordSetGroup_RecordSet) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53RecordSetGroup_RecordSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53RecordSetGroup_RecordSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53resolver-resolverendpoint.go b/cloudformation/resources/aws-route53resolver-resolverendpoint.go similarity index 93% rename from cloudformation/aws-route53resolver-resolverendpoint.go rename to cloudformation/resources/aws-route53resolver-resolverendpoint.go index 2021b488f0..b1a525f40d 100644 --- a/cloudformation/aws-route53resolver-resolverendpoint.go +++ b/cloudformation/resources/aws-route53resolver-resolverendpoint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoute53ResolverResolverEndpoint AWS CloudFormation Resource (AWS::Route53Resolver::ResolverEndpoint) @@ -36,7 +37,7 @@ type AWSRoute53ResolverResolverEndpoint struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSRoute53ResolverResolverEndpoint) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53ResolverResolverEndpoint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53ResolverResolverEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSRoute53ResolverResolverEndpoint) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-route53resolver-resolverendpoint_ipaddressrequest.go b/cloudformation/resources/aws-route53resolver-resolverendpoint_ipaddressrequest.go similarity index 94% rename from cloudformation/aws-route53resolver-resolverendpoint_ipaddressrequest.go rename to cloudformation/resources/aws-route53resolver-resolverendpoint_ipaddressrequest.go index 825b07ea44..0e750d9cf2 100644 --- a/cloudformation/aws-route53resolver-resolverendpoint_ipaddressrequest.go +++ b/cloudformation/resources/aws-route53resolver-resolverendpoint_ipaddressrequest.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53ResolverResolverEndpoint_IpAddressRequest AWS CloudFormation Resource (AWS::Route53Resolver::ResolverEndpoint.IpAddressRequest) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverendpoint-ipaddressrequest.html @@ -15,7 +17,7 @@ type AWSRoute53ResolverResolverEndpoint_IpAddressRequest struct { SubnetId string `json:"SubnetId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoute53ResolverResolverEndpoint_IpAddressRequest) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53ResolverResolverEndpoint_IpAddressRequest) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53ResolverResolverEndpoint_IpAddressRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53resolver-resolverrule.go b/cloudformation/resources/aws-route53resolver-resolverrule.go similarity index 93% rename from cloudformation/aws-route53resolver-resolverrule.go rename to cloudformation/resources/aws-route53resolver-resolverrule.go index d16ee98472..ac3cc9a7cc 100644 --- a/cloudformation/aws-route53resolver-resolverrule.go +++ b/cloudformation/resources/aws-route53resolver-resolverrule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoute53ResolverResolverRule AWS CloudFormation Resource (AWS::Route53Resolver::ResolverRule) @@ -41,7 +42,7 @@ type AWSRoute53ResolverResolverRule struct { TargetIps []AWSRoute53ResolverResolverRule_TargetAddress `json:"TargetIps,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSRoute53ResolverResolverRule) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53ResolverResolverRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53ResolverResolverRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSRoute53ResolverResolverRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-route53resolver-resolverrule_targetaddress.go b/cloudformation/resources/aws-route53resolver-resolverrule_targetaddress.go similarity index 94% rename from cloudformation/aws-route53resolver-resolverrule_targetaddress.go rename to cloudformation/resources/aws-route53resolver-resolverrule_targetaddress.go index a293555155..2aecab4ba5 100644 --- a/cloudformation/aws-route53resolver-resolverrule_targetaddress.go +++ b/cloudformation/resources/aws-route53resolver-resolverrule_targetaddress.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSRoute53ResolverResolverRule_TargetAddress AWS CloudFormation Resource (AWS::Route53Resolver::ResolverRule.TargetAddress) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html @@ -15,7 +17,7 @@ type AWSRoute53ResolverResolverRule_TargetAddress struct { Port string `json:"Port,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSRoute53ResolverResolverRule_TargetAddress) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53ResolverResolverRule_TargetAddress) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53ResolverResolverRule_TargetAddress) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-route53resolver-resolverruleassociation.go b/cloudformation/resources/aws-route53resolver-resolverruleassociation.go similarity index 92% rename from cloudformation/aws-route53resolver-resolverruleassociation.go rename to cloudformation/resources/aws-route53resolver-resolverruleassociation.go index 42d8b5b4f3..322d8e8f6c 100644 --- a/cloudformation/aws-route53resolver-resolverruleassociation.go +++ b/cloudformation/resources/aws-route53resolver-resolverruleassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSRoute53ResolverResolverRuleAssociation AWS CloudFormation Resource (AWS::Route53Resolver::ResolverRuleAssociation) @@ -26,7 +27,7 @@ type AWSRoute53ResolverResolverRuleAssociation struct { VPCId string `json:"VPCId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSRoute53ResolverResolverRuleAssociation) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSRoute53ResolverResolverRuleAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSRoute53ResolverResolverRuleAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSRoute53ResolverResolverRuleAssociation) MarshalJSON() ([]byte, error) return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-s3-bucket.go b/cloudformation/resources/aws-s3-bucket.go similarity index 95% rename from cloudformation/aws-s3-bucket.go rename to cloudformation/resources/aws-s3-bucket.go index aea0e9cc01..8867aca004 100644 --- a/cloudformation/aws-s3-bucket.go +++ b/cloudformation/resources/aws-s3-bucket.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSS3Bucket AWS CloudFormation Resource (AWS::S3::Bucket) @@ -91,7 +92,7 @@ type AWSS3Bucket struct { WebsiteConfiguration *AWSS3Bucket_WebsiteConfiguration `json:"WebsiteConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -131,7 +132,7 @@ func (r *AWSS3Bucket) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -142,9 +143,9 @@ func (r AWSS3Bucket) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-s3-bucket_abortincompletemultipartupload.go b/cloudformation/resources/aws-s3-bucket_abortincompletemultipartupload.go similarity index 93% rename from cloudformation/aws-s3-bucket_abortincompletemultipartupload.go rename to cloudformation/resources/aws-s3-bucket_abortincompletemultipartupload.go index 4ea3b3e20f..6077f88640 100644 --- a/cloudformation/aws-s3-bucket_abortincompletemultipartupload.go +++ b/cloudformation/resources/aws-s3-bucket_abortincompletemultipartupload.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_AbortIncompleteMultipartUpload AWS CloudFormation Resource (AWS::S3::Bucket.AbortIncompleteMultipartUpload) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html @@ -10,7 +12,7 @@ type AWSS3Bucket_AbortIncompleteMultipartUpload struct { DaysAfterInitiation int `json:"DaysAfterInitiation"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_AbortIncompleteMultipartUpload) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_AbortIncompleteMultipartUpload) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_AbortIncompleteMultipartUpload) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_accelerateconfiguration.go b/cloudformation/resources/aws-s3-bucket_accelerateconfiguration.go similarity index 94% rename from cloudformation/aws-s3-bucket_accelerateconfiguration.go rename to cloudformation/resources/aws-s3-bucket_accelerateconfiguration.go index f2ee5b55a9..7295cc2d74 100644 --- a/cloudformation/aws-s3-bucket_accelerateconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_accelerateconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_AccelerateConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.AccelerateConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accelerateconfiguration.html @@ -10,7 +12,7 @@ type AWSS3Bucket_AccelerateConfiguration struct { AccelerationStatus string `json:"AccelerationStatus,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_AccelerateConfiguration) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_AccelerateConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_AccelerateConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_accesscontroltranslation.go b/cloudformation/resources/aws-s3-bucket_accesscontroltranslation.go similarity index 93% rename from cloudformation/aws-s3-bucket_accesscontroltranslation.go rename to cloudformation/resources/aws-s3-bucket_accesscontroltranslation.go index 92f1784890..5b06e2928d 100644 --- a/cloudformation/aws-s3-bucket_accesscontroltranslation.go +++ b/cloudformation/resources/aws-s3-bucket_accesscontroltranslation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_AccessControlTranslation AWS CloudFormation Resource (AWS::S3::Bucket.AccessControlTranslation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accesscontroltranslation.html @@ -10,7 +12,7 @@ type AWSS3Bucket_AccessControlTranslation struct { Owner string `json:"Owner,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_AccessControlTranslation) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_AccessControlTranslation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_AccessControlTranslation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_analyticsconfiguration.go b/cloudformation/resources/aws-s3-bucket_analyticsconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_analyticsconfiguration.go rename to cloudformation/resources/aws-s3-bucket_analyticsconfiguration.go index 7d65f1001c..435a904758 100644 --- a/cloudformation/aws-s3-bucket_analyticsconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_analyticsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_AnalyticsConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.AnalyticsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-analyticsconfiguration.html @@ -25,7 +27,7 @@ type AWSS3Bucket_AnalyticsConfiguration struct { TagFilters []AWSS3Bucket_TagFilter `json:"TagFilters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSS3Bucket_AnalyticsConfiguration) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_AnalyticsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_AnalyticsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_bucketencryption.go b/cloudformation/resources/aws-s3-bucket_bucketencryption.go similarity index 94% rename from cloudformation/aws-s3-bucket_bucketencryption.go rename to cloudformation/resources/aws-s3-bucket_bucketencryption.go index 1ede240b0b..b299f76dd2 100644 --- a/cloudformation/aws-s3-bucket_bucketencryption.go +++ b/cloudformation/resources/aws-s3-bucket_bucketencryption.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_BucketEncryption AWS CloudFormation Resource (AWS::S3::Bucket.BucketEncryption) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html @@ -10,7 +12,7 @@ type AWSS3Bucket_BucketEncryption struct { ServerSideEncryptionConfiguration []AWSS3Bucket_ServerSideEncryptionRule `json:"ServerSideEncryptionConfiguration,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_BucketEncryption) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_BucketEncryption) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_BucketEncryption) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_corsconfiguration.go b/cloudformation/resources/aws-s3-bucket_corsconfiguration.go similarity index 93% rename from cloudformation/aws-s3-bucket_corsconfiguration.go rename to cloudformation/resources/aws-s3-bucket_corsconfiguration.go index ec8a67800b..20303d36d0 100644 --- a/cloudformation/aws-s3-bucket_corsconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_corsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_CorsConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.CorsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors.html @@ -10,7 +12,7 @@ type AWSS3Bucket_CorsConfiguration struct { CorsRules []AWSS3Bucket_CorsRule `json:"CorsRules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_CorsConfiguration) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_CorsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_CorsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_corsrule.go b/cloudformation/resources/aws-s3-bucket_corsrule.go similarity index 94% rename from cloudformation/aws-s3-bucket_corsrule.go rename to cloudformation/resources/aws-s3-bucket_corsrule.go index d56098abb7..59e6978d0c 100644 --- a/cloudformation/aws-s3-bucket_corsrule.go +++ b/cloudformation/resources/aws-s3-bucket_corsrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_CorsRule AWS CloudFormation Resource (AWS::S3::Bucket.CorsRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html @@ -35,7 +37,7 @@ type AWSS3Bucket_CorsRule struct { MaxAge int `json:"MaxAge,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSS3Bucket_CorsRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_CorsRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_CorsRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_dataexport.go b/cloudformation/resources/aws-s3-bucket_dataexport.go similarity index 92% rename from cloudformation/aws-s3-bucket_dataexport.go rename to cloudformation/resources/aws-s3-bucket_dataexport.go index b2a8e4b2ea..0c66bb1c20 100644 --- a/cloudformation/aws-s3-bucket_dataexport.go +++ b/cloudformation/resources/aws-s3-bucket_dataexport.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_DataExport AWS CloudFormation Resource (AWS::S3::Bucket.DataExport) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-dataexport.html @@ -15,7 +17,7 @@ type AWSS3Bucket_DataExport struct { OutputSchemaVersion string `json:"OutputSchemaVersion,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_DataExport) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_DataExport) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_DataExport) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_destination.go b/cloudformation/resources/aws-s3-bucket_destination.go similarity index 93% rename from cloudformation/aws-s3-bucket_destination.go rename to cloudformation/resources/aws-s3-bucket_destination.go index ddf15616d6..dd4bae7055 100644 --- a/cloudformation/aws-s3-bucket_destination.go +++ b/cloudformation/resources/aws-s3-bucket_destination.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_Destination AWS CloudFormation Resource (AWS::S3::Bucket.Destination) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-destination.html @@ -25,7 +27,7 @@ type AWSS3Bucket_Destination struct { Prefix string `json:"Prefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSS3Bucket_Destination) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_Destination) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_Destination) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_encryptionconfiguration.go b/cloudformation/resources/aws-s3-bucket_encryptionconfiguration.go similarity index 94% rename from cloudformation/aws-s3-bucket_encryptionconfiguration.go rename to cloudformation/resources/aws-s3-bucket_encryptionconfiguration.go index 7351923686..46db6fbd4c 100644 --- a/cloudformation/aws-s3-bucket_encryptionconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_encryptionconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_EncryptionConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.EncryptionConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-encryptionconfiguration.html @@ -10,7 +12,7 @@ type AWSS3Bucket_EncryptionConfiguration struct { ReplicaKmsKeyID string `json:"ReplicaKmsKeyID,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_EncryptionConfiguration) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_EncryptionConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_EncryptionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_filterrule.go b/cloudformation/resources/aws-s3-bucket_filterrule.go similarity index 92% rename from cloudformation/aws-s3-bucket_filterrule.go rename to cloudformation/resources/aws-s3-bucket_filterrule.go index 495dc0c03d..bdd6f30e48 100644 --- a/cloudformation/aws-s3-bucket_filterrule.go +++ b/cloudformation/resources/aws-s3-bucket_filterrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_FilterRule AWS CloudFormation Resource (AWS::S3::Bucket.FilterRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key-rules.html @@ -15,7 +17,7 @@ type AWSS3Bucket_FilterRule struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_FilterRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_FilterRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_FilterRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_inventoryconfiguration.go b/cloudformation/resources/aws-s3-bucket_inventoryconfiguration.go similarity index 96% rename from cloudformation/aws-s3-bucket_inventoryconfiguration.go rename to cloudformation/resources/aws-s3-bucket_inventoryconfiguration.go index b3a497c03b..6507897bde 100644 --- a/cloudformation/aws-s3-bucket_inventoryconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_inventoryconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_InventoryConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.InventoryConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html @@ -40,7 +42,7 @@ type AWSS3Bucket_InventoryConfiguration struct { ScheduleFrequency string `json:"ScheduleFrequency,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSS3Bucket_InventoryConfiguration) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_InventoryConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_InventoryConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_lambdaconfiguration.go b/cloudformation/resources/aws-s3-bucket_lambdaconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_lambdaconfiguration.go rename to cloudformation/resources/aws-s3-bucket_lambdaconfiguration.go index 9ed1dd3afb..1719ca1402 100644 --- a/cloudformation/aws-s3-bucket_lambdaconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_lambdaconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_LambdaConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.LambdaConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html @@ -20,7 +22,7 @@ type AWSS3Bucket_LambdaConfiguration struct { Function string `json:"Function,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSS3Bucket_LambdaConfiguration) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_LambdaConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_LambdaConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_lifecycleconfiguration.go b/cloudformation/resources/aws-s3-bucket_lifecycleconfiguration.go similarity index 93% rename from cloudformation/aws-s3-bucket_lifecycleconfiguration.go rename to cloudformation/resources/aws-s3-bucket_lifecycleconfiguration.go index 5c13c4621d..7337402581 100644 --- a/cloudformation/aws-s3-bucket_lifecycleconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_lifecycleconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_LifecycleConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.LifecycleConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig.html @@ -10,7 +12,7 @@ type AWSS3Bucket_LifecycleConfiguration struct { Rules []AWSS3Bucket_Rule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_LifecycleConfiguration) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_LifecycleConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_LifecycleConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_loggingconfiguration.go b/cloudformation/resources/aws-s3-bucket_loggingconfiguration.go similarity index 94% rename from cloudformation/aws-s3-bucket_loggingconfiguration.go rename to cloudformation/resources/aws-s3-bucket_loggingconfiguration.go index 87b4f774a4..2d5796f6c6 100644 --- a/cloudformation/aws-s3-bucket_loggingconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_loggingconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_LoggingConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.LoggingConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfig.html @@ -15,7 +17,7 @@ type AWSS3Bucket_LoggingConfiguration struct { LogFilePrefix string `json:"LogFilePrefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_LoggingConfiguration) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_LoggingConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_LoggingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_metricsconfiguration.go b/cloudformation/resources/aws-s3-bucket_metricsconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_metricsconfiguration.go rename to cloudformation/resources/aws-s3-bucket_metricsconfiguration.go index 8c2d13978c..6bfc4b9471 100644 --- a/cloudformation/aws-s3-bucket_metricsconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_metricsconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_MetricsConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.MetricsConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html @@ -20,7 +22,7 @@ type AWSS3Bucket_MetricsConfiguration struct { TagFilters []AWSS3Bucket_TagFilter `json:"TagFilters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSS3Bucket_MetricsConfiguration) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_MetricsConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_MetricsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_noncurrentversiontransition.go b/cloudformation/resources/aws-s3-bucket_noncurrentversiontransition.go similarity index 94% rename from cloudformation/aws-s3-bucket_noncurrentversiontransition.go rename to cloudformation/resources/aws-s3-bucket_noncurrentversiontransition.go index d9d7b4d9d9..c226423abc 100644 --- a/cloudformation/aws-s3-bucket_noncurrentversiontransition.go +++ b/cloudformation/resources/aws-s3-bucket_noncurrentversiontransition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_NoncurrentVersionTransition AWS CloudFormation Resource (AWS::S3::Bucket.NoncurrentVersionTransition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html @@ -15,7 +17,7 @@ type AWSS3Bucket_NoncurrentVersionTransition struct { TransitionInDays int `json:"TransitionInDays"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_NoncurrentVersionTransition) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_NoncurrentVersionTransition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_NoncurrentVersionTransition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_notificationconfiguration.go b/cloudformation/resources/aws-s3-bucket_notificationconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_notificationconfiguration.go rename to cloudformation/resources/aws-s3-bucket_notificationconfiguration.go index 8284eda5d1..8c7b896fa3 100644 --- a/cloudformation/aws-s3-bucket_notificationconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_notificationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_NotificationConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.NotificationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig.html @@ -20,7 +22,7 @@ type AWSS3Bucket_NotificationConfiguration struct { TopicConfigurations []AWSS3Bucket_TopicConfiguration `json:"TopicConfigurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSS3Bucket_NotificationConfiguration) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_NotificationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_NotificationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_notificationfilter.go b/cloudformation/resources/aws-s3-bucket_notificationfilter.go similarity index 94% rename from cloudformation/aws-s3-bucket_notificationfilter.go rename to cloudformation/resources/aws-s3-bucket_notificationfilter.go index 371af70fb9..d51fe40d0b 100644 --- a/cloudformation/aws-s3-bucket_notificationfilter.go +++ b/cloudformation/resources/aws-s3-bucket_notificationfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_NotificationFilter AWS CloudFormation Resource (AWS::S3::Bucket.NotificationFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter.html @@ -10,7 +12,7 @@ type AWSS3Bucket_NotificationFilter struct { S3Key *AWSS3Bucket_S3KeyFilter `json:"S3Key,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_NotificationFilter) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_NotificationFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_NotificationFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_publicaccessblockconfiguration.go b/cloudformation/resources/aws-s3-bucket_publicaccessblockconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_publicaccessblockconfiguration.go rename to cloudformation/resources/aws-s3-bucket_publicaccessblockconfiguration.go index f231f34008..1de87b70e1 100644 --- a/cloudformation/aws-s3-bucket_publicaccessblockconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_publicaccessblockconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_PublicAccessBlockConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.PublicAccessBlockConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-publicaccessblockconfiguration.html @@ -25,7 +27,7 @@ type AWSS3Bucket_PublicAccessBlockConfiguration struct { RestrictPublicBuckets bool `json:"RestrictPublicBuckets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSS3Bucket_PublicAccessBlockConfiguration) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_PublicAccessBlockConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_PublicAccessBlockConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_queueconfiguration.go b/cloudformation/resources/aws-s3-bucket_queueconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_queueconfiguration.go rename to cloudformation/resources/aws-s3-bucket_queueconfiguration.go index 2491bf44bc..6557d25329 100644 --- a/cloudformation/aws-s3-bucket_queueconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_queueconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_QueueConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.QueueConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-queueconfig.html @@ -20,7 +22,7 @@ type AWSS3Bucket_QueueConfiguration struct { Queue string `json:"Queue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSS3Bucket_QueueConfiguration) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_QueueConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_QueueConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_redirectallrequeststo.go b/cloudformation/resources/aws-s3-bucket_redirectallrequeststo.go similarity index 94% rename from cloudformation/aws-s3-bucket_redirectallrequeststo.go rename to cloudformation/resources/aws-s3-bucket_redirectallrequeststo.go index 8366a0e133..65c2709e0e 100644 --- a/cloudformation/aws-s3-bucket_redirectallrequeststo.go +++ b/cloudformation/resources/aws-s3-bucket_redirectallrequeststo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_RedirectAllRequestsTo AWS CloudFormation Resource (AWS::S3::Bucket.RedirectAllRequestsTo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-redirectallrequeststo.html @@ -15,7 +17,7 @@ type AWSS3Bucket_RedirectAllRequestsTo struct { Protocol string `json:"Protocol,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_RedirectAllRequestsTo) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_RedirectAllRequestsTo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_RedirectAllRequestsTo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_redirectrule.go b/cloudformation/resources/aws-s3-bucket_redirectrule.go similarity index 94% rename from cloudformation/aws-s3-bucket_redirectrule.go rename to cloudformation/resources/aws-s3-bucket_redirectrule.go index 00ddbf8655..df151e192b 100644 --- a/cloudformation/aws-s3-bucket_redirectrule.go +++ b/cloudformation/resources/aws-s3-bucket_redirectrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_RedirectRule AWS CloudFormation Resource (AWS::S3::Bucket.RedirectRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html @@ -30,7 +32,7 @@ type AWSS3Bucket_RedirectRule struct { ReplaceKeyWith string `json:"ReplaceKeyWith,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSS3Bucket_RedirectRule) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_RedirectRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_RedirectRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_replicationconfiguration.go b/cloudformation/resources/aws-s3-bucket_replicationconfiguration.go similarity index 94% rename from cloudformation/aws-s3-bucket_replicationconfiguration.go rename to cloudformation/resources/aws-s3-bucket_replicationconfiguration.go index ebe1630389..e80fc905d9 100644 --- a/cloudformation/aws-s3-bucket_replicationconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_replicationconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_ReplicationConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.ReplicationConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html @@ -15,7 +17,7 @@ type AWSS3Bucket_ReplicationConfiguration struct { Rules []AWSS3Bucket_ReplicationRule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_ReplicationConfiguration) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_ReplicationConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_ReplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_replicationdestination.go b/cloudformation/resources/aws-s3-bucket_replicationdestination.go similarity index 96% rename from cloudformation/aws-s3-bucket_replicationdestination.go rename to cloudformation/resources/aws-s3-bucket_replicationdestination.go index b38ea55d1f..604d60c7eb 100644 --- a/cloudformation/aws-s3-bucket_replicationdestination.go +++ b/cloudformation/resources/aws-s3-bucket_replicationdestination.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_ReplicationDestination AWS CloudFormation Resource (AWS::S3::Bucket.ReplicationDestination) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html @@ -30,7 +32,7 @@ type AWSS3Bucket_ReplicationDestination struct { StorageClass string `json:"StorageClass,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSS3Bucket_ReplicationDestination) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_ReplicationDestination) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_ReplicationDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_replicationrule.go b/cloudformation/resources/aws-s3-bucket_replicationrule.go similarity index 94% rename from cloudformation/aws-s3-bucket_replicationrule.go rename to cloudformation/resources/aws-s3-bucket_replicationrule.go index 76c8a8dae5..0dafe054a3 100644 --- a/cloudformation/aws-s3-bucket_replicationrule.go +++ b/cloudformation/resources/aws-s3-bucket_replicationrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_ReplicationRule AWS CloudFormation Resource (AWS::S3::Bucket.ReplicationRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html @@ -30,7 +32,7 @@ type AWSS3Bucket_ReplicationRule struct { Status string `json:"Status,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSS3Bucket_ReplicationRule) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_ReplicationRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_ReplicationRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_routingrule.go b/cloudformation/resources/aws-s3-bucket_routingrule.go similarity index 92% rename from cloudformation/aws-s3-bucket_routingrule.go rename to cloudformation/resources/aws-s3-bucket_routingrule.go index 685b2f591f..1f601f6780 100644 --- a/cloudformation/aws-s3-bucket_routingrule.go +++ b/cloudformation/resources/aws-s3-bucket_routingrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_RoutingRule AWS CloudFormation Resource (AWS::S3::Bucket.RoutingRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html @@ -15,7 +17,7 @@ type AWSS3Bucket_RoutingRule struct { RoutingRuleCondition *AWSS3Bucket_RoutingRuleCondition `json:"RoutingRuleCondition,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_RoutingRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_RoutingRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_RoutingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_routingrulecondition.go b/cloudformation/resources/aws-s3-bucket_routingrulecondition.go similarity index 94% rename from cloudformation/aws-s3-bucket_routingrulecondition.go rename to cloudformation/resources/aws-s3-bucket_routingrulecondition.go index fd1e98cdf2..bc75ca27a1 100644 --- a/cloudformation/aws-s3-bucket_routingrulecondition.go +++ b/cloudformation/resources/aws-s3-bucket_routingrulecondition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_RoutingRuleCondition AWS CloudFormation Resource (AWS::S3::Bucket.RoutingRuleCondition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-routingrulecondition.html @@ -15,7 +17,7 @@ type AWSS3Bucket_RoutingRuleCondition struct { KeyPrefixEquals string `json:"KeyPrefixEquals,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_RoutingRuleCondition) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_RoutingRuleCondition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_RoutingRuleCondition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_rule.go b/cloudformation/resources/aws-s3-bucket_rule.go similarity index 96% rename from cloudformation/aws-s3-bucket_rule.go rename to cloudformation/resources/aws-s3-bucket_rule.go index ce6f54ed0e..7de8894252 100644 --- a/cloudformation/aws-s3-bucket_rule.go +++ b/cloudformation/resources/aws-s3-bucket_rule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_Rule AWS CloudFormation Resource (AWS::S3::Bucket.Rule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html @@ -65,7 +67,7 @@ type AWSS3Bucket_Rule struct { Transitions []AWSS3Bucket_Transition `json:"Transitions,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -105,6 +107,6 @@ func (r *AWSS3Bucket_Rule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_Rule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_s3keyfilter.go b/cloudformation/resources/aws-s3-bucket_s3keyfilter.go similarity index 91% rename from cloudformation/aws-s3-bucket_s3keyfilter.go rename to cloudformation/resources/aws-s3-bucket_s3keyfilter.go index 589ce845ab..dbe2cd27e1 100644 --- a/cloudformation/aws-s3-bucket_s3keyfilter.go +++ b/cloudformation/resources/aws-s3-bucket_s3keyfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_S3KeyFilter AWS CloudFormation Resource (AWS::S3::Bucket.S3KeyFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key.html @@ -10,7 +12,7 @@ type AWSS3Bucket_S3KeyFilter struct { Rules []AWSS3Bucket_FilterRule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_S3KeyFilter) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_S3KeyFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_S3KeyFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_serversideencryptionbydefault.go b/cloudformation/resources/aws-s3-bucket_serversideencryptionbydefault.go similarity index 94% rename from cloudformation/aws-s3-bucket_serversideencryptionbydefault.go rename to cloudformation/resources/aws-s3-bucket_serversideencryptionbydefault.go index bcba2f2fc7..62e4b8ea02 100644 --- a/cloudformation/aws-s3-bucket_serversideencryptionbydefault.go +++ b/cloudformation/resources/aws-s3-bucket_serversideencryptionbydefault.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_ServerSideEncryptionByDefault AWS CloudFormation Resource (AWS::S3::Bucket.ServerSideEncryptionByDefault) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionbydefault.html @@ -15,7 +17,7 @@ type AWSS3Bucket_ServerSideEncryptionByDefault struct { SSEAlgorithm string `json:"SSEAlgorithm,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_ServerSideEncryptionByDefault) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_ServerSideEncryptionByDefault) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_ServerSideEncryptionByDefault) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_serversideencryptionrule.go b/cloudformation/resources/aws-s3-bucket_serversideencryptionrule.go similarity index 94% rename from cloudformation/aws-s3-bucket_serversideencryptionrule.go rename to cloudformation/resources/aws-s3-bucket_serversideencryptionrule.go index 31260cdc82..9efd60fb6f 100644 --- a/cloudformation/aws-s3-bucket_serversideencryptionrule.go +++ b/cloudformation/resources/aws-s3-bucket_serversideencryptionrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_ServerSideEncryptionRule AWS CloudFormation Resource (AWS::S3::Bucket.ServerSideEncryptionRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionrule.html @@ -10,7 +12,7 @@ type AWSS3Bucket_ServerSideEncryptionRule struct { ServerSideEncryptionByDefault *AWSS3Bucket_ServerSideEncryptionByDefault `json:"ServerSideEncryptionByDefault,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_ServerSideEncryptionRule) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_ServerSideEncryptionRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_ServerSideEncryptionRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_sourceselectioncriteria.go b/cloudformation/resources/aws-s3-bucket_sourceselectioncriteria.go similarity index 94% rename from cloudformation/aws-s3-bucket_sourceselectioncriteria.go rename to cloudformation/resources/aws-s3-bucket_sourceselectioncriteria.go index 8fcd7caede..2676f12722 100644 --- a/cloudformation/aws-s3-bucket_sourceselectioncriteria.go +++ b/cloudformation/resources/aws-s3-bucket_sourceselectioncriteria.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_SourceSelectionCriteria AWS CloudFormation Resource (AWS::S3::Bucket.SourceSelectionCriteria) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-sourceselectioncriteria.html @@ -10,7 +12,7 @@ type AWSS3Bucket_SourceSelectionCriteria struct { SseKmsEncryptedObjects *AWSS3Bucket_SseKmsEncryptedObjects `json:"SseKmsEncryptedObjects,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_SourceSelectionCriteria) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_SourceSelectionCriteria) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_SourceSelectionCriteria) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_ssekmsencryptedobjects.go b/cloudformation/resources/aws-s3-bucket_ssekmsencryptedobjects.go similarity index 93% rename from cloudformation/aws-s3-bucket_ssekmsencryptedobjects.go rename to cloudformation/resources/aws-s3-bucket_ssekmsencryptedobjects.go index e3e2eb6169..1fb3701b3e 100644 --- a/cloudformation/aws-s3-bucket_ssekmsencryptedobjects.go +++ b/cloudformation/resources/aws-s3-bucket_ssekmsencryptedobjects.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_SseKmsEncryptedObjects AWS CloudFormation Resource (AWS::S3::Bucket.SseKmsEncryptedObjects) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ssekmsencryptedobjects.html @@ -10,7 +12,7 @@ type AWSS3Bucket_SseKmsEncryptedObjects struct { Status string `json:"Status,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_SseKmsEncryptedObjects) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_SseKmsEncryptedObjects) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_SseKmsEncryptedObjects) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_storageclassanalysis.go b/cloudformation/resources/aws-s3-bucket_storageclassanalysis.go similarity index 94% rename from cloudformation/aws-s3-bucket_storageclassanalysis.go rename to cloudformation/resources/aws-s3-bucket_storageclassanalysis.go index 08dcc9079d..faca023ca4 100644 --- a/cloudformation/aws-s3-bucket_storageclassanalysis.go +++ b/cloudformation/resources/aws-s3-bucket_storageclassanalysis.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_StorageClassAnalysis AWS CloudFormation Resource (AWS::S3::Bucket.StorageClassAnalysis) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-storageclassanalysis.html @@ -10,7 +12,7 @@ type AWSS3Bucket_StorageClassAnalysis struct { DataExport *AWSS3Bucket_DataExport `json:"DataExport,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_StorageClassAnalysis) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_StorageClassAnalysis) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_StorageClassAnalysis) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_tagfilter.go b/cloudformation/resources/aws-s3-bucket_tagfilter.go similarity index 92% rename from cloudformation/aws-s3-bucket_tagfilter.go rename to cloudformation/resources/aws-s3-bucket_tagfilter.go index 8f3cf99429..2c1abb9608 100644 --- a/cloudformation/aws-s3-bucket_tagfilter.go +++ b/cloudformation/resources/aws-s3-bucket_tagfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_TagFilter AWS CloudFormation Resource (AWS::S3::Bucket.TagFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-tagfilter.html @@ -15,7 +17,7 @@ type AWSS3Bucket_TagFilter struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSS3Bucket_TagFilter) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_TagFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_topicconfiguration.go b/cloudformation/resources/aws-s3-bucket_topicconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_topicconfiguration.go rename to cloudformation/resources/aws-s3-bucket_topicconfiguration.go index d878aa84fc..cc2f9a9ab0 100644 --- a/cloudformation/aws-s3-bucket_topicconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_topicconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_TopicConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.TopicConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html @@ -20,7 +22,7 @@ type AWSS3Bucket_TopicConfiguration struct { Topic string `json:"Topic,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSS3Bucket_TopicConfiguration) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_TopicConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_TopicConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_transition.go b/cloudformation/resources/aws-s3-bucket_transition.go similarity index 93% rename from cloudformation/aws-s3-bucket_transition.go rename to cloudformation/resources/aws-s3-bucket_transition.go index 4b2ccb51dd..92bb956b33 100644 --- a/cloudformation/aws-s3-bucket_transition.go +++ b/cloudformation/resources/aws-s3-bucket_transition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_Transition AWS CloudFormation Resource (AWS::S3::Bucket.Transition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-transition.html @@ -20,7 +22,7 @@ type AWSS3Bucket_Transition struct { TransitionInDays int `json:"TransitionInDays,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSS3Bucket_Transition) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_Transition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_Transition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_versioningconfiguration.go b/cloudformation/resources/aws-s3-bucket_versioningconfiguration.go similarity index 93% rename from cloudformation/aws-s3-bucket_versioningconfiguration.go rename to cloudformation/resources/aws-s3-bucket_versioningconfiguration.go index 0170c91fef..d57d9e697a 100644 --- a/cloudformation/aws-s3-bucket_versioningconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_versioningconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_VersioningConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.VersioningConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-versioningconfig.html @@ -10,7 +12,7 @@ type AWSS3Bucket_VersioningConfiguration struct { Status string `json:"Status,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSS3Bucket_VersioningConfiguration) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_VersioningConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_VersioningConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucket_websiteconfiguration.go b/cloudformation/resources/aws-s3-bucket_websiteconfiguration.go similarity index 95% rename from cloudformation/aws-s3-bucket_websiteconfiguration.go rename to cloudformation/resources/aws-s3-bucket_websiteconfiguration.go index 5a64f1c463..8fd98e87cb 100644 --- a/cloudformation/aws-s3-bucket_websiteconfiguration.go +++ b/cloudformation/resources/aws-s3-bucket_websiteconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSS3Bucket_WebsiteConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.WebsiteConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration.html @@ -25,7 +27,7 @@ type AWSS3Bucket_WebsiteConfiguration struct { RoutingRules []AWSS3Bucket_RoutingRule `json:"RoutingRules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSS3Bucket_WebsiteConfiguration) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3Bucket_WebsiteConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3Bucket_WebsiteConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-s3-bucketpolicy.go b/cloudformation/resources/aws-s3-bucketpolicy.go similarity index 90% rename from cloudformation/aws-s3-bucketpolicy.go rename to cloudformation/resources/aws-s3-bucketpolicy.go index cb04f4b972..1b244e35b2 100644 --- a/cloudformation/aws-s3-bucketpolicy.go +++ b/cloudformation/resources/aws-s3-bucketpolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSS3BucketPolicy AWS CloudFormation Resource (AWS::S3::BucketPolicy) @@ -21,7 +22,7 @@ type AWSS3BucketPolicy struct { PolicyDocument interface{} `json:"PolicyDocument,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSS3BucketPolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSS3BucketPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSS3BucketPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSS3BucketPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sagemaker-endpoint.go b/cloudformation/resources/aws-sagemaker-endpoint.go similarity index 91% rename from cloudformation/aws-sagemaker-endpoint.go rename to cloudformation/resources/aws-sagemaker-endpoint.go index d1b1e0e31d..72286e6b02 100644 --- a/cloudformation/aws-sagemaker-endpoint.go +++ b/cloudformation/resources/aws-sagemaker-endpoint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSageMakerEndpoint AWS CloudFormation Resource (AWS::SageMaker::Endpoint) @@ -26,7 +27,7 @@ type AWSSageMakerEndpoint struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSSageMakerEndpoint) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerEndpoint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSSageMakerEndpoint) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sagemaker-endpointconfig.go b/cloudformation/resources/aws-sagemaker-endpointconfig.go similarity index 91% rename from cloudformation/aws-sagemaker-endpointconfig.go rename to cloudformation/resources/aws-sagemaker-endpointconfig.go index d8269fab9d..85bf9ad5e4 100644 --- a/cloudformation/aws-sagemaker-endpointconfig.go +++ b/cloudformation/resources/aws-sagemaker-endpointconfig.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSageMakerEndpointConfig AWS CloudFormation Resource (AWS::SageMaker::EndpointConfig) @@ -31,7 +32,7 @@ type AWSSageMakerEndpointConfig struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSSageMakerEndpointConfig) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerEndpointConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerEndpointConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSSageMakerEndpointConfig) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sagemaker-endpointconfig_productionvariant.go b/cloudformation/resources/aws-sagemaker-endpointconfig_productionvariant.go similarity index 96% rename from cloudformation/aws-sagemaker-endpointconfig_productionvariant.go rename to cloudformation/resources/aws-sagemaker-endpointconfig_productionvariant.go index 386ed63627..e9dd724d0f 100644 --- a/cloudformation/aws-sagemaker-endpointconfig_productionvariant.go +++ b/cloudformation/resources/aws-sagemaker-endpointconfig_productionvariant.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSageMakerEndpointConfig_ProductionVariant AWS CloudFormation Resource (AWS::SageMaker::EndpointConfig.ProductionVariant) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html @@ -35,7 +37,7 @@ type AWSSageMakerEndpointConfig_ProductionVariant struct { VariantName string `json:"VariantName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSSageMakerEndpointConfig_ProductionVariant) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerEndpointConfig_ProductionVariant) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerEndpointConfig_ProductionVariant) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-sagemaker-model.go b/cloudformation/resources/aws-sagemaker-model.go similarity index 92% rename from cloudformation/aws-sagemaker-model.go rename to cloudformation/resources/aws-sagemaker-model.go index 51a9905537..43dbf82f2e 100644 --- a/cloudformation/aws-sagemaker-model.go +++ b/cloudformation/resources/aws-sagemaker-model.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSageMakerModel AWS CloudFormation Resource (AWS::SageMaker::Model) @@ -41,7 +42,7 @@ type AWSSageMakerModel struct { VpcConfig *AWSSageMakerModel_VpcConfig `json:"VpcConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSSageMakerModel) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerModel) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerModel) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSSageMakerModel) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sagemaker-model_containerdefinition.go b/cloudformation/resources/aws-sagemaker-model_containerdefinition.go similarity index 95% rename from cloudformation/aws-sagemaker-model_containerdefinition.go rename to cloudformation/resources/aws-sagemaker-model_containerdefinition.go index ae5adfe551..f854ec6a48 100644 --- a/cloudformation/aws-sagemaker-model_containerdefinition.go +++ b/cloudformation/resources/aws-sagemaker-model_containerdefinition.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSageMakerModel_ContainerDefinition AWS CloudFormation Resource (AWS::SageMaker::Model.ContainerDefinition) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html @@ -25,7 +27,7 @@ type AWSSageMakerModel_ContainerDefinition struct { ModelDataUrl string `json:"ModelDataUrl,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSSageMakerModel_ContainerDefinition) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerModel_ContainerDefinition) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerModel_ContainerDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-sagemaker-model_vpcconfig.go b/cloudformation/resources/aws-sagemaker-model_vpcconfig.go similarity index 92% rename from cloudformation/aws-sagemaker-model_vpcconfig.go rename to cloudformation/resources/aws-sagemaker-model_vpcconfig.go index 6bd5f44acc..d122e14991 100644 --- a/cloudformation/aws-sagemaker-model_vpcconfig.go +++ b/cloudformation/resources/aws-sagemaker-model_vpcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSageMakerModel_VpcConfig AWS CloudFormation Resource (AWS::SageMaker::Model.VpcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-vpcconfig.html @@ -15,7 +17,7 @@ type AWSSageMakerModel_VpcConfig struct { Subnets []string `json:"Subnets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSageMakerModel_VpcConfig) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerModel_VpcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerModel_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-sagemaker-notebookinstance.go b/cloudformation/resources/aws-sagemaker-notebookinstance.go similarity index 94% rename from cloudformation/aws-sagemaker-notebookinstance.go rename to cloudformation/resources/aws-sagemaker-notebookinstance.go index 91f0cd26cc..be1c91d55e 100644 --- a/cloudformation/aws-sagemaker-notebookinstance.go +++ b/cloudformation/resources/aws-sagemaker-notebookinstance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSageMakerNotebookInstance AWS CloudFormation Resource (AWS::SageMaker::NotebookInstance) @@ -61,7 +62,7 @@ type AWSSageMakerNotebookInstance struct { VolumeSizeInGB int `json:"VolumeSizeInGB,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSSageMakerNotebookInstance) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerNotebookInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerNotebookInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSSageMakerNotebookInstance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sagemaker-notebookinstancelifecycleconfig.go b/cloudformation/resources/aws-sagemaker-notebookinstancelifecycleconfig.go similarity index 93% rename from cloudformation/aws-sagemaker-notebookinstancelifecycleconfig.go rename to cloudformation/resources/aws-sagemaker-notebookinstancelifecycleconfig.go index b1b6ee58ba..2a03e4802b 100644 --- a/cloudformation/aws-sagemaker-notebookinstancelifecycleconfig.go +++ b/cloudformation/resources/aws-sagemaker-notebookinstancelifecycleconfig.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSageMakerNotebookInstanceLifecycleConfig AWS CloudFormation Resource (AWS::SageMaker::NotebookInstanceLifecycleConfig) @@ -26,7 +27,7 @@ type AWSSageMakerNotebookInstanceLifecycleConfig struct { OnStart []AWSSageMakerNotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook `json:"OnStart,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSSageMakerNotebookInstanceLifecycleConfig) SetMetadata(metadata map[s // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerNotebookInstanceLifecycleConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerNotebookInstanceLifecycleConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSSageMakerNotebookInstanceLifecycleConfig) MarshalJSON() ([]byte, erro return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go b/cloudformation/resources/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go similarity index 93% rename from cloudformation/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go rename to cloudformation/resources/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go index ff08196021..d2d44db350 100644 --- a/cloudformation/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go +++ b/cloudformation/resources/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSageMakerNotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook AWS CloudFormation Resource (AWS::SageMaker::NotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHook) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html @@ -10,7 +12,7 @@ type AWSSageMakerNotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook s Content string `json:"Content,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSSageMakerNotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHo // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSageMakerNotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSageMakerNotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-sdb-domain.go b/cloudformation/resources/aws-sdb-domain.go similarity index 89% rename from cloudformation/aws-sdb-domain.go rename to cloudformation/resources/aws-sdb-domain.go index e9c45f103e..a6852328f1 100644 --- a/cloudformation/aws-sdb-domain.go +++ b/cloudformation/resources/aws-sdb-domain.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSDBDomain AWS CloudFormation Resource (AWS::SDB::Domain) @@ -16,7 +17,7 @@ type AWSSDBDomain struct { Description string `json:"Description,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSSDBDomain) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSDBDomain) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSDBDomain) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSSDBDomain) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-secretsmanager-resourcepolicy.go b/cloudformation/resources/aws-secretsmanager-resourcepolicy.go similarity index 92% rename from cloudformation/aws-secretsmanager-resourcepolicy.go rename to cloudformation/resources/aws-secretsmanager-resourcepolicy.go index 08c58f47fe..43d4b0e2a6 100644 --- a/cloudformation/aws-secretsmanager-resourcepolicy.go +++ b/cloudformation/resources/aws-secretsmanager-resourcepolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSecretsManagerResourcePolicy AWS CloudFormation Resource (AWS::SecretsManager::ResourcePolicy) @@ -21,7 +22,7 @@ type AWSSecretsManagerResourcePolicy struct { SecretId string `json:"SecretId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSSecretsManagerResourcePolicy) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSecretsManagerResourcePolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSecretsManagerResourcePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSSecretsManagerResourcePolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-secretsmanager-rotationschedule.go b/cloudformation/resources/aws-secretsmanager-rotationschedule.go similarity index 92% rename from cloudformation/aws-secretsmanager-rotationschedule.go rename to cloudformation/resources/aws-secretsmanager-rotationschedule.go index 6c740db923..a91959f8f4 100644 --- a/cloudformation/aws-secretsmanager-rotationschedule.go +++ b/cloudformation/resources/aws-secretsmanager-rotationschedule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSecretsManagerRotationSchedule AWS CloudFormation Resource (AWS::SecretsManager::RotationSchedule) @@ -26,7 +27,7 @@ type AWSSecretsManagerRotationSchedule struct { SecretId string `json:"SecretId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSSecretsManagerRotationSchedule) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSecretsManagerRotationSchedule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSecretsManagerRotationSchedule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSSecretsManagerRotationSchedule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-secretsmanager-rotationschedule_rotationrules.go b/cloudformation/resources/aws-secretsmanager-rotationschedule_rotationrules.go similarity index 93% rename from cloudformation/aws-secretsmanager-rotationschedule_rotationrules.go rename to cloudformation/resources/aws-secretsmanager-rotationschedule_rotationrules.go index 19a643695c..079a407e47 100644 --- a/cloudformation/aws-secretsmanager-rotationschedule_rotationrules.go +++ b/cloudformation/resources/aws-secretsmanager-rotationschedule_rotationrules.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSecretsManagerRotationSchedule_RotationRules AWS CloudFormation Resource (AWS::SecretsManager::RotationSchedule.RotationRules) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-secretsmanager-rotationschedule-rotationrules.html @@ -10,7 +12,7 @@ type AWSSecretsManagerRotationSchedule_RotationRules struct { AutomaticallyAfterDays int `json:"AutomaticallyAfterDays,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSSecretsManagerRotationSchedule_RotationRules) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSecretsManagerRotationSchedule_RotationRules) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSecretsManagerRotationSchedule_RotationRules) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-secretsmanager-secret.go b/cloudformation/resources/aws-secretsmanager-secret.go similarity index 92% rename from cloudformation/aws-secretsmanager-secret.go rename to cloudformation/resources/aws-secretsmanager-secret.go index 4597d6c202..84ea4da9cd 100644 --- a/cloudformation/aws-secretsmanager-secret.go +++ b/cloudformation/resources/aws-secretsmanager-secret.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSecretsManagerSecret AWS CloudFormation Resource (AWS::SecretsManager::Secret) @@ -41,7 +42,7 @@ type AWSSecretsManagerSecret struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSSecretsManagerSecret) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSecretsManagerSecret) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSecretsManagerSecret) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSSecretsManagerSecret) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-secretsmanager-secret_generatesecretstring.go b/cloudformation/resources/aws-secretsmanager-secret_generatesecretstring.go similarity index 97% rename from cloudformation/aws-secretsmanager-secret_generatesecretstring.go rename to cloudformation/resources/aws-secretsmanager-secret_generatesecretstring.go index 1c675ac130..7e969e9af5 100644 --- a/cloudformation/aws-secretsmanager-secret_generatesecretstring.go +++ b/cloudformation/resources/aws-secretsmanager-secret_generatesecretstring.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSecretsManagerSecret_GenerateSecretString AWS CloudFormation Resource (AWS::SecretsManager::Secret.GenerateSecretString) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-secretsmanager-secret-generatesecretstring.html @@ -55,7 +57,7 @@ type AWSSecretsManagerSecret_GenerateSecretString struct { SecretStringTemplate string `json:"SecretStringTemplate,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -95,6 +97,6 @@ func (r *AWSSecretsManagerSecret_GenerateSecretString) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSecretsManagerSecret_GenerateSecretString) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSecretsManagerSecret_GenerateSecretString) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-secretsmanager-secrettargetattachment.go b/cloudformation/resources/aws-secretsmanager-secrettargetattachment.go similarity index 92% rename from cloudformation/aws-secretsmanager-secrettargetattachment.go rename to cloudformation/resources/aws-secretsmanager-secrettargetattachment.go index 258bbb1e5b..892d4a810e 100644 --- a/cloudformation/aws-secretsmanager-secrettargetattachment.go +++ b/cloudformation/resources/aws-secretsmanager-secrettargetattachment.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSecretsManagerSecretTargetAttachment AWS CloudFormation Resource (AWS::SecretsManager::SecretTargetAttachment) @@ -26,7 +27,7 @@ type AWSSecretsManagerSecretTargetAttachment struct { TargetType string `json:"TargetType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSSecretsManagerSecretTargetAttachment) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSecretsManagerSecretTargetAttachment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSecretsManagerSecretTargetAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSSecretsManagerSecretTargetAttachment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-serverless-api.go b/cloudformation/resources/aws-serverless-api.go similarity index 93% rename from cloudformation/aws-serverless-api.go rename to cloudformation/resources/aws-serverless-api.go index d872f4c3e9..9ac430adfb 100644 --- a/cloudformation/aws-serverless-api.go +++ b/cloudformation/resources/aws-serverless-api.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServerlessApi AWS CloudFormation Resource (AWS::Serverless::Api) @@ -71,7 +72,7 @@ type AWSServerlessApi struct { Variables map[string]string `json:"Variables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -111,7 +112,7 @@ func (r *AWSServerlessApi) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessApi) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessApi) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -122,9 +123,9 @@ func (r AWSServerlessApi) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-serverless-api_auth.go b/cloudformation/resources/aws-serverless-api_auth.go similarity index 90% rename from cloudformation/aws-serverless-api_auth.go rename to cloudformation/resources/aws-serverless-api_auth.go index 0a3c10b2db..f1591eb75b 100644 --- a/cloudformation/aws-serverless-api_auth.go +++ b/cloudformation/resources/aws-serverless-api_auth.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessApi_Auth AWS CloudFormation Resource (AWS::Serverless::Api.Auth) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api-auth-object @@ -7,7 +9,7 @@ type AWSServerlessApi_Auth struct { // Authorizers AWS CloudFormation Property // Required: false // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api-auth-object - Authorizers string `json:"Authorizers,omitempty"` + Authorizers interface{} `json:"Authorizers,omitempty"` // DefaultAuthorizer AWS CloudFormation Property // Required: false @@ -15,7 +17,7 @@ type AWSServerlessApi_Auth struct { DefaultAuthorizer string `json:"DefaultAuthorizer,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessApi_Auth) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessApi_Auth) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessApi_Auth) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-api_s3location.go b/cloudformation/resources/aws-serverless-api_s3location.go similarity index 92% rename from cloudformation/aws-serverless-api_s3location.go rename to cloudformation/resources/aws-serverless-api_s3location.go index b731048fe3..3da2767907 100644 --- a/cloudformation/aws-serverless-api_s3location.go +++ b/cloudformation/resources/aws-serverless-api_s3location.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessApi_S3Location AWS CloudFormation Resource (AWS::Serverless::Api.S3Location) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3-location-object @@ -20,7 +22,7 @@ type AWSServerlessApi_S3Location struct { Version int `json:"Version"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServerlessApi_S3Location) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessApi_S3Location) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessApi_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-application.go b/cloudformation/resources/aws-serverless-application.go similarity index 91% rename from cloudformation/aws-serverless-application.go rename to cloudformation/resources/aws-serverless-application.go index d211ea935b..dc36bd875c 100644 --- a/cloudformation/aws-serverless-application.go +++ b/cloudformation/resources/aws-serverless-application.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServerlessApplication AWS CloudFormation Resource (AWS::Serverless::Application) @@ -36,7 +37,7 @@ type AWSServerlessApplication struct { TimeoutInMinutes int `json:"TimeoutInMinutes,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSServerlessApplication) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessApplication) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSServerlessApplication) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-serverless-application_applicationlocation.go b/cloudformation/resources/aws-serverless-application_applicationlocation.go similarity index 94% rename from cloudformation/aws-serverless-application_applicationlocation.go rename to cloudformation/resources/aws-serverless-application_applicationlocation.go index 8c34b278b3..8a3ee7d03a 100644 --- a/cloudformation/aws-serverless-application_applicationlocation.go +++ b/cloudformation/resources/aws-serverless-application_applicationlocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessApplication_ApplicationLocation AWS CloudFormation Resource (AWS::Serverless::Application.ApplicationLocation) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapplication @@ -15,7 +17,7 @@ type AWSServerlessApplication_ApplicationLocation struct { SemanticVersion string `json:"SemanticVersion,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessApplication_ApplicationLocation) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessApplication_ApplicationLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessApplication_ApplicationLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function.go b/cloudformation/resources/aws-serverless-function.go similarity index 95% rename from cloudformation/aws-serverless-function.go rename to cloudformation/resources/aws-serverless-function.go index a2eacadb34..5b8a442ac7 100644 --- a/cloudformation/aws-serverless-function.go +++ b/cloudformation/resources/aws-serverless-function.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServerlessFunction AWS CloudFormation Resource (AWS::Serverless::Function) @@ -111,7 +112,7 @@ type AWSServerlessFunction struct { VpcConfig *AWSServerlessFunction_VpcConfig `json:"VpcConfig,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -151,7 +152,7 @@ func (r *AWSServerlessFunction) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -162,9 +163,9 @@ func (r AWSServerlessFunction) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-serverless-function_alexaskillevent.go b/cloudformation/resources/aws-serverless-function_alexaskillevent.go similarity index 93% rename from cloudformation/aws-serverless-function_alexaskillevent.go rename to cloudformation/resources/aws-serverless-function_alexaskillevent.go index d321d1ec23..88c50ca471 100644 --- a/cloudformation/aws-serverless-function_alexaskillevent.go +++ b/cloudformation/resources/aws-serverless-function_alexaskillevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_AlexaSkillEvent AWS CloudFormation Resource (AWS::Serverless::Function.AlexaSkillEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#alexaskill @@ -10,7 +12,7 @@ type AWSServerlessFunction_AlexaSkillEvent struct { Variables map[string]string `json:"Variables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSServerlessFunction_AlexaSkillEvent) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_AlexaSkillEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_AlexaSkillEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_apievent.go b/cloudformation/resources/aws-serverless-function_apievent.go similarity index 94% rename from cloudformation/aws-serverless-function_apievent.go rename to cloudformation/resources/aws-serverless-function_apievent.go index 3678986785..82534d3e05 100644 --- a/cloudformation/aws-serverless-function_apievent.go +++ b/cloudformation/resources/aws-serverless-function_apievent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_ApiEvent AWS CloudFormation Resource (AWS::Serverless::Function.ApiEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api @@ -20,7 +22,7 @@ type AWSServerlessFunction_ApiEvent struct { RestApiId string `json:"RestApiId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServerlessFunction_ApiEvent) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_ApiEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_ApiEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_cloudwatcheventevent.go b/cloudformation/resources/aws-serverless-function_cloudwatcheventevent.go similarity index 94% rename from cloudformation/aws-serverless-function_cloudwatcheventevent.go rename to cloudformation/resources/aws-serverless-function_cloudwatcheventevent.go index 74cc3f590a..f7fc35c644 100644 --- a/cloudformation/aws-serverless-function_cloudwatcheventevent.go +++ b/cloudformation/resources/aws-serverless-function_cloudwatcheventevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_CloudWatchEventEvent AWS CloudFormation Resource (AWS::Serverless::Function.CloudWatchEventEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cloudwatchevent @@ -20,7 +22,7 @@ type AWSServerlessFunction_CloudWatchEventEvent struct { Pattern interface{} `json:"Pattern,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServerlessFunction_CloudWatchEventEvent) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_CloudWatchEventEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_CloudWatchEventEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_deadletterqueue.go b/cloudformation/resources/aws-serverless-function_deadletterqueue.go similarity index 94% rename from cloudformation/aws-serverless-function_deadletterqueue.go rename to cloudformation/resources/aws-serverless-function_deadletterqueue.go index e2a3eb5609..7a39da95ea 100644 --- a/cloudformation/aws-serverless-function_deadletterqueue.go +++ b/cloudformation/resources/aws-serverless-function_deadletterqueue.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_DeadLetterQueue AWS CloudFormation Resource (AWS::Serverless::Function.DeadLetterQueue) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deadletterqueue-object @@ -15,7 +17,7 @@ type AWSServerlessFunction_DeadLetterQueue struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessFunction_DeadLetterQueue) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_DeadLetterQueue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_DeadLetterQueue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_deploymentpreference.go b/cloudformation/resources/aws-serverless-function_deploymentpreference.go similarity index 95% rename from cloudformation/aws-serverless-function_deploymentpreference.go rename to cloudformation/resources/aws-serverless-function_deploymentpreference.go index 3ebd480421..3fc1931ef3 100644 --- a/cloudformation/aws-serverless-function_deploymentpreference.go +++ b/cloudformation/resources/aws-serverless-function_deploymentpreference.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_DeploymentPreference AWS CloudFormation Resource (AWS::Serverless::Function.DeploymentPreference) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object @@ -30,7 +32,7 @@ type AWSServerlessFunction_DeploymentPreference struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSServerlessFunction_DeploymentPreference) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_DeploymentPreference) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_DeploymentPreference) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_dynamodbevent.go b/cloudformation/resources/aws-serverless-function_dynamodbevent.go similarity index 94% rename from cloudformation/aws-serverless-function_dynamodbevent.go rename to cloudformation/resources/aws-serverless-function_dynamodbevent.go index af3dfb40bd..af7933fc12 100644 --- a/cloudformation/aws-serverless-function_dynamodbevent.go +++ b/cloudformation/resources/aws-serverless-function_dynamodbevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_DynamoDBEvent AWS CloudFormation Resource (AWS::Serverless::Function.DynamoDBEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#dynamodb @@ -20,7 +22,7 @@ type AWSServerlessFunction_DynamoDBEvent struct { Stream string `json:"Stream,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServerlessFunction_DynamoDBEvent) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_DynamoDBEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_DynamoDBEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_eventsource.go b/cloudformation/resources/aws-serverless-function_eventsource.go similarity index 94% rename from cloudformation/aws-serverless-function_eventsource.go rename to cloudformation/resources/aws-serverless-function_eventsource.go index d54998adea..47c13ed66a 100644 --- a/cloudformation/aws-serverless-function_eventsource.go +++ b/cloudformation/resources/aws-serverless-function_eventsource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_EventSource AWS CloudFormation Resource (AWS::Serverless::Function.EventSource) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#event-source-object @@ -15,7 +17,7 @@ type AWSServerlessFunction_EventSource struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessFunction_EventSource) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_EventSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_EventSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_functionenvironment.go b/cloudformation/resources/aws-serverless-function_functionenvironment.go similarity index 93% rename from cloudformation/aws-serverless-function_functionenvironment.go rename to cloudformation/resources/aws-serverless-function_functionenvironment.go index 9f587b64f4..a33031c337 100644 --- a/cloudformation/aws-serverless-function_functionenvironment.go +++ b/cloudformation/resources/aws-serverless-function_functionenvironment.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_FunctionEnvironment AWS CloudFormation Resource (AWS::Serverless::Function.FunctionEnvironment) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object @@ -10,7 +12,7 @@ type AWSServerlessFunction_FunctionEnvironment struct { Variables map[string]string `json:"Variables,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSServerlessFunction_FunctionEnvironment) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_FunctionEnvironment) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_FunctionEnvironment) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_iampolicydocument.go b/cloudformation/resources/aws-serverless-function_iampolicydocument.go similarity index 93% rename from cloudformation/aws-serverless-function_iampolicydocument.go rename to cloudformation/resources/aws-serverless-function_iampolicydocument.go index a69a223cf9..cc2ed00063 100644 --- a/cloudformation/aws-serverless-function_iampolicydocument.go +++ b/cloudformation/resources/aws-serverless-function_iampolicydocument.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_IAMPolicyDocument AWS CloudFormation Resource (AWS::Serverless::Function.IAMPolicyDocument) // See: http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html @@ -10,7 +12,7 @@ type AWSServerlessFunction_IAMPolicyDocument struct { Statement interface{} `json:"Statement,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSServerlessFunction_IAMPolicyDocument) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_IAMPolicyDocument) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_IAMPolicyDocument) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_iotruleevent.go b/cloudformation/resources/aws-serverless-function_iotruleevent.go similarity index 94% rename from cloudformation/aws-serverless-function_iotruleevent.go rename to cloudformation/resources/aws-serverless-function_iotruleevent.go index 872eff9850..c76863cd29 100644 --- a/cloudformation/aws-serverless-function_iotruleevent.go +++ b/cloudformation/resources/aws-serverless-function_iotruleevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_IoTRuleEvent AWS CloudFormation Resource (AWS::Serverless::Function.IoTRuleEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#iotrule @@ -15,7 +17,7 @@ type AWSServerlessFunction_IoTRuleEvent struct { Sql string `json:"Sql,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessFunction_IoTRuleEvent) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_IoTRuleEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_IoTRuleEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_kinesisevent.go b/cloudformation/resources/aws-serverless-function_kinesisevent.go similarity index 94% rename from cloudformation/aws-serverless-function_kinesisevent.go rename to cloudformation/resources/aws-serverless-function_kinesisevent.go index e2752865d0..89c38c0ef8 100644 --- a/cloudformation/aws-serverless-function_kinesisevent.go +++ b/cloudformation/resources/aws-serverless-function_kinesisevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_KinesisEvent AWS CloudFormation Resource (AWS::Serverless::Function.KinesisEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis @@ -20,7 +22,7 @@ type AWSServerlessFunction_KinesisEvent struct { Stream string `json:"Stream,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServerlessFunction_KinesisEvent) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_KinesisEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_KinesisEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_s3event.go b/cloudformation/resources/aws-serverless-function_s3event.go similarity index 94% rename from cloudformation/aws-serverless-function_s3event.go rename to cloudformation/resources/aws-serverless-function_s3event.go index 3794968a08..e543d11523 100644 --- a/cloudformation/aws-serverless-function_s3event.go +++ b/cloudformation/resources/aws-serverless-function_s3event.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_S3Event AWS CloudFormation Resource (AWS::Serverless::Function.S3Event) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3 @@ -20,7 +22,7 @@ type AWSServerlessFunction_S3Event struct { Filter *AWSServerlessFunction_S3NotificationFilter `json:"Filter,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServerlessFunction_S3Event) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_S3Event) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_S3Event) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_s3location.go b/cloudformation/resources/aws-serverless-function_s3location.go similarity index 94% rename from cloudformation/aws-serverless-function_s3location.go rename to cloudformation/resources/aws-serverless-function_s3location.go index 096d9d7bb7..0fb1c9b152 100644 --- a/cloudformation/aws-serverless-function_s3location.go +++ b/cloudformation/resources/aws-serverless-function_s3location.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_S3Location AWS CloudFormation Resource (AWS::Serverless::Function.S3Location) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3-location-object @@ -20,7 +22,7 @@ type AWSServerlessFunction_S3Location struct { Version int `json:"Version"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServerlessFunction_S3Location) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_S3Location) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_s3notificationfilter.go b/cloudformation/resources/aws-serverless-function_s3notificationfilter.go similarity index 93% rename from cloudformation/aws-serverless-function_s3notificationfilter.go rename to cloudformation/resources/aws-serverless-function_s3notificationfilter.go index 683b10bb4f..72c47fbee7 100644 --- a/cloudformation/aws-serverless-function_s3notificationfilter.go +++ b/cloudformation/resources/aws-serverless-function_s3notificationfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_S3NotificationFilter AWS CloudFormation Resource (AWS::Serverless::Function.S3NotificationFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter.html @@ -10,7 +12,7 @@ type AWSServerlessFunction_S3NotificationFilter struct { S3Key string `json:"S3Key,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSServerlessFunction_S3NotificationFilter) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_S3NotificationFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_S3NotificationFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_scheduleevent.go b/cloudformation/resources/aws-serverless-function_scheduleevent.go similarity index 94% rename from cloudformation/aws-serverless-function_scheduleevent.go rename to cloudformation/resources/aws-serverless-function_scheduleevent.go index ef41dba9c3..c3bf841717 100644 --- a/cloudformation/aws-serverless-function_scheduleevent.go +++ b/cloudformation/resources/aws-serverless-function_scheduleevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_ScheduleEvent AWS CloudFormation Resource (AWS::Serverless::Function.ScheduleEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#schedule @@ -15,7 +17,7 @@ type AWSServerlessFunction_ScheduleEvent struct { Schedule string `json:"Schedule,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessFunction_ScheduleEvent) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_ScheduleEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_ScheduleEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_snsevent.go b/cloudformation/resources/aws-serverless-function_snsevent.go similarity index 93% rename from cloudformation/aws-serverless-function_snsevent.go rename to cloudformation/resources/aws-serverless-function_snsevent.go index 2766fb1333..3848f66376 100644 --- a/cloudformation/aws-serverless-function_snsevent.go +++ b/cloudformation/resources/aws-serverless-function_snsevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_SNSEvent AWS CloudFormation Resource (AWS::Serverless::Function.SNSEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#sns @@ -10,7 +12,7 @@ type AWSServerlessFunction_SNSEvent struct { Topic string `json:"Topic,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSServerlessFunction_SNSEvent) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_SNSEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_SNSEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_sqsevent.go b/cloudformation/resources/aws-serverless-function_sqsevent.go similarity index 94% rename from cloudformation/aws-serverless-function_sqsevent.go rename to cloudformation/resources/aws-serverless-function_sqsevent.go index 459e8707ef..80bb954a61 100644 --- a/cloudformation/aws-serverless-function_sqsevent.go +++ b/cloudformation/resources/aws-serverless-function_sqsevent.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_SQSEvent AWS CloudFormation Resource (AWS::Serverless::Function.SQSEvent) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#sqs @@ -15,7 +17,7 @@ type AWSServerlessFunction_SQSEvent struct { Queue string `json:"Queue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessFunction_SQSEvent) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_SQSEvent) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_SQSEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-function_vpcconfig.go b/cloudformation/resources/aws-serverless-function_vpcconfig.go similarity index 94% rename from cloudformation/aws-serverless-function_vpcconfig.go rename to cloudformation/resources/aws-serverless-function_vpcconfig.go index 4fcd8633f3..a43051831a 100644 --- a/cloudformation/aws-serverless-function_vpcconfig.go +++ b/cloudformation/resources/aws-serverless-function_vpcconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessFunction_VpcConfig AWS CloudFormation Resource (AWS::Serverless::Function.VpcConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html @@ -15,7 +17,7 @@ type AWSServerlessFunction_VpcConfig struct { SubnetIds []string `json:"SubnetIds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessFunction_VpcConfig) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessFunction_VpcConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessFunction_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-layerversion.go b/cloudformation/resources/aws-serverless-layerversion.go similarity index 92% rename from cloudformation/aws-serverless-layerversion.go rename to cloudformation/resources/aws-serverless-layerversion.go index 043542592a..897de19f09 100644 --- a/cloudformation/aws-serverless-layerversion.go +++ b/cloudformation/resources/aws-serverless-layerversion.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServerlessLayerVersion AWS CloudFormation Resource (AWS::Serverless::LayerVersion) @@ -41,7 +42,7 @@ type AWSServerlessLayerVersion struct { RetentionPolicy string `json:"RetentionPolicy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSServerlessLayerVersion) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessLayerVersion) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessLayerVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSServerlessLayerVersion) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-serverless-simpletable.go b/cloudformation/resources/aws-serverless-simpletable.go similarity index 92% rename from cloudformation/aws-serverless-simpletable.go rename to cloudformation/resources/aws-serverless-simpletable.go index 2916d0b487..6042c63646 100644 --- a/cloudformation/aws-serverless-simpletable.go +++ b/cloudformation/resources/aws-serverless-simpletable.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServerlessSimpleTable AWS CloudFormation Resource (AWS::Serverless::SimpleTable) @@ -36,7 +37,7 @@ type AWSServerlessSimpleTable struct { Tags map[string]string `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSServerlessSimpleTable) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessSimpleTable) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessSimpleTable) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSServerlessSimpleTable) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-serverless-simpletable_primarykey.go b/cloudformation/resources/aws-serverless-simpletable_primarykey.go similarity index 94% rename from cloudformation/aws-serverless-simpletable_primarykey.go rename to cloudformation/resources/aws-serverless-simpletable_primarykey.go index 85b573fbc0..f935a4d893 100644 --- a/cloudformation/aws-serverless-simpletable_primarykey.go +++ b/cloudformation/resources/aws-serverless-simpletable_primarykey.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessSimpleTable_PrimaryKey AWS CloudFormation Resource (AWS::Serverless::SimpleTable.PrimaryKey) // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#primary-key-object @@ -15,7 +17,7 @@ type AWSServerlessSimpleTable_PrimaryKey struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessSimpleTable_PrimaryKey) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessSimpleTable_PrimaryKey) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessSimpleTable_PrimaryKey) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-simpletable_provisionedthroughput.go b/cloudformation/resources/aws-serverless-simpletable_provisionedthroughput.go similarity index 94% rename from cloudformation/aws-serverless-simpletable_provisionedthroughput.go rename to cloudformation/resources/aws-serverless-simpletable_provisionedthroughput.go index 2256ae47bf..4c29719bea 100644 --- a/cloudformation/aws-serverless-simpletable_provisionedthroughput.go +++ b/cloudformation/resources/aws-serverless-simpletable_provisionedthroughput.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessSimpleTable_ProvisionedThroughput AWS CloudFormation Resource (AWS::Serverless::SimpleTable.ProvisionedThroughput) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html @@ -15,7 +17,7 @@ type AWSServerlessSimpleTable_ProvisionedThroughput struct { WriteCapacityUnits int `json:"WriteCapacityUnits"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServerlessSimpleTable_ProvisionedThroughput) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessSimpleTable_ProvisionedThroughput) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessSimpleTable_ProvisionedThroughput) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-serverless-simpletable_ssespecification.go b/cloudformation/resources/aws-serverless-simpletable_ssespecification.go similarity index 93% rename from cloudformation/aws-serverless-simpletable_ssespecification.go rename to cloudformation/resources/aws-serverless-simpletable_ssespecification.go index f2055d34e9..a2f335909f 100644 --- a/cloudformation/aws-serverless-simpletable_ssespecification.go +++ b/cloudformation/resources/aws-serverless-simpletable_ssespecification.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServerlessSimpleTable_SSESpecification AWS CloudFormation Resource (AWS::Serverless::SimpleTable.SSESpecification) // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html @@ -10,7 +12,7 @@ type AWSServerlessSimpleTable_SSESpecification struct { SSEEnabled bool `json:"SSEEnabled,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSServerlessSimpleTable_SSESpecification) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServerlessSimpleTable_SSESpecification) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServerlessSimpleTable_SSESpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-servicecatalog-acceptedportfolioshare.go b/cloudformation/resources/aws-servicecatalog-acceptedportfolioshare.go similarity index 92% rename from cloudformation/aws-servicecatalog-acceptedportfolioshare.go rename to cloudformation/resources/aws-servicecatalog-acceptedportfolioshare.go index aae4f8663a..bf20f3285f 100644 --- a/cloudformation/aws-servicecatalog-acceptedportfolioshare.go +++ b/cloudformation/resources/aws-servicecatalog-acceptedportfolioshare.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogAcceptedPortfolioShare AWS CloudFormation Resource (AWS::ServiceCatalog::AcceptedPortfolioShare) @@ -21,7 +22,7 @@ type AWSServiceCatalogAcceptedPortfolioShare struct { PortfolioId string `json:"PortfolioId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSServiceCatalogAcceptedPortfolioShare) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogAcceptedPortfolioShare) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogAcceptedPortfolioShare) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSServiceCatalogAcceptedPortfolioShare) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-cloudformationproduct.go b/cloudformation/resources/aws-servicecatalog-cloudformationproduct.go similarity index 94% rename from cloudformation/aws-servicecatalog-cloudformationproduct.go rename to cloudformation/resources/aws-servicecatalog-cloudformationproduct.go index 62fd6447cb..8ecd1b7b10 100644 --- a/cloudformation/aws-servicecatalog-cloudformationproduct.go +++ b/cloudformation/resources/aws-servicecatalog-cloudformationproduct.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogCloudFormationProduct AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProduct) @@ -61,7 +62,7 @@ type AWSServiceCatalogCloudFormationProduct struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSServiceCatalogCloudFormationProduct) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogCloudFormationProduct) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogCloudFormationProduct) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSServiceCatalogCloudFormationProduct) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go b/cloudformation/resources/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go similarity index 94% rename from cloudformation/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go rename to cloudformation/resources/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go index 3dea66b38d..fdbcc4fb64 100644 --- a/cloudformation/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go +++ b/cloudformation/resources/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServiceCatalogCloudFormationProduct_ProvisioningArtifactProperties AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProduct.ProvisioningArtifactProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationproduct-provisioningartifactproperties.html @@ -20,7 +22,7 @@ type AWSServiceCatalogCloudFormationProduct_ProvisioningArtifactProperties struc Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServiceCatalogCloudFormationProduct_ProvisioningArtifactProperties) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogCloudFormationProduct_ProvisioningArtifactProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogCloudFormationProduct_ProvisioningArtifactProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-servicecatalog-cloudformationprovisionedproduct.go b/cloudformation/resources/aws-servicecatalog-cloudformationprovisionedproduct.go similarity index 95% rename from cloudformation/aws-servicecatalog-cloudformationprovisionedproduct.go rename to cloudformation/resources/aws-servicecatalog-cloudformationprovisionedproduct.go index 367cbea4ab..32b5a24807 100644 --- a/cloudformation/aws-servicecatalog-cloudformationprovisionedproduct.go +++ b/cloudformation/resources/aws-servicecatalog-cloudformationprovisionedproduct.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogCloudFormationProvisionedProduct AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProvisionedProduct) @@ -61,7 +62,7 @@ type AWSServiceCatalogCloudFormationProvisionedProduct struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSServiceCatalogCloudFormationProvisionedProduct) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogCloudFormationProvisionedProduct) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogCloudFormationProvisionedProduct) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSServiceCatalogCloudFormationProvisionedProduct) MarshalJSON() ([]byte return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go b/cloudformation/resources/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go similarity index 94% rename from cloudformation/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go rename to cloudformation/resources/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go index 0a25b33e2d..ec4ebe750f 100644 --- a/cloudformation/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go +++ b/cloudformation/resources/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServiceCatalogCloudFormationProvisionedProduct_ProvisioningParameter AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProvisionedProduct.ProvisioningParameter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationprovisionedproduct-provisioningparameter.html @@ -15,7 +17,7 @@ type AWSServiceCatalogCloudFormationProvisionedProduct_ProvisioningParameter str Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServiceCatalogCloudFormationProvisionedProduct_ProvisioningParameter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogCloudFormationProvisionedProduct_ProvisioningParameter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogCloudFormationProvisionedProduct_ProvisioningParameter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-servicecatalog-launchnotificationconstraint.go b/cloudformation/resources/aws-servicecatalog-launchnotificationconstraint.go similarity index 93% rename from cloudformation/aws-servicecatalog-launchnotificationconstraint.go rename to cloudformation/resources/aws-servicecatalog-launchnotificationconstraint.go index 76e320707d..de6f69d2ce 100644 --- a/cloudformation/aws-servicecatalog-launchnotificationconstraint.go +++ b/cloudformation/resources/aws-servicecatalog-launchnotificationconstraint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogLaunchNotificationConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::LaunchNotificationConstraint) @@ -36,7 +37,7 @@ type AWSServiceCatalogLaunchNotificationConstraint struct { ProductId string `json:"ProductId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSServiceCatalogLaunchNotificationConstraint) SetMetadata(metadata map // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogLaunchNotificationConstraint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogLaunchNotificationConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSServiceCatalogLaunchNotificationConstraint) MarshalJSON() ([]byte, er return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-launchroleconstraint.go b/cloudformation/resources/aws-servicecatalog-launchroleconstraint.go similarity index 93% rename from cloudformation/aws-servicecatalog-launchroleconstraint.go rename to cloudformation/resources/aws-servicecatalog-launchroleconstraint.go index 5a538f4fce..e1a537dc99 100644 --- a/cloudformation/aws-servicecatalog-launchroleconstraint.go +++ b/cloudformation/resources/aws-servicecatalog-launchroleconstraint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogLaunchRoleConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::LaunchRoleConstraint) @@ -36,7 +37,7 @@ type AWSServiceCatalogLaunchRoleConstraint struct { RoleArn string `json:"RoleArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSServiceCatalogLaunchRoleConstraint) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogLaunchRoleConstraint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogLaunchRoleConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSServiceCatalogLaunchRoleConstraint) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-launchtemplateconstraint.go b/cloudformation/resources/aws-servicecatalog-launchtemplateconstraint.go similarity index 93% rename from cloudformation/aws-servicecatalog-launchtemplateconstraint.go rename to cloudformation/resources/aws-servicecatalog-launchtemplateconstraint.go index 2d53029205..83417f8441 100644 --- a/cloudformation/aws-servicecatalog-launchtemplateconstraint.go +++ b/cloudformation/resources/aws-servicecatalog-launchtemplateconstraint.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogLaunchTemplateConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::LaunchTemplateConstraint) @@ -36,7 +37,7 @@ type AWSServiceCatalogLaunchTemplateConstraint struct { Rules string `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSServiceCatalogLaunchTemplateConstraint) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogLaunchTemplateConstraint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogLaunchTemplateConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSServiceCatalogLaunchTemplateConstraint) MarshalJSON() ([]byte, error) return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-portfolio.go b/cloudformation/resources/aws-servicecatalog-portfolio.go similarity index 92% rename from cloudformation/aws-servicecatalog-portfolio.go rename to cloudformation/resources/aws-servicecatalog-portfolio.go index af691c589c..f6c3303106 100644 --- a/cloudformation/aws-servicecatalog-portfolio.go +++ b/cloudformation/resources/aws-servicecatalog-portfolio.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogPortfolio AWS CloudFormation Resource (AWS::ServiceCatalog::Portfolio) @@ -36,7 +37,7 @@ type AWSServiceCatalogPortfolio struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSServiceCatalogPortfolio) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogPortfolio) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogPortfolio) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSServiceCatalogPortfolio) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-portfolioprincipalassociation.go b/cloudformation/resources/aws-servicecatalog-portfolioprincipalassociation.go similarity index 93% rename from cloudformation/aws-servicecatalog-portfolioprincipalassociation.go rename to cloudformation/resources/aws-servicecatalog-portfolioprincipalassociation.go index 13568919b5..17cc206c8d 100644 --- a/cloudformation/aws-servicecatalog-portfolioprincipalassociation.go +++ b/cloudformation/resources/aws-servicecatalog-portfolioprincipalassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogPortfolioPrincipalAssociation AWS CloudFormation Resource (AWS::ServiceCatalog::PortfolioPrincipalAssociation) @@ -31,7 +32,7 @@ type AWSServiceCatalogPortfolioPrincipalAssociation struct { PrincipalType string `json:"PrincipalType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSServiceCatalogPortfolioPrincipalAssociation) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogPortfolioPrincipalAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogPortfolioPrincipalAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSServiceCatalogPortfolioPrincipalAssociation) MarshalJSON() ([]byte, e return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-portfolioproductassociation.go b/cloudformation/resources/aws-servicecatalog-portfolioproductassociation.go similarity index 93% rename from cloudformation/aws-servicecatalog-portfolioproductassociation.go rename to cloudformation/resources/aws-servicecatalog-portfolioproductassociation.go index d15349fae7..e8a405be92 100644 --- a/cloudformation/aws-servicecatalog-portfolioproductassociation.go +++ b/cloudformation/resources/aws-servicecatalog-portfolioproductassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogPortfolioProductAssociation AWS CloudFormation Resource (AWS::ServiceCatalog::PortfolioProductAssociation) @@ -31,7 +32,7 @@ type AWSServiceCatalogPortfolioProductAssociation struct { SourcePortfolioId string `json:"SourcePortfolioId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSServiceCatalogPortfolioProductAssociation) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogPortfolioProductAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogPortfolioProductAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSServiceCatalogPortfolioProductAssociation) MarshalJSON() ([]byte, err return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-portfolioshare.go b/cloudformation/resources/aws-servicecatalog-portfolioshare.go similarity index 92% rename from cloudformation/aws-servicecatalog-portfolioshare.go rename to cloudformation/resources/aws-servicecatalog-portfolioshare.go index ac8b79a5b5..e4fac13842 100644 --- a/cloudformation/aws-servicecatalog-portfolioshare.go +++ b/cloudformation/resources/aws-servicecatalog-portfolioshare.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogPortfolioShare AWS CloudFormation Resource (AWS::ServiceCatalog::PortfolioShare) @@ -26,7 +27,7 @@ type AWSServiceCatalogPortfolioShare struct { PortfolioId string `json:"PortfolioId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSServiceCatalogPortfolioShare) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogPortfolioShare) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogPortfolioShare) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSServiceCatalogPortfolioShare) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-tagoption.go b/cloudformation/resources/aws-servicecatalog-tagoption.go similarity index 91% rename from cloudformation/aws-servicecatalog-tagoption.go rename to cloudformation/resources/aws-servicecatalog-tagoption.go index 5eb7c7356a..071e24b33e 100644 --- a/cloudformation/aws-servicecatalog-tagoption.go +++ b/cloudformation/resources/aws-servicecatalog-tagoption.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogTagOption AWS CloudFormation Resource (AWS::ServiceCatalog::TagOption) @@ -26,7 +27,7 @@ type AWSServiceCatalogTagOption struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSServiceCatalogTagOption) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogTagOption) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogTagOption) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSServiceCatalogTagOption) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicecatalog-tagoptionassociation.go b/cloudformation/resources/aws-servicecatalog-tagoptionassociation.go similarity index 92% rename from cloudformation/aws-servicecatalog-tagoptionassociation.go rename to cloudformation/resources/aws-servicecatalog-tagoptionassociation.go index 0cd4f4bd39..d40fea746e 100644 --- a/cloudformation/aws-servicecatalog-tagoptionassociation.go +++ b/cloudformation/resources/aws-servicecatalog-tagoptionassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceCatalogTagOptionAssociation AWS CloudFormation Resource (AWS::ServiceCatalog::TagOptionAssociation) @@ -21,7 +22,7 @@ type AWSServiceCatalogTagOptionAssociation struct { TagOptionId string `json:"TagOptionId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSServiceCatalogTagOptionAssociation) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceCatalogTagOptionAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceCatalogTagOptionAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSServiceCatalogTagOptionAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicediscovery-httpnamespace.go b/cloudformation/resources/aws-servicediscovery-httpnamespace.go similarity index 92% rename from cloudformation/aws-servicediscovery-httpnamespace.go rename to cloudformation/resources/aws-servicediscovery-httpnamespace.go index c9d6c641d6..9e79f8b8ff 100644 --- a/cloudformation/aws-servicediscovery-httpnamespace.go +++ b/cloudformation/resources/aws-servicediscovery-httpnamespace.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceDiscoveryHttpNamespace AWS CloudFormation Resource (AWS::ServiceDiscovery::HttpNamespace) @@ -21,7 +22,7 @@ type AWSServiceDiscoveryHttpNamespace struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSServiceDiscoveryHttpNamespace) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryHttpNamespace) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryHttpNamespace) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSServiceDiscoveryHttpNamespace) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicediscovery-instance.go b/cloudformation/resources/aws-servicediscovery-instance.go similarity index 91% rename from cloudformation/aws-servicediscovery-instance.go rename to cloudformation/resources/aws-servicediscovery-instance.go index 4bd1347614..500c736e09 100644 --- a/cloudformation/aws-servicediscovery-instance.go +++ b/cloudformation/resources/aws-servicediscovery-instance.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceDiscoveryInstance AWS CloudFormation Resource (AWS::ServiceDiscovery::Instance) @@ -26,7 +27,7 @@ type AWSServiceDiscoveryInstance struct { ServiceId string `json:"ServiceId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSServiceDiscoveryInstance) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryInstance) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSServiceDiscoveryInstance) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicediscovery-privatednsnamespace.go b/cloudformation/resources/aws-servicediscovery-privatednsnamespace.go similarity index 92% rename from cloudformation/aws-servicediscovery-privatednsnamespace.go rename to cloudformation/resources/aws-servicediscovery-privatednsnamespace.go index 2bf0c53cae..d551bbb00e 100644 --- a/cloudformation/aws-servicediscovery-privatednsnamespace.go +++ b/cloudformation/resources/aws-servicediscovery-privatednsnamespace.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceDiscoveryPrivateDnsNamespace AWS CloudFormation Resource (AWS::ServiceDiscovery::PrivateDnsNamespace) @@ -26,7 +27,7 @@ type AWSServiceDiscoveryPrivateDnsNamespace struct { Vpc string `json:"Vpc,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSServiceDiscoveryPrivateDnsNamespace) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryPrivateDnsNamespace) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryPrivateDnsNamespace) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSServiceDiscoveryPrivateDnsNamespace) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicediscovery-publicdnsnamespace.go b/cloudformation/resources/aws-servicediscovery-publicdnsnamespace.go similarity index 92% rename from cloudformation/aws-servicediscovery-publicdnsnamespace.go rename to cloudformation/resources/aws-servicediscovery-publicdnsnamespace.go index b91b2294b5..24098aa693 100644 --- a/cloudformation/aws-servicediscovery-publicdnsnamespace.go +++ b/cloudformation/resources/aws-servicediscovery-publicdnsnamespace.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceDiscoveryPublicDnsNamespace AWS CloudFormation Resource (AWS::ServiceDiscovery::PublicDnsNamespace) @@ -21,7 +22,7 @@ type AWSServiceDiscoveryPublicDnsNamespace struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSServiceDiscoveryPublicDnsNamespace) SetMetadata(metadata map[string] // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryPublicDnsNamespace) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryPublicDnsNamespace) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSServiceDiscoveryPublicDnsNamespace) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicediscovery-service.go b/cloudformation/resources/aws-servicediscovery-service.go similarity index 92% rename from cloudformation/aws-servicediscovery-service.go rename to cloudformation/resources/aws-servicediscovery-service.go index 076d963a60..9e565b8c94 100644 --- a/cloudformation/aws-servicediscovery-service.go +++ b/cloudformation/resources/aws-servicediscovery-service.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSServiceDiscoveryService AWS CloudFormation Resource (AWS::ServiceDiscovery::Service) @@ -41,7 +42,7 @@ type AWSServiceDiscoveryService struct { NamespaceId string `json:"NamespaceId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSServiceDiscoveryService) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryService) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryService) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSServiceDiscoveryService) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-servicediscovery-service_dnsconfig.go b/cloudformation/resources/aws-servicediscovery-service_dnsconfig.go similarity index 95% rename from cloudformation/aws-servicediscovery-service_dnsconfig.go rename to cloudformation/resources/aws-servicediscovery-service_dnsconfig.go index 43f1da9989..683573d975 100644 --- a/cloudformation/aws-servicediscovery-service_dnsconfig.go +++ b/cloudformation/resources/aws-servicediscovery-service_dnsconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServiceDiscoveryService_DnsConfig AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.DnsConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html @@ -20,7 +22,7 @@ type AWSServiceDiscoveryService_DnsConfig struct { RoutingPolicy string `json:"RoutingPolicy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServiceDiscoveryService_DnsConfig) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryService_DnsConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryService_DnsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-servicediscovery-service_dnsrecord.go b/cloudformation/resources/aws-servicediscovery-service_dnsrecord.go similarity index 94% rename from cloudformation/aws-servicediscovery-service_dnsrecord.go rename to cloudformation/resources/aws-servicediscovery-service_dnsrecord.go index 1a30e8d576..25e09c1885 100644 --- a/cloudformation/aws-servicediscovery-service_dnsrecord.go +++ b/cloudformation/resources/aws-servicediscovery-service_dnsrecord.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServiceDiscoveryService_DnsRecord AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.DnsRecord) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsrecord.html @@ -15,7 +17,7 @@ type AWSServiceDiscoveryService_DnsRecord struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSServiceDiscoveryService_DnsRecord) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryService_DnsRecord) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryService_DnsRecord) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-servicediscovery-service_healthcheckconfig.go b/cloudformation/resources/aws-servicediscovery-service_healthcheckconfig.go similarity index 95% rename from cloudformation/aws-servicediscovery-service_healthcheckconfig.go rename to cloudformation/resources/aws-servicediscovery-service_healthcheckconfig.go index 8980067149..8361cba5d5 100644 --- a/cloudformation/aws-servicediscovery-service_healthcheckconfig.go +++ b/cloudformation/resources/aws-servicediscovery-service_healthcheckconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServiceDiscoveryService_HealthCheckConfig AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.HealthCheckConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckconfig.html @@ -20,7 +22,7 @@ type AWSServiceDiscoveryService_HealthCheckConfig struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSServiceDiscoveryService_HealthCheckConfig) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryService_HealthCheckConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryService_HealthCheckConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-servicediscovery-service_healthcheckcustomconfig.go b/cloudformation/resources/aws-servicediscovery-service_healthcheckcustomconfig.go similarity index 93% rename from cloudformation/aws-servicediscovery-service_healthcheckcustomconfig.go rename to cloudformation/resources/aws-servicediscovery-service_healthcheckcustomconfig.go index e84a373e89..d627aa1294 100644 --- a/cloudformation/aws-servicediscovery-service_healthcheckcustomconfig.go +++ b/cloudformation/resources/aws-servicediscovery-service_healthcheckcustomconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSServiceDiscoveryService_HealthCheckCustomConfig AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.HealthCheckCustomConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckcustomconfig.html @@ -10,7 +12,7 @@ type AWSServiceDiscoveryService_HealthCheckCustomConfig struct { FailureThreshold float64 `json:"FailureThreshold,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSServiceDiscoveryService_HealthCheckCustomConfig) SetMetadata(metadat // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSServiceDiscoveryService_HealthCheckCustomConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSServiceDiscoveryService_HealthCheckCustomConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-configurationset.go b/cloudformation/resources/aws-ses-configurationset.go similarity index 89% rename from cloudformation/aws-ses-configurationset.go rename to cloudformation/resources/aws-ses-configurationset.go index 4330c51392..52a9c5f468 100644 --- a/cloudformation/aws-ses-configurationset.go +++ b/cloudformation/resources/aws-ses-configurationset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSESConfigurationSet AWS CloudFormation Resource (AWS::SES::ConfigurationSet) @@ -16,7 +17,7 @@ type AWSSESConfigurationSet struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSSESConfigurationSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESConfigurationSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESConfigurationSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSSESConfigurationSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ses-configurationseteventdestination.go b/cloudformation/resources/aws-ses-configurationseteventdestination.go similarity index 92% rename from cloudformation/aws-ses-configurationseteventdestination.go rename to cloudformation/resources/aws-ses-configurationseteventdestination.go index 7e125b2c16..b63aac8788 100644 --- a/cloudformation/aws-ses-configurationseteventdestination.go +++ b/cloudformation/resources/aws-ses-configurationseteventdestination.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSESConfigurationSetEventDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination) @@ -21,7 +22,7 @@ type AWSSESConfigurationSetEventDestination struct { EventDestination *AWSSESConfigurationSetEventDestination_EventDestination `json:"EventDestination,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSSESConfigurationSetEventDestination) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESConfigurationSetEventDestination) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESConfigurationSetEventDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSSESConfigurationSetEventDestination) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ses-configurationseteventdestination_cloudwatchdestination.go b/cloudformation/resources/aws-ses-configurationseteventdestination_cloudwatchdestination.go similarity index 94% rename from cloudformation/aws-ses-configurationseteventdestination_cloudwatchdestination.go rename to cloudformation/resources/aws-ses-configurationseteventdestination_cloudwatchdestination.go index 1de00d08bb..399cd02e30 100644 --- a/cloudformation/aws-ses-configurationseteventdestination_cloudwatchdestination.go +++ b/cloudformation/resources/aws-ses-configurationseteventdestination_cloudwatchdestination.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESConfigurationSetEventDestination_CloudWatchDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.CloudWatchDestination) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-cloudwatchdestination.html @@ -10,7 +12,7 @@ type AWSSESConfigurationSetEventDestination_CloudWatchDestination struct { DimensionConfigurations []AWSSESConfigurationSetEventDestination_DimensionConfiguration `json:"DimensionConfigurations,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSSESConfigurationSetEventDestination_CloudWatchDestination) SetMetada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESConfigurationSetEventDestination_CloudWatchDestination) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESConfigurationSetEventDestination_CloudWatchDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-configurationseteventdestination_dimensionconfiguration.go b/cloudformation/resources/aws-ses-configurationseteventdestination_dimensionconfiguration.go similarity index 95% rename from cloudformation/aws-ses-configurationseteventdestination_dimensionconfiguration.go rename to cloudformation/resources/aws-ses-configurationseteventdestination_dimensionconfiguration.go index 6d70ca9992..9305843e85 100644 --- a/cloudformation/aws-ses-configurationseteventdestination_dimensionconfiguration.go +++ b/cloudformation/resources/aws-ses-configurationseteventdestination_dimensionconfiguration.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESConfigurationSetEventDestination_DimensionConfiguration AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.DimensionConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html @@ -20,7 +22,7 @@ type AWSSESConfigurationSetEventDestination_DimensionConfiguration struct { DimensionValueSource string `json:"DimensionValueSource,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSSESConfigurationSetEventDestination_DimensionConfiguration) SetMetad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESConfigurationSetEventDestination_DimensionConfiguration) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESConfigurationSetEventDestination_DimensionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-configurationseteventdestination_eventdestination.go b/cloudformation/resources/aws-ses-configurationseteventdestination_eventdestination.go similarity index 95% rename from cloudformation/aws-ses-configurationseteventdestination_eventdestination.go rename to cloudformation/resources/aws-ses-configurationseteventdestination_eventdestination.go index 0cb628abe7..a1d91a0525 100644 --- a/cloudformation/aws-ses-configurationseteventdestination_eventdestination.go +++ b/cloudformation/resources/aws-ses-configurationseteventdestination_eventdestination.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESConfigurationSetEventDestination_EventDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.EventDestination) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html @@ -30,7 +32,7 @@ type AWSSESConfigurationSetEventDestination_EventDestination struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSSESConfigurationSetEventDestination_EventDestination) SetMetadata(me // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESConfigurationSetEventDestination_EventDestination) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESConfigurationSetEventDestination_EventDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go b/cloudformation/resources/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go similarity index 94% rename from cloudformation/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go rename to cloudformation/resources/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go index 87d33efc93..c1ce752bf5 100644 --- a/cloudformation/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go +++ b/cloudformation/resources/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESConfigurationSetEventDestination_KinesisFirehoseDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.KinesisFirehoseDestination) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-kinesisfirehosedestination.html @@ -15,7 +17,7 @@ type AWSSESConfigurationSetEventDestination_KinesisFirehoseDestination struct { IAMRoleARN string `json:"IAMRoleARN,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSESConfigurationSetEventDestination_KinesisFirehoseDestination) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESConfigurationSetEventDestination_KinesisFirehoseDestination) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESConfigurationSetEventDestination_KinesisFirehoseDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptfilter.go b/cloudformation/resources/aws-ses-receiptfilter.go similarity index 89% rename from cloudformation/aws-ses-receiptfilter.go rename to cloudformation/resources/aws-ses-receiptfilter.go index bd3422564c..4ee107373e 100644 --- a/cloudformation/aws-ses-receiptfilter.go +++ b/cloudformation/resources/aws-ses-receiptfilter.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSESReceiptFilter AWS CloudFormation Resource (AWS::SES::ReceiptFilter) @@ -16,7 +17,7 @@ type AWSSESReceiptFilter struct { Filter *AWSSESReceiptFilter_Filter `json:"Filter,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSSESReceiptFilter) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSSESReceiptFilter) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ses-receiptfilter_filter.go b/cloudformation/resources/aws-ses-receiptfilter_filter.go similarity index 92% rename from cloudformation/aws-ses-receiptfilter_filter.go rename to cloudformation/resources/aws-ses-receiptfilter_filter.go index ee7cc7e7b5..dca3ab5a63 100644 --- a/cloudformation/aws-ses-receiptfilter_filter.go +++ b/cloudformation/resources/aws-ses-receiptfilter_filter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptFilter_Filter AWS CloudFormation Resource (AWS::SES::ReceiptFilter.Filter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-filter.html @@ -15,7 +17,7 @@ type AWSSESReceiptFilter_Filter struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSESReceiptFilter_Filter) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptFilter_Filter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptFilter_Filter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptfilter_ipfilter.go b/cloudformation/resources/aws-ses-receiptfilter_ipfilter.go similarity index 94% rename from cloudformation/aws-ses-receiptfilter_ipfilter.go rename to cloudformation/resources/aws-ses-receiptfilter_ipfilter.go index e5cc3c372b..402458ee40 100644 --- a/cloudformation/aws-ses-receiptfilter_ipfilter.go +++ b/cloudformation/resources/aws-ses-receiptfilter_ipfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptFilter_IpFilter AWS CloudFormation Resource (AWS::SES::ReceiptFilter.IpFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-ipfilter.html @@ -15,7 +17,7 @@ type AWSSESReceiptFilter_IpFilter struct { Policy string `json:"Policy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSESReceiptFilter_IpFilter) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptFilter_IpFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptFilter_IpFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule.go b/cloudformation/resources/aws-ses-receiptrule.go similarity index 90% rename from cloudformation/aws-ses-receiptrule.go rename to cloudformation/resources/aws-ses-receiptrule.go index 74ad2f2afc..a18ace1cda 100644 --- a/cloudformation/aws-ses-receiptrule.go +++ b/cloudformation/resources/aws-ses-receiptrule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSESReceiptRule AWS CloudFormation Resource (AWS::SES::ReceiptRule) @@ -26,7 +27,7 @@ type AWSSESReceiptRule struct { RuleSetName string `json:"RuleSetName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSSESReceiptRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSSESReceiptRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ses-receiptrule_action.go b/cloudformation/resources/aws-ses-receiptrule_action.go similarity index 95% rename from cloudformation/aws-ses-receiptrule_action.go rename to cloudformation/resources/aws-ses-receiptrule_action.go index dfa6a121e1..82d94f70a7 100644 --- a/cloudformation/aws-ses-receiptrule_action.go +++ b/cloudformation/resources/aws-ses-receiptrule_action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_Action AWS CloudFormation Resource (AWS::SES::ReceiptRule.Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html @@ -40,7 +42,7 @@ type AWSSESReceiptRule_Action struct { WorkmailAction *AWSSESReceiptRule_WorkmailAction `json:"WorkmailAction,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -80,6 +82,6 @@ func (r *AWSSESReceiptRule_Action) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_addheaderaction.go b/cloudformation/resources/aws-ses-receiptrule_addheaderaction.go similarity index 94% rename from cloudformation/aws-ses-receiptrule_addheaderaction.go rename to cloudformation/resources/aws-ses-receiptrule_addheaderaction.go index efadf981d0..552ab9b38e 100644 --- a/cloudformation/aws-ses-receiptrule_addheaderaction.go +++ b/cloudformation/resources/aws-ses-receiptrule_addheaderaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_AddHeaderAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.AddHeaderAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-addheaderaction.html @@ -15,7 +17,7 @@ type AWSSESReceiptRule_AddHeaderAction struct { HeaderValue string `json:"HeaderValue,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSESReceiptRule_AddHeaderAction) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_AddHeaderAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_AddHeaderAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_bounceaction.go b/cloudformation/resources/aws-ses-receiptrule_bounceaction.go similarity index 95% rename from cloudformation/aws-ses-receiptrule_bounceaction.go rename to cloudformation/resources/aws-ses-receiptrule_bounceaction.go index cd1f36c78e..f2738e09a7 100644 --- a/cloudformation/aws-ses-receiptrule_bounceaction.go +++ b/cloudformation/resources/aws-ses-receiptrule_bounceaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_BounceAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.BounceAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html @@ -30,7 +32,7 @@ type AWSSESReceiptRule_BounceAction struct { TopicArn string `json:"TopicArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSSESReceiptRule_BounceAction) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_BounceAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_BounceAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_lambdaaction.go b/cloudformation/resources/aws-ses-receiptrule_lambdaaction.go similarity index 95% rename from cloudformation/aws-ses-receiptrule_lambdaaction.go rename to cloudformation/resources/aws-ses-receiptrule_lambdaaction.go index 33a450be19..fe91177a63 100644 --- a/cloudformation/aws-ses-receiptrule_lambdaaction.go +++ b/cloudformation/resources/aws-ses-receiptrule_lambdaaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_LambdaAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.LambdaAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-lambdaaction.html @@ -20,7 +22,7 @@ type AWSSESReceiptRule_LambdaAction struct { TopicArn string `json:"TopicArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSSESReceiptRule_LambdaAction) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_LambdaAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_LambdaAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_rule.go b/cloudformation/resources/aws-ses-receiptrule_rule.go similarity index 94% rename from cloudformation/aws-ses-receiptrule_rule.go rename to cloudformation/resources/aws-ses-receiptrule_rule.go index 7c13c451b5..eef76c9562 100644 --- a/cloudformation/aws-ses-receiptrule_rule.go +++ b/cloudformation/resources/aws-ses-receiptrule_rule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_Rule AWS CloudFormation Resource (AWS::SES::ReceiptRule.Rule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html @@ -35,7 +37,7 @@ type AWSSESReceiptRule_Rule struct { TlsPolicy string `json:"TlsPolicy,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -75,6 +77,6 @@ func (r *AWSSESReceiptRule_Rule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_Rule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_s3action.go b/cloudformation/resources/aws-ses-receiptrule_s3action.go similarity index 93% rename from cloudformation/aws-ses-receiptrule_s3action.go rename to cloudformation/resources/aws-ses-receiptrule_s3action.go index 48d86aa4c6..51ab0b87fa 100644 --- a/cloudformation/aws-ses-receiptrule_s3action.go +++ b/cloudformation/resources/aws-ses-receiptrule_s3action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_S3Action AWS CloudFormation Resource (AWS::SES::ReceiptRule.S3Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html @@ -25,7 +27,7 @@ type AWSSESReceiptRule_S3Action struct { TopicArn string `json:"TopicArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSSESReceiptRule_S3Action) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_S3Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_S3Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_snsaction.go b/cloudformation/resources/aws-ses-receiptrule_snsaction.go similarity index 92% rename from cloudformation/aws-ses-receiptrule_snsaction.go rename to cloudformation/resources/aws-ses-receiptrule_snsaction.go index 2b083dbb18..1a7c9df77d 100644 --- a/cloudformation/aws-ses-receiptrule_snsaction.go +++ b/cloudformation/resources/aws-ses-receiptrule_snsaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_SNSAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.SNSAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-snsaction.html @@ -15,7 +17,7 @@ type AWSSESReceiptRule_SNSAction struct { TopicArn string `json:"TopicArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSESReceiptRule_SNSAction) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_SNSAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_SNSAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_stopaction.go b/cloudformation/resources/aws-ses-receiptrule_stopaction.go similarity index 94% rename from cloudformation/aws-ses-receiptrule_stopaction.go rename to cloudformation/resources/aws-ses-receiptrule_stopaction.go index a051b62450..fd3aeaf32e 100644 --- a/cloudformation/aws-ses-receiptrule_stopaction.go +++ b/cloudformation/resources/aws-ses-receiptrule_stopaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_StopAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.StopAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html @@ -15,7 +17,7 @@ type AWSSESReceiptRule_StopAction struct { TopicArn string `json:"TopicArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSESReceiptRule_StopAction) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_StopAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_StopAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptrule_workmailaction.go b/cloudformation/resources/aws-ses-receiptrule_workmailaction.go similarity index 94% rename from cloudformation/aws-ses-receiptrule_workmailaction.go rename to cloudformation/resources/aws-ses-receiptrule_workmailaction.go index 5b1496263f..16dbe6d2cb 100644 --- a/cloudformation/aws-ses-receiptrule_workmailaction.go +++ b/cloudformation/resources/aws-ses-receiptrule_workmailaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESReceiptRule_WorkmailAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.WorkmailAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-workmailaction.html @@ -15,7 +17,7 @@ type AWSSESReceiptRule_WorkmailAction struct { TopicArn string `json:"TopicArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSESReceiptRule_WorkmailAction) SetMetadata(metadata map[string]inter // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRule_WorkmailAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRule_WorkmailAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ses-receiptruleset.go b/cloudformation/resources/aws-ses-receiptruleset.go similarity index 89% rename from cloudformation/aws-ses-receiptruleset.go rename to cloudformation/resources/aws-ses-receiptruleset.go index 28877211e5..74ce935c02 100644 --- a/cloudformation/aws-ses-receiptruleset.go +++ b/cloudformation/resources/aws-ses-receiptruleset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSESReceiptRuleSet AWS CloudFormation Resource (AWS::SES::ReceiptRuleSet) @@ -16,7 +17,7 @@ type AWSSESReceiptRuleSet struct { RuleSetName string `json:"RuleSetName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSSESReceiptRuleSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESReceiptRuleSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESReceiptRuleSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSSESReceiptRuleSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ses-template.go b/cloudformation/resources/aws-ses-template.go similarity index 89% rename from cloudformation/aws-ses-template.go rename to cloudformation/resources/aws-ses-template.go index c56009a1af..a124b6cc21 100644 --- a/cloudformation/aws-ses-template.go +++ b/cloudformation/resources/aws-ses-template.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSESTemplate AWS CloudFormation Resource (AWS::SES::Template) @@ -16,7 +17,7 @@ type AWSSESTemplate struct { Template *AWSSESTemplate_Template `json:"Template,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -56,7 +57,7 @@ func (r *AWSSESTemplate) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESTemplate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -67,9 +68,9 @@ func (r AWSSESTemplate) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ses-template_template.go b/cloudformation/resources/aws-ses-template_template.go similarity index 93% rename from cloudformation/aws-ses-template_template.go rename to cloudformation/resources/aws-ses-template_template.go index eb8c381fc7..e4e94fbfb2 100644 --- a/cloudformation/aws-ses-template_template.go +++ b/cloudformation/resources/aws-ses-template_template.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSESTemplate_Template AWS CloudFormation Resource (AWS::SES::Template.Template) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html @@ -25,7 +27,7 @@ type AWSSESTemplate_Template struct { TextPart string `json:"TextPart,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSSESTemplate_Template) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSESTemplate_Template) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSESTemplate_Template) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-sns-subscription.go b/cloudformation/resources/aws-sns-subscription.go similarity index 92% rename from cloudformation/aws-sns-subscription.go rename to cloudformation/resources/aws-sns-subscription.go index 20f7a3f022..198e6ead46 100644 --- a/cloudformation/aws-sns-subscription.go +++ b/cloudformation/resources/aws-sns-subscription.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSNSSubscription AWS CloudFormation Resource (AWS::SNS::Subscription) @@ -46,7 +47,7 @@ type AWSSNSSubscription struct { TopicArn string `json:"TopicArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -86,7 +87,7 @@ func (r *AWSSNSSubscription) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSNSSubscription) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSNSSubscription) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -97,9 +98,9 @@ func (r AWSSNSSubscription) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sns-topic.go b/cloudformation/resources/aws-sns-topic.go similarity index 91% rename from cloudformation/aws-sns-topic.go rename to cloudformation/resources/aws-sns-topic.go index 1af55bba5a..895e375bc4 100644 --- a/cloudformation/aws-sns-topic.go +++ b/cloudformation/resources/aws-sns-topic.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSNSTopic AWS CloudFormation Resource (AWS::SNS::Topic) @@ -31,7 +32,7 @@ type AWSSNSTopic struct { TopicName string `json:"TopicName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSSNSTopic) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSNSTopic) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSNSTopic) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSSNSTopic) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sns-topic_subscription.go b/cloudformation/resources/aws-sns-topic_subscription.go similarity index 92% rename from cloudformation/aws-sns-topic_subscription.go rename to cloudformation/resources/aws-sns-topic_subscription.go index 88d1583764..11d4a84181 100644 --- a/cloudformation/aws-sns-topic_subscription.go +++ b/cloudformation/resources/aws-sns-topic_subscription.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSNSTopic_Subscription AWS CloudFormation Resource (AWS::SNS::Topic.Subscription) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-subscription.html @@ -15,7 +17,7 @@ type AWSSNSTopic_Subscription struct { Protocol string `json:"Protocol,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSNSTopic_Subscription) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSNSTopic_Subscription) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSNSTopic_Subscription) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-sns-topicpolicy.go b/cloudformation/resources/aws-sns-topicpolicy.go similarity index 90% rename from cloudformation/aws-sns-topicpolicy.go rename to cloudformation/resources/aws-sns-topicpolicy.go index 090b7934cd..3183ede754 100644 --- a/cloudformation/aws-sns-topicpolicy.go +++ b/cloudformation/resources/aws-sns-topicpolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSNSTopicPolicy AWS CloudFormation Resource (AWS::SNS::TopicPolicy) @@ -21,7 +22,7 @@ type AWSSNSTopicPolicy struct { Topics []string `json:"Topics,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSSNSTopicPolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSNSTopicPolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSNSTopicPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSSNSTopicPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sqs-queue.go b/cloudformation/resources/aws-sqs-queue.go similarity index 94% rename from cloudformation/aws-sqs-queue.go rename to cloudformation/resources/aws-sqs-queue.go index c76fcbe1b4..24dd4cabeb 100644 --- a/cloudformation/aws-sqs-queue.go +++ b/cloudformation/resources/aws-sqs-queue.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSQSQueue AWS CloudFormation Resource (AWS::SQS::Queue) @@ -71,7 +72,7 @@ type AWSSQSQueue struct { VisibilityTimeout int `json:"VisibilityTimeout,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -111,7 +112,7 @@ func (r *AWSSQSQueue) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSQSQueue) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSQSQueue) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -122,9 +123,9 @@ func (r AWSSQSQueue) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-sqs-queuepolicy.go b/cloudformation/resources/aws-sqs-queuepolicy.go similarity index 90% rename from cloudformation/aws-sqs-queuepolicy.go rename to cloudformation/resources/aws-sqs-queuepolicy.go index 2869024a58..5c6f7641a2 100644 --- a/cloudformation/aws-sqs-queuepolicy.go +++ b/cloudformation/resources/aws-sqs-queuepolicy.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSQSQueuePolicy AWS CloudFormation Resource (AWS::SQS::QueuePolicy) @@ -21,7 +22,7 @@ type AWSSQSQueuePolicy struct { Queues []string `json:"Queues,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSSQSQueuePolicy) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSQSQueuePolicy) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSQSQueuePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSSQSQueuePolicy) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ssm-association.go b/cloudformation/resources/aws-ssm-association.go similarity index 93% rename from cloudformation/aws-ssm-association.go rename to cloudformation/resources/aws-ssm-association.go index e3b60e6337..9c3cca6f9c 100644 --- a/cloudformation/aws-ssm-association.go +++ b/cloudformation/resources/aws-ssm-association.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSSMAssociation AWS CloudFormation Resource (AWS::SSM::Association) @@ -51,7 +52,7 @@ type AWSSSMAssociation struct { Targets []AWSSSMAssociation_Target `json:"Targets,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSSSMAssociation) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSSSMAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ssm-association_instanceassociationoutputlocation.go b/cloudformation/resources/aws-ssm-association_instanceassociationoutputlocation.go similarity index 93% rename from cloudformation/aws-ssm-association_instanceassociationoutputlocation.go rename to cloudformation/resources/aws-ssm-association_instanceassociationoutputlocation.go index 59bd5a3020..142336e17d 100644 --- a/cloudformation/aws-ssm-association_instanceassociationoutputlocation.go +++ b/cloudformation/resources/aws-ssm-association_instanceassociationoutputlocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMAssociation_InstanceAssociationOutputLocation AWS CloudFormation Resource (AWS::SSM::Association.InstanceAssociationOutputLocation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-instanceassociationoutputlocation.html @@ -10,7 +12,7 @@ type AWSSSMAssociation_InstanceAssociationOutputLocation struct { S3Location *AWSSSMAssociation_S3OutputLocation `json:"S3Location,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSSSMAssociation_InstanceAssociationOutputLocation) SetMetadata(metada // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMAssociation_InstanceAssociationOutputLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMAssociation_InstanceAssociationOutputLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-association_parametervalues.go b/cloudformation/resources/aws-ssm-association_parametervalues.go similarity index 94% rename from cloudformation/aws-ssm-association_parametervalues.go rename to cloudformation/resources/aws-ssm-association_parametervalues.go index 55d1a54956..cf94a0242c 100644 --- a/cloudformation/aws-ssm-association_parametervalues.go +++ b/cloudformation/resources/aws-ssm-association_parametervalues.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMAssociation_ParameterValues AWS CloudFormation Resource (AWS::SSM::Association.ParameterValues) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-parametervalues.html @@ -10,7 +12,7 @@ type AWSSSMAssociation_ParameterValues struct { ParameterValues []string `json:"ParameterValues,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSSSMAssociation_ParameterValues) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMAssociation_ParameterValues) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMAssociation_ParameterValues) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-association_s3outputlocation.go b/cloudformation/resources/aws-ssm-association_s3outputlocation.go similarity index 94% rename from cloudformation/aws-ssm-association_s3outputlocation.go rename to cloudformation/resources/aws-ssm-association_s3outputlocation.go index 86f03884ef..be65d76e94 100644 --- a/cloudformation/aws-ssm-association_s3outputlocation.go +++ b/cloudformation/resources/aws-ssm-association_s3outputlocation.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMAssociation_S3OutputLocation AWS CloudFormation Resource (AWS::SSM::Association.S3OutputLocation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-s3outputlocation.html @@ -15,7 +17,7 @@ type AWSSSMAssociation_S3OutputLocation struct { OutputS3KeyPrefix string `json:"OutputS3KeyPrefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSSMAssociation_S3OutputLocation) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMAssociation_S3OutputLocation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMAssociation_S3OutputLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-association_target.go b/cloudformation/resources/aws-ssm-association_target.go similarity index 92% rename from cloudformation/aws-ssm-association_target.go rename to cloudformation/resources/aws-ssm-association_target.go index ed25174d88..b29d7fc090 100644 --- a/cloudformation/aws-ssm-association_target.go +++ b/cloudformation/resources/aws-ssm-association_target.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMAssociation_Target AWS CloudFormation Resource (AWS::SSM::Association.Target) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html @@ -15,7 +17,7 @@ type AWSSSMAssociation_Target struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSSMAssociation_Target) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMAssociation_Target) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMAssociation_Target) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-document.go b/cloudformation/resources/aws-ssm-document.go similarity index 90% rename from cloudformation/aws-ssm-document.go rename to cloudformation/resources/aws-ssm-document.go index 66d57ebfb3..9433f57c8d 100644 --- a/cloudformation/aws-ssm-document.go +++ b/cloudformation/resources/aws-ssm-document.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSSMDocument AWS CloudFormation Resource (AWS::SSM::Document) @@ -26,7 +27,7 @@ type AWSSSMDocument struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSSSMDocument) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMDocument) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMDocument) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSSSMDocument) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ssm-maintenancewindow.go b/cloudformation/resources/aws-ssm-maintenancewindow.go similarity index 93% rename from cloudformation/aws-ssm-maintenancewindow.go rename to cloudformation/resources/aws-ssm-maintenancewindow.go index d030524cbf..a21cd415ad 100644 --- a/cloudformation/aws-ssm-maintenancewindow.go +++ b/cloudformation/resources/aws-ssm-maintenancewindow.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSSMMaintenanceWindow AWS CloudFormation Resource (AWS::SSM::MaintenanceWindow) @@ -61,7 +62,7 @@ type AWSSSMMaintenanceWindow struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -101,7 +102,7 @@ func (r *AWSSSMMaintenanceWindow) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindow) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindow) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -112,9 +113,9 @@ func (r AWSSSMMaintenanceWindow) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ssm-maintenancewindowtask.go b/cloudformation/resources/aws-ssm-maintenancewindowtask.go similarity index 94% rename from cloudformation/aws-ssm-maintenancewindowtask.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask.go index df30e4bc3e..dfd7dfd518 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSSMMaintenanceWindowTask AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask) @@ -76,7 +77,7 @@ type AWSSSMMaintenanceWindowTask struct { WindowId string `json:"WindowId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -116,7 +117,7 @@ func (r *AWSSSMMaintenanceWindowTask) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -127,9 +128,9 @@ func (r AWSSSMMaintenanceWindowTask) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ssm-maintenancewindowtask_logginginfo.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_logginginfo.go similarity index 94% rename from cloudformation/aws-ssm-maintenancewindowtask_logginginfo.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_logginginfo.go index 5137e43ae0..501537dcb3 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_logginginfo.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_logginginfo.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_LoggingInfo AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.LoggingInfo) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-logginginfo.html @@ -20,7 +22,7 @@ type AWSSSMMaintenanceWindowTask_LoggingInfo struct { S3Prefix string `json:"S3Prefix,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSSSMMaintenanceWindowTask_LoggingInfo) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_LoggingInfo) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_LoggingInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go similarity index 94% rename from cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go index 2082d5c593..a86cb510ef 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_MaintenanceWindowAutomationParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowAutomationParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowautomationparameters.html @@ -15,7 +17,7 @@ type AWSSSMMaintenanceWindowTask_MaintenanceWindowAutomationParameters struct { Parameters interface{} `json:"Parameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowAutomationParameters) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowAutomationParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowAutomationParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go similarity index 94% rename from cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go index 2d9a858f25..892389e7ff 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_MaintenanceWindowLambdaParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowLambdaParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowlambdaparameters.html @@ -20,7 +22,7 @@ type AWSSSMMaintenanceWindowTask_MaintenanceWindowLambdaParameters struct { Qualifier string `json:"Qualifier,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowLambdaParameters) SetMetad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowLambdaParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowLambdaParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go similarity index 96% rename from cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go index 7c62318148..4c0943549d 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_MaintenanceWindowRunCommandParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowRunCommandParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html @@ -50,7 +52,7 @@ type AWSSSMMaintenanceWindowTask_MaintenanceWindowRunCommandParameters struct { TimeoutSeconds int `json:"TimeoutSeconds,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -90,6 +92,6 @@ func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowRunCommandParameters) SetM // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowRunCommandParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowRunCommandParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go similarity index 94% rename from cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go index c3dce13530..2938d1c747 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowStepFunctionsParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html @@ -15,7 +17,7 @@ type AWSSSMMaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters struct Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) S // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-maintenancewindowtask_notificationconfig.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_notificationconfig.go similarity index 95% rename from cloudformation/aws-ssm-maintenancewindowtask_notificationconfig.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_notificationconfig.go index 4adcf9667c..9e2627e91d 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_notificationconfig.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_notificationconfig.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_NotificationConfig AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.NotificationConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-notificationconfig.html @@ -20,7 +22,7 @@ type AWSSSMMaintenanceWindowTask_NotificationConfig struct { NotificationType string `json:"NotificationType,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSSSMMaintenanceWindowTask_NotificationConfig) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_NotificationConfig) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_NotificationConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-maintenancewindowtask_target.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_target.go similarity index 94% rename from cloudformation/aws-ssm-maintenancewindowtask_target.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_target.go index 3661ad3e79..e704da0f20 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_target.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_target.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_Target AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.Target) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-target.html @@ -15,7 +17,7 @@ type AWSSSMMaintenanceWindowTask_Target struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSSMMaintenanceWindowTask_Target) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_Target) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_Target) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-maintenancewindowtask_taskinvocationparameters.go b/cloudformation/resources/aws-ssm-maintenancewindowtask_taskinvocationparameters.go similarity index 96% rename from cloudformation/aws-ssm-maintenancewindowtask_taskinvocationparameters.go rename to cloudformation/resources/aws-ssm-maintenancewindowtask_taskinvocationparameters.go index c648e0c2fa..77b7bdad6f 100644 --- a/cloudformation/aws-ssm-maintenancewindowtask_taskinvocationparameters.go +++ b/cloudformation/resources/aws-ssm-maintenancewindowtask_taskinvocationparameters.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMMaintenanceWindowTask_TaskInvocationParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.TaskInvocationParameters) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-taskinvocationparameters.html @@ -25,7 +27,7 @@ type AWSSSMMaintenanceWindowTask_TaskInvocationParameters struct { MaintenanceWindowStepFunctionsParameters *AWSSSMMaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters `json:"MaintenanceWindowStepFunctionsParameters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSSSMMaintenanceWindowTask_TaskInvocationParameters) SetMetadata(metad // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMMaintenanceWindowTask_TaskInvocationParameters) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMMaintenanceWindowTask_TaskInvocationParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-parameter.go b/cloudformation/resources/aws-ssm-parameter.go similarity index 91% rename from cloudformation/aws-ssm-parameter.go rename to cloudformation/resources/aws-ssm-parameter.go index 343b8f2813..5eac30d5ea 100644 --- a/cloudformation/aws-ssm-parameter.go +++ b/cloudformation/resources/aws-ssm-parameter.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSSMParameter AWS CloudFormation Resource (AWS::SSM::Parameter) @@ -36,7 +37,7 @@ type AWSSSMParameter struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -76,7 +77,7 @@ func (r *AWSSSMParameter) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMParameter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMParameter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -87,9 +88,9 @@ func (r AWSSSMParameter) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ssm-patchbaseline.go b/cloudformation/resources/aws-ssm-patchbaseline.go similarity index 94% rename from cloudformation/aws-ssm-patchbaseline.go rename to cloudformation/resources/aws-ssm-patchbaseline.go index 7db3895c24..4deed76a91 100644 --- a/cloudformation/aws-ssm-patchbaseline.go +++ b/cloudformation/resources/aws-ssm-patchbaseline.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSSMPatchBaseline AWS CloudFormation Resource (AWS::SSM::PatchBaseline) @@ -76,7 +77,7 @@ type AWSSSMPatchBaseline struct { Tags []Tag `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -116,7 +117,7 @@ func (r *AWSSSMPatchBaseline) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMPatchBaseline) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMPatchBaseline) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -127,9 +128,9 @@ func (r AWSSSMPatchBaseline) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-ssm-patchbaseline_patchfilter.go b/cloudformation/resources/aws-ssm-patchbaseline_patchfilter.go similarity index 94% rename from cloudformation/aws-ssm-patchbaseline_patchfilter.go rename to cloudformation/resources/aws-ssm-patchbaseline_patchfilter.go index f5de378b3d..0b90c52882 100644 --- a/cloudformation/aws-ssm-patchbaseline_patchfilter.go +++ b/cloudformation/resources/aws-ssm-patchbaseline_patchfilter.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMPatchBaseline_PatchFilter AWS CloudFormation Resource (AWS::SSM::PatchBaseline.PatchFilter) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfilter.html @@ -15,7 +17,7 @@ type AWSSSMPatchBaseline_PatchFilter struct { Values []string `json:"Values,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSSSMPatchBaseline_PatchFilter) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMPatchBaseline_PatchFilter) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMPatchBaseline_PatchFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-patchbaseline_patchfiltergroup.go b/cloudformation/resources/aws-ssm-patchbaseline_patchfiltergroup.go similarity index 94% rename from cloudformation/aws-ssm-patchbaseline_patchfiltergroup.go rename to cloudformation/resources/aws-ssm-patchbaseline_patchfiltergroup.go index 5902964fed..d9836b92d1 100644 --- a/cloudformation/aws-ssm-patchbaseline_patchfiltergroup.go +++ b/cloudformation/resources/aws-ssm-patchbaseline_patchfiltergroup.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMPatchBaseline_PatchFilterGroup AWS CloudFormation Resource (AWS::SSM::PatchBaseline.PatchFilterGroup) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfiltergroup.html @@ -10,7 +12,7 @@ type AWSSSMPatchBaseline_PatchFilterGroup struct { PatchFilters []AWSSSMPatchBaseline_PatchFilter `json:"PatchFilters,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSSSMPatchBaseline_PatchFilterGroup) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMPatchBaseline_PatchFilterGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMPatchBaseline_PatchFilterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-patchbaseline_patchsource.go b/cloudformation/resources/aws-ssm-patchbaseline_patchsource.go similarity index 95% rename from cloudformation/aws-ssm-patchbaseline_patchsource.go rename to cloudformation/resources/aws-ssm-patchbaseline_patchsource.go index 308b78c6c9..53359b3af6 100644 --- a/cloudformation/aws-ssm-patchbaseline_patchsource.go +++ b/cloudformation/resources/aws-ssm-patchbaseline_patchsource.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMPatchBaseline_PatchSource AWS CloudFormation Resource (AWS::SSM::PatchBaseline.PatchSource) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchsource.html @@ -20,7 +22,7 @@ type AWSSSMPatchBaseline_PatchSource struct { Products []string `json:"Products,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSSSMPatchBaseline_PatchSource) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMPatchBaseline_PatchSource) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMPatchBaseline_PatchSource) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-patchbaseline_rule.go b/cloudformation/resources/aws-ssm-patchbaseline_rule.go similarity index 93% rename from cloudformation/aws-ssm-patchbaseline_rule.go rename to cloudformation/resources/aws-ssm-patchbaseline_rule.go index e634b77a9e..6aba67190b 100644 --- a/cloudformation/aws-ssm-patchbaseline_rule.go +++ b/cloudformation/resources/aws-ssm-patchbaseline_rule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMPatchBaseline_Rule AWS CloudFormation Resource (AWS::SSM::PatchBaseline.Rule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html @@ -25,7 +27,7 @@ type AWSSSMPatchBaseline_Rule struct { PatchFilterGroup *AWSSSMPatchBaseline_PatchFilterGroup `json:"PatchFilterGroup,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSSSMPatchBaseline_Rule) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMPatchBaseline_Rule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMPatchBaseline_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-patchbaseline_rulegroup.go b/cloudformation/resources/aws-ssm-patchbaseline_rulegroup.go similarity index 94% rename from cloudformation/aws-ssm-patchbaseline_rulegroup.go rename to cloudformation/resources/aws-ssm-patchbaseline_rulegroup.go index 0c3c2d72aa..e257fe1d88 100644 --- a/cloudformation/aws-ssm-patchbaseline_rulegroup.go +++ b/cloudformation/resources/aws-ssm-patchbaseline_rulegroup.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSSSMPatchBaseline_RuleGroup AWS CloudFormation Resource (AWS::SSM::PatchBaseline.RuleGroup) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rulegroup.html @@ -10,7 +12,7 @@ type AWSSSMPatchBaseline_RuleGroup struct { PatchRules []AWSSSMPatchBaseline_Rule `json:"PatchRules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSSSMPatchBaseline_RuleGroup) SetMetadata(metadata map[string]interfac // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMPatchBaseline_RuleGroup) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMPatchBaseline_RuleGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-ssm-resourcedatasync.go b/cloudformation/resources/aws-ssm-resourcedatasync.go similarity index 92% rename from cloudformation/aws-ssm-resourcedatasync.go rename to cloudformation/resources/aws-ssm-resourcedatasync.go index 2745130340..e0298610dd 100644 --- a/cloudformation/aws-ssm-resourcedatasync.go +++ b/cloudformation/resources/aws-ssm-resourcedatasync.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSSSMResourceDataSync AWS CloudFormation Resource (AWS::SSM::ResourceDataSync) @@ -41,7 +42,7 @@ type AWSSSMResourceDataSync struct { SyncName string `json:"SyncName,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -81,7 +82,7 @@ func (r *AWSSSMResourceDataSync) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSSSMResourceDataSync) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSSSMResourceDataSync) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -92,9 +93,9 @@ func (r AWSSSMResourceDataSync) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-stepfunctions-activity.go b/cloudformation/resources/aws-stepfunctions-activity.go similarity index 90% rename from cloudformation/aws-stepfunctions-activity.go rename to cloudformation/resources/aws-stepfunctions-activity.go index 0d9402cc01..1d22112f6f 100644 --- a/cloudformation/aws-stepfunctions-activity.go +++ b/cloudformation/resources/aws-stepfunctions-activity.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSStepFunctionsActivity AWS CloudFormation Resource (AWS::StepFunctions::Activity) @@ -21,7 +22,7 @@ type AWSStepFunctionsActivity struct { Tags []AWSStepFunctionsActivity_TagsEntry `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSStepFunctionsActivity) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSStepFunctionsActivity) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSStepFunctionsActivity) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSStepFunctionsActivity) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-stepfunctions-activity_tagsentry.go b/cloudformation/resources/aws-stepfunctions-activity_tagsentry.go similarity index 94% rename from cloudformation/aws-stepfunctions-activity_tagsentry.go rename to cloudformation/resources/aws-stepfunctions-activity_tagsentry.go index bc4731497f..5c368d8688 100644 --- a/cloudformation/aws-stepfunctions-activity_tagsentry.go +++ b/cloudformation/resources/aws-stepfunctions-activity_tagsentry.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSStepFunctionsActivity_TagsEntry AWS CloudFormation Resource (AWS::StepFunctions::Activity.TagsEntry) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-tagsentry.html @@ -15,7 +17,7 @@ type AWSStepFunctionsActivity_TagsEntry struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSStepFunctionsActivity_TagsEntry) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSStepFunctionsActivity_TagsEntry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSStepFunctionsActivity_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-stepfunctions-statemachine.go b/cloudformation/resources/aws-stepfunctions-statemachine.go similarity index 93% rename from cloudformation/aws-stepfunctions-statemachine.go rename to cloudformation/resources/aws-stepfunctions-statemachine.go index 748ef1a84f..a235497702 100644 --- a/cloudformation/aws-stepfunctions-statemachine.go +++ b/cloudformation/resources/aws-stepfunctions-statemachine.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSStepFunctionsStateMachine AWS CloudFormation Resource (AWS::StepFunctions::StateMachine) @@ -31,7 +32,7 @@ type AWSStepFunctionsStateMachine struct { Tags []AWSStepFunctionsStateMachine_TagsEntry `json:"Tags,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSStepFunctionsStateMachine) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSStepFunctionsStateMachine) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSStepFunctionsStateMachine) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSStepFunctionsStateMachine) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-stepfunctions-statemachine_tagsentry.go b/cloudformation/resources/aws-stepfunctions-statemachine_tagsentry.go similarity index 94% rename from cloudformation/aws-stepfunctions-statemachine_tagsentry.go rename to cloudformation/resources/aws-stepfunctions-statemachine_tagsentry.go index b35546c921..c8e0771a88 100644 --- a/cloudformation/aws-stepfunctions-statemachine_tagsentry.go +++ b/cloudformation/resources/aws-stepfunctions-statemachine_tagsentry.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSStepFunctionsStateMachine_TagsEntry AWS CloudFormation Resource (AWS::StepFunctions::StateMachine.TagsEntry) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-tagsentry.html @@ -15,7 +17,7 @@ type AWSStepFunctionsStateMachine_TagsEntry struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSStepFunctionsStateMachine_TagsEntry) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSStepFunctionsStateMachine_TagsEntry) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSStepFunctionsStateMachine_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-bytematchset.go b/cloudformation/resources/aws-waf-bytematchset.go similarity index 90% rename from cloudformation/aws-waf-bytematchset.go rename to cloudformation/resources/aws-waf-bytematchset.go index ba7938db10..f03799f51c 100644 --- a/cloudformation/aws-waf-bytematchset.go +++ b/cloudformation/resources/aws-waf-bytematchset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFByteMatchSet AWS CloudFormation Resource (AWS::WAF::ByteMatchSet) @@ -21,7 +22,7 @@ type AWSWAFByteMatchSet struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFByteMatchSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFByteMatchSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFByteMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFByteMatchSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-waf-bytematchset_bytematchtuple.go b/cloudformation/resources/aws-waf-bytematchset_bytematchtuple.go similarity index 95% rename from cloudformation/aws-waf-bytematchset_bytematchtuple.go rename to cloudformation/resources/aws-waf-bytematchset_bytematchtuple.go index 0a52c252bf..2a8e6ef670 100644 --- a/cloudformation/aws-waf-bytematchset_bytematchtuple.go +++ b/cloudformation/resources/aws-waf-bytematchset_bytematchtuple.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFByteMatchSet_ByteMatchTuple AWS CloudFormation Resource (AWS::WAF::ByteMatchSet.ByteMatchTuple) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html @@ -30,7 +32,7 @@ type AWSWAFByteMatchSet_ByteMatchTuple struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSWAFByteMatchSet_ByteMatchTuple) SetMetadata(metadata map[string]inte // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFByteMatchSet_ByteMatchTuple) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFByteMatchSet_ByteMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-bytematchset_fieldtomatch.go b/cloudformation/resources/aws-waf-bytematchset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-waf-bytematchset_fieldtomatch.go rename to cloudformation/resources/aws-waf-bytematchset_fieldtomatch.go index a60b0a0e4c..53893e8d02 100644 --- a/cloudformation/aws-waf-bytematchset_fieldtomatch.go +++ b/cloudformation/resources/aws-waf-bytematchset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFByteMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::ByteMatchSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFByteMatchSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFByteMatchSet_FieldToMatch) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFByteMatchSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFByteMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-ipset.go b/cloudformation/resources/aws-waf-ipset.go similarity index 90% rename from cloudformation/aws-waf-ipset.go rename to cloudformation/resources/aws-waf-ipset.go index 99145793c9..9810026662 100644 --- a/cloudformation/aws-waf-ipset.go +++ b/cloudformation/resources/aws-waf-ipset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFIPSet AWS CloudFormation Resource (AWS::WAF::IPSet) @@ -21,7 +22,7 @@ type AWSWAFIPSet struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFIPSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFIPSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFIPSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFIPSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-waf-ipset_ipsetdescriptor.go b/cloudformation/resources/aws-waf-ipset_ipsetdescriptor.go similarity index 92% rename from cloudformation/aws-waf-ipset_ipsetdescriptor.go rename to cloudformation/resources/aws-waf-ipset_ipsetdescriptor.go index fa999010b5..3b9b8342ed 100644 --- a/cloudformation/aws-waf-ipset_ipsetdescriptor.go +++ b/cloudformation/resources/aws-waf-ipset_ipsetdescriptor.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFIPSet_IPSetDescriptor AWS CloudFormation Resource (AWS::WAF::IPSet.IPSetDescriptor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-ipset-ipsetdescriptors.html @@ -15,7 +17,7 @@ type AWSWAFIPSet_IPSetDescriptor struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFIPSet_IPSetDescriptor) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFIPSet_IPSetDescriptor) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFIPSet_IPSetDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-rule.go b/cloudformation/resources/aws-waf-rule.go similarity index 90% rename from cloudformation/aws-waf-rule.go rename to cloudformation/resources/aws-waf-rule.go index e792dca1ee..9376841b2d 100644 --- a/cloudformation/aws-waf-rule.go +++ b/cloudformation/resources/aws-waf-rule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRule AWS CloudFormation Resource (AWS::WAF::Rule) @@ -26,7 +27,7 @@ type AWSWAFRule struct { Predicates []AWSWAFRule_Predicate `json:"Predicates,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSWAFRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSWAFRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-waf-rule_predicate.go b/cloudformation/resources/aws-waf-rule_predicate.go similarity index 92% rename from cloudformation/aws-waf-rule_predicate.go rename to cloudformation/resources/aws-waf-rule_predicate.go index 727df726c2..6d98134fcd 100644 --- a/cloudformation/aws-waf-rule_predicate.go +++ b/cloudformation/resources/aws-waf-rule_predicate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRule_Predicate AWS CloudFormation Resource (AWS::WAF::Rule.Predicate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-rule-predicates.html @@ -20,7 +22,7 @@ type AWSWAFRule_Predicate struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSWAFRule_Predicate) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRule_Predicate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRule_Predicate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-sizeconstraintset.go b/cloudformation/resources/aws-waf-sizeconstraintset.go similarity index 90% rename from cloudformation/aws-waf-sizeconstraintset.go rename to cloudformation/resources/aws-waf-sizeconstraintset.go index 55d1d0da9f..66c77756fc 100644 --- a/cloudformation/aws-waf-sizeconstraintset.go +++ b/cloudformation/resources/aws-waf-sizeconstraintset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFSizeConstraintSet AWS CloudFormation Resource (AWS::WAF::SizeConstraintSet) @@ -21,7 +22,7 @@ type AWSWAFSizeConstraintSet struct { SizeConstraints []AWSWAFSizeConstraintSet_SizeConstraint `json:"SizeConstraints,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFSizeConstraintSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFSizeConstraintSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFSizeConstraintSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFSizeConstraintSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-waf-sizeconstraintset_fieldtomatch.go b/cloudformation/resources/aws-waf-sizeconstraintset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-waf-sizeconstraintset_fieldtomatch.go rename to cloudformation/resources/aws-waf-sizeconstraintset_fieldtomatch.go index ab8a017192..dbcd8441d3 100644 --- a/cloudformation/aws-waf-sizeconstraintset_fieldtomatch.go +++ b/cloudformation/resources/aws-waf-sizeconstraintset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFSizeConstraintSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::SizeConstraintSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFSizeConstraintSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFSizeConstraintSet_FieldToMatch) SetMetadata(metadata map[string]i // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFSizeConstraintSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFSizeConstraintSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-sizeconstraintset_sizeconstraint.go b/cloudformation/resources/aws-waf-sizeconstraintset_sizeconstraint.go similarity index 95% rename from cloudformation/aws-waf-sizeconstraintset_sizeconstraint.go rename to cloudformation/resources/aws-waf-sizeconstraintset_sizeconstraint.go index c40204828b..6a7c0839ad 100644 --- a/cloudformation/aws-waf-sizeconstraintset_sizeconstraint.go +++ b/cloudformation/resources/aws-waf-sizeconstraintset_sizeconstraint.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFSizeConstraintSet_SizeConstraint AWS CloudFormation Resource (AWS::WAF::SizeConstraintSet.SizeConstraint) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint.html @@ -25,7 +27,7 @@ type AWSWAFSizeConstraintSet_SizeConstraint struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSWAFSizeConstraintSet_SizeConstraint) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFSizeConstraintSet_SizeConstraint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFSizeConstraintSet_SizeConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-sqlinjectionmatchset.go b/cloudformation/resources/aws-waf-sqlinjectionmatchset.go similarity index 90% rename from cloudformation/aws-waf-sqlinjectionmatchset.go rename to cloudformation/resources/aws-waf-sqlinjectionmatchset.go index 5a40bdd5f6..ec7639e5fb 100644 --- a/cloudformation/aws-waf-sqlinjectionmatchset.go +++ b/cloudformation/resources/aws-waf-sqlinjectionmatchset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFSqlInjectionMatchSet AWS CloudFormation Resource (AWS::WAF::SqlInjectionMatchSet) @@ -21,7 +22,7 @@ type AWSWAFSqlInjectionMatchSet struct { SqlInjectionMatchTuples []AWSWAFSqlInjectionMatchSet_SqlInjectionMatchTuple `json:"SqlInjectionMatchTuples,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFSqlInjectionMatchSet) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFSqlInjectionMatchSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFSqlInjectionMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFSqlInjectionMatchSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-waf-sqlinjectionmatchset_fieldtomatch.go b/cloudformation/resources/aws-waf-sqlinjectionmatchset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-waf-sqlinjectionmatchset_fieldtomatch.go rename to cloudformation/resources/aws-waf-sqlinjectionmatchset_fieldtomatch.go index e8fa0f765e..3f9e5741ee 100644 --- a/cloudformation/aws-waf-sqlinjectionmatchset_fieldtomatch.go +++ b/cloudformation/resources/aws-waf-sqlinjectionmatchset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFSqlInjectionMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::SqlInjectionMatchSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFSqlInjectionMatchSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFSqlInjectionMatchSet_FieldToMatch) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFSqlInjectionMatchSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFSqlInjectionMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go b/cloudformation/resources/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go similarity index 94% rename from cloudformation/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go rename to cloudformation/resources/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go index 27235477da..53efafd640 100644 --- a/cloudformation/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go +++ b/cloudformation/resources/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFSqlInjectionMatchSet_SqlInjectionMatchTuple AWS CloudFormation Resource (AWS::WAF::SqlInjectionMatchSet.SqlInjectionMatchTuple) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html @@ -15,7 +17,7 @@ type AWSWAFSqlInjectionMatchSet_SqlInjectionMatchTuple struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFSqlInjectionMatchSet_SqlInjectionMatchTuple) SetMetadata(metadata // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFSqlInjectionMatchSet_SqlInjectionMatchTuple) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFSqlInjectionMatchSet_SqlInjectionMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-webacl.go b/cloudformation/resources/aws-waf-webacl.go similarity index 91% rename from cloudformation/aws-waf-webacl.go rename to cloudformation/resources/aws-waf-webacl.go index 2a52bb77ff..089424e9a9 100644 --- a/cloudformation/aws-waf-webacl.go +++ b/cloudformation/resources/aws-waf-webacl.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFWebACL AWS CloudFormation Resource (AWS::WAF::WebACL) @@ -31,7 +32,7 @@ type AWSWAFWebACL struct { Rules []AWSWAFWebACL_ActivatedRule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSWAFWebACL) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFWebACL) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFWebACL) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSWAFWebACL) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-waf-webacl_activatedrule.go b/cloudformation/resources/aws-waf-webacl_activatedrule.go similarity index 92% rename from cloudformation/aws-waf-webacl_activatedrule.go rename to cloudformation/resources/aws-waf-webacl_activatedrule.go index 2d1af9e6d1..86231ea544 100644 --- a/cloudformation/aws-waf-webacl_activatedrule.go +++ b/cloudformation/resources/aws-waf-webacl_activatedrule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFWebACL_ActivatedRule AWS CloudFormation Resource (AWS::WAF::WebACL.ActivatedRule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-rules.html @@ -20,7 +22,7 @@ type AWSWAFWebACL_ActivatedRule struct { RuleId string `json:"RuleId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSWAFWebACL_ActivatedRule) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFWebACL_ActivatedRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFWebACL_ActivatedRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-webacl_wafaction.go b/cloudformation/resources/aws-waf-webacl_wafaction.go similarity index 91% rename from cloudformation/aws-waf-webacl_wafaction.go rename to cloudformation/resources/aws-waf-webacl_wafaction.go index 50ec7ba237..a43ae866f1 100644 --- a/cloudformation/aws-waf-webacl_wafaction.go +++ b/cloudformation/resources/aws-waf-webacl_wafaction.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFWebACL_WafAction AWS CloudFormation Resource (AWS::WAF::WebACL.WafAction) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-action.html @@ -10,7 +12,7 @@ type AWSWAFWebACL_WafAction struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSWAFWebACL_WafAction) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFWebACL_WafAction) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFWebACL_WafAction) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-xssmatchset.go b/cloudformation/resources/aws-waf-xssmatchset.go similarity index 90% rename from cloudformation/aws-waf-xssmatchset.go rename to cloudformation/resources/aws-waf-xssmatchset.go index f775dbb608..deab7ca80b 100644 --- a/cloudformation/aws-waf-xssmatchset.go +++ b/cloudformation/resources/aws-waf-xssmatchset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFXssMatchSet AWS CloudFormation Resource (AWS::WAF::XssMatchSet) @@ -21,7 +22,7 @@ type AWSWAFXssMatchSet struct { XssMatchTuples []AWSWAFXssMatchSet_XssMatchTuple `json:"XssMatchTuples,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFXssMatchSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFXssMatchSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFXssMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFXssMatchSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-waf-xssmatchset_fieldtomatch.go b/cloudformation/resources/aws-waf-xssmatchset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-waf-xssmatchset_fieldtomatch.go rename to cloudformation/resources/aws-waf-xssmatchset_fieldtomatch.go index 9e7abbacc7..247521be4f 100644 --- a/cloudformation/aws-waf-xssmatchset_fieldtomatch.go +++ b/cloudformation/resources/aws-waf-xssmatchset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFXssMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::XssMatchSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFXssMatchSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFXssMatchSet_FieldToMatch) SetMetadata(metadata map[string]interfa // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFXssMatchSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFXssMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-waf-xssmatchset_xssmatchtuple.go b/cloudformation/resources/aws-waf-xssmatchset_xssmatchtuple.go similarity index 94% rename from cloudformation/aws-waf-xssmatchset_xssmatchtuple.go rename to cloudformation/resources/aws-waf-xssmatchset_xssmatchtuple.go index e1b65a5d08..cfab9bdcdc 100644 --- a/cloudformation/aws-waf-xssmatchset_xssmatchtuple.go +++ b/cloudformation/resources/aws-waf-xssmatchset_xssmatchtuple.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFXssMatchSet_XssMatchTuple AWS CloudFormation Resource (AWS::WAF::XssMatchSet.XssMatchTuple) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html @@ -15,7 +17,7 @@ type AWSWAFXssMatchSet_XssMatchTuple struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFXssMatchSet_XssMatchTuple) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFXssMatchSet_XssMatchTuple) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFXssMatchSet_XssMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-bytematchset.go b/cloudformation/resources/aws-wafregional-bytematchset.go similarity index 90% rename from cloudformation/aws-wafregional-bytematchset.go rename to cloudformation/resources/aws-wafregional-bytematchset.go index 5eca8d29c7..9f76737f02 100644 --- a/cloudformation/aws-wafregional-bytematchset.go +++ b/cloudformation/resources/aws-wafregional-bytematchset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalByteMatchSet AWS CloudFormation Resource (AWS::WAFRegional::ByteMatchSet) @@ -21,7 +22,7 @@ type AWSWAFRegionalByteMatchSet struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFRegionalByteMatchSet) SetMetadata(metadata map[string]interface{} // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalByteMatchSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalByteMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFRegionalByteMatchSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-bytematchset_bytematchtuple.go b/cloudformation/resources/aws-wafregional-bytematchset_bytematchtuple.go similarity index 95% rename from cloudformation/aws-wafregional-bytematchset_bytematchtuple.go rename to cloudformation/resources/aws-wafregional-bytematchset_bytematchtuple.go index f600198af7..4c96da53bc 100644 --- a/cloudformation/aws-wafregional-bytematchset_bytematchtuple.go +++ b/cloudformation/resources/aws-wafregional-bytematchset_bytematchtuple.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalByteMatchSet_ByteMatchTuple AWS CloudFormation Resource (AWS::WAFRegional::ByteMatchSet.ByteMatchTuple) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html @@ -30,7 +32,7 @@ type AWSWAFRegionalByteMatchSet_ByteMatchTuple struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSWAFRegionalByteMatchSet_ByteMatchTuple) SetMetadata(metadata map[str // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalByteMatchSet_ByteMatchTuple) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalByteMatchSet_ByteMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-bytematchset_fieldtomatch.go b/cloudformation/resources/aws-wafregional-bytematchset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-wafregional-bytematchset_fieldtomatch.go rename to cloudformation/resources/aws-wafregional-bytematchset_fieldtomatch.go index 38c567aac5..a3b69d130a 100644 --- a/cloudformation/aws-wafregional-bytematchset_fieldtomatch.go +++ b/cloudformation/resources/aws-wafregional-bytematchset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalByteMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::ByteMatchSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFRegionalByteMatchSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFRegionalByteMatchSet_FieldToMatch) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalByteMatchSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalByteMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-ipset.go b/cloudformation/resources/aws-wafregional-ipset.go similarity index 90% rename from cloudformation/aws-wafregional-ipset.go rename to cloudformation/resources/aws-wafregional-ipset.go index fde487e499..5189928431 100644 --- a/cloudformation/aws-wafregional-ipset.go +++ b/cloudformation/resources/aws-wafregional-ipset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalIPSet AWS CloudFormation Resource (AWS::WAFRegional::IPSet) @@ -21,7 +22,7 @@ type AWSWAFRegionalIPSet struct { Name string `json:"Name,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFRegionalIPSet) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalIPSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalIPSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFRegionalIPSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-ipset_ipsetdescriptor.go b/cloudformation/resources/aws-wafregional-ipset_ipsetdescriptor.go similarity index 94% rename from cloudformation/aws-wafregional-ipset_ipsetdescriptor.go rename to cloudformation/resources/aws-wafregional-ipset_ipsetdescriptor.go index 03e227ca51..57c7db9e4b 100644 --- a/cloudformation/aws-wafregional-ipset_ipsetdescriptor.go +++ b/cloudformation/resources/aws-wafregional-ipset_ipsetdescriptor.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalIPSet_IPSetDescriptor AWS CloudFormation Resource (AWS::WAFRegional::IPSet.IPSetDescriptor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-ipset-ipsetdescriptor.html @@ -15,7 +17,7 @@ type AWSWAFRegionalIPSet_IPSetDescriptor struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFRegionalIPSet_IPSetDescriptor) SetMetadata(metadata map[string]in // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalIPSet_IPSetDescriptor) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalIPSet_IPSetDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-rule.go b/cloudformation/resources/aws-wafregional-rule.go similarity index 90% rename from cloudformation/aws-wafregional-rule.go rename to cloudformation/resources/aws-wafregional-rule.go index 2b396f3257..845a367081 100644 --- a/cloudformation/aws-wafregional-rule.go +++ b/cloudformation/resources/aws-wafregional-rule.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalRule AWS CloudFormation Resource (AWS::WAFRegional::Rule) @@ -26,7 +27,7 @@ type AWSWAFRegionalRule struct { Predicates []AWSWAFRegionalRule_Predicate `json:"Predicates,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -66,7 +67,7 @@ func (r *AWSWAFRegionalRule) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalRule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalRule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -77,9 +78,9 @@ func (r AWSWAFRegionalRule) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-rule_predicate.go b/cloudformation/resources/aws-wafregional-rule_predicate.go similarity index 94% rename from cloudformation/aws-wafregional-rule_predicate.go rename to cloudformation/resources/aws-wafregional-rule_predicate.go index 42b32d5035..db64c5e6f1 100644 --- a/cloudformation/aws-wafregional-rule_predicate.go +++ b/cloudformation/resources/aws-wafregional-rule_predicate.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalRule_Predicate AWS CloudFormation Resource (AWS::WAFRegional::Rule.Predicate) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-rule-predicate.html @@ -20,7 +22,7 @@ type AWSWAFRegionalRule_Predicate struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSWAFRegionalRule_Predicate) SetMetadata(metadata map[string]interface // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalRule_Predicate) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalRule_Predicate) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-sizeconstraintset.go b/cloudformation/resources/aws-wafregional-sizeconstraintset.go similarity index 92% rename from cloudformation/aws-wafregional-sizeconstraintset.go rename to cloudformation/resources/aws-wafregional-sizeconstraintset.go index 7e2bbb3d36..780d07b61f 100644 --- a/cloudformation/aws-wafregional-sizeconstraintset.go +++ b/cloudformation/resources/aws-wafregional-sizeconstraintset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalSizeConstraintSet AWS CloudFormation Resource (AWS::WAFRegional::SizeConstraintSet) @@ -21,7 +22,7 @@ type AWSWAFRegionalSizeConstraintSet struct { SizeConstraints []AWSWAFRegionalSizeConstraintSet_SizeConstraint `json:"SizeConstraints,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFRegionalSizeConstraintSet) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalSizeConstraintSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalSizeConstraintSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFRegionalSizeConstraintSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-sizeconstraintset_fieldtomatch.go b/cloudformation/resources/aws-wafregional-sizeconstraintset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-wafregional-sizeconstraintset_fieldtomatch.go rename to cloudformation/resources/aws-wafregional-sizeconstraintset_fieldtomatch.go index a4efc8fd5d..4f423af2d9 100644 --- a/cloudformation/aws-wafregional-sizeconstraintset_fieldtomatch.go +++ b/cloudformation/resources/aws-wafregional-sizeconstraintset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalSizeConstraintSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::SizeConstraintSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFRegionalSizeConstraintSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFRegionalSizeConstraintSet_FieldToMatch) SetMetadata(metadata map[ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalSizeConstraintSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalSizeConstraintSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-sizeconstraintset_sizeconstraint.go b/cloudformation/resources/aws-wafregional-sizeconstraintset_sizeconstraint.go similarity index 95% rename from cloudformation/aws-wafregional-sizeconstraintset_sizeconstraint.go rename to cloudformation/resources/aws-wafregional-sizeconstraintset_sizeconstraint.go index 466ca778d0..e24280ef81 100644 --- a/cloudformation/aws-wafregional-sizeconstraintset_sizeconstraint.go +++ b/cloudformation/resources/aws-wafregional-sizeconstraintset_sizeconstraint.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalSizeConstraintSet_SizeConstraint AWS CloudFormation Resource (AWS::WAFRegional::SizeConstraintSet.SizeConstraint) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html @@ -25,7 +27,7 @@ type AWSWAFRegionalSizeConstraintSet_SizeConstraint struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -65,6 +67,6 @@ func (r *AWSWAFRegionalSizeConstraintSet_SizeConstraint) SetMetadata(metadata ma // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalSizeConstraintSet_SizeConstraint) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalSizeConstraintSet_SizeConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-sqlinjectionmatchset.go b/cloudformation/resources/aws-wafregional-sqlinjectionmatchset.go similarity index 92% rename from cloudformation/aws-wafregional-sqlinjectionmatchset.go rename to cloudformation/resources/aws-wafregional-sqlinjectionmatchset.go index 0d2a4433f6..f93fdeeb68 100644 --- a/cloudformation/aws-wafregional-sqlinjectionmatchset.go +++ b/cloudformation/resources/aws-wafregional-sqlinjectionmatchset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalSqlInjectionMatchSet AWS CloudFormation Resource (AWS::WAFRegional::SqlInjectionMatchSet) @@ -21,7 +22,7 @@ type AWSWAFRegionalSqlInjectionMatchSet struct { SqlInjectionMatchTuples []AWSWAFRegionalSqlInjectionMatchSet_SqlInjectionMatchTuple `json:"SqlInjectionMatchTuples,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFRegionalSqlInjectionMatchSet) SetMetadata(metadata map[string]int // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalSqlInjectionMatchSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalSqlInjectionMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFRegionalSqlInjectionMatchSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go b/cloudformation/resources/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go rename to cloudformation/resources/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go index b562c974c6..db44ec0aff 100644 --- a/cloudformation/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go +++ b/cloudformation/resources/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalSqlInjectionMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::SqlInjectionMatchSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFRegionalSqlInjectionMatchSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFRegionalSqlInjectionMatchSet_FieldToMatch) SetMetadata(metadata m // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalSqlInjectionMatchSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalSqlInjectionMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go b/cloudformation/resources/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go similarity index 94% rename from cloudformation/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go rename to cloudformation/resources/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go index 56b7500a62..5d719a5a18 100644 --- a/cloudformation/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go +++ b/cloudformation/resources/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalSqlInjectionMatchSet_SqlInjectionMatchTuple AWS CloudFormation Resource (AWS::WAFRegional::SqlInjectionMatchSet.SqlInjectionMatchTuple) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple.html @@ -15,7 +17,7 @@ type AWSWAFRegionalSqlInjectionMatchSet_SqlInjectionMatchTuple struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFRegionalSqlInjectionMatchSet_SqlInjectionMatchTuple) SetMetadata( // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalSqlInjectionMatchSet_SqlInjectionMatchTuple) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalSqlInjectionMatchSet_SqlInjectionMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-webacl.go b/cloudformation/resources/aws-wafregional-webacl.go similarity index 91% rename from cloudformation/aws-wafregional-webacl.go rename to cloudformation/resources/aws-wafregional-webacl.go index f3c0b4e843..900f8f2daf 100644 --- a/cloudformation/aws-wafregional-webacl.go +++ b/cloudformation/resources/aws-wafregional-webacl.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalWebACL AWS CloudFormation Resource (AWS::WAFRegional::WebACL) @@ -31,7 +32,7 @@ type AWSWAFRegionalWebACL struct { Rules []AWSWAFRegionalWebACL_Rule `json:"Rules,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -71,7 +72,7 @@ func (r *AWSWAFRegionalWebACL) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalWebACL) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalWebACL) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -82,9 +83,9 @@ func (r AWSWAFRegionalWebACL) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-webacl_action.go b/cloudformation/resources/aws-wafregional-webacl_action.go similarity index 91% rename from cloudformation/aws-wafregional-webacl_action.go rename to cloudformation/resources/aws-wafregional-webacl_action.go index 57fe7d3a2c..8ac4388575 100644 --- a/cloudformation/aws-wafregional-webacl_action.go +++ b/cloudformation/resources/aws-wafregional-webacl_action.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalWebACL_Action AWS CloudFormation Resource (AWS::WAFRegional::WebACL.Action) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-action.html @@ -10,7 +12,7 @@ type AWSWAFRegionalWebACL_Action struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -50,6 +52,6 @@ func (r *AWSWAFRegionalWebACL_Action) SetMetadata(metadata map[string]interface{ // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalWebACL_Action) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalWebACL_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-webacl_rule.go b/cloudformation/resources/aws-wafregional-webacl_rule.go similarity index 92% rename from cloudformation/aws-wafregional-webacl_rule.go rename to cloudformation/resources/aws-wafregional-webacl_rule.go index d68789c781..a08c54ca04 100644 --- a/cloudformation/aws-wafregional-webacl_rule.go +++ b/cloudformation/resources/aws-wafregional-webacl_rule.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalWebACL_Rule AWS CloudFormation Resource (AWS::WAFRegional::WebACL.Rule) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-rule.html @@ -20,7 +22,7 @@ type AWSWAFRegionalWebACL_Rule struct { RuleId string `json:"RuleId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -60,6 +62,6 @@ func (r *AWSWAFRegionalWebACL_Rule) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalWebACL_Rule) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalWebACL_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-webaclassociation.go b/cloudformation/resources/aws-wafregional-webaclassociation.go similarity index 92% rename from cloudformation/aws-wafregional-webaclassociation.go rename to cloudformation/resources/aws-wafregional-webaclassociation.go index aff7410980..2d7801375e 100644 --- a/cloudformation/aws-wafregional-webaclassociation.go +++ b/cloudformation/resources/aws-wafregional-webaclassociation.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalWebACLAssociation AWS CloudFormation Resource (AWS::WAFRegional::WebACLAssociation) @@ -21,7 +22,7 @@ type AWSWAFRegionalWebACLAssociation struct { WebACLId string `json:"WebACLId,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFRegionalWebACLAssociation) SetMetadata(metadata map[string]interf // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalWebACLAssociation) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalWebACLAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFRegionalWebACLAssociation) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-xssmatchset.go b/cloudformation/resources/aws-wafregional-xssmatchset.go similarity index 90% rename from cloudformation/aws-wafregional-xssmatchset.go rename to cloudformation/resources/aws-wafregional-xssmatchset.go index 4345852ad9..937c28c04d 100644 --- a/cloudformation/aws-wafregional-xssmatchset.go +++ b/cloudformation/resources/aws-wafregional-xssmatchset.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWAFRegionalXssMatchSet AWS CloudFormation Resource (AWS::WAFRegional::XssMatchSet) @@ -21,7 +22,7 @@ type AWSWAFRegionalXssMatchSet struct { XssMatchTuples []AWSWAFRegionalXssMatchSet_XssMatchTuple `json:"XssMatchTuples,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,7 +62,7 @@ func (r *AWSWAFRegionalXssMatchSet) SetMetadata(metadata map[string]interface{}) // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalXssMatchSet) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalXssMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -72,9 +73,9 @@ func (r AWSWAFRegionalXssMatchSet) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-wafregional-xssmatchset_fieldtomatch.go b/cloudformation/resources/aws-wafregional-xssmatchset_fieldtomatch.go similarity index 94% rename from cloudformation/aws-wafregional-xssmatchset_fieldtomatch.go rename to cloudformation/resources/aws-wafregional-xssmatchset_fieldtomatch.go index a4cf7a1d41..a88c19df10 100644 --- a/cloudformation/aws-wafregional-xssmatchset_fieldtomatch.go +++ b/cloudformation/resources/aws-wafregional-xssmatchset_fieldtomatch.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalXssMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::XssMatchSet.FieldToMatch) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-fieldtomatch.html @@ -15,7 +17,7 @@ type AWSWAFRegionalXssMatchSet_FieldToMatch struct { Type string `json:"Type,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFRegionalXssMatchSet_FieldToMatch) SetMetadata(metadata map[string // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalXssMatchSet_FieldToMatch) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalXssMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-wafregional-xssmatchset_xssmatchtuple.go b/cloudformation/resources/aws-wafregional-xssmatchset_xssmatchtuple.go similarity index 94% rename from cloudformation/aws-wafregional-xssmatchset_xssmatchtuple.go rename to cloudformation/resources/aws-wafregional-xssmatchset_xssmatchtuple.go index fda111fb3a..b0b6c4a185 100644 --- a/cloudformation/aws-wafregional-xssmatchset_xssmatchtuple.go +++ b/cloudformation/resources/aws-wafregional-xssmatchset_xssmatchtuple.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWAFRegionalXssMatchSet_XssMatchTuple AWS CloudFormation Resource (AWS::WAFRegional::XssMatchSet.XssMatchTuple) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-xssmatchtuple.html @@ -15,7 +17,7 @@ type AWSWAFRegionalXssMatchSet_XssMatchTuple struct { TextTransformation string `json:"TextTransformation,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *AWSWAFRegionalXssMatchSet_XssMatchTuple) SetMetadata(metadata map[strin // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWAFRegionalXssMatchSet_XssMatchTuple) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWAFRegionalXssMatchSet_XssMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/aws-workspaces-workspace.go b/cloudformation/resources/aws-workspaces-workspace.go similarity index 93% rename from cloudformation/aws-workspaces-workspace.go rename to cloudformation/resources/aws-workspaces-workspace.go index ea3d9da975..f8a900b9c1 100644 --- a/cloudformation/aws-workspaces-workspace.go +++ b/cloudformation/resources/aws-workspaces-workspace.go @@ -1,9 +1,10 @@ -package cloudformation +package resources import ( "bytes" "encoding/json" "fmt" + "github.com/awslabs/goformation/cloudformation/policies" ) // AWSWorkSpacesWorkspace AWS CloudFormation Resource (AWS::WorkSpaces::Workspace) @@ -51,7 +52,7 @@ type AWSWorkSpacesWorkspace struct { WorkspaceProperties *AWSWorkSpacesWorkspace_WorkspaceProperties `json:"WorkspaceProperties,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -91,7 +92,7 @@ func (r *AWSWorkSpacesWorkspace) SetMetadata(metadata map[string]interface{}) { // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWorkSpacesWorkspace) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWorkSpacesWorkspace) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } @@ -102,9 +103,9 @@ func (r AWSWorkSpacesWorkspace) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Type string Properties Properties - DependsOn []string `json:"DependsOn,omitempty"` - Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/cloudformation/aws-workspaces-workspace_workspaceproperties.go b/cloudformation/resources/aws-workspaces-workspace_workspaceproperties.go similarity index 95% rename from cloudformation/aws-workspaces-workspace_workspaceproperties.go rename to cloudformation/resources/aws-workspaces-workspace_workspaceproperties.go index a5e09cf9e9..6da1bbf522 100644 --- a/cloudformation/aws-workspaces-workspace_workspaceproperties.go +++ b/cloudformation/resources/aws-workspaces-workspace_workspaceproperties.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // AWSWorkSpacesWorkspace_WorkspaceProperties AWS CloudFormation Resource (AWS::WorkSpaces::Workspace.WorkspaceProperties) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspace-workspaceproperties.html @@ -30,7 +32,7 @@ type AWSWorkSpacesWorkspace_WorkspaceProperties struct { UserVolumeSizeGib int `json:"UserVolumeSizeGib,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -70,6 +72,6 @@ func (r *AWSWorkSpacesWorkspace_WorkspaceProperties) SetMetadata(metadata map[st // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AWSWorkSpacesWorkspace_WorkspaceProperties) SetDeletionPolicy(policy DeletionPolicy) { +func (r *AWSWorkSpacesWorkspace_WorkspaceProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/cloudformation/awsserverlessapi_definitionuri.go b/cloudformation/resources/awsserverlessapi_definitionuri.go similarity index 97% rename from cloudformation/awsserverlessapi_definitionuri.go rename to cloudformation/resources/awsserverlessapi_definitionuri.go index 460b621837..6ed25a14d7 100644 --- a/cloudformation/awsserverlessapi_definitionuri.go +++ b/cloudformation/resources/awsserverlessapi_definitionuri.go @@ -1,4 +1,4 @@ -package cloudformation +package resources import ( "encoding/json" diff --git a/cloudformation/awsserverlessapplication_location.go b/cloudformation/resources/awsserverlessapplication_location.go similarity index 98% rename from cloudformation/awsserverlessapplication_location.go rename to cloudformation/resources/awsserverlessapplication_location.go index b77aec81c2..38ec2a7cd3 100644 --- a/cloudformation/awsserverlessapplication_location.go +++ b/cloudformation/resources/awsserverlessapplication_location.go @@ -1,4 +1,4 @@ -package cloudformation +package resources import ( "encoding/json" diff --git a/cloudformation/awsserverlessfunction_codeuri.go b/cloudformation/resources/awsserverlessfunction_codeuri.go similarity index 98% rename from cloudformation/awsserverlessfunction_codeuri.go rename to cloudformation/resources/awsserverlessfunction_codeuri.go index 305b252102..ee412ecfdd 100644 --- a/cloudformation/awsserverlessfunction_codeuri.go +++ b/cloudformation/resources/awsserverlessfunction_codeuri.go @@ -1,4 +1,4 @@ -package cloudformation +package resources import ( "encoding/json" diff --git a/cloudformation/awsserverlessfunction_events.go b/cloudformation/resources/awsserverlessfunction_events.go similarity index 97% rename from cloudformation/awsserverlessfunction_events.go rename to cloudformation/resources/awsserverlessfunction_events.go index ac221fc498..0d68f84e4e 100644 --- a/cloudformation/awsserverlessfunction_events.go +++ b/cloudformation/resources/awsserverlessfunction_events.go @@ -1,4 +1,4 @@ -package cloudformation +package resources import ( "encoding/json" diff --git a/cloudformation/awsserverlessfunction_policies.go b/cloudformation/resources/awsserverlessfunction_policies.go similarity index 98% rename from cloudformation/awsserverlessfunction_policies.go rename to cloudformation/resources/awsserverlessfunction_policies.go index 3eae426099..d1bb976696 100644 --- a/cloudformation/awsserverlessfunction_policies.go +++ b/cloudformation/resources/awsserverlessfunction_policies.go @@ -1,4 +1,4 @@ -package cloudformation +package resources import ( "encoding/json" diff --git a/cloudformation/awsserverlessfunction_properties.go b/cloudformation/resources/awsserverlessfunction_properties.go similarity index 99% rename from cloudformation/awsserverlessfunction_properties.go rename to cloudformation/resources/awsserverlessfunction_properties.go index 4d221b84c4..2b90913cad 100644 --- a/cloudformation/awsserverlessfunction_properties.go +++ b/cloudformation/resources/awsserverlessfunction_properties.go @@ -1,4 +1,4 @@ -package cloudformation +package resources import ( "encoding/json" diff --git a/cloudformation/tag.go b/cloudformation/resources/tag.go similarity index 92% rename from cloudformation/tag.go rename to cloudformation/resources/tag.go index 5f4db95b45..9bec332ffb 100644 --- a/cloudformation/tag.go +++ b/cloudformation/resources/tag.go @@ -1,4 +1,6 @@ -package cloudformation +package resources + +import "github.com/awslabs/goformation/cloudformation/policies" // Tag AWS CloudFormation Resource (Tag) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-tag.html @@ -15,7 +17,7 @@ type Tag struct { Value string `json:"Value,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -55,6 +57,6 @@ func (r *Tag) SetMetadata(metadata map[string]interface{}) { // 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 DeletionPolicy) { +func (r *Tag) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy } diff --git a/example/go-to-yaml/main.go b/example/go-to-yaml/main.go index f058eeb6aa..3da9659874 100644 --- a/example/go-to-yaml/main.go +++ b/example/go-to-yaml/main.go @@ -6,6 +6,7 @@ import ( "time" "github.com/awslabs/goformation/cloudformation" + "github.com/awslabs/goformation/cloudformation/resources" ) func main() { @@ -14,12 +15,12 @@ func main() { template := cloudformation.NewTemplate() // Create an Amazon SNS topic, with a unique name based off the current timestamp - template.Resources["MyTopic"] = &cloudformation.AWSSNSTopic{ + template.Resources["MyTopic"] = &resources.AWSSNSTopic{ TopicName: "my-topic-" + strconv.FormatInt(time.Now().Unix(), 10), } // Create a subscription, connected to our topic, that forwards notifications to an email address - template.Resources["MyTopicSubscription"] = &cloudformation.AWSSNSSubscription{ + template.Resources["MyTopicSubscription"] = &resources.AWSSNSSubscription{ TopicArn: cloudformation.Ref("MyTopic"), Protocol: "email", Endpoint: "some.email@example.com", diff --git a/generate/generate.go b/generate/generate.go index 36a09362ab..4d74cfc156 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -278,7 +278,7 @@ func (rg *ResourceGenerator) generateResources(name string, resource Resource, i } // Check if the file has changed since the last time generate ran - fn := "cloudformation/" + filename(name) + fn := "cloudformation/resources/" + filename(name) current, err := ioutil.ReadFile(fn) if err != nil || bytes.Compare(formatted, current) != 0 { @@ -396,7 +396,7 @@ func generatePolymorphicProperty(name string, property Property) { } // Write the file out - if err := ioutil.WriteFile("cloudformation/"+filename(name), formatted, 0644); err != nil { + if err := ioutil.WriteFile("cloudformation/resources/"+filename(name), formatted, 0644); err != nil { fmt.Printf("Error: Failed to write JSON Schema\n%s\n", err) os.Exit(1) } diff --git a/generate/property_test.go b/generate/property_test.go index 2b055a51f2..677fe94330 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/cloudformation" + "github.com/awslabs/goformation/cloudformation/resources" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) @@ -14,7 +14,7 @@ var _ = Describe("Goformation Code Generator", func() { Context("specified as a Go struct", func() { - property := &cloudformation.AWSServerlessFunction_S3Location{ + property := &resources.AWSServerlessFunction_S3Location{ Bucket: "test-bucket", Key: "test-key", Version: 123, @@ -31,13 +31,13 @@ var _ = Describe("Goformation Code Generator", func() { Context("specified as JSON", func() { property := []byte(`{"Bucket":"test-bucket","Key":"test-key","Version":123}`) - expected := &cloudformation.AWSServerlessFunction_S3Location{ + expected := &resources.AWSServerlessFunction_S3Location{ Bucket: "test-bucket", Key: "test-key", Version: 123, } - result := &cloudformation.AWSServerlessFunction_S3Location{} + result := &resources.AWSServerlessFunction_S3Location{} err := json.Unmarshal(property, result) It("should unmarshal to a Go struct successfully", func() { Expect(result).To(Equal(expected)) @@ -55,7 +55,7 @@ var _ = Describe("Goformation Code Generator", func() { Context("specified as a Go struct", func() { value := "test-primitive-value" - property := &cloudformation.AWSServerlessFunction_CodeUri{ + property := &resources.AWSServerlessFunction_CodeUri{ String: &value, } @@ -72,11 +72,11 @@ var _ = Describe("Goformation Code Generator", func() { property := []byte(`"test-primitive-value"`) value := "test-primitive-value" - expected := &cloudformation.AWSServerlessFunction_CodeUri{ + expected := &resources.AWSServerlessFunction_CodeUri{ String: &value, } - result := &cloudformation.AWSServerlessFunction_CodeUri{} + result := &resources.AWSServerlessFunction_CodeUri{} err := json.Unmarshal(property, result) It("should unmarshal to a Go struct successfully", func() { Expect(result).To(Equal(expected)) @@ -91,8 +91,8 @@ var _ = Describe("Goformation Code Generator", func() { Context("specified as a Go struct", func() { - property := &cloudformation.AWSServerlessFunction_CodeUri{ - S3Location: &cloudformation.AWSServerlessFunction_S3Location{ + property := &resources.AWSServerlessFunction_CodeUri{ + S3Location: &resources.AWSServerlessFunction_S3Location{ Bucket: "test-bucket", Key: "test-key", Version: 123, @@ -113,15 +113,15 @@ var _ = Describe("Goformation Code Generator", func() { property := []byte(`{"Bucket":"test-bucket","Key":"test-key","Version":123}`) - expected := &cloudformation.AWSServerlessFunction_CodeUri{ - S3Location: &cloudformation.AWSServerlessFunction_S3Location{ + expected := &resources.AWSServerlessFunction_CodeUri{ + S3Location: &resources.AWSServerlessFunction_S3Location{ Bucket: "test-bucket", Key: "test-key", Version: 123, }, } - result := &cloudformation.AWSServerlessFunction_CodeUri{} + result := &resources.AWSServerlessFunction_CodeUri{} err := json.Unmarshal(property, result) It("should unmarshal to a Go struct successfully", func() { Expect(result).To(Equal(expected)) diff --git a/generate/resource_test.go b/generate/resource_test.go index bf0846d5ea..f10a06be2a 100644 --- a/generate/resource_test.go +++ b/generate/resource_test.go @@ -3,8 +3,7 @@ package main_test import ( "encoding/json" - "github.com/awslabs/goformation/cloudformation" - + "github.com/awslabs/goformation/cloudformation/resources" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) @@ -18,9 +17,9 @@ var _ = Describe("Resource", func() { Context("with a simple primitive used for a polymorphic property", func() { codeuri := "s3://bucket/key" - resource := &cloudformation.AWSServerlessFunction{ + resource := &resources.AWSServerlessFunction{ Runtime: "nodejs6.10", - CodeUri: &cloudformation.AWSServerlessFunction_CodeUri{ + CodeUri: &resources.AWSServerlessFunction_CodeUri{ String: &codeuri, }, } @@ -37,10 +36,10 @@ var _ = Describe("Resource", func() { Context("with a custom type used for a polymorphic property", func() { - resource := &cloudformation.AWSServerlessFunction{ + resource := &resources.AWSServerlessFunction{ Runtime: "nodejs6.10", - CodeUri: &cloudformation.AWSServerlessFunction_CodeUri{ - S3Location: &cloudformation.AWSServerlessFunction_S3Location{ + CodeUri: &resources.AWSServerlessFunction_CodeUri{ + S3Location: &resources.AWSServerlessFunction_S3Location{ Bucket: "test-bucket", Key: "test-key", Version: 123, @@ -68,7 +67,7 @@ var _ = Describe("Resource", func() { Context("with a dependency on another resource", func() { - resource := &cloudformation.AWSEC2Instance{ + resource := &resources.AWSEC2Instance{ ImageId: "ami-0123456789", } resource.SetDependsOn([]string{"MyDependency"}) @@ -85,7 +84,7 @@ var _ = Describe("Resource", func() { Context("with a metadata attribute", func() { - resource := &cloudformation.AWSS3Bucket{ + resource := &resources.AWSS3Bucket{ BucketName: "MyBucket", } resource.SetMetadata(map[string]interface{}{"Object1": "Location1", "Object2": "Location2"}) @@ -107,12 +106,12 @@ var _ = Describe("Resource", func() { Context("with a dependency on another resource", func() { property := []byte(`{"Type":"AWS::EC2::Instance","Properties":{"ImageId":"ami-0123456789"},"DependsOn":["MyDependency"]}`) - expected := &cloudformation.AWSEC2Instance{ + expected := &resources.AWSEC2Instance{ ImageId: "ami-0123456789", } expected.SetDependsOn([]string{"MyDependency"}) - result := &cloudformation.AWSEC2Instance{} + result := &resources.AWSEC2Instance{} err := json.Unmarshal(property, result) It("should unmarshal to a Go struct successfully", func() { Expect(result).To(Equal(expected)) @@ -124,12 +123,12 @@ var _ = Describe("Resource", func() { Context("with a metadata attribute", func() { property := []byte(`{"Type":"AWS::S3::Bucket","Properties":{"BucketName":"MyBucket"},"Metadata":{"Object1":"Location1","Object2":"Location2"}}`) - expected := &cloudformation.AWSS3Bucket{ + expected := &resources.AWSS3Bucket{ BucketName: "MyBucket", } expected.SetMetadata(map[string]interface{}{"Object1": "Location1", "Object2": "Location2"}) - result := &cloudformation.AWSS3Bucket{} + result := &resources.AWSS3Bucket{} err := json.Unmarshal(property, result) It("should unmarshal to a Go struct successfully", func() { Expect(result).To(Equal(expected)) @@ -148,9 +147,9 @@ var _ = Describe("Resource", func() { Context("with a list type", func() { - subproperty := &cloudformation.AWSServerlessFunction_S3Event{ + subproperty := &resources.AWSServerlessFunction_S3Event{ Bucket: "my-bucket", - Events: &cloudformation.AWSServerlessFunction_Events{ + Events: &resources.AWSServerlessFunction_Events{ StringArray: &[]string{"s3:ObjectCreated:*", "s3:ObjectRemoved:*"}, }, } @@ -168,9 +167,9 @@ var _ = Describe("Resource", func() { Context("with a primitive type", func() { event := "s3:ObjectCreated:*" - subproperty := &cloudformation.AWSServerlessFunction_S3Event{ + subproperty := &resources.AWSServerlessFunction_S3Event{ Bucket: "my-bucket", - Events: &cloudformation.AWSServerlessFunction_Events{ + Events: &resources.AWSServerlessFunction_Events{ String: &event, }, } diff --git a/generate/templates/all.template b/generate/templates/all.template index 53a34725c5..ab189b6a97 100644 --- a/generate/templates/all.template +++ b/generate/templates/all.template @@ -2,23 +2,24 @@ package cloudformation import ( "fmt" + "github.com/awslabs/goformation/cloudformation/resources" ) // AllResources fetches an iterable map all CloudFormation and SAM resources func AllResources() map[string]Resource { return map[string]Resource{ {{range $name, $resource := .Resources}} - "{{$name}}": &{{$resource}}{},{{end}} + "{{$name}}": &resources.{{$resource}}{},{{end}} } } {{range $name, $resource := .Resources}} // GetAll{{$resource}}Resources retrieves all {{$resource}} items from an AWS CloudFormation template -func (t *Template) GetAll{{$resource}}Resources () map[string]*{{$resource}} { - results := map[string]*{{$resource}}{} +func (t *Template) GetAll{{$resource}}Resources () map[string]*resources.{{$resource}} { + results := map[string]*resources.{{$resource}}{} for name, untyped := range t.Resources { switch resource := untyped.(type) { - case *{{$resource}}: + case *resources.{{$resource}}: results[name] = resource } } @@ -27,10 +28,10 @@ func (t *Template) GetAll{{$resource}}Resources () map[string]*{{$resource}} { // Get{{$resource}}WithName retrieves all {{$resource}} items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found. -func (t *Template) Get{{$resource}}WithName (name string) (*{{$resource}}, error) { +func (t *Template) Get{{$resource}}WithName (name string) (*resources.{{$resource}}, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { - case *{{$resource}}: + case *resources.{{$resource}}: return resource, nil } } diff --git a/generate/templates/polymorphic-property.template b/generate/templates/polymorphic-property.template index a362d202b8..a4dafb367f 100644 --- a/generate/templates/polymorphic-property.template +++ b/generate/templates/polymorphic-property.template @@ -1,4 +1,4 @@ -package cloudformation +package resources import ( "encoding/json" diff --git a/generate/templates/resource.template b/generate/templates/resource.template index fe683178eb..3d9a31aa7b 100644 --- a/generate/templates/resource.template +++ b/generate/templates/resource.template @@ -1,11 +1,14 @@ -package cloudformation +package resources {{if not .IsCustomProperty}} import ( "encoding/json" "fmt" "bytes" + "github.com/awslabs/goformation/cloudformation/policies" ) +{{else}} +import "github.com/awslabs/goformation/cloudformation/policies" {{end}} // {{.StructName}} AWS CloudFormation Resource ({{.Name}}) @@ -18,13 +21,13 @@ type {{.StructName}} struct { {{$name}} {{if (or ($property.IsPolymorphic) ($property.IsCustomType) )}}*{{end}}{{$property.GoType $.Basename $name}} `json:"{{$name}}{{if (not (and ($property.IsNumeric) ($property.Required)))}},omitempty{{end}}"` {{end}} {{if .HasUpdatePolicy }}// _updatePolicy represents a CloudFormation UpdatePolicy - _updatePolicy *UpdatePolicy{{ end }} + _updatePolicy *policies.UpdatePolicy{{ end }} {{if .HasCreationPolicy }}// _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *CreationPolicy + _creationPolicy *policies.CreationPolicy {{ end }} // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy DeletionPolicy + _deletionPolicy policies.DeletionPolicy // _dependsOn stores the logical ID of the resources to be created before this resource _dependsOn []string @@ -61,20 +64,20 @@ func (r *{{.StructName}}) SetMetadata(metadata map[string]interface{}) { } // 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 DeletionPolicy) { +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 *UpdatePolicy) { +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 *CreationPolicy) { +func (r *{{.StructName}}) SetCreationPolicy(policy *policies.CreationPolicy) { r._creationPolicy = policy } {{end}} @@ -88,9 +91,9 @@ func (r {{.StructName}}) MarshalJSON() ([]byte, error) { {{if .IsCustomProperty}}Properties{{else}}Properties Properties{{end}} DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` - DeletionPolicy DeletionPolicy `json:"DeletionPolicy,omitempty"` - {{if .HasUpdatePolicy}}UpdatePolicy *UpdatePolicy `json:"UpdatePolicy,omitempty"`{{end}} - {{if .HasCreationPolicy}}CreationPolicy *CreationPolicy `json:"CreationPolicy,omitempty"`{{end}} + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + {{if .HasUpdatePolicy}}UpdatePolicy *policies.UpdatePolicy `json:"UpdatePolicy,omitempty"`{{end}} + {{if .HasCreationPolicy}}CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"`{{end}} }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), diff --git a/goformation_test.go b/goformation_test.go index b3215390f3..beb6db89b5 100644 --- a/goformation_test.go +++ b/goformation_test.go @@ -3,6 +3,8 @@ package goformation_test import ( "encoding/json" + "github.com/awslabs/goformation/cloudformation/resources" + "github.com/sanathkr/yaml" "github.com/awslabs/goformation" @@ -69,18 +71,18 @@ var _ = Describe("Goformation", func() { template := cloudformation.NewTemplate() - template.Resources["MySNSTopic"] = &cloudformation.AWSSNSTopic{ + template.Resources["MySNSTopic"] = &resources.AWSSNSTopic{ DisplayName: "test-sns-topic-display-name", TopicName: "test-sns-topic-name", - Subscription: []cloudformation.AWSSNSTopic_Subscription{ - cloudformation.AWSSNSTopic_Subscription{ + Subscription: []resources.AWSSNSTopic_Subscription{ + resources.AWSSNSTopic_Subscription{ Endpoint: "test-sns-topic-subscription-endpoint", Protocol: "test-sns-topic-subscription-protocol", }, }, } - template.Resources["MyRoute53HostedZone"] = &cloudformation.AWSRoute53HostedZone{ + template.Resources["MyRoute53HostedZone"] = &resources.AWSRoute53HostedZone{ Name: "example.com", } @@ -128,18 +130,18 @@ var _ = Describe("Goformation", func() { expected := cloudformation.NewTemplate() - expected.Resources["MySNSTopic"] = &cloudformation.AWSSNSTopic{ + expected.Resources["MySNSTopic"] = &resources.AWSSNSTopic{ DisplayName: "test-sns-topic-display-name", TopicName: "test-sns-topic-name", - Subscription: []cloudformation.AWSSNSTopic_Subscription{ - cloudformation.AWSSNSTopic_Subscription{ + Subscription: []resources.AWSSNSTopic_Subscription{ + resources.AWSSNSTopic_Subscription{ Endpoint: "test-sns-topic-subscription-endpoint", Protocol: "test-sns-topic-subscription-protocol", }, }, } - expected.Resources["MyRoute53HostedZone"] = &cloudformation.AWSRoute53HostedZone{ + expected.Resources["MyRoute53HostedZone"] = &resources.AWSRoute53HostedZone{ Name: "example.com", } @@ -296,7 +298,7 @@ var _ = Describe("Goformation", func() { template := &cloudformation.Template{ Resources: cloudformation.Resources{ - "MyLambdaFunction": &cloudformation.AWSLambdaFunction{ + "MyLambdaFunction": &resources.AWSLambdaFunction{ Handler: "nodejs6.10", }, }, @@ -310,7 +312,7 @@ var _ = Describe("Goformation", func() { function, err := template.GetAWSLambdaFunctionWithName("MyLambdaFunction") It("should be able to retrieve a specific Lambda function with GetAWSLambdaFunctionWithName(template, name)", func() { Expect(err).To(BeNil()) - Expect(function).To(BeAssignableToTypeOf(&cloudformation.AWSLambdaFunction{})) + Expect(function).To(BeAssignableToTypeOf(&resources.AWSLambdaFunction{})) }) It("should have the correct Handler property", func() { @@ -325,10 +327,10 @@ var _ = Describe("Goformation", func() { template := &cloudformation.Template{ Resources: cloudformation.Resources{ - "MySAMFunction": &cloudformation.AWSServerlessFunction{ + "MySAMFunction": &resources.AWSServerlessFunction{ Handler: "nodejs6.10", - CodeUri: &cloudformation.AWSServerlessFunction_CodeUri{ - S3Location: &cloudformation.AWSServerlessFunction_S3Location{ + CodeUri: &resources.AWSServerlessFunction_CodeUri{ + S3Location: &resources.AWSServerlessFunction_S3Location{ Bucket: "test-bucket", Key: "test-key", Version: 100, @@ -357,9 +359,9 @@ var _ = Describe("Goformation", func() { codeuri := "./some-folder" template := &cloudformation.Template{ Resources: cloudformation.Resources{ - "MySAMFunction": &cloudformation.AWSServerlessFunction{ + "MySAMFunction": &resources.AWSServerlessFunction{ Handler: "nodejs6.10", - CodeUri: &cloudformation.AWSServerlessFunction_CodeUri{ + CodeUri: &resources.AWSServerlessFunction_CodeUri{ String: &codeuri, }, }, @@ -527,8 +529,8 @@ var _ = Describe("Goformation", func() { }) Context("with a SNS event source", func() { - event := cloudformation.AWSServerlessFunction_Properties{ - SNSEvent: &cloudformation.AWSServerlessFunction_SNSEvent{ + event := resources.AWSServerlessFunction_Properties{ + SNSEvent: &resources.AWSServerlessFunction_SNSEvent{ Topic: "MyTopic", }, } @@ -543,7 +545,7 @@ var _ = Describe("Goformation", func() { Context("with an SNS event source created from JSON", func() { eventString := `{"Topic":"MyTopic"}` eventJson := []byte(eventString) - event := cloudformation.AWSServerlessFunction_Properties{} + event := resources.AWSServerlessFunction_Properties{} event.UnmarshalJSON(eventJson) It("should marshal properties correctly", func() { @@ -557,10 +559,10 @@ var _ = Describe("Goformation", func() { template := &cloudformation.Template{ Resources: cloudformation.Resources{ - "TestBucket": &cloudformation.AWSS3Bucket{ + "TestBucket": &resources.AWSS3Bucket{ BucketName: "test-bucket", }, - "TestBucketPolicy": &cloudformation.AWSS3BucketPolicy{ + "TestBucketPolicy": &resources.AWSS3BucketPolicy{ Bucket: cloudformation.Ref("TestBucket"), }, }, @@ -779,7 +781,7 @@ var _ = Describe("Goformation", func() { template := &cloudformation.Template{ Resources: cloudformation.Resources{ - "TestBucket": &cloudformation.AWSS3Bucket{ + "TestBucket": &resources.AWSS3Bucket{ BucketName: cloudformation.Join("/", []string{ cloudformation.Join("-", []string{"test", "bucket"}), }), @@ -840,10 +842,10 @@ var _ = Describe("Goformation", func() { template := &cloudformation.Template{ Resources: cloudformation.Resources{ - "TestBucket": &cloudformation.AWSS3Bucket{ + "TestBucket": &resources.AWSS3Bucket{ BucketName: "test-bucket", }, - "TestBucketPolicy": &cloudformation.AWSS3BucketPolicy{ + "TestBucketPolicy": &resources.AWSS3BucketPolicy{ Bucket: cloudformation.GetAtt("TestBucket", "WebsiteURL"), }, }, diff --git a/schema/sam.go b/schema/sam.go index d55aa7b9d5..0a5ad502fc 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -38186,7 +38186,7 @@ var SamSchema = `{ "additionalProperties": false, "properties": { "Authorizers": { - "type": "string" + "type": "object" }, "DefaultAuthorizer": { "type": "string" diff --git a/schema/sam.schema.json b/schema/sam.schema.json index 33aebd4ce7..7ec7568e80 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -38183,7 +38183,7 @@ "additionalProperties": false, "properties": { "Authorizers": { - "type": "string" + "type": "object" }, "DefaultAuthorizer": { "type": "string"