Class CfnCluster.Builder
java.lang.Object
software.amazon.awscdk.services.cloudhsm.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 TypeMethodDescriptionbackupRetentionPolicy(IResolvable backupRetentionPolicy) A policy that defines how the service retains backups.backupRetentionPolicy(CfnCluster.BackupRetentionPolicyProperty backupRetentionPolicy) A policy that defines how the service retains backups.build()static CfnCluster.BuilderThe type of HSM to use in the cluster.The mode to use in the cluster.networkType(String networkType) The NetworkType to create a cluster with.The identifiers (IDs) of the subnets where the cluster is created.tags(List<? extends CfnCluster.TagsItemsProperty> tags) Tags to apply to the CloudHSM cluster.
-
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.
-
hsmType
The type of HSM to use in the cluster.- Parameters:
hsmType- The type of HSM to use in the cluster. This parameter is required.- Returns:
this- See Also:
-
backupRetentionPolicy
@Stability(Stable) public CfnCluster.Builder backupRetentionPolicy(IResolvable backupRetentionPolicy) A policy that defines how the service retains backups.- Parameters:
backupRetentionPolicy- A policy that defines how the service retains backups. This parameter is required.- Returns:
this- See Also:
-
backupRetentionPolicy
@Stability(Stable) public CfnCluster.Builder backupRetentionPolicy(CfnCluster.BackupRetentionPolicyProperty backupRetentionPolicy) A policy that defines how the service retains backups.- Parameters:
backupRetentionPolicy- A policy that defines how the service retains backups. This parameter is required.- Returns:
this- See Also:
-
mode
The mode to use in the cluster.- Parameters:
mode- The mode to use in the cluster. This parameter is required.- Returns:
this- See Also:
-
networkType
The NetworkType to create a cluster with.- Parameters:
networkType- The NetworkType to create a cluster with. This parameter is required.- Returns:
this- See Also:
-
subnetIds
The identifiers (IDs) of the subnets where the cluster is created.You must specify at least one subnet.
- Parameters:
subnetIds- The identifiers (IDs) of the subnets where the cluster is created. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnCluster.Builder tags(List<? extends CfnCluster.TagsItemsProperty> tags) Tags to apply to the CloudHSM cluster.- Parameters:
tags- Tags to apply to the CloudHSM cluster. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster>- Returns:
- a newly built instance of
CfnCluster.
-