"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AlarmBase=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class AlarmBase extends core_1().Resource{renderAlarmRule(){return`ALARM("${this.alarmArn}")`}addAlarmAction(...actions){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarmAction(actions)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.addAlarmAction),error}this.alarmActionArns===void 0&&(this.alarmActionArns=[]),this.alarmActionArns.push(...actions.map(a=>a.bind(this,this).alarmActionArn))}addInsufficientDataAction(...actions){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarmAction(actions)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.addInsufficientDataAction),error}this.insufficientDataActionArns===void 0&&(this.insufficientDataActionArns=[]),this.insufficientDataActionArns.push(...actions.map(a=>a.bind(this,this).alarmActionArn))}addOkAction(...actions){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarmAction(actions)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.addOkAction),error}this.okActionArns===void 0&&(this.okActionArns=[]),this.okActionArns.push(...actions.map(a=>a.bind(this,this).alarmActionArn))}}exports.AlarmBase=AlarmBase,_a=JSII_RTTI_SYMBOL_1,AlarmBase[_a]={fqn:"aws-cdk-lib.aws_cloudwatch.AlarmBase",version:"2.148.1"};
