Class CfnCluster.Builder
java.lang.Object
software.amazon.awscdk.services.dsql.CfnCluster.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster>
- Enclosing class:
CfnCluster
@Stability(Stable)
public static final class CfnCluster.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster>
A fluent builder for
CfnCluster
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnCluster.Builder
deletionProtectionEnabled
(Boolean deletionProtectionEnabled) Whether deletion protection is enabled on this cluster.deletionProtectionEnabled
(IResolvable deletionProtectionEnabled) Whether deletion protection is enabled on this cluster.kmsEncryptionKey
(String kmsEncryptionKey) The KMS key that encrypts data on the cluster.multiRegionProperties
(IResolvable multiRegionProperties) Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.multiRegionProperties
(CfnCluster.MultiRegionPropertiesProperty multiRegionProperties) Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.A map of key and value pairs this cluster is tagged with.
-
Method Details
-
create
@Stability(Stable) public static CfnCluster.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
CfnCluster.Builder
.
-
deletionProtectionEnabled
@Stability(Stable) public CfnCluster.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Whether deletion protection is enabled on this cluster.- Parameters:
deletionProtectionEnabled
- Whether deletion protection is enabled on this cluster. This parameter is required.- Returns:
this
- See Also:
-
deletionProtectionEnabled
@Stability(Stable) public CfnCluster.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Whether deletion protection is enabled on this cluster.- Parameters:
deletionProtectionEnabled
- Whether deletion protection is enabled on this cluster. This parameter is required.- Returns:
this
- See Also:
-
kmsEncryptionKey
The KMS key that encrypts data on the cluster.- Parameters:
kmsEncryptionKey
- The KMS key that encrypts data on the cluster. This parameter is required.- Returns:
this
- See Also:
-
multiRegionProperties
@Stability(Stable) public CfnCluster.Builder multiRegionProperties(IResolvable multiRegionProperties) Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.- Parameters:
multiRegionProperties
- Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings. This parameter is required.- Returns:
this
- See Also:
-
multiRegionProperties
@Stability(Stable) public CfnCluster.Builder multiRegionProperties(CfnCluster.MultiRegionPropertiesProperty multiRegionProperties) Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.- Parameters:
multiRegionProperties
- Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings. This parameter is required.- Returns:
this
- See Also:
-
tags
A map of key and value pairs this cluster is tagged with.- Parameters:
tags
- A map of key and value pairs this cluster is tagged with. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster>
- Returns:
- a newly built instance of
CfnCluster
.
-