"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnCondition=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cfn_element_1=()=>{var tmp=require("./cfn-element");return cfn_element_1=()=>tmp,tmp};class CfnCondition extends cfn_element_1().CfnElement{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings().aws_cdk_lib_CfnConditionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCondition),error}this.expression=props&&props.expression}_toCloudFormation(){return this.expression?{Conditions:{[this.logicalId]:this.expression}}:{}}resolve(_context){try{jsiiDeprecationWarnings().aws_cdk_lib_IResolveContext(_context)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.resolve),error}return{Condition:this.logicalId}}}exports.CfnCondition=CfnCondition,_a=JSII_RTTI_SYMBOL_1,CfnCondition[_a]={fqn:"aws-cdk-lib.CfnCondition",version:"2.159.0"};
