"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EcsApplication=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../../core"),codedeploy_generated_1=require("../codedeploy.generated"),utils_1=require("../utils");class EcsApplication extends core_1.Resource{constructor(scope,id,props={}){super(scope,id,{physicalName:props.applicationName});jsiiDeprecationWarnings.aws_cdk_lib_aws_codedeploy_EcsApplicationProps(props);const resource=new codedeploy_generated_1.CfnApplication(this,"Resource",{applicationName:this.physicalName,computePlatform:"ECS"});this.applicationName=this.getResourceNameAttribute(resource.ref),this.applicationArn=this.getResourceArnAttribute(utils_1.arnForApplication(resource.ref),{service:"codedeploy",resource:"application",resourceName:this.physicalName,arnFormat:core_1.ArnFormat.COLON_RESOURCE_NAME})}static fromEcsApplicationName(scope,id,ecsApplicationName){class Import extends core_1.Resource{constructor(){super(...arguments);this.applicationArn=utils_1.arnForApplication(ecsApplicationName),this.applicationName=ecsApplicationName}}return new Import(scope,id)}}exports.EcsApplication=EcsApplication,_a=JSII_RTTI_SYMBOL_1,EcsApplication[_a]={fqn:"aws-cdk-lib.aws_codedeploy.EcsApplication",version:"2.13.0"};
//# sourceMappingURL=application.js.map
