Class CfnDashboard.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnDashboard.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard>
- Enclosing class:
CfnDashboard
@Stability(Stable)
public static final class CfnDashboard.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard>
A fluent builder for
CfnDashboard
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDashboard.Builder
dashboardBody
(String dashboardBody) The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard.dashboardName
(String dashboardName) The name of the dashboard.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnDashboard.Builder
.
-
dashboardBody
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 .
- Parameters:
dashboardBody
- The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required.- Returns:
this
-
dashboardName
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.
- Parameters:
dashboardName
- The name of the dashboard. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard>
- Returns:
- a newly built instance of
CfnDashboard
.
-