@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:41.002Z") public class Dashboard extends Resource
Example:
// 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.*; IWidget widget; Dashboard dashboard = Dashboard.Builder.create(this, "MyDashboard") .dashboardName("dashboardName") .end("end") .periodOverride(PeriodOverride.AUTO) .start("start") .widgets(List.of(List.of(widget))) .build();
Modifier and Type | Class and Description |
---|---|
static class |
Dashboard.Builder
A fluent builder for
Dashboard . |
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
Dashboard(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Dashboard(software.amazon.jsii.JsiiObjectRef objRef) |
|
Dashboard(software.constructs.Construct scope,
java.lang.String id) |
|
Dashboard(software.constructs.Construct scope,
java.lang.String id,
DashboardProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addWidgets(IWidget... widgets)
Add a widget to the dashboard.
|
java.lang.String |
getDashboardArn()
ARN of this dashboard.
|
java.lang.String |
getDashboardName()
The name of this dashboard.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected Dashboard(software.amazon.jsii.JsiiObjectRef objRef)
protected Dashboard(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Dashboard(software.constructs.Construct scope, java.lang.String id, DashboardProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public Dashboard(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public void addWidgets(IWidget... widgets)
Widgets given in multiple calls to add() will be laid out stacked on top of each other.
Multiple widgets added in the same call to add() will be laid out next to each other.
widgets
- This parameter is required.public java.lang.String getDashboardArn()
public java.lang.String getDashboardName()