UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 73.8 kB
"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnDeploymentGroup=exports.CfnDeploymentConfig=exports.CfnApplication=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnApplicationPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("applicationName",cdk.validateString)(properties.applicationName)),errors.collect(cdk.propertyValidator("computePlatform",cdk.validateString)(properties.computePlatform)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnApplicationProps"')}function cfnApplicationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnApplicationPropsValidator(properties).assertSuccess(),{ApplicationName:cdk.stringToCloudFormation(properties.applicationName),ComputePlatform:cdk.stringToCloudFormation(properties.computePlatform),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnApplicationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationName","ApplicationName",properties.ApplicationName!=null?cfn_parse.FromCloudFormation.getString(properties.ApplicationName):void 0),ret.addPropertyResult("computePlatform","ComputePlatform",properties.ComputePlatform!=null?cfn_parse.FromCloudFormation.getString(properties.ComputePlatform):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnApplication extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnApplication.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_codedeploy_CfnApplicationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApplication),error}this.applicationName=props.applicationName,this.computePlatform=props.computePlatform,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::CodeDeploy::Application",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApplicationPropsFromCloudFormation(resourceProperties),ret=new CfnApplication(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnApplication.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{applicationName:this.applicationName,computePlatform:this.computePlatform,tags:this.tags.renderTags()}}renderProperties(props){return cfnApplicationPropsToCloudFormation(props)}}exports.CfnApplication=CfnApplication,_a=JSII_RTTI_SYMBOL_1,CfnApplication[_a]={fqn:"aws-cdk-lib.aws_codedeploy.CfnApplication",version:"2.70.0"},CfnApplication.CFN_RESOURCE_TYPE_NAME="AWS::CodeDeploy::Application";function CfnDeploymentConfigPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("computePlatform",cdk.validateString)(properties.computePlatform)),errors.collect(cdk.propertyValidator("deploymentConfigName",cdk.validateString)(properties.deploymentConfigName)),errors.collect(cdk.propertyValidator("minimumHealthyHosts",CfnDeploymentConfig_MinimumHealthyHostsPropertyValidator)(properties.minimumHealthyHosts)),errors.collect(cdk.propertyValidator("trafficRoutingConfig",CfnDeploymentConfig_TrafficRoutingConfigPropertyValidator)(properties.trafficRoutingConfig)),errors.wrap('supplied properties not correct for "CfnDeploymentConfigProps"')}function cfnDeploymentConfigPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentConfigPropsValidator(properties).assertSuccess(),{ComputePlatform:cdk.stringToCloudFormation(properties.computePlatform),DeploymentConfigName:cdk.stringToCloudFormation(properties.deploymentConfigName),MinimumHealthyHosts:cfnDeploymentConfigMinimumHealthyHostsPropertyToCloudFormation(properties.minimumHealthyHosts),TrafficRoutingConfig:cfnDeploymentConfigTrafficRoutingConfigPropertyToCloudFormation(properties.trafficRoutingConfig)}):properties}function CfnDeploymentConfigPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("computePlatform","ComputePlatform",properties.ComputePlatform!=null?cfn_parse.FromCloudFormation.getString(properties.ComputePlatform):void 0),ret.addPropertyResult("deploymentConfigName","DeploymentConfigName",properties.DeploymentConfigName!=null?cfn_parse.FromCloudFormation.getString(properties.DeploymentConfigName):void 0),ret.addPropertyResult("minimumHealthyHosts","MinimumHealthyHosts",properties.MinimumHealthyHosts!=null?CfnDeploymentConfigMinimumHealthyHostsPropertyFromCloudFormation(properties.MinimumHealthyHosts):void 0),ret.addPropertyResult("trafficRoutingConfig","TrafficRoutingConfig",properties.TrafficRoutingConfig!=null?CfnDeploymentConfigTrafficRoutingConfigPropertyFromCloudFormation(properties.TrafficRoutingConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDeploymentConfig extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnDeploymentConfig.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_codedeploy_CfnDeploymentConfigProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDeploymentConfig),error}this.computePlatform=props.computePlatform,this.deploymentConfigName=props.deploymentConfigName,this.minimumHealthyHosts=props.minimumHealthyHosts,this.trafficRoutingConfig=props.trafficRoutingConfig}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeploymentConfigPropsFromCloudFormation(resourceProperties),ret=new CfnDeploymentConfig(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnDeploymentConfig.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{computePlatform:this.computePlatform,deploymentConfigName:this.deploymentConfigName,minimumHealthyHosts:this.minimumHealthyHosts,trafficRoutingConfig:this.trafficRoutingConfig}}renderProperties(props){return cfnDeploymentConfigPropsToCloudFormation(props)}}exports.CfnDeploymentConfig=CfnDeploymentConfig,_b=JSII_RTTI_SYMBOL_1,CfnDeploymentConfig[_b]={fqn:"aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig",version:"2.70.0"},CfnDeploymentConfig.CFN_RESOURCE_TYPE_NAME="AWS::CodeDeploy::DeploymentConfig";function CfnDeploymentConfig_MinimumHealthyHostsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateNumber)(properties.value)),errors.wrap('supplied properties not correct for "MinimumHealthyHostsProperty"')}function cfnDeploymentConfigMinimumHealthyHostsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentConfig_MinimumHealthyHostsPropertyValidator(properties).assertSuccess(),{Type:cdk.stringToCloudFormation(properties.type),Value:cdk.numberToCloudFormation(properties.value)}):properties}function CfnDeploymentConfigMinimumHealthyHostsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getNumber(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfig_TimeBasedCanaryPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("canaryInterval",cdk.requiredValidator)(properties.canaryInterval)),errors.collect(cdk.propertyValidator("canaryInterval",cdk.validateNumber)(properties.canaryInterval)),errors.collect(cdk.propertyValidator("canaryPercentage",cdk.requiredValidator)(properties.canaryPercentage)),errors.collect(cdk.propertyValidator("canaryPercentage",cdk.validateNumber)(properties.canaryPercentage)),errors.wrap('supplied properties not correct for "TimeBasedCanaryProperty"')}function cfnDeploymentConfigTimeBasedCanaryPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentConfig_TimeBasedCanaryPropertyValidator(properties).assertSuccess(),{CanaryInterval:cdk.numberToCloudFormation(properties.canaryInterval),CanaryPercentage:cdk.numberToCloudFormation(properties.canaryPercentage)}):properties}function CfnDeploymentConfigTimeBasedCanaryPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("canaryInterval","CanaryInterval",cfn_parse.FromCloudFormation.getNumber(properties.CanaryInterval)),ret.addPropertyResult("canaryPercentage","CanaryPercentage",cfn_parse.FromCloudFormation.getNumber(properties.CanaryPercentage)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfig_TimeBasedLinearPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("linearInterval",cdk.requiredValidator)(properties.linearInterval)),errors.collect(cdk.propertyValidator("linearInterval",cdk.validateNumber)(properties.linearInterval)),errors.collect(cdk.propertyValidator("linearPercentage",cdk.requiredValidator)(properties.linearPercentage)),errors.collect(cdk.propertyValidator("linearPercentage",cdk.validateNumber)(properties.linearPercentage)),errors.wrap('supplied properties not correct for "TimeBasedLinearProperty"')}function cfnDeploymentConfigTimeBasedLinearPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentConfig_TimeBasedLinearPropertyValidator(properties).assertSuccess(),{LinearInterval:cdk.numberToCloudFormation(properties.linearInterval),LinearPercentage:cdk.numberToCloudFormation(properties.linearPercentage)}):properties}function CfnDeploymentConfigTimeBasedLinearPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("linearInterval","LinearInterval",cfn_parse.FromCloudFormation.getNumber(properties.LinearInterval)),ret.addPropertyResult("linearPercentage","LinearPercentage",cfn_parse.FromCloudFormation.getNumber(properties.LinearPercentage)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfig_TrafficRoutingConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("timeBasedCanary",CfnDeploymentConfig_TimeBasedCanaryPropertyValidator)(properties.timeBasedCanary)),errors.collect(cdk.propertyValidator("timeBasedLinear",CfnDeploymentConfig_TimeBasedLinearPropertyValidator)(properties.timeBasedLinear)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "TrafficRoutingConfigProperty"')}function cfnDeploymentConfigTrafficRoutingConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentConfig_TrafficRoutingConfigPropertyValidator(properties).assertSuccess(),{TimeBasedCanary:cfnDeploymentConfigTimeBasedCanaryPropertyToCloudFormation(properties.timeBasedCanary),TimeBasedLinear:cfnDeploymentConfigTimeBasedLinearPropertyToCloudFormation(properties.timeBasedLinear),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnDeploymentConfigTrafficRoutingConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("timeBasedCanary","TimeBasedCanary",properties.TimeBasedCanary!=null?CfnDeploymentConfigTimeBasedCanaryPropertyFromCloudFormation(properties.TimeBasedCanary):void 0),ret.addPropertyResult("timeBasedLinear","TimeBasedLinear",properties.TimeBasedLinear!=null?CfnDeploymentConfigTimeBasedLinearPropertyFromCloudFormation(properties.TimeBasedLinear):void 0),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroupPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("alarmConfiguration",CfnDeploymentGroup_AlarmConfigurationPropertyValidator)(properties.alarmConfiguration)),errors.collect(cdk.propertyValidator("applicationName",cdk.requiredValidator)(properties.applicationName)),errors.collect(cdk.propertyValidator("applicationName",cdk.validateString)(properties.applicationName)),errors.collect(cdk.propertyValidator("autoRollbackConfiguration",CfnDeploymentGroup_AutoRollbackConfigurationPropertyValidator)(properties.autoRollbackConfiguration)),errors.collect(cdk.propertyValidator("autoScalingGroups",cdk.listValidator(cdk.validateString))(properties.autoScalingGroups)),errors.collect(cdk.propertyValidator("blueGreenDeploymentConfiguration",CfnDeploymentGroup_BlueGreenDeploymentConfigurationPropertyValidator)(properties.blueGreenDeploymentConfiguration)),errors.collect(cdk.propertyValidator("deployment",CfnDeploymentGroup_DeploymentPropertyValidator)(properties.deployment)),errors.collect(cdk.propertyValidator("deploymentConfigName",cdk.validateString)(properties.deploymentConfigName)),errors.collect(cdk.propertyValidator("deploymentGroupName",cdk.validateString)(properties.deploymentGroupName)),errors.collect(cdk.propertyValidator("deploymentStyle",CfnDeploymentGroup_DeploymentStylePropertyValidator)(properties.deploymentStyle)),errors.collect(cdk.propertyValidator("ecsServices",cdk.listValidator(CfnDeploymentGroup_ECSServicePropertyValidator))(properties.ecsServices)),errors.collect(cdk.propertyValidator("ec2TagFilters",cdk.listValidator(CfnDeploymentGroup_EC2TagFilterPropertyValidator))(properties.ec2TagFilters)),errors.collect(cdk.propertyValidator("ec2TagSet",CfnDeploymentGroup_EC2TagSetPropertyValidator)(properties.ec2TagSet)),errors.collect(cdk.propertyValidator("loadBalancerInfo",CfnDeploymentGroup_LoadBalancerInfoPropertyValidator)(properties.loadBalancerInfo)),errors.collect(cdk.propertyValidator("onPremisesInstanceTagFilters",cdk.listValidator(CfnDeploymentGroup_TagFilterPropertyValidator))(properties.onPremisesInstanceTagFilters)),errors.collect(cdk.propertyValidator("onPremisesTagSet",CfnDeploymentGroup_OnPremisesTagSetPropertyValidator)(properties.onPremisesTagSet)),errors.collect(cdk.propertyValidator("outdatedInstancesStrategy",cdk.validateString)(properties.outdatedInstancesStrategy)),errors.collect(cdk.propertyValidator("serviceRoleArn",cdk.requiredValidator)(properties.serviceRoleArn)),errors.collect(cdk.propertyValidator("serviceRoleArn",cdk.validateString)(properties.serviceRoleArn)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("triggerConfigurations",cdk.listValidator(CfnDeploymentGroup_TriggerConfigPropertyValidator))(properties.triggerConfigurations)),errors.wrap('supplied properties not correct for "CfnDeploymentGroupProps"')}function cfnDeploymentGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroupPropsValidator(properties).assertSuccess(),{ApplicationName:cdk.stringToCloudFormation(properties.applicationName),ServiceRoleArn:cdk.stringToCloudFormation(properties.serviceRoleArn),AlarmConfiguration:cfnDeploymentGroupAlarmConfigurationPropertyToCloudFormation(properties.alarmConfiguration),AutoRollbackConfiguration:cfnDeploymentGroupAutoRollbackConfigurationPropertyToCloudFormation(properties.autoRollbackConfiguration),AutoScalingGroups:cdk.listMapper(cdk.stringToCloudFormation)(properties.autoScalingGroups),BlueGreenDeploymentConfiguration:cfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyToCloudFormation(properties.blueGreenDeploymentConfiguration),Deployment:cfnDeploymentGroupDeploymentPropertyToCloudFormation(properties.deployment),DeploymentConfigName:cdk.stringToCloudFormation(properties.deploymentConfigName),DeploymentGroupName:cdk.stringToCloudFormation(properties.deploymentGroupName),DeploymentStyle:cfnDeploymentGroupDeploymentStylePropertyToCloudFormation(properties.deploymentStyle),Ec2TagFilters:cdk.listMapper(cfnDeploymentGroupEC2TagFilterPropertyToCloudFormation)(properties.ec2TagFilters),Ec2TagSet:cfnDeploymentGroupEC2TagSetPropertyToCloudFormation(properties.ec2TagSet),ECSServices:cdk.listMapper(cfnDeploymentGroupECSServicePropertyToCloudFormation)(properties.ecsServices),LoadBalancerInfo:cfnDeploymentGroupLoadBalancerInfoPropertyToCloudFormation(properties.loadBalancerInfo),OnPremisesInstanceTagFilters:cdk.listMapper(cfnDeploymentGroupTagFilterPropertyToCloudFormation)(properties.onPremisesInstanceTagFilters),OnPremisesTagSet:cfnDeploymentGroupOnPremisesTagSetPropertyToCloudFormation(properties.onPremisesTagSet),OutdatedInstancesStrategy:cdk.stringToCloudFormation(properties.outdatedInstancesStrategy),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),TriggerConfigurations:cdk.listMapper(cfnDeploymentGroupTriggerConfigPropertyToCloudFormation)(properties.triggerConfigurations)}):properties}function CfnDeploymentGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationName","ApplicationName",cfn_parse.FromCloudFormation.getString(properties.ApplicationName)),ret.addPropertyResult("serviceRoleArn","ServiceRoleArn",cfn_parse.FromCloudFormation.getString(properties.ServiceRoleArn)),ret.addPropertyResult("alarmConfiguration","AlarmConfiguration",properties.AlarmConfiguration!=null?CfnDeploymentGroupAlarmConfigurationPropertyFromCloudFormation(properties.AlarmConfiguration):void 0),ret.addPropertyResult("autoRollbackConfiguration","AutoRollbackConfiguration",properties.AutoRollbackConfiguration!=null?CfnDeploymentGroupAutoRollbackConfigurationPropertyFromCloudFormation(properties.AutoRollbackConfiguration):void 0),ret.addPropertyResult("autoScalingGroups","AutoScalingGroups",properties.AutoScalingGroups!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AutoScalingGroups):void 0),ret.addPropertyResult("blueGreenDeploymentConfiguration","BlueGreenDeploymentConfiguration",properties.BlueGreenDeploymentConfiguration!=null?CfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyFromCloudFormation(properties.BlueGreenDeploymentConfiguration):void 0),ret.addPropertyResult("deployment","Deployment",properties.Deployment!=null?CfnDeploymentGroupDeploymentPropertyFromCloudFormation(properties.Deployment):void 0),ret.addPropertyResult("deploymentConfigName","DeploymentConfigName",properties.DeploymentConfigName!=null?cfn_parse.FromCloudFormation.getString(properties.DeploymentConfigName):void 0),ret.addPropertyResult("deploymentGroupName","DeploymentGroupName",properties.DeploymentGroupName!=null?cfn_parse.FromCloudFormation.getString(properties.DeploymentGroupName):void 0),ret.addPropertyResult("deploymentStyle","DeploymentStyle",properties.DeploymentStyle!=null?CfnDeploymentGroupDeploymentStylePropertyFromCloudFormation(properties.DeploymentStyle):void 0),ret.addPropertyResult("ec2TagFilters","Ec2TagFilters",properties.Ec2TagFilters!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentGroupEC2TagFilterPropertyFromCloudFormation)(properties.Ec2TagFilters):void 0),ret.addPropertyResult("ec2TagSet","Ec2TagSet",properties.Ec2TagSet!=null?CfnDeploymentGroupEC2TagSetPropertyFromCloudFormation(properties.Ec2TagSet):void 0),ret.addPropertyResult("ecsServices","ECSServices",properties.ECSServices!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentGroupECSServicePropertyFromCloudFormation)(properties.ECSServices):void 0),ret.addPropertyResult("loadBalancerInfo","LoadBalancerInfo",properties.LoadBalancerInfo!=null?CfnDeploymentGroupLoadBalancerInfoPropertyFromCloudFormation(properties.LoadBalancerInfo):void 0),ret.addPropertyResult("onPremisesInstanceTagFilters","OnPremisesInstanceTagFilters",properties.OnPremisesInstanceTagFilters!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentGroupTagFilterPropertyFromCloudFormation)(properties.OnPremisesInstanceTagFilters):void 0),ret.addPropertyResult("onPremisesTagSet","OnPremisesTagSet",properties.OnPremisesTagSet!=null?CfnDeploymentGroupOnPremisesTagSetPropertyFromCloudFormation(properties.OnPremisesTagSet):void 0),ret.addPropertyResult("outdatedInstancesStrategy","OutdatedInstancesStrategy",properties.OutdatedInstancesStrategy!=null?cfn_parse.FromCloudFormation.getString(properties.OutdatedInstancesStrategy):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("triggerConfigurations","TriggerConfigurations",properties.TriggerConfigurations!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentGroupTriggerConfigPropertyFromCloudFormation)(properties.TriggerConfigurations):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDeploymentGroup extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDeploymentGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_codedeploy_CfnDeploymentGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDeploymentGroup),error}cdk.requireProperty(props,"applicationName",this),cdk.requireProperty(props,"serviceRoleArn",this),this.applicationName=props.applicationName,this.serviceRoleArn=props.serviceRoleArn,this.alarmConfiguration=props.alarmConfiguration,this.autoRollbackConfiguration=props.autoRollbackConfiguration,this.autoScalingGroups=props.autoScalingGroups,this.blueGreenDeploymentConfiguration=props.blueGreenDeploymentConfiguration,this.deployment=props.deployment,this.deploymentConfigName=props.deploymentConfigName,this.deploymentGroupName=props.deploymentGroupName,this.deploymentStyle=props.deploymentStyle,this.ec2TagFilters=props.ec2TagFilters,this.ec2TagSet=props.ec2TagSet,this.ecsServices=props.ecsServices,this.loadBalancerInfo=props.loadBalancerInfo,this.onPremisesInstanceTagFilters=props.onPremisesInstanceTagFilters,this.onPremisesTagSet=props.onPremisesTagSet,this.outdatedInstancesStrategy=props.outdatedInstancesStrategy,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::CodeDeploy::DeploymentGroup",props.tags,{tagPropertyName:"tags"}),this.triggerConfigurations=props.triggerConfigurations}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeploymentGroupPropsFromCloudFormation(resourceProperties),ret=new CfnDeploymentGroup(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnDeploymentGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{applicationName:this.applicationName,serviceRoleArn:this.serviceRoleArn,alarmConfiguration:this.alarmConfiguration,autoRollbackConfiguration:this.autoRollbackConfiguration,autoScalingGroups:this.autoScalingGroups,blueGreenDeploymentConfiguration:this.blueGreenDeploymentConfiguration,deployment:this.deployment,deploymentConfigName:this.deploymentConfigName,deploymentGroupName:this.deploymentGroupName,deploymentStyle:this.deploymentStyle,ec2TagFilters:this.ec2TagFilters,ec2TagSet:this.ec2TagSet,ecsServices:this.ecsServices,loadBalancerInfo:this.loadBalancerInfo,onPremisesInstanceTagFilters:this.onPremisesInstanceTagFilters,onPremisesTagSet:this.onPremisesTagSet,outdatedInstancesStrategy:this.outdatedInstancesStrategy,tags:this.tags.renderTags(),triggerConfigurations:this.triggerConfigurations}}renderProperties(props){return cfnDeploymentGroupPropsToCloudFormation(props)}}exports.CfnDeploymentGroup=CfnDeploymentGroup,_c=JSII_RTTI_SYMBOL_1,CfnDeploymentGroup[_c]={fqn:"aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup",version:"2.70.0"},CfnDeploymentGroup.CFN_RESOURCE_TYPE_NAME="AWS::CodeDeploy::DeploymentGroup";function CfnDeploymentGroup_AlarmPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.wrap('supplied properties not correct for "AlarmProperty"')}function cfnDeploymentGroupAlarmPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_AlarmPropertyValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name)}):properties}function CfnDeploymentGroupAlarmPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_AlarmConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("alarms",cdk.listValidator(CfnDeploymentGroup_AlarmPropertyValidator))(properties.alarms)),errors.collect(cdk.propertyValidator("enabled",cdk.validateBoolean)(properties.enabled)),errors.collect(cdk.propertyValidator("ignorePollAlarmFailure",cdk.validateBoolean)(properties.ignorePollAlarmFailure)),errors.wrap('supplied properties not correct for "AlarmConfigurationProperty"')}function cfnDeploymentGroupAlarmConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_AlarmConfigurationPropertyValidator(properties).assertSuccess(),{Alarms:cdk.listMapper(cfnDeploymentGroupAlarmPropertyToCloudFormation)(properties.alarms),Enabled:cdk.booleanToCloudFormation(properties.enabled),IgnorePollAlarmFailure:cdk.booleanToCloudFormation(properties.ignorePollAlarmFailure)}):properties}function CfnDeploymentGroupAlarmConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("alarms","Alarms",properties.Alarms!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentGroupAlarmPropertyFromCloudFormation)(properties.Alarms):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("ignorePollAlarmFailure","IgnorePollAlarmFailure",properties.IgnorePollAlarmFailure!=null?cfn_parse.FromCloudFormation.getBoolean(properties.IgnorePollAlarmFailure):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_AutoRollbackConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("enabled",cdk.validateBoolean)(properties.enabled)),errors.collect(cdk.propertyValidator("events",cdk.listValidator(cdk.validateString))(properties.events)),errors.wrap('supplied properties not correct for "AutoRollbackConfigurationProperty"')}function cfnDeploymentGroupAutoRollbackConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_AutoRollbackConfigurationPropertyValidator(properties).assertSuccess(),{Enabled:cdk.booleanToCloudFormation(properties.enabled),Events:cdk.listMapper(cdk.stringToCloudFormation)(properties.events)}):properties}function CfnDeploymentGroupAutoRollbackConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("events","Events",properties.Events!=null?cfn_parse.FromCloudFormation.getStringArray(properties.Events):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_BlueGreenDeploymentConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deploymentReadyOption",CfnDeploymentGroup_DeploymentReadyOptionPropertyValidator)(properties.deploymentReadyOption)),errors.collect(cdk.propertyValidator("greenFleetProvisioningOption",CfnDeploymentGroup_GreenFleetProvisioningOptionPropertyValidator)(properties.greenFleetProvisioningOption)),errors.collect(cdk.propertyValidator("terminateBlueInstancesOnDeploymentSuccess",CfnDeploymentGroup_BlueInstanceTerminationOptionPropertyValidator)(properties.terminateBlueInstancesOnDeploymentSuccess)),errors.wrap('supplied properties not correct for "BlueGreenDeploymentConfigurationProperty"')}function cfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_BlueGreenDeploymentConfigurationPropertyValidator(properties).assertSuccess(),{DeploymentReadyOption:cfnDeploymentGroupDeploymentReadyOptionPropertyToCloudFormation(properties.deploymentReadyOption),GreenFleetProvisioningOption:cfnDeploymentGroupGreenFleetProvisioningOptionPropertyToCloudFormation(properties.greenFleetProvisioningOption),TerminateBlueInstancesOnDeploymentSuccess:cfnDeploymentGroupBlueInstanceTerminationOptionPropertyToCloudFormation(properties.terminateBlueInstancesOnDeploymentSuccess)}):properties}function CfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("deploymentReadyOption","DeploymentReadyOption",properties.DeploymentReadyOption!=null?CfnDeploymentGroupDeploymentReadyOptionPropertyFromCloudFormation(properties.DeploymentReadyOption):void 0),ret.addPropertyResult("greenFleetProvisioningOption","GreenFleetProvisioningOption",properties.GreenFleetProvisioningOption!=null?CfnDeploymentGroupGreenFleetProvisioningOptionPropertyFromCloudFormation(properties.GreenFleetProvisioningOption):void 0),ret.addPropertyResult("terminateBlueInstancesOnDeploymentSuccess","TerminateBlueInstancesOnDeploymentSuccess",properties.TerminateBlueInstancesOnDeploymentSuccess!=null?CfnDeploymentGroupBlueInstanceTerminationOptionPropertyFromCloudFormation(properties.TerminateBlueInstancesOnDeploymentSuccess):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_BlueInstanceTerminationOptionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("action",cdk.validateString)(properties.action)),errors.collect(cdk.propertyValidator("terminationWaitTimeInMinutes",cdk.validateNumber)(properties.terminationWaitTimeInMinutes)),errors.wrap('supplied properties not correct for "BlueInstanceTerminationOptionProperty"')}function cfnDeploymentGroupBlueInstanceTerminationOptionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_BlueInstanceTerminationOptionPropertyValidator(properties).assertSuccess(),{Action:cdk.stringToCloudFormation(properties.action),TerminationWaitTimeInMinutes:cdk.numberToCloudFormation(properties.terminationWaitTimeInMinutes)}):properties}function CfnDeploymentGroupBlueInstanceTerminationOptionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("action","Action",properties.Action!=null?cfn_parse.FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("terminationWaitTimeInMinutes","TerminationWaitTimeInMinutes",properties.TerminationWaitTimeInMinutes!=null?cfn_parse.FromCloudFormation.getNumber(properties.TerminationWaitTimeInMinutes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_DeploymentPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("ignoreApplicationStopFailures",cdk.validateBoolean)(properties.ignoreApplicationStopFailures)),errors.collect(cdk.propertyValidator("revision",cdk.requiredValidator)(properties.revision)),errors.collect(cdk.propertyValidator("revision",CfnDeploymentGroup_RevisionLocationPropertyValidator)(properties.revision)),errors.wrap('supplied properties not correct for "DeploymentProperty"')}function cfnDeploymentGroupDeploymentPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_DeploymentPropertyValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),IgnoreApplicationStopFailures:cdk.booleanToCloudFormation(properties.ignoreApplicationStopFailures),Revision:cfnDeploymentGroupRevisionLocationPropertyToCloudFormation(properties.revision)}):properties}function CfnDeploymentGroupDeploymentPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("ignoreApplicationStopFailures","IgnoreApplicationStopFailures",properties.IgnoreApplicationStopFailures!=null?cfn_parse.FromCloudFormation.getBoolean(properties.IgnoreApplicationStopFailures):void 0),ret.addPropertyResult("revision","Revision",CfnDeploymentGroupRevisionLocationPropertyFromCloudFormation(properties.Revision)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_DeploymentReadyOptionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("actionOnTimeout",cdk.validateString)(properties.actionOnTimeout)),errors.collect(cdk.propertyValidator("waitTimeInMinutes",cdk.validateNumber)(properties.waitTimeInMinutes)),errors.wrap('supplied properties not correct for "DeploymentReadyOptionProperty"')}function cfnDeploymentGroupDeploymentReadyOptionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_DeploymentReadyOptionPropertyValidator(properties).assertSuccess(),{ActionOnTimeout:cdk.stringToCloudFormation(properties.actionOnTimeout),WaitTimeInMinutes:cdk.numberToCloudFormation(properties.waitTimeInMinutes)}):properties}function CfnDeploymentGroupDeploymentReadyOptionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("actionOnTimeout","ActionOnTimeout",properties.ActionOnTimeout!=null?cfn_parse.FromCloudFormation.getString(properties.ActionOnTimeout):void 0),ret.addPropertyResult("waitTimeInMinutes","WaitTimeInMinutes",properties.WaitTimeInMinutes!=null?cfn_parse.FromCloudFormation.getNumber(properties.WaitTimeInMinutes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_DeploymentStylePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deploymentOption",cdk.validateString)(properties.deploymentOption)),errors.collect(cdk.propertyValidator("deploymentType",cdk.validateString)(properties.deploymentType)),errors.wrap('supplied properties not correct for "DeploymentStyleProperty"')}function cfnDeploymentGroupDeploymentStylePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_DeploymentStylePropertyValidator(properties).assertSuccess(),{DeploymentOption:cdk.stringToCloudFormation(properties.deploymentOption),DeploymentType:cdk.stringToCloudFormation(properties.deploymentType)}):properties}function CfnDeploymentGroupDeploymentStylePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("deploymentOption","DeploymentOption",properties.DeploymentOption!=null?cfn_parse.FromCloudFormation.getString(properties.DeploymentOption):void 0),ret.addPropertyResult("deploymentType","DeploymentType",properties.DeploymentType!=null?cfn_parse.FromCloudFormation.getString(properties.DeploymentType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_EC2TagFilterPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "EC2TagFilterProperty"')}function cfnDeploymentGroupEC2TagFilterPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_EC2TagFilterPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Type:cdk.stringToCloudFormation(properties.type),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnDeploymentGroupEC2TagFilterPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",properties.Key!=null?cfn_parse.FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_EC2TagSetPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("ec2TagSetList",cdk.listValidator(CfnDeploymentGroup_EC2TagSetListObjectPropertyValidator))(properties.ec2TagSetList)),errors.wrap('supplied properties not correct for "EC2TagSetProperty"')}function cfnDeploymentGroupEC2TagSetPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_EC2TagSetPropertyValidator(properties).assertSuccess(),{Ec2TagSetList:cdk.listMapper(cfnDeploymentGroupEC2TagSetListObjectPropertyToCloudFormation)(properties.ec2TagSetList)}):properties}function CfnDeploymentGroupEC2TagSetPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("ec2TagSetList","Ec2TagSetList",properties.Ec2TagSetList!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentGroupEC2TagSetListObjectPropertyFromCloudFormation)(properties.Ec2TagSetList):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_EC2TagSetListObjectPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("ec2TagGroup",cdk.listValidator(CfnDeploymentGroup_EC2TagFilterPropertyValidator))(properties.ec2TagGroup)),errors.wrap('supplied properties not correct for "EC2TagSetListObjectProperty"')}function cfnDeploymentGroupEC2TagSetListObjectPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_EC2TagSetListObjectPropertyValidator(properties).assertSuccess(),{Ec2TagGroup:cdk.listMapper(cfnDeploymentGroupEC2TagFilterPropertyToCloudFormation)(properties.ec2TagGroup)}):properties}function CfnDeploymentGroupEC2TagSetListObjectPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("ec2TagGroup","Ec2TagGroup",properties.Ec2TagGroup!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentGroupEC2TagFilterPropertyFromCloudFormation)(properties.Ec2TagGroup):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroup_ECSServicePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("clusterName",cdk.requiredValidator)(properties.clusterName)),errors.collect(cdk.propertyValidator("clusterName",cdk.validateString)(properties.clusterName)),errors.collect(cdk.propertyValidator("serviceName",cdk.requiredValidator)(properties.serviceName)),errors.collect(cdk.propertyValidator("serviceName",cdk.validateString)(properties.serviceName)),errors.wrap('supplied properties not correct for "ECSServiceProperty"')}function cfnDeploymentGroupECSServicePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentGroup_ECSServicePropertyValidator(properties).assertSuccess(),{ClusterName:cdk.stringToCloudFormation(properties.clusterName),ServiceName:cdk.stringToCloudFormation(properties.serviceName)}):properties}function CfnDeploymentGroupECSServicePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new c