@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.982Z") 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 . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnDashboard(Construct scope,
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDashboardBody()
The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard.
|
java.lang.String |
getDashboardName()
The name of the dashboard.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDashboardBody(java.lang.String value)
The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard.
|
void |
setDashboardName(java.lang.String value)
The name of the dashboard.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnDashboard(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDashboard(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnDashboard(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getDashboardBody()
This parameter is required.
For more information about the syntax, see Dashboard Body Structure and Syntax .
public void setDashboardBody(java.lang.String value)
This parameter is required.
For more information about the syntax, see Dashboard Body Structure and Syntax .
public java.lang.String getDashboardName()
The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.
public void setDashboardName(java.lang.String value)
The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.