Skip to content
v2.278.0

CfnDashboardProps Struct ​

Properties for defining a CfnDashboard.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const cfnDashboardProps: iotsitewise.CfnDashboardProps = {
  dashboardDefinition: 'dashboardDefinition',
  dashboardDescription: 'dashboardDescription',
  dashboardName: 'dashboardName',

  // the properties below are optional
  projectId: 'projectId',
  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_iotsitewise as iotsitewise

cfn_dashboard_props = iotsitewise.CfnDashboardProps(
    dashboard_definition="dashboardDefinition",
    dashboard_description="dashboardDescription",
    dashboard_name="dashboardName",

    # the properties below are optional
    project_id="projectId",
    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.iotsitewise.*;

CfnDashboardProps cfnDashboardProps = CfnDashboardProps.builder()
        .dashboardDefinition("dashboardDefinition")
        .dashboardDescription("dashboardDescription")
        .dashboardName("dashboardName")

        // the properties below are optional
        .projectId("projectId")
        .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.IoTSiteWise;

var cfnDashboardProps = new CfnDashboardProps {
    DashboardDefinition = "dashboardDefinition",
    DashboardDescription = "dashboardDescription",
    DashboardName = "dashboardName",

    // the properties below are optional
    ProjectId = "projectId",
    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{
	DashboardDefinition: jsii.String("dashboardDefinition"),
	DashboardDescription: jsii.String("dashboardDescription"),
	DashboardName: jsii.String("dashboardName"),

	// the properties below are optional
	ProjectId: jsii.String("projectId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

dashboardDefinitionstringdashboard_definitionstrdashboardDefinitionStringDashboardDefinitionstringDashboardDefinition*string required #
The dashboard definition specified in a JSON literal.
notes

in the AWS IoT SiteWise User Guide

dashboardDescriptionstringdashboard_descriptionstrdashboardDescriptionStringDashboardDescriptionstringDashboardDescription*string required #
A description for the dashboard.
dashboardNamestringdashboard_namestrdashboardNameStringDashboardNamestringDashboardName*string required #
A friendly name for the dashboard.
projectIdoptionalstringproject_idoptionalstrprojectIdoptionalStringProjectIdoptionalstringProjectIdoptional*string #
The ID of the project in which to create the dashboard.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of key-value pairs that contain metadata for the dashboard.

For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .