Class Cluster.Builder
java.lang.Object
software.amazon.awscdk.services.dsql.alpha.Cluster.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Cluster>
- Enclosing class:
Cluster
@Stability(Experimental)
public static final class Cluster.Builder
extends Object
implements software.amazon.jsii.Builder<Cluster>
(experimental) A fluent builder for
Cluster.-
Method Summary
Modifier and TypeMethodDescriptionbuild()clusterName(String clusterName) (experimental) The name of the DSQL cluster.static Cluster.BuilderdeletionProtection(Boolean deletionProtection) (experimental) Specifies whether this cluster can be deleted.removalPolicy(RemovalPolicy removalPolicy) (experimental) The removal policy to apply when the cluster is removed or replaced during a stack update, or when the stack is deleted.
-
Method Details
-
create
@Stability(Experimental) public static Cluster.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
Cluster.Builder.
-
clusterName
(experimental) The name of the DSQL cluster.This is applied via the
Nametag.Default: - No name specified.
- Parameters:
clusterName- The name of the DSQL cluster. This parameter is required.- Returns:
this
-
deletionProtection
(experimental) Specifies whether this cluster can be deleted.If deletionProtection is enabled, the cluster cannot be deleted unless it is modified and deletionProtection is disabled. deletionProtection protects clusters from being accidentally deleted.
Default: - true if `removalPolicy` is RETAIN, undefined otherwise.
- Parameters:
deletionProtection- Specifies whether this cluster can be deleted. This parameter is required.- Returns:
this
-
removalPolicy
(experimental) The removal policy to apply when the cluster is removed or replaced during a stack update, or when the stack is deleted.Default: - Retain cluster.
- Parameters:
removalPolicy- The removal policy to apply when the cluster is removed or replaced during a stack update, or when the stack is deleted. This parameter is required.- Returns:
this
-
build
-