"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SsmAction=exports.OpsItemCategory=exports.OpsItemSeverity=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../core");var OpsItemSeverity;(function(OpsItemSeverity2){OpsItemSeverity2.CRITICAL="1",OpsItemSeverity2.HIGH="2",OpsItemSeverity2.MEDIUM="3",OpsItemSeverity2.LOW="4"})(OpsItemSeverity=exports.OpsItemSeverity||(exports.OpsItemSeverity={}));var OpsItemCategory;(function(OpsItemCategory2){OpsItemCategory2.AVAILABILITY="Availability",OpsItemCategory2.COST="Cost",OpsItemCategory2.PERFORMANCE="Performance",OpsItemCategory2.RECOVERY="Recovery",OpsItemCategory2.SECURITY="Security"})(OpsItemCategory=exports.OpsItemCategory||(exports.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.29.0"};
//# sourceMappingURL=ssm.js.map
