"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SsmIncidentAction=exports.SsmAction=exports.OpsItemCategory=exports.OpsItemSeverity=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},OpsItemSeverity;(function(OpsItemSeverity2){OpsItemSeverity2.CRITICAL="1",OpsItemSeverity2.HIGH="2",OpsItemSeverity2.MEDIUM="3",OpsItemSeverity2.LOW="4"})(OpsItemSeverity||(exports.OpsItemSeverity=OpsItemSeverity={}));var OpsItemCategory;(function(OpsItemCategory2){OpsItemCategory2.AVAILABILITY="Availability",OpsItemCategory2.COST="Cost",OpsItemCategory2.PERFORMANCE="Performance",OpsItemCategory2.RECOVERY="Recovery",OpsItemCategory2.SECURITY="Security"})(OpsItemCategory||(exports.OpsItemCategory=OpsItemCategory={}));class SsmAction{constructor(severity,category){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_actions_OpsItemSeverity(severity),jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_actions_OpsItemCategory(category)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,SsmAction),error}this.severity=severity,this.category=category}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return this.category===void 0?{alarmActionArn:`arn:${core_1().Stack.of(_scope).partition}:ssm:${core_1().Stack.of(_scope).region}:${core_1().Stack.of(_scope).account}:opsitem:${this.severity}`}:{alarmActionArn:`arn:${core_1().Stack.of(_scope).partition}:ssm:${core_1().Stack.of(_scope).region}:${core_1().Stack.of(_scope).account}:opsitem:${this.severity}#CATEGORY=${this.category}`}}}exports.SsmAction=SsmAction,_a=JSII_RTTI_SYMBOL_1,SsmAction[_a]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.SsmAction",version:"2.159.0"};class SsmIncidentAction{constructor(responsePlanName){this.responsePlanName=responsePlanName}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{alarmActionArn:`arn:${core_1().Stack.of(_scope).partition}:ssm-incidents::${core_1().Stack.of(_scope).account}:response-plan/${this.responsePlanName}`}}}exports.SsmIncidentAction=SsmIncidentAction,_b=JSII_RTTI_SYMBOL_1,SsmIncidentAction[_b]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.SsmIncidentAction",version:"2.159.0"};
