Class CfnDashboard.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.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.BuilderThe name of the dashboard.refreshSchedule(IResolvable refreshSchedule) The schedule for a dashboard refresh.refreshSchedule(CfnDashboard.RefreshScheduleProperty refreshSchedule) The schedule for a dashboard refresh.A list of tags.terminationProtectionEnabled(Boolean terminationProtectionEnabled) Specifies whether termination protection is enabled for the dashboard.terminationProtectionEnabled(IResolvable terminationProtectionEnabled) Specifies whether termination protection is enabled for the dashboard.An array of widgets for a custom dashboard.widgets(IResolvable widgets) An array of widgets for a custom dashboard.
-
Method Details
-
create
@Stability(Stable) public static CfnDashboard.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDashboard.Builder.
-
name
The name of the dashboard. The name must be unique to your account.To create the Highlights dashboard, the name must be
AWSCloudTrail-Highlights.- Parameters:
name- The name of the dashboard. The name must be unique to your account. This parameter is required.- Returns:
this- See Also:
-
refreshSchedule
The schedule for a dashboard refresh.- Parameters:
refreshSchedule- The schedule for a dashboard refresh. This parameter is required.- Returns:
this- See Also:
-
refreshSchedule
@Stability(Stable) public CfnDashboard.Builder refreshSchedule(CfnDashboard.RefreshScheduleProperty refreshSchedule) The schedule for a dashboard refresh.- Parameters:
refreshSchedule- The schedule for a dashboard refresh. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tags.- Parameters:
tags- A list of tags. This parameter is required.- Returns:
this- See Also:
-
terminationProtectionEnabled
@Stability(Stable) public CfnDashboard.Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) Specifies whether termination protection is enabled for the dashboard.If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
- Parameters:
terminationProtectionEnabled- Specifies whether termination protection is enabled for the dashboard. This parameter is required.- Returns:
this- See Also:
-
terminationProtectionEnabled
@Stability(Stable) public CfnDashboard.Builder terminationProtectionEnabled(IResolvable terminationProtectionEnabled) Specifies whether termination protection is enabled for the dashboard.If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
- Parameters:
terminationProtectionEnabled- Specifies whether termination protection is enabled for the dashboard. This parameter is required.- Returns:
this- See Also:
-
widgets
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.
- Parameters:
widgets- An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets. This parameter is required.- Returns:
this- See Also:
-
widgets
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.
- Parameters:
widgets- An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboard>- Returns:
- a newly built instance of
CfnDashboard.
-