"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextWidget=exports.TextWidgetBackground=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),widget_1=require("./widget");var TextWidgetBackground;(function(TextWidgetBackground2){TextWidgetBackground2.SOLID="solid",TextWidgetBackground2.TRANSPARENT="transparent"})(TextWidgetBackground||(exports.TextWidgetBackground=TextWidgetBackground={}));class TextWidget extends widget_1.ConcreteWidget{constructor(props){super(props.width||6,props.height||2);try{jsiiDeprecationWarnings.aws_cdk_lib_aws_cloudwatch_TextWidgetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,TextWidget),error}this.markdown=props.markdown,this.background=props.background}position(x,y){this.x=x,this.y=y}toJson(){return[{type:"text",width:this.width,height:this.height,x:this.x,y:this.y,properties:{markdown:this.markdown,background:this.background}}]}}exports.TextWidget=TextWidget,_a=JSII_RTTI_SYMBOL_1,TextWidget[_a]={fqn:"aws-cdk-lib.aws_cloudwatch.TextWidget",version:"2.96.1"};
