Class CfnCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cloudhsm.CfnCluster
- All Implemented Interfaces:
IInspectable,IClusterRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:05.692Z")
@Stability(Stable)
public class CfnCluster
extends CfnResource
implements IInspectable, IClusterRef, ITaggableV2
Creates and manages an AWS CloudHSM cluster.
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.cloudhsm.*;
CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
.hsmType("hsmType")
// the properties below are optional
.backupRetentionPolicy(BackupRetentionPolicyProperty.builder()
.type("type")
.value("value")
.build())
.mode("mode")
.networkType("networkType")
.subnetIds(List.of("subnetIds"))
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA policy that defines how the service retains backups.static final classA fluent builder forCfnCluster.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cloudhsm.IClusterRef
IClusterRef.Jsii$Default, IClusterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnCluster(software.constructs.Construct scope, String id, CfnClusterProps props) Create a newAWS::CloudHSM::Cluster. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForCluster(IClusterRef resource) The Amazon Resource Name (ARN) of the cluster.The cluster's backup policy.The cluster's identifier (ID).The identifier (ID) of the cluster's security group.The cluster's state.A map from availability zone to the cluster's subnet in that availability zone.The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.A policy that defines how the service retains backups.Tag Manager which manages the tags for this resource.A reference to a Cluster resource.The type of HSM to use in the cluster.getMode()The mode to use in the cluster.The NetworkType to create a cluster with.The identifiers (IDs) of the subnets where the cluster is created.getTags()Tags to apply to the CloudHSM cluster.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnCluster.renderProperties(Map<String, Object> props) voidA policy that defines how the service retains backups.voidA policy that defines how the service retains backups.voidsetHsmType(String value) The type of HSM to use in the cluster.voidThe mode to use in the cluster.voidsetNetworkType(String value) The NetworkType to create a cluster with.voidsetSubnetIds(List<String> value) The identifiers (IDs) of the subnets where the cluster is created.voidsetTags(List<CfnCluster.TagsItemsProperty> value) Tags to apply to the CloudHSM cluster.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCluster
@Stability(Stable) public CfnCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnClusterProps props) Create a newAWS::CloudHSM::Cluster.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForCluster
- Parameters:
resource- This parameter is required.
-
isCfnCluster
Checks whether the given object is a CfnCluster.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the cluster. -
getAttrBackupPolicy
The cluster's backup policy. -
getAttrClusterId
The cluster's identifier (ID). -
getAttrSecurityGroup
The identifier (ID) of the cluster's security group. -
getAttrState
The cluster's state. -
getAttrSubnetMapping
A map from availability zone to the cluster's subnet in that availability zone. -
getAttrVpcId
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getClusterRef
A reference to a Cluster resource.- Specified by:
getClusterRefin interfaceIClusterRef
-
getHsmType
The type of HSM to use in the cluster. -
setHsmType
The type of HSM to use in the cluster. -
getBackupRetentionPolicy
A policy that defines how the service retains backups.Returns union: either
IResolvableorCfnCluster.BackupRetentionPolicyProperty -
setBackupRetentionPolicy
A policy that defines how the service retains backups. -
setBackupRetentionPolicy
@Stability(Stable) public void setBackupRetentionPolicy(@Nullable CfnCluster.BackupRetentionPolicyProperty value) A policy that defines how the service retains backups. -
getMode
The mode to use in the cluster. -
setMode
The mode to use in the cluster. -
getNetworkType
The NetworkType to create a cluster with. -
setNetworkType
The NetworkType to create a cluster with. -
getSubnetIds
The identifiers (IDs) of the subnets where the cluster is created. -
setSubnetIds
The identifiers (IDs) of the subnets where the cluster is created. -
getTags
Tags to apply to the CloudHSM cluster. -
setTags
Tags to apply to the CloudHSM cluster.
-