"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AlarmStatusWidget=exports.AlarmStatusWidgetSortBy=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),widget_1=require("./widget");var AlarmStatusWidgetSortBy;(function(AlarmStatusWidgetSortBy2){AlarmStatusWidgetSortBy2.DEFAULT="default",AlarmStatusWidgetSortBy2.STATE_UPDATED_TIMESTAMP="stateUpdatedTimestamp",AlarmStatusWidgetSortBy2.TIMESTAMP="timestamp"})(AlarmStatusWidgetSortBy||(exports.AlarmStatusWidgetSortBy=AlarmStatusWidgetSortBy={}));class AlarmStatusWidget extends widget_1.ConcreteWidget{constructor(props){super(props.width||6,props.height||3);try{jsiiDeprecationWarnings.aws_cdk_lib_aws_cloudwatch_AlarmStatusWidgetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AlarmStatusWidget),error}this.props=props}position(x,y){this.x=x,this.y=y}toJson(){return[{type:"alarm",width:this.width,height:this.height,x:this.x,y:this.y,properties:{title:this.props.title?this.props.title:"Alarm Status",alarms:this.props.alarms.map(alarm=>alarm.alarmArn),states:this.props.states,sortBy:this.props.sortBy}}]}}exports.AlarmStatusWidget=AlarmStatusWidget,_a=JSII_RTTI_SYMBOL_1,AlarmStatusWidget[_a]={fqn:"aws-cdk-lib.aws_cloudwatch.AlarmStatusWidget",version:"2.96.1"};
