"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerApplication=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 ServerApplication extends core_1.Resource{constructor(scope,id,props={}){super(scope,id,{physicalName:props.applicationName});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_codedeploy_ServerApplicationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,ServerApplication),error}const resource=new codedeploy_generated_1.CfnApplication(this,"Resource",{applicationName:this.physicalName,computePlatform:"Server"});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}),this.node.addValidation({validate:()=>utils_1.validateName("Application",this.physicalName)})}static fromServerApplicationName(scope,id,serverApplicationName){class Import extends core_1.Resource{constructor(){super(...arguments),this.applicationArn=utils_1.arnForApplication(serverApplicationName),this.applicationName=serverApplicationName}}return new Import(scope,id)}}exports.ServerApplication=ServerApplication,_a=JSII_RTTI_SYMBOL_1,ServerApplication[_a]={fqn:"aws-cdk-lib.aws_codedeploy.ServerApplication",version:"2.29.0"};
//# sourceMappingURL=application.js.map
