aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 92.5 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnDeploymentGroup=exports.CfnDeploymentConfig=exports.CfnApplication=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnApplication extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codedeploy.CfnApplication",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CodeDeploy::Application";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApplicationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnApplication(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnApplication.CFN_RESOURCE_TYPE_NAME}static fromApplicationName(scope,id,applicationName){class Import extends cdk().Resource{applicationRef;constructor(scope2,id2,applicationName2){super(scope2,id2),this.applicationRef={applicationName:applicationName2}}}return new Import(scope,id,applicationName)}static arnForApplication(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_codedeploy_IApplicationRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForApplication),error}return new(cfn_parse()).TemplateString("arn:${Partition}:codedeploy:${Region}:${Account}:application:${ApplicationName}").interpolate({Partition:cdk().Stack.of(resource).partition,Region:resource.env.region,Account:resource.env.account,ApplicationName:resource.applicationRef.applicationName})}_applicationName;_computePlatform;tags;_tagsRaw;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=cdk().getRefProperty(props.applicationName?.functionRef,"functionName")??cdk().ensureStringOrUndefined(props.applicationName,"applicationName","lambda.IFunctionRef | string"),this._computePlatform=props.computePlatform,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::CodeDeploy::Application",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get applicationRef(){return{applicationName:this.ref}}get applicationName(){return this._applicationName}set applicationName(value){cdk().traceProperty(this.node,"ApplicationName"),this._applicationName=value}get computePlatform(){return this._computePlatform}set computePlatform(value){cdk().traceProperty(this.node,"ComputePlatform"),this._computePlatform=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get cfnProperties(){return{applicationName:this._applicationName,computePlatform:this._computePlatform,tags:this.tags.renderTags()}}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnApplicationPropsToCloudFormation(props)}}exports.CfnApplication=CfnApplication;function CfnApplicationPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnApplicationPropsToCloudFormation(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(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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 CfnDeploymentConfig extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CodeDeploy::DeploymentConfig";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeploymentConfigPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnDeploymentConfig(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnDeploymentConfig.CFN_RESOURCE_TYPE_NAME}_computePlatform;_deploymentConfigName;_minimumHealthyHosts;_trafficRoutingConfig;_zonalConfig;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,this._zonalConfig=props.zonalConfig}get deploymentConfigRef(){return{deploymentConfigName:this.ref}}get computePlatform(){return this._computePlatform}set computePlatform(value){cdk().traceProperty(this.node,"ComputePlatform"),this._computePlatform=value}get deploymentConfigName(){return this._deploymentConfigName}set deploymentConfigName(value){cdk().traceProperty(this.node,"DeploymentConfigName"),this._deploymentConfigName=value}get minimumHealthyHosts(){return this._minimumHealthyHosts}set minimumHealthyHosts(value){cdk().traceProperty(this.node,"MinimumHealthyHosts"),this._minimumHealthyHosts=value}get trafficRoutingConfig(){return this._trafficRoutingConfig}set trafficRoutingConfig(value){cdk().traceProperty(this.node,"TrafficRoutingConfig"),this._trafficRoutingConfig=value}get zonalConfig(){return this._zonalConfig}set zonalConfig(value){cdk().traceProperty(this.node,"ZonalConfig"),this._zonalConfig=value}get cfnProperties(){return{computePlatform:this._computePlatform,deploymentConfigName:this._deploymentConfigName,minimumHealthyHosts:this._minimumHealthyHosts,trafficRoutingConfig:this._trafficRoutingConfig,zonalConfig:this._zonalConfig}}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnDeploymentConfigPropsToCloudFormation(props)}}exports.CfnDeploymentConfig=CfnDeploymentConfig;function CfnDeploymentConfigTimeBasedLinearPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnDeploymentConfigTimeBasedLinearPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentConfigTimeBasedLinearPropertyValidator(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("linearInterval","LinearInterval",properties.LinearInterval!=null?cfn_parse().FromCloudFormation.getNumber(properties.LinearInterval):void 0),ret.addPropertyResult("linearPercentage","LinearPercentage",properties.LinearPercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.LinearPercentage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfigTimeBasedCanaryPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnDeploymentConfigTimeBasedCanaryPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentConfigTimeBasedCanaryPropertyValidator(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("canaryInterval","CanaryInterval",properties.CanaryInterval!=null?cfn_parse().FromCloudFormation.getNumber(properties.CanaryInterval):void 0),ret.addPropertyResult("canaryPercentage","CanaryPercentage",properties.CanaryPercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.CanaryPercentage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfigTrafficRoutingConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("timeBasedCanary",CfnDeploymentConfigTimeBasedCanaryPropertyValidator)(properties.timeBasedCanary)),errors.collect(cdk().propertyValidator("timeBasedLinear",CfnDeploymentConfigTimeBasedLinearPropertyValidator)(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 convertCfnDeploymentConfigTrafficRoutingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentConfigTrafficRoutingConfigPropertyValidator(properties).assertSuccess(),{TimeBasedCanary:convertCfnDeploymentConfigTimeBasedCanaryPropertyToCloudFormation(properties.timeBasedCanary),TimeBasedLinear:convertCfnDeploymentConfigTimeBasedLinearPropertyToCloudFormation(properties.timeBasedLinear),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnDeploymentConfigTrafficRoutingConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfigMinimumHealthyHostsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnDeploymentConfigMinimumHealthyHostsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentConfigMinimumHealthyHostsPropertyValidator(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return 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.getNumber(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfigMinimumHealthyHostsPerZonePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 "MinimumHealthyHostsPerZoneProperty"')}function convertCfnDeploymentConfigMinimumHealthyHostsPerZonePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentConfigMinimumHealthyHostsPerZonePropertyValidator(properties).assertSuccess(),{Type:cdk().stringToCloudFormation(properties.type),Value:cdk().numberToCloudFormation(properties.value)}):properties}function CfnDeploymentConfigMinimumHealthyHostsPerZonePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return 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.getNumber(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfigZonalConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("firstZoneMonitorDurationInSeconds",cdk().validateNumber)(properties.firstZoneMonitorDurationInSeconds)),errors.collect(cdk().propertyValidator("minimumHealthyHostsPerZone",CfnDeploymentConfigMinimumHealthyHostsPerZonePropertyValidator)(properties.minimumHealthyHostsPerZone)),errors.collect(cdk().propertyValidator("monitorDurationInSeconds",cdk().validateNumber)(properties.monitorDurationInSeconds)),errors.wrap('supplied properties not correct for "ZonalConfigProperty"')}function convertCfnDeploymentConfigZonalConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentConfigZonalConfigPropertyValidator(properties).assertSuccess(),{FirstZoneMonitorDurationInSeconds:cdk().numberToCloudFormation(properties.firstZoneMonitorDurationInSeconds),MinimumHealthyHostsPerZone:convertCfnDeploymentConfigMinimumHealthyHostsPerZonePropertyToCloudFormation(properties.minimumHealthyHostsPerZone),MonitorDurationInSeconds:cdk().numberToCloudFormation(properties.monitorDurationInSeconds)}):properties}function CfnDeploymentConfigZonalConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("firstZoneMonitorDurationInSeconds","FirstZoneMonitorDurationInSeconds",properties.FirstZoneMonitorDurationInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.FirstZoneMonitorDurationInSeconds):void 0),ret.addPropertyResult("minimumHealthyHostsPerZone","MinimumHealthyHostsPerZone",properties.MinimumHealthyHostsPerZone!=null?CfnDeploymentConfigMinimumHealthyHostsPerZonePropertyFromCloudFormation(properties.MinimumHealthyHostsPerZone):void 0),ret.addPropertyResult("monitorDurationInSeconds","MonitorDurationInSeconds",properties.MonitorDurationInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MonitorDurationInSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentConfigPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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",CfnDeploymentConfigMinimumHealthyHostsPropertyValidator)(properties.minimumHealthyHosts)),errors.collect(cdk().propertyValidator("trafficRoutingConfig",CfnDeploymentConfigTrafficRoutingConfigPropertyValidator)(properties.trafficRoutingConfig)),errors.collect(cdk().propertyValidator("zonalConfig",CfnDeploymentConfigZonalConfigPropertyValidator)(properties.zonalConfig)),errors.wrap('supplied properties not correct for "CfnDeploymentConfigProps"')}function convertCfnDeploymentConfigPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentConfigPropsValidator(properties).assertSuccess(),{ComputePlatform:cdk().stringToCloudFormation(properties.computePlatform),DeploymentConfigName:cdk().stringToCloudFormation(properties.deploymentConfigName),MinimumHealthyHosts:convertCfnDeploymentConfigMinimumHealthyHostsPropertyToCloudFormation(properties.minimumHealthyHosts),TrafficRoutingConfig:convertCfnDeploymentConfigTrafficRoutingConfigPropertyToCloudFormation(properties.trafficRoutingConfig),ZonalConfig:convertCfnDeploymentConfigZonalConfigPropertyToCloudFormation(properties.zonalConfig)}):properties}function CfnDeploymentConfigPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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.addPropertyResult("zonalConfig","ZonalConfig",properties.ZonalConfig!=null?CfnDeploymentConfigZonalConfigPropertyFromCloudFormation(properties.ZonalConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDeploymentGroup extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CodeDeploy::DeploymentGroup";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeploymentGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnDeploymentGroup(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnDeploymentGroup.CFN_RESOURCE_TYPE_NAME}_alarmConfiguration;_applicationName;_autoRollbackConfiguration;_autoScalingGroups;_blueGreenDeploymentConfiguration;_deployment;_deploymentConfigName;_deploymentGroupName;_deploymentStyle;_ec2TagFilters;_ec2TagSet;_ecsServices;_loadBalancerInfo;_onPremisesInstanceTagFilters;_onPremisesTagSet;_outdatedInstancesStrategy;_serviceRoleArn;tags;_tagsRaw;_terminationHookEnabled;_triggerConfigurations;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._alarmConfiguration=props.alarmConfiguration,this._applicationName=props.applicationName,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._serviceRoleArn=props.serviceRoleArn,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::CodeDeploy::DeploymentGroup",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._terminationHookEnabled=props.terminationHookEnabled,this._triggerConfigurations=props.triggerConfigurations}get deploymentGroupRef(){return{applicationName:this.applicationName,deploymentGroupName:this.ref}}get alarmConfiguration(){return this._alarmConfiguration}set alarmConfiguration(value){cdk().traceProperty(this.node,"AlarmConfiguration"),this._alarmConfiguration=value}get applicationName(){return this._applicationName}set applicationName(value){cdk().traceProperty(this.node,"ApplicationName"),this._applicationName=value}get autoRollbackConfiguration(){return this._autoRollbackConfiguration}set autoRollbackConfiguration(value){cdk().traceProperty(this.node,"AutoRollbackConfiguration"),this._autoRollbackConfiguration=value}get autoScalingGroups(){return this._autoScalingGroups}set autoScalingGroups(value){cdk().traceProperty(this.node,"AutoScalingGroups"),this._autoScalingGroups=value}get blueGreenDeploymentConfiguration(){return this._blueGreenDeploymentConfiguration}set blueGreenDeploymentConfiguration(value){cdk().traceProperty(this.node,"BlueGreenDeploymentConfiguration"),this._blueGreenDeploymentConfiguration=value}get deployment(){return this._deployment}set deployment(value){cdk().traceProperty(this.node,"Deployment"),this._deployment=value}get deploymentConfigName(){return this._deploymentConfigName}set deploymentConfigName(value){cdk().traceProperty(this.node,"DeploymentConfigName"),this._deploymentConfigName=value}get deploymentGroupName(){return this._deploymentGroupName}set deploymentGroupName(value){cdk().traceProperty(this.node,"DeploymentGroupName"),this._deploymentGroupName=value}get deploymentStyle(){return this._deploymentStyle}set deploymentStyle(value){cdk().traceProperty(this.node,"DeploymentStyle"),this._deploymentStyle=value}get ec2TagFilters(){return this._ec2TagFilters}set ec2TagFilters(value){cdk().traceProperty(this.node,"Ec2TagFilters"),this._ec2TagFilters=value}get ec2TagSet(){return this._ec2TagSet}set ec2TagSet(value){cdk().traceProperty(this.node,"Ec2TagSet"),this._ec2TagSet=value}get ecsServices(){return this._ecsServices}set ecsServices(value){cdk().traceProperty(this.node,"ECSServices"),this._ecsServices=value}get loadBalancerInfo(){return this._loadBalancerInfo}set loadBalancerInfo(value){cdk().traceProperty(this.node,"LoadBalancerInfo"),this._loadBalancerInfo=value}get onPremisesInstanceTagFilters(){return this._onPremisesInstanceTagFilters}set onPremisesInstanceTagFilters(value){cdk().traceProperty(this.node,"OnPremisesInstanceTagFilters"),this._onPremisesInstanceTagFilters=value}get onPremisesTagSet(){return this._onPremisesTagSet}set onPremisesTagSet(value){cdk().traceProperty(this.node,"OnPremisesTagSet"),this._onPremisesTagSet=value}get outdatedInstancesStrategy(){return this._outdatedInstancesStrategy}set outdatedInstancesStrategy(value){cdk().traceProperty(this.node,"OutdatedInstancesStrategy"),this._outdatedInstancesStrategy=value}get serviceRoleArn(){return this._serviceRoleArn}set serviceRoleArn(value){cdk().traceProperty(this.node,"ServiceRoleArn"),this._serviceRoleArn=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get terminationHookEnabled(){return this._terminationHookEnabled}set terminationHookEnabled(value){cdk().traceProperty(this.node,"TerminationHookEnabled"),this._terminationHookEnabled=value}get triggerConfigurations(){return this._triggerConfigurations}set triggerConfigurations(value){cdk().traceProperty(this.node,"TriggerConfigurations"),this._triggerConfigurations=value}get cfnProperties(){return{alarmConfiguration:this._alarmConfiguration,applicationName:this._applicationName,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,serviceRoleArn:this._serviceRoleArn,tags:this.tags.renderTags(),terminationHookEnabled:this._terminationHookEnabled,triggerConfigurations:this._triggerConfigurations}}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnDeploymentGroupPropsToCloudFormation(props)}}exports.CfnDeploymentGroup=CfnDeploymentGroup;function CfnDeploymentGroupAlarmPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnDeploymentGroupAlarmPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupAlarmPropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnDeploymentGroupAlarmPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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 CfnDeploymentGroupAlarmConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("alarms",cdk().listValidator(CfnDeploymentGroupAlarmPropertyValidator))(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 convertCfnDeploymentGroupAlarmConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupAlarmConfigurationPropertyValidator(properties).assertSuccess(),{Alarms:cdk().listMapper(convertCfnDeploymentGroupAlarmPropertyToCloudFormation)(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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 CfnDeploymentGroupAutoRollbackConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnDeploymentGroupAutoRollbackConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupAutoRollbackConfigurationPropertyValidator(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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.getArray(cfn_parse().FromCloudFormation.getString)(properties.Events):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroupDeploymentReadyOptionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnDeploymentGroupDeploymentReadyOptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupDeploymentReadyOptionPropertyValidator(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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 CfnDeploymentGroupGreenFleetProvisioningOptionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.wrap('supplied properties not correct for "GreenFleetProvisioningOptionProperty"')}function convertCfnDeploymentGroupGreenFleetProvisioningOptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupGreenFleetProvisioningOptionPropertyValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action)}):properties}function CfnDeploymentGroupGreenFleetProvisioningOptionPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroupBlueInstanceTerminationOptionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||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 convertCfnDeploymentGroupBlueInstanceTerminationOptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupBlueInstanceTerminationOptionPropertyValidator(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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 CfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("deploymentReadyOption",CfnDeploymentGroupDeploymentReadyOptionPropertyValidator)(properties.deploymentReadyOption)),errors.collect(cdk().propertyValidator("greenFleetProvisioningOption",CfnDeploymentGroupGreenFleetProvisioningOptionPropertyValidator)(properties.greenFleetProvisioningOption)),errors.collect(cdk().propertyValidator("terminateBlueInstancesOnDeploymentSuccess",CfnDeploymentGroupBlueInstanceTerminationOptionPropertyValidator)(properties.terminateBlueInstancesOnDeploymentSuccess)),errors.wrap('supplied properties not correct for "BlueGreenDeploymentConfigurationProperty"')}function convertCfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyValidator(properties).assertSuccess(),{DeploymentReadyOption:convertCfnDeploymentGroupDeploymentReadyOptionPropertyToCloudFormation(properties.deploymentReadyOption),GreenFleetProvisioningOption:convertCfnDeploymentGroupGreenFleetProvisioningOptionPropertyToCloudFormation(properties.greenFleetProvisioningOption),TerminateBlueInstancesOnDeploymentSuccess:convertCfnDeploymentGroupBlueInstanceTerminationOptionPropertyToCloudFormation(properties.terminateBlueInstancesOnDeploymentSuccess)}):properties}function CfnDeploymentGroupBlueGreenDeploymentConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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 CfnDeploymentGroupGitHubLocationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("commitId",cdk().requiredValidator)(properties.commitId)),errors.collect(cdk().propertyValidator("commitId",cdk().validateString)(properties.commitId)),errors.collect(cdk().propertyValidator("repository",cdk().requiredValidator)(properties.repository)),errors.collect(cdk().propertyValidator("repository",cdk().validateString)(properties.repository)),errors.wrap('supplied properties not correct for "GitHubLocationProperty"')}function convertCfnDeploymentGroupGitHubLocationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeploymentGroupGitHubLocationPropertyValidator(properties).assertSuccess(),{CommitId:cdk().stringToCloudFormation(properties.commitId),Repository:cdk().stringToCloudFormation(properties.repository)}):properties}function CfnDeploymentGroupGitHubLocationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("commitId","CommitId",properties.CommitId!=null?cfn_parse().FromCloudFormation.getString(properties.CommitId):void 0),ret.addPropertyResult("repository","Repository",properties.Repository!=null?cfn_parse().FromCloudFormation.getString(properties.Repository):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentGroupS3LocationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("bucket",cdk().requiredValidator)(properties.bucket)),errors.collect(cdk().propertyValidator("bucket",cdk().validateString)(properties.bucket)),errors.collect(cdk().propertyValidator("bundleType",cdk().validateString)(properties.bundleType)),errors.collect(cdk().propertyValidator("eTag",cdk().validateString)(properties.eTag)),errors.collect(cdk().property