"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppMeshProxyConfiguration=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var proxy_configuration_1=()=>{var tmp=require("./proxy-configuration");return proxy_configuration_1=()=>tmp,tmp};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;return{containerName:this.props.containerName,proxyConfigurationProperties:renderProperties(configProps),type:"APPMESH"}}}exports.AppMeshProxyConfiguration=AppMeshProxyConfiguration,_a=JSII_RTTI_SYMBOL_1,AppMeshProxyConfiguration[_a]={fqn:"aws-cdk-lib.aws_ecs.AppMeshProxyConfiguration",version:"2.159.0"};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}
