Interface CfnDashboardProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDashboardProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.212Z")
@Stability(Stable)
public interface CfnDashboardProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnDashboard.
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.cloudtrail.*;
CfnDashboardProps cfnDashboardProps = CfnDashboardProps.builder()
.name("name")
.refreshSchedule(RefreshScheduleProperty.builder()
.frequency(FrequencyProperty.builder()
.unit("unit")
.value(123)
.build())
.status("status")
.timeOfDay("timeOfDay")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.terminationProtectionEnabled(false)
.widgets(List.of(WidgetProperty.builder()
.queryStatement("queryStatement")
// the properties below are optional
.queryParameters(List.of("queryParameters"))
.viewProperties(Map.of(
"viewPropertiesKey", "viewProperties"))
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDashboardPropsstatic final classAn implementation forCfnDashboardProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDashboardProps.Builderbuilder()default StringgetName()The name of the dashboard.default ObjectThe schedule for a dashboard refresh.getTags()A list of tags.default ObjectSpecifies whether termination protection is enabled for the dashboard.default ObjectAn array of widgets for a custom dashboard.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the dashboard. The name must be unique to your account.To create the Highlights dashboard, the name must be
AWSCloudTrail-Highlights.- See Also:
-
getRefreshSchedule
The schedule for a dashboard refresh.Returns union: either
IResolvableorCfnDashboard.RefreshScheduleProperty- See Also:
-
getTags
A list of tags.- See Also:
-
getTerminationProtectionEnabled
Specifies whether termination protection is enabled for the dashboard.If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
Returns union: either
BooleanorIResolvable- See Also:
-
getWidgets
An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets.You do not need to specify widgets for the Highlights dashboard.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDashboard.WidgetProperty>- See Also:
-
builder
- Returns:
- a
CfnDashboardProps.BuilderofCfnDashboardProps
-