CfnDashboardProps
Struct External
Properties for defining a CfnDashboard.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const cfnDashboardProps: cloudwatch.CfnDashboardProps = {
dashboardBody: 'dashboardBody',
// the properties below are optional
dashboardName: 'dashboardName',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudwatch as cloudwatch
cfn_dashboard_props = cloudwatch.CfnDashboardProps(
dashboard_body="dashboardBody",
# the properties below are optional
dashboard_name="dashboardName",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
CfnDashboardProps cfnDashboardProps = CfnDashboardProps.builder()
.dashboardBody("dashboardBody")
// the properties below are optional
.dashboardName("dashboardName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
var cfnDashboardProps = new CfnDashboardProps {
DashboardBody = "dashboardBody",
// the properties below are optional
DashboardName = "dashboardName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnDashboardProps := &CfnDashboardProps{
DashboardBody: jsii.String("dashboardBody"),
// the properties below are optional
DashboardName: jsii.String("dashboardName"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
dashboardBodystringdashboard_bodystrdashboardBodyStringDashboardBodystringDashboardBody*string required #The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard.
This parameter is required.
For more information about the syntax, see Dashboard Body Structure and Syntax .
dashboardNameoptionalstringdashboard_nameoptionalstrdashboardNameoptionalStringDashboardNameoptionalstringDashboardNameoptional*string #The name of the dashboard.
The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.