"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppMeshProxyConfiguration=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),proxy_configuration_1=require("./proxy-configuration");class AppMeshProxyConfiguration extends proxy_configuration_1.ProxyConfiguration{constructor(props){super(),this.props=props;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_AppMeshProxyConfigurationConfigProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AppMeshProxyConfiguration),error}if(props.properties&&!props.properties.ignoredUID&&!props.properties.ignoredGID)throw new Error("At least one of ignoredUID or ignoredGID should be specified.")}bind(_scope,_taskDefinition){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_TaskDefinition(_taskDefinition)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const configProps=this.props.properties,configType="APPMESH";return{containerName:this.props.containerName,proxyConfigurationProperties:renderProperties(configProps),type:configType}}}exports.AppMeshProxyConfiguration=AppMeshProxyConfiguration,_a=JSII_RTTI_SYMBOL_1,AppMeshProxyConfiguration[_a]={fqn:"aws-cdk-lib.aws_ecs.AppMeshProxyConfiguration",version:"2.96.1"};function renderProperties(props){const ret=new Array;for(const[k,v]of Object.entries(props)){const key=String(k),value=String(v);if(value!=="undefined"&&value!==""){const capitalizedKey=key.charAt(0).toUpperCase()+key.slice(1);ret.push({name:capitalizedKey,value})}}return ret}
