"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.GelfLogDriver=exports.GelfCompressionType=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),log_driver_1=require("./log-driver"),utils_1=require("./utils");var GelfCompressionType;(function(GelfCompressionType2){GelfCompressionType2.GZIP="gzip",GelfCompressionType2.ZLIB="zlib",GelfCompressionType2.NONE="none"})(GelfCompressionType=exports.GelfCompressionType||(exports.GelfCompressionType={}));class GelfLogDriver extends log_driver_1.LogDriver{constructor(props){super(),this.props=props;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_GelfLogDriverProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,GelfLogDriver),error}props.compressionLevel&&utils_1.ensureInRange(props.compressionLevel,-1,9),props.tcpMaxReconnect&&utils_1.ensurePositiveInteger(props.tcpMaxReconnect)}bind(_scope,_containerDefinition){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ecs_ContainerDefinition(_containerDefinition)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{logDriver:"gelf",options:utils_1.stringifyOptions({"gelf-address":this.props.address,"gelf-compression-type":this.props.compressionType,"gelf-compression-level":this.props.compressionLevel,"gelf-tcp-max-reconnect":this.props.tcpMaxReconnect,"gelf-tcp-reconnect-delay":this.props.tcpReconnectDelay&&this.props.tcpReconnectDelay.toSeconds(),...utils_1.renderCommonLogDriverOptions(this.props)})}}}exports.GelfLogDriver=GelfLogDriver,_a=JSII_RTTI_SYMBOL_1,GelfLogDriver[_a]={fqn:"aws-cdk-lib.aws_ecs.GelfLogDriver",version:"2.46.0"};
//# sourceMappingURL=gelf-log-driver.js.map
