TextWidgetBackground Enum
Background types available.
| Source | aws-cloudwatch/lib/text.ts |
|---|---|
| Type last changed |
Example
ts
declare const dashboard: cloudwatch.Dashboard;
dashboard.addWidgets(new cloudwatch.TextWidget({
markdown: '# Key Performance Indicators',
background: cloudwatch.TextWidgetBackground.TRANSPARENT
}));
python
# dashboard: cloudwatch.Dashboard
dashboard.add_widgets(cloudwatch.TextWidget(
markdown="# Key Performance Indicators",
background=cloudwatch.TextWidgetBackground.TRANSPARENT
))
java
Dashboard dashboard;
dashboard.addWidgets(TextWidget.Builder.create()
.markdown("# Key Performance Indicators")
.background(TextWidgetBackground.TRANSPARENT)
.build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
Dashboard dashboard;
dashboard.AddWidgets(new TextWidget(new TextWidgetProps {
Markdown = "# Key Performance Indicators",
Background = TextWidgetBackground.TRANSPARENT
}));
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var dashboard Dashboard
dashboard.AddWidgets(cloudwatch.NewTextWidget(&TextWidgetProps{
Markdown: jsii.String("# Key Performance Indicators"),
Background: cloudwatch.TextWidgetBackground_TRANSPARENT,
}))
Members
| Member | Description |
|---|---|
SOLID | Solid background. |
TRANSPARENT | Transparent background. |
Referenced by
TextWidgetProps.backgroundbackgroundbackgroundBackgroundBackground