"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Ec2Action=exports.Ec2InstanceAction=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},Ec2InstanceAction;(function(Ec2InstanceAction2){Ec2InstanceAction2.STOP="stop",Ec2InstanceAction2.TERMINATE="terminate",Ec2InstanceAction2.RECOVER="recover",Ec2InstanceAction2.REBOOT="reboot"})(Ec2InstanceAction||(exports.Ec2InstanceAction=Ec2InstanceAction={}));class Ec2Action{constructor(instanceAction){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_actions_Ec2InstanceAction(instanceAction)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Ec2Action),error}this.ec2Action=instanceAction}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}:automate:${core_1().Stack.of(_scope).region}:ec2:${this.ec2Action}`}}}exports.Ec2Action=Ec2Action,_a=JSII_RTTI_SYMBOL_1,Ec2Action[_a]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.Ec2Action",version:"2.159.0"};
