CfnOmniDashboardProps Struct
Properties for defining a CfnOmniDashboard.
| 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 cfnOmniDashboardProps: cloudwatch.CfnOmniDashboardProps = {
body: 'body',
name: 'name',
spaceId: 'spaceId',
// the properties below are optional
description: 'description',
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_omni_dashboard_props = cloudwatch.CfnOmniDashboardProps(
body="body",
name="name",
space_id="spaceId",
# the properties below are optional
description="description",
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.*;
CfnOmniDashboardProps cfnOmniDashboardProps = CfnOmniDashboardProps.builder()
.body("body")
.name("name")
.spaceId("spaceId")
// the properties below are optional
.description("description")
.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 cfnOmniDashboardProps = new CfnOmniDashboardProps {
Body = "body",
Name = "name",
SpaceId = "spaceId",
// the properties below are optional
Description = "description",
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"
cfnOmniDashboardProps := &CfnOmniDashboardProps{
Body: jsii.String("body"),
Name: jsii.String("name"),
SpaceId: jsii.String("spaceId"),
// the properties below are optional
Description: jsii.String("description"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The dashboard definition.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #An optional description of the dashboard.
A name that identifies the dashboard.
The unique ID of the space to create the dashboard in.