@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.250Z") @Stability(value=Stable) public class CfnDashboard extends CfnResource implements IInspectable
The AWS::CloudWatch::Dashboard resource specifies an Amazon CloudWatch dashboard. A dashboard is a customizable home page in the CloudWatch console that you can use to monitor your AWS resources in a single view.
All dashboards in your account are global, not region-specific.
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.*;
CfnDashboard cfnDashboard = CfnDashboard.Builder.create(this, "MyCfnDashboard")
.dashboardBody("dashboardBody")
// the properties below are optional
.dashboardName("dashboardName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDashboard.Builder
A fluent builder for
CfnDashboard. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDashboard(Construct scope,
String id,
CfnDashboardProps props)
Create a new `AWS::CloudWatch::Dashboard`.
|
protected |
CfnDashboard(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDashboard(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDashboardBody()
The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard.
|
String |
getDashboardName()
The name of the dashboard.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDashboardBody(String value)
The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard.
|
void |
setDashboardName(String value)
The name of the dashboard.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDashboard(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDashboard(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDashboard(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnDashboardProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDashboardBody()
This parameter is required.
For more information about the syntax, see Dashboard Body Structure and Syntax .
@Stability(value=Stable)
public void setDashboardBody(@NotNull
String value)
This parameter is required.
For more information about the syntax, see Dashboard Body Structure and Syntax .
@Stability(value=Stable) @Nullable public String getDashboardName()
The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.
@Stability(value=Stable)
public void setDashboardName(@Nullable
String value)
The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.
Copyright © 2023. All rights reserved.