aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 180 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f,_g;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTaskSet=exports.CfnTaskDefinition=exports.CfnService=exports.CfnPrimaryTaskSet=exports.CfnClusterCapacityProviderAssociations=exports.CfnCluster=exports.CfnCapacityProvider=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 CfnCapacityProviderPropsValidator(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("autoScalingGroupProvider",cdk.requiredValidator)(properties.autoScalingGroupProvider)),errors.collect(cdk.propertyValidator("autoScalingGroupProvider",CfnCapacityProvider_AutoScalingGroupProviderPropertyValidator)(properties.autoScalingGroupProvider)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCapacityProviderProps"')}function cfnCapacityProviderPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCapacityProviderPropsValidator(properties).assertSuccess(),{AutoScalingGroupProvider:cfnCapacityProviderAutoScalingGroupProviderPropertyToCloudFormation(properties.autoScalingGroupProvider),Name:cdk.stringToCloudFormation(properties.name),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCapacityProviderPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupProvider","AutoScalingGroupProvider",CfnCapacityProviderAutoScalingGroupProviderPropertyFromCloudFormation(properties.AutoScalingGroupProvider)),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):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 CfnCapacityProvider extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnCapacityProvider.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_CfnCapacityProviderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCapacityProvider),error}cdk.requireProperty(props,"autoScalingGroupProvider",this),this.autoScalingGroupProvider=props.autoScalingGroupProvider,this.name=props.name,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::ECS::CapacityProvider",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCapacityProviderPropsFromCloudFormation(resourceProperties),ret=new CfnCapacityProvider(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",CfnCapacityProvider.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupProvider:this.autoScalingGroupProvider,name:this.name,tags:this.tags.renderTags()}}renderProperties(props){return cfnCapacityProviderPropsToCloudFormation(props)}}exports.CfnCapacityProvider=CfnCapacityProvider,_a=JSII_RTTI_SYMBOL_1,CfnCapacityProvider[_a]={fqn:"aws-cdk-lib.aws_ecs.CfnCapacityProvider",version:"2.70.0"},CfnCapacityProvider.CFN_RESOURCE_TYPE_NAME="AWS::ECS::CapacityProvider";function CfnCapacityProvider_AutoScalingGroupProviderPropertyValidator(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("autoScalingGroupArn",cdk.requiredValidator)(properties.autoScalingGroupArn)),errors.collect(cdk.propertyValidator("autoScalingGroupArn",cdk.validateString)(properties.autoScalingGroupArn)),errors.collect(cdk.propertyValidator("managedScaling",CfnCapacityProvider_ManagedScalingPropertyValidator)(properties.managedScaling)),errors.collect(cdk.propertyValidator("managedTerminationProtection",cdk.validateString)(properties.managedTerminationProtection)),errors.wrap('supplied properties not correct for "AutoScalingGroupProviderProperty"')}function cfnCapacityProviderAutoScalingGroupProviderPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCapacityProvider_AutoScalingGroupProviderPropertyValidator(properties).assertSuccess(),{AutoScalingGroupArn:cdk.stringToCloudFormation(properties.autoScalingGroupArn),ManagedScaling:cfnCapacityProviderManagedScalingPropertyToCloudFormation(properties.managedScaling),ManagedTerminationProtection:cdk.stringToCloudFormation(properties.managedTerminationProtection)}):properties}function CfnCapacityProviderAutoScalingGroupProviderPropertyFromCloudFormation(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("autoScalingGroupArn","AutoScalingGroupArn",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupArn)),ret.addPropertyResult("managedScaling","ManagedScaling",properties.ManagedScaling!=null?CfnCapacityProviderManagedScalingPropertyFromCloudFormation(properties.ManagedScaling):void 0),ret.addPropertyResult("managedTerminationProtection","ManagedTerminationProtection",properties.ManagedTerminationProtection!=null?cfn_parse.FromCloudFormation.getString(properties.ManagedTerminationProtection):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCapacityProvider_ManagedScalingPropertyValidator(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("instanceWarmupPeriod",cdk.validateNumber)(properties.instanceWarmupPeriod)),errors.collect(cdk.propertyValidator("maximumScalingStepSize",cdk.validateNumber)(properties.maximumScalingStepSize)),errors.collect(cdk.propertyValidator("minimumScalingStepSize",cdk.validateNumber)(properties.minimumScalingStepSize)),errors.collect(cdk.propertyValidator("status",cdk.validateString)(properties.status)),errors.collect(cdk.propertyValidator("targetCapacity",cdk.validateNumber)(properties.targetCapacity)),errors.wrap('supplied properties not correct for "ManagedScalingProperty"')}function cfnCapacityProviderManagedScalingPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCapacityProvider_ManagedScalingPropertyValidator(properties).assertSuccess(),{InstanceWarmupPeriod:cdk.numberToCloudFormation(properties.instanceWarmupPeriod),MaximumScalingStepSize:cdk.numberToCloudFormation(properties.maximumScalingStepSize),MinimumScalingStepSize:cdk.numberToCloudFormation(properties.minimumScalingStepSize),Status:cdk.stringToCloudFormation(properties.status),TargetCapacity:cdk.numberToCloudFormation(properties.targetCapacity)}):properties}function CfnCapacityProviderManagedScalingPropertyFromCloudFormation(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("instanceWarmupPeriod","InstanceWarmupPeriod",properties.InstanceWarmupPeriod!=null?cfn_parse.FromCloudFormation.getNumber(properties.InstanceWarmupPeriod):void 0),ret.addPropertyResult("maximumScalingStepSize","MaximumScalingStepSize",properties.MaximumScalingStepSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaximumScalingStepSize):void 0),ret.addPropertyResult("minimumScalingStepSize","MinimumScalingStepSize",properties.MinimumScalingStepSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinimumScalingStepSize):void 0),ret.addPropertyResult("status","Status",properties.Status!=null?cfn_parse.FromCloudFormation.getString(properties.Status):void 0),ret.addPropertyResult("targetCapacity","TargetCapacity",properties.TargetCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.TargetCapacity):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnClusterPropsValidator(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("capacityProviders",cdk.listValidator(cdk.validateString))(properties.capacityProviders)),errors.collect(cdk.propertyValidator("clusterName",cdk.validateString)(properties.clusterName)),errors.collect(cdk.propertyValidator("clusterSettings",cdk.listValidator(CfnCluster_ClusterSettingsPropertyValidator))(properties.clusterSettings)),errors.collect(cdk.propertyValidator("configuration",CfnCluster_ClusterConfigurationPropertyValidator)(properties.configuration)),errors.collect(cdk.propertyValidator("defaultCapacityProviderStrategy",cdk.listValidator(CfnCluster_CapacityProviderStrategyItemPropertyValidator))(properties.defaultCapacityProviderStrategy)),errors.collect(cdk.propertyValidator("serviceConnectDefaults",CfnCluster_ServiceConnectDefaultsPropertyValidator)(properties.serviceConnectDefaults)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnClusterProps"')}function cfnClusterPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnClusterPropsValidator(properties).assertSuccess(),{CapacityProviders:cdk.listMapper(cdk.stringToCloudFormation)(properties.capacityProviders),ClusterName:cdk.stringToCloudFormation(properties.clusterName),ClusterSettings:cdk.listMapper(cfnClusterClusterSettingsPropertyToCloudFormation)(properties.clusterSettings),Configuration:cfnClusterClusterConfigurationPropertyToCloudFormation(properties.configuration),DefaultCapacityProviderStrategy:cdk.listMapper(cfnClusterCapacityProviderStrategyItemPropertyToCloudFormation)(properties.defaultCapacityProviderStrategy),ServiceConnectDefaults:cfnClusterServiceConnectDefaultsPropertyToCloudFormation(properties.serviceConnectDefaults),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnClusterPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("capacityProviders","CapacityProviders",properties.CapacityProviders!=null?cfn_parse.FromCloudFormation.getStringArray(properties.CapacityProviders):void 0),ret.addPropertyResult("clusterName","ClusterName",properties.ClusterName!=null?cfn_parse.FromCloudFormation.getString(properties.ClusterName):void 0),ret.addPropertyResult("clusterSettings","ClusterSettings",properties.ClusterSettings!=null?cfn_parse.FromCloudFormation.getArray(CfnClusterClusterSettingsPropertyFromCloudFormation)(properties.ClusterSettings):void 0),ret.addPropertyResult("configuration","Configuration",properties.Configuration!=null?CfnClusterClusterConfigurationPropertyFromCloudFormation(properties.Configuration):void 0),ret.addPropertyResult("defaultCapacityProviderStrategy","DefaultCapacityProviderStrategy",properties.DefaultCapacityProviderStrategy!=null?cfn_parse.FromCloudFormation.getArray(CfnClusterCapacityProviderStrategyItemPropertyFromCloudFormation)(properties.DefaultCapacityProviderStrategy):void 0),ret.addPropertyResult("serviceConnectDefaults","ServiceConnectDefaults",properties.ServiceConnectDefaults!=null?CfnClusterServiceConnectDefaultsPropertyFromCloudFormation(properties.ServiceConnectDefaults):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 CfnCluster extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnCluster.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_CfnClusterProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCluster),error}this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.capacityProviders=props.capacityProviders,this.clusterName=props.clusterName,this.clusterSettings=props.clusterSettings,this.configuration=props.configuration,this.defaultCapacityProviderStrategy=props.defaultCapacityProviderStrategy,this.serviceConnectDefaults=props.serviceConnectDefaults,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::ECS::Cluster",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnClusterPropsFromCloudFormation(resourceProperties),ret=new CfnCluster(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",CfnCluster.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{capacityProviders:this.capacityProviders,clusterName:this.clusterName,clusterSettings:this.clusterSettings,configuration:this.configuration,defaultCapacityProviderStrategy:this.defaultCapacityProviderStrategy,serviceConnectDefaults:this.serviceConnectDefaults,tags:this.tags.renderTags()}}renderProperties(props){return cfnClusterPropsToCloudFormation(props)}}exports.CfnCluster=CfnCluster,_b=JSII_RTTI_SYMBOL_1,CfnCluster[_b]={fqn:"aws-cdk-lib.aws_ecs.CfnCluster",version:"2.70.0"},CfnCluster.CFN_RESOURCE_TYPE_NAME="AWS::ECS::Cluster";function CfnCluster_CapacityProviderStrategyItemPropertyValidator(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("base",cdk.validateNumber)(properties.base)),errors.collect(cdk.propertyValidator("capacityProvider",cdk.validateString)(properties.capacityProvider)),errors.collect(cdk.propertyValidator("weight",cdk.validateNumber)(properties.weight)),errors.wrap('supplied properties not correct for "CapacityProviderStrategyItemProperty"')}function cfnClusterCapacityProviderStrategyItemPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCluster_CapacityProviderStrategyItemPropertyValidator(properties).assertSuccess(),{Base:cdk.numberToCloudFormation(properties.base),CapacityProvider:cdk.stringToCloudFormation(properties.capacityProvider),Weight:cdk.numberToCloudFormation(properties.weight)}):properties}function CfnClusterCapacityProviderStrategyItemPropertyFromCloudFormation(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("base","Base",properties.Base!=null?cfn_parse.FromCloudFormation.getNumber(properties.Base):void 0),ret.addPropertyResult("capacityProvider","CapacityProvider",properties.CapacityProvider!=null?cfn_parse.FromCloudFormation.getString(properties.CapacityProvider):void 0),ret.addPropertyResult("weight","Weight",properties.Weight!=null?cfn_parse.FromCloudFormation.getNumber(properties.Weight):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCluster_ClusterConfigurationPropertyValidator(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("executeCommandConfiguration",CfnCluster_ExecuteCommandConfigurationPropertyValidator)(properties.executeCommandConfiguration)),errors.wrap('supplied properties not correct for "ClusterConfigurationProperty"')}function cfnClusterClusterConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCluster_ClusterConfigurationPropertyValidator(properties).assertSuccess(),{ExecuteCommandConfiguration:cfnClusterExecuteCommandConfigurationPropertyToCloudFormation(properties.executeCommandConfiguration)}):properties}function CfnClusterClusterConfigurationPropertyFromCloudFormation(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("executeCommandConfiguration","ExecuteCommandConfiguration",properties.ExecuteCommandConfiguration!=null?CfnClusterExecuteCommandConfigurationPropertyFromCloudFormation(properties.ExecuteCommandConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCluster_ClusterSettingsPropertyValidator(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.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "ClusterSettingsProperty"')}function cfnClusterClusterSettingsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCluster_ClusterSettingsPropertyValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnClusterClusterSettingsPropertyFromCloudFormation(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.addPropertyResult("value","Value",properties.Value!=null?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCluster_ExecuteCommandConfigurationPropertyValidator(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("kmsKeyId",cdk.validateString)(properties.kmsKeyId)),errors.collect(cdk.propertyValidator("logConfiguration",CfnCluster_ExecuteCommandLogConfigurationPropertyValidator)(properties.logConfiguration)),errors.collect(cdk.propertyValidator("logging",cdk.validateString)(properties.logging)),errors.wrap('supplied properties not correct for "ExecuteCommandConfigurationProperty"')}function cfnClusterExecuteCommandConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCluster_ExecuteCommandConfigurationPropertyValidator(properties).assertSuccess(),{KmsKeyId:cdk.stringToCloudFormation(properties.kmsKeyId),LogConfiguration:cfnClusterExecuteCommandLogConfigurationPropertyToCloudFormation(properties.logConfiguration),Logging:cdk.stringToCloudFormation(properties.logging)}):properties}function CfnClusterExecuteCommandConfigurationPropertyFromCloudFormation(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("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addPropertyResult("logConfiguration","LogConfiguration",properties.LogConfiguration!=null?CfnClusterExecuteCommandLogConfigurationPropertyFromCloudFormation(properties.LogConfiguration):void 0),ret.addPropertyResult("logging","Logging",properties.Logging!=null?cfn_parse.FromCloudFormation.getString(properties.Logging):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCluster_ExecuteCommandLogConfigurationPropertyValidator(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("cloudWatchEncryptionEnabled",cdk.validateBoolean)(properties.cloudWatchEncryptionEnabled)),errors.collect(cdk.propertyValidator("cloudWatchLogGroupName",cdk.validateString)(properties.cloudWatchLogGroupName)),errors.collect(cdk.propertyValidator("s3BucketName",cdk.validateString)(properties.s3BucketName)),errors.collect(cdk.propertyValidator("s3EncryptionEnabled",cdk.validateBoolean)(properties.s3EncryptionEnabled)),errors.collect(cdk.propertyValidator("s3KeyPrefix",cdk.validateString)(properties.s3KeyPrefix)),errors.wrap('supplied properties not correct for "ExecuteCommandLogConfigurationProperty"')}function cfnClusterExecuteCommandLogConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCluster_ExecuteCommandLogConfigurationPropertyValidator(properties).assertSuccess(),{CloudWatchEncryptionEnabled:cdk.booleanToCloudFormation(properties.cloudWatchEncryptionEnabled),CloudWatchLogGroupName:cdk.stringToCloudFormation(properties.cloudWatchLogGroupName),S3BucketName:cdk.stringToCloudFormation(properties.s3BucketName),S3EncryptionEnabled:cdk.booleanToCloudFormation(properties.s3EncryptionEnabled),S3KeyPrefix:cdk.stringToCloudFormation(properties.s3KeyPrefix)}):properties}function CfnClusterExecuteCommandLogConfigurationPropertyFromCloudFormation(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("cloudWatchEncryptionEnabled","CloudWatchEncryptionEnabled",properties.CloudWatchEncryptionEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CloudWatchEncryptionEnabled):void 0),ret.addPropertyResult("cloudWatchLogGroupName","CloudWatchLogGroupName",properties.CloudWatchLogGroupName!=null?cfn_parse.FromCloudFormation.getString(properties.CloudWatchLogGroupName):void 0),ret.addPropertyResult("s3BucketName","S3BucketName",properties.S3BucketName!=null?cfn_parse.FromCloudFormation.getString(properties.S3BucketName):void 0),ret.addPropertyResult("s3EncryptionEnabled","S3EncryptionEnabled",properties.S3EncryptionEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.S3EncryptionEnabled):void 0),ret.addPropertyResult("s3KeyPrefix","S3KeyPrefix",properties.S3KeyPrefix!=null?cfn_parse.FromCloudFormation.getString(properties.S3KeyPrefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCluster_ServiceConnectDefaultsPropertyValidator(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("namespace",cdk.validateString)(properties.namespace)),errors.wrap('supplied properties not correct for "ServiceConnectDefaultsProperty"')}function cfnClusterServiceConnectDefaultsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCluster_ServiceConnectDefaultsPropertyValidator(properties).assertSuccess(),{Namespace:cdk.stringToCloudFormation(properties.namespace)}):properties}function CfnClusterServiceConnectDefaultsPropertyFromCloudFormation(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("namespace","Namespace",properties.Namespace!=null?cfn_parse.FromCloudFormation.getString(properties.Namespace):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnClusterCapacityProviderAssociationsPropsValidator(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("capacityProviders",cdk.requiredValidator)(properties.capacityProviders)),errors.collect(cdk.propertyValidator("capacityProviders",cdk.listValidator(cdk.validateString))(properties.capacityProviders)),errors.collect(cdk.propertyValidator("cluster",cdk.requiredValidator)(properties.cluster)),errors.collect(cdk.propertyValidator("cluster",cdk.validateString)(properties.cluster)),errors.collect(cdk.propertyValidator("defaultCapacityProviderStrategy",cdk.requiredValidator)(properties.defaultCapacityProviderStrategy)),errors.collect(cdk.propertyValidator("defaultCapacityProviderStrategy",cdk.listValidator(CfnClusterCapacityProviderAssociations_CapacityProviderStrategyPropertyValidator))(properties.defaultCapacityProviderStrategy)),errors.wrap('supplied properties not correct for "CfnClusterCapacityProviderAssociationsProps"')}function cfnClusterCapacityProviderAssociationsPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnClusterCapacityProviderAssociationsPropsValidator(properties).assertSuccess(),{CapacityProviders:cdk.listMapper(cdk.stringToCloudFormation)(properties.capacityProviders),Cluster:cdk.stringToCloudFormation(properties.cluster),DefaultCapacityProviderStrategy:cdk.listMapper(cfnClusterCapacityProviderAssociationsCapacityProviderStrategyPropertyToCloudFormation)(properties.defaultCapacityProviderStrategy)}):properties}function CfnClusterCapacityProviderAssociationsPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("capacityProviders","CapacityProviders",cfn_parse.FromCloudFormation.getStringArray(properties.CapacityProviders)),ret.addPropertyResult("cluster","Cluster",cfn_parse.FromCloudFormation.getString(properties.Cluster)),ret.addPropertyResult("defaultCapacityProviderStrategy","DefaultCapacityProviderStrategy",cfn_parse.FromCloudFormation.getArray(CfnClusterCapacityProviderAssociationsCapacityProviderStrategyPropertyFromCloudFormation)(properties.DefaultCapacityProviderStrategy)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnClusterCapacityProviderAssociations extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnClusterCapacityProviderAssociations.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_CfnClusterCapacityProviderAssociationsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnClusterCapacityProviderAssociations),error}cdk.requireProperty(props,"capacityProviders",this),cdk.requireProperty(props,"cluster",this),cdk.requireProperty(props,"defaultCapacityProviderStrategy",this),this.capacityProviders=props.capacityProviders,this.cluster=props.cluster,this.defaultCapacityProviderStrategy=props.defaultCapacityProviderStrategy}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnClusterCapacityProviderAssociationsPropsFromCloudFormation(resourceProperties),ret=new CfnClusterCapacityProviderAssociations(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",CfnClusterCapacityProviderAssociations.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{capacityProviders:this.capacityProviders,cluster:this.cluster,defaultCapacityProviderStrategy:this.defaultCapacityProviderStrategy}}renderProperties(props){return cfnClusterCapacityProviderAssociationsPropsToCloudFormation(props)}}exports.CfnClusterCapacityProviderAssociations=CfnClusterCapacityProviderAssociations,_c=JSII_RTTI_SYMBOL_1,CfnClusterCapacityProviderAssociations[_c]={fqn:"aws-cdk-lib.aws_ecs.CfnClusterCapacityProviderAssociations",version:"2.70.0"},CfnClusterCapacityProviderAssociations.CFN_RESOURCE_TYPE_NAME="AWS::ECS::ClusterCapacityProviderAssociations";function CfnClusterCapacityProviderAssociations_CapacityProviderStrategyPropertyValidator(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("base",cdk.validateNumber)(properties.base)),errors.collect(cdk.propertyValidator("capacityProvider",cdk.requiredValidator)(properties.capacityProvider)),errors.collect(cdk.propertyValidator("capacityProvider",cdk.validateString)(properties.capacityProvider)),errors.collect(cdk.propertyValidator("weight",cdk.validateNumber)(properties.weight)),errors.wrap('supplied properties not correct for "CapacityProviderStrategyProperty"')}function cfnClusterCapacityProviderAssociationsCapacityProviderStrategyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnClusterCapacityProviderAssociations_CapacityProviderStrategyPropertyValidator(properties).assertSuccess(),{Base:cdk.numberToCloudFormation(properties.base),CapacityProvider:cdk.stringToCloudFormation(properties.capacityProvider),Weight:cdk.numberToCloudFormation(properties.weight)}):properties}function CfnClusterCapacityProviderAssociationsCapacityProviderStrategyPropertyFromCloudFormation(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("base","Base",properties.Base!=null?cfn_parse.FromCloudFormation.getNumber(properties.Base):void 0),ret.addPropertyResult("capacityProvider","CapacityProvider",cfn_parse.FromCloudFormation.getString(properties.CapacityProvider)),ret.addPropertyResult("weight","Weight",properties.Weight!=null?cfn_parse.FromCloudFormation.getNumber(properties.Weight):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPrimaryTaskSetPropsValidator(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("cluster",cdk.requiredValidator)(properties.cluster)),errors.collect(cdk.propertyValidator("cluster",cdk.validateString)(properties.cluster)),errors.collect(cdk.propertyValidator("service",cdk.requiredValidator)(properties.service)),errors.collect(cdk.propertyValidator("service",cdk.validateString)(properties.service)),errors.collect(cdk.propertyValidator("taskSetId",cdk.requiredValidator)(properties.taskSetId)),errors.collect(cdk.propertyValidator("taskSetId",cdk.validateString)(properties.taskSetId)),errors.wrap('supplied properties not correct for "CfnPrimaryTaskSetProps"')}function cfnPrimaryTaskSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPrimaryTaskSetPropsValidator(properties).assertSuccess(),{Cluster:cdk.stringToCloudFormation(properties.cluster),Service:cdk.stringToCloudFormation(properties.service),TaskSetId:cdk.stringToCloudFormation(properties.taskSetId)}):properties}function CfnPrimaryTaskSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("cluster","Cluster",cfn_parse.FromCloudFormation.getString(properties.Cluster)),ret.addPropertyResult("service","Service",cfn_parse.FromCloudFormation.getString(properties.Service)),ret.addPropertyResult("taskSetId","TaskSetId",cfn_parse.FromCloudFormation.getString(properties.TaskSetId)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPrimaryTaskSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnPrimaryTaskSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_CfnPrimaryTaskSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPrimaryTaskSet),error}cdk.requireProperty(props,"cluster",this),cdk.requireProperty(props,"service",this),cdk.requireProperty(props,"taskSetId",this),this.cluster=props.cluster,this.service=props.service,this.taskSetId=props.taskSetId}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPrimaryTaskSetPropsFromCloudFormation(resourceProperties),ret=new CfnPrimaryTaskSet(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",CfnPrimaryTaskSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{cluster:this.cluster,service:this.service,taskSetId:this.taskSetId}}renderProperties(props){return cfnPrimaryTaskSetPropsToCloudFormation(props)}}exports.CfnPrimaryTaskSet=CfnPrimaryTaskSet,_d=JSII_RTTI_SYMBOL_1,CfnPrimaryTaskSet[_d]={fqn:"aws-cdk-lib.aws_ecs.CfnPrimaryTaskSet",version:"2.70.0"},CfnPrimaryTaskSet.CFN_RESOURCE_TYPE_NAME="AWS::ECS::PrimaryTaskSet";function CfnServicePropsValidator(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("capacityProviderStrategy",cdk.listValidator(CfnService_CapacityProviderStrategyItemPropertyValidator))(properties.capacityProviderStrategy)),errors.collect(cdk.propertyValidator("cluster",cdk.validateString)(properties.cluster)),errors.collect(cdk.propertyValidator("deploymentConfiguration",CfnService_DeploymentConfigurationPropertyValidator)(properties.deploymentConfiguration)),errors.collect(cdk.propertyValidator("deploymentController",CfnService_DeploymentControllerPropertyValidator)(properties.deploymentController)),errors.collect(cdk.propertyValidator("desiredCount",cdk.validateNumber)(properties.desiredCount)),errors.collect(cdk.propertyValidator("enableEcsManagedTags",cdk.validateBoolean)(properties.enableEcsManagedTags)),errors.collect(cdk.propertyValidator("enableExecuteCommand",cdk.validateBoolean)(properties.enableExecuteCommand)),errors.collect(cdk.propertyValidator("healthCheckGracePeriodSeconds",cdk.validateNumber)(properties.healthCheckGracePeriodSeconds)),errors.collect(cdk.propertyValidator("launchType",cdk.validateString)(properties.launchType)),errors.collect(cdk.propertyValidator("loadBalancers",cdk.listValidator(CfnService_LoadBalancerPropertyValidator))(properties.loadBalancers)),errors.collect(cdk.propertyValidator("networkConfiguration",CfnService_NetworkConfigurationPropertyValidator)(properties.networkConfiguration)),errors.collect(cdk.propertyValidator("placementConstraints",cdk.listValidator(CfnService_PlacementConstraintPropertyValidator))(properties.placementConstraints)),errors.collect(cdk.propertyValidator("placementStrategies",cdk.listValidator(CfnService_PlacementStrategyPropertyValidator))(properties.placementStrategies)),errors.collect(cdk.propertyValidator("platformVersion",cdk.validateString)(properties.platformVersion)),errors.collect(cdk.propertyValidator("propagateTags",cdk.validateString)(properties.propagateTags)),errors.collect(cdk.propertyValidator("role",cdk.validateString)(properties.role)),errors.collect(cdk.propertyValidator("schedulingStrategy",cdk.validateString)(properties.schedulingStrategy)),errors.collect(cdk.propertyValidator("serviceConnectConfiguration",CfnService_ServiceConnectConfigurationPropertyValidator)(properties.serviceConnectConfiguration)),errors.collect(cdk.propertyValidator("serviceName",cdk.validateString)(properties.serviceName)),errors.collect(cdk.propertyValidator("serviceRegistries",cdk.listValidator(CfnService_ServiceRegistryPropertyValidator))(properties.serviceRegistries)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("taskDefinition",cdk.validateString)(properties.taskDefinition)),errors.wrap('supplied properties not correct for "CfnServiceProps"')}function cfnServicePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnServicePropsValidator(properties).assertSuccess(),{CapacityProviderStrategy:cdk.listMapper(cfnServiceCapacityProviderStrategyItemPropertyToCloudFormation)(properties.capacityProviderStrategy),Cluster:cdk.stringToCloudFormation(properties.cluster),DeploymentConfiguration:cfnServiceDeploymentConfigurationPropertyToCloudFormation(properties.deploymentConfiguration),DeploymentController:cfnServiceDeploymentControllerPropertyToCloudFormation(properties.deploymentController),DesiredCount:cdk.numberToCloudFormation(properties.desiredCount),EnableECSManagedTags:cdk.booleanToCloudFormation(properties.enableEcsManagedTags),EnableExecuteCommand:cdk.booleanToCloudFormation(properties.enableExecuteCommand),HealthCheckGracePeriodSeconds:cdk.numberToCloudFormation(properties.healthCheckGracePeriodSeconds),LaunchType:cdk.stringToCloudFormation(properties.launchType),LoadBalancers:cdk.listMapper(cfnServiceLoadBalancerPropertyToCloudFormation)(properties.loadBalancers),NetworkConfiguration:cfnServiceNetworkConfigurationPropertyToCloudFormation(properties.networkConfiguration),PlacementConstraints:cdk.listMapper(cfnServicePlacementConstraintPropertyToCloudFormation)(properties.placementConstraints),PlacementStrategies:cdk.listMapper(cfnServicePlacementStrategyPropertyToCloudFormation)(properties.placementStrategies),PlatformVersion:cdk.stringToCloudFormation(properties.platformVersion),PropagateTags:cdk.stringToCloudFormation(properties.propagateTags),Role:cdk.stringToCloudFormation(properties.role),SchedulingStrategy:cdk.stringToCloudFormation(properties.schedulingStrategy),ServiceConnectConfiguration:cfnServiceServiceConnectConfigurationPropertyToCloudFormation(properties.serviceConnectConfiguration),ServiceName:cdk.stringToCloudFormation(properties.serviceName),ServiceRegistries:cdk.listMapper(cfnServiceServiceRegistryPropertyToCloudFormation)(properties.serviceRegistries),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),TaskDefinition:cdk.stringToCloudFormation(properties.taskDefinition)}):properties}function CfnServicePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("capacityProviderStrategy","CapacityProviderStrategy",properties.CapacityProviderStrategy!=null?cfn_parse.FromCloudFormation.getArray(CfnServiceCapacityProviderStrategyItemPropertyFromCloudFormation)(properties.CapacityProviderStrategy):void 0),ret.addPropertyResult("cluster","Cluster",properties.Cluster!=null?cfn_parse.FromCloudFormation.getString(properties.Cluster):void 0),ret.addPropertyResult("deploymentConfiguration","DeploymentConfiguration",properties.DeploymentConfiguration!=null?CfnServiceDeploymentConfigurationPropertyFromCloudFormation(properties.DeploymentConfiguration):void 0),ret.addPropertyResult("deploymentController","DeploymentController",properties.DeploymentController!=null?CfnServiceDeploymentControllerPropertyFromCloudFormation(properties.DeploymentController):void 0),ret.addPropertyResult("desiredCount","DesiredCount",properties.DesiredCount!=null?cfn_parse.FromCloudFormation.getNumber(properties.DesiredCount):void 0),ret.addPropertyResult("enableEcsManagedTags","EnableECSManagedTags",properties.EnableECSManagedTags!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EnableECSManagedTags):void 0),ret.addPropertyResult("enableExecuteCommand","EnableExecuteCommand",properties.EnableExecuteCommand!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EnableExecuteCommand):void 0),ret.addPropertyResult("healthCheckGracePeriodSeconds","HealthCheckGracePeriodSeconds",properties.HealthCheckGracePeriodSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.HealthCheckGracePeriodSeconds):void 0),ret.addPropertyResult("launchType","LaunchType",properties.LaunchType!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchType):void 0),ret.addPropertyResult("loadBalancers","LoadBalancers",properties.LoadBalancers!=null?cfn_parse.FromCloudFormation.getArray(CfnServiceLoadBalancerPropertyFromCloudFormation)(properties.LoadBalancers):void 0),ret.addPropertyResult("networkConfiguration","NetworkConfiguration",properties.NetworkConfiguration!=null?CfnServiceNetworkConfigurationPropertyFromCloudFormation(properties.NetworkConfiguration):void 0),ret.addPropertyResult("placementConstraints","PlacementConstraints",properties.PlacementConstraints!=null?cfn_parse.FromCloudFormation.getArray(CfnServicePlacementConstraintPropertyFromCloudFormation)(properties.PlacementConstraints):void 0),ret.addPropertyResult("placementStrategies","PlacementStrategies",properties.PlacementStrategies!=null?cfn_parse.FromCloudFormation.getArray(CfnServicePlacementStrategyPropertyFromCloudFormation)(properties.PlacementStrategies):void 0),ret.addPropertyResult("platformVersion","PlatformVersion",properties.PlatformVersion!=null?cfn_parse.FromCloudFormation.getString(properties.PlatformVersion):void 0),ret.addPropertyResult("propagateTags","PropagateTags",properties.PropagateTags!=null?cfn_parse.FromCloudFormation.getString(properties.PropagateTags):void 0),ret.addPropertyResult("role","Role",properties.Role!=null?cfn_parse.FromCloudFormation.getString(properties.Role):void 0),ret.addPropertyResult("schedulingStrategy","SchedulingStrategy",properties.SchedulingStrategy!=null?cfn_parse.FromCloudFormation.getString(properties.SchedulingStrategy):void 0),ret.addPropertyResult("serviceConnectConfiguration","ServiceConnectConfiguration",properties.ServiceConnectConfiguration!=null?CfnServiceServiceConnectConfigurationPropertyFromCloudFormation(properties.ServiceConnectConfiguration):void 0),ret.addPropertyResult("serviceName","ServiceName",properties.ServiceName!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceName):void 0),ret.addPropertyResult("serviceRegistries","ServiceRegistries",properties.ServiceRegistries!=null?cfn_parse.FromCloudFormation.getArray(CfnServiceServiceRegistryPropertyFromCloudFormation)(properties.ServiceRegistries):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("taskDefinition","TaskDefinition",properties.TaskDefinition!=null?cfn_parse.FromCloudFormation.getString(properties.TaskDefinition):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnService extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnService.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_CfnServiceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnService),error}this.attrName=cdk.Token.asString(this.getAtt("Name",cdk.ResolutionTypeHint.STRING)),this.attrServiceArn=cdk.Token.asString(this.getAtt("ServiceArn",cdk.ResolutionTypeHint.STRING)),this.capacityProviderStrategy=props.capacityProviderStrategy,this.cluster=props.cluster,this.deploymentConfiguration=props.deploymentConfiguration,this.deploymentController=props.deploymentController,this.desiredCount=props.desiredCount,this.enableEcsManagedTags=props.enableEcsManagedTags,this.enableExecuteCommand=props.enableExecuteCommand,this.healthCheckGracePeriodSeconds=props.healthCheckGracePeriodSeconds,this.launchType=props.launchType,this.loadBalancers=props.loadBalancers,this.networkConfiguration=props.networkConfiguration,this.placementConstraints=props.placementConstraints,this.placementStrategies=props.placementStrategies,this.platformVersion=props.platformVersion,this.propagateTags=props.propagateTags,this.role=props.role,this.schedulingStrategy=props.schedulingStrategy,this.serviceConnectConfiguration=props.serviceConnectConfiguration,this.serviceName=props.serviceName,this.serviceRegistries=props.serviceRegistries,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::ECS::Service",props.tags,{tagPropertyName:"tags"}),this.taskDefinition=props.taskDefinition}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnServicePropsFromCloudFormation(resourceProperties),ret=new CfnService(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",CfnService.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{capacityProviderStrategy:this.capacityProviderStrategy,cluster:this.cluster,deploymentConfiguration:this.deploymentConfiguration,deploymentController:this.deploymentController,desiredCount:this.desiredCount,enableEcsManagedTags:this.enableEcsManagedTags,enableExecuteComma