Class CfnVolume
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.fsx.CfnVolume
- All Implemented Interfaces:
IInspectable,ITaggable,IVolumeRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:40.546Z")
@Stability(Stable)
public class CfnVolume
extends CfnResource
implements IInspectable, IVolumeRef, ITaggable
Creates an FSx for ONTAP or Amazon FSx for OpenZFS storage volume.
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.fsx.*;
CfnVolume cfnVolume = CfnVolume.Builder.create(this, "MyCfnVolume")
.name("name")
// the properties below are optional
.backupId("backupId")
.ontapConfiguration(OntapConfigurationProperty.builder()
.storageVirtualMachineId("storageVirtualMachineId")
// the properties below are optional
.aggregateConfiguration(AggregateConfigurationProperty.builder()
.aggregates(List.of("aggregates"))
.constituentsPerAggregate(123)
.build())
.copyTagsToBackups("copyTagsToBackups")
.junctionPath("junctionPath")
.ontapVolumeType("ontapVolumeType")
.securityStyle("securityStyle")
.sizeInBytes("sizeInBytes")
.sizeInMegabytes("sizeInMegabytes")
.snaplockConfiguration(SnaplockConfigurationProperty.builder()
.snaplockType("snaplockType")
// the properties below are optional
.auditLogVolume("auditLogVolume")
.autocommitPeriod(AutocommitPeriodProperty.builder()
.type("type")
// the properties below are optional
.value(123)
.build())
.privilegedDelete("privilegedDelete")
.retentionPeriod(SnaplockRetentionPeriodProperty.builder()
.defaultRetention(RetentionPeriodProperty.builder()
.type("type")
// the properties below are optional
.value(123)
.build())
.maximumRetention(RetentionPeriodProperty.builder()
.type("type")
// the properties below are optional
.value(123)
.build())
.minimumRetention(RetentionPeriodProperty.builder()
.type("type")
// the properties below are optional
.value(123)
.build())
.build())
.volumeAppendModeEnabled("volumeAppendModeEnabled")
.build())
.snapshotPolicy("snapshotPolicy")
.storageEfficiencyEnabled("storageEfficiencyEnabled")
.tieringPolicy(TieringPolicyProperty.builder()
.coolingPeriod(123)
.name("name")
.build())
.volumeStyle("volumeStyle")
.build())
.openZfsConfiguration(OpenZFSConfigurationProperty.builder()
.parentVolumeId("parentVolumeId")
// the properties below are optional
.copyTagsToSnapshots(false)
.dataCompressionType("dataCompressionType")
.nfsExports(List.of(NfsExportsProperty.builder()
.clientConfigurations(List.of(ClientConfigurationsProperty.builder()
.clients("clients")
.options(List.of("options"))
.build()))
.build()))
.options(List.of("options"))
.originSnapshot(OriginSnapshotProperty.builder()
.copyStrategy("copyStrategy")
.snapshotArn("snapshotArn")
.build())
.readOnly(false)
.recordSizeKiB(123)
.storageCapacityQuotaGiB(123)
.storageCapacityReservationGiB(123)
.userAndGroupQuotas(List.of(UserAndGroupQuotasProperty.builder()
.id(123)
.storageCapacityQuotaGiB(123)
.type("type")
.build()))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.volumeType("volumeType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceUse to specify configuration options for a volume’s storage aggregate or aggregates.static interfaceSets the autocommit period of files in an FSx for ONTAP SnapLock volume, which determines how long the files must remain unmodified before they're automatically transitioned to the write once, read many (WORM) state.static final classA fluent builder forCfnVolume.static interfaceSpecifies who can mount an OpenZFS file system and the options available while mounting the file system.static interfaceThe configuration object for mounting a Network File System (NFS) file system.static interfaceSpecifies the configuration of the ONTAP volume that you are creating.static interfaceSpecifies the configuration of the Amazon FSx for OpenZFS volume that you are creating.static interfaceThe configuration object that specifies the snapshot to use as the origin of the data for the volume.static interfaceSpecifies the retention period of an FSx for ONTAP SnapLock volume.static interfaceSpecifies the SnapLock configuration for an FSx for ONTAP SnapLock volume.static interfaceThe configuration to set the retention period of an FSx for ONTAP SnapLock volume.static interfaceDescribes the data tiering policy for an ONTAP volume.static interfaceConfigures how much storage users and groups can use on the volume.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.fsx.IVolumeRef
IVolumeRef.Jsii$Default, IVolumeRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVolume(software.amazon.jsii.JsiiObjectRef objRef) CfnVolume(software.constructs.Construct scope, String id, CfnVolumeProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the volume's Amazon Resource Name (ARN).Returns the volume's universally unique identifier (UUID).Returns the volume's ID.Specifies the ID of the volume backup to use to create a new volume.getName()The name of the volume.The configuration of an Amazon FSx for NetApp ONTAP volume.The configuration of an Amazon FSx for OpenZFS volume.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.A reference to a Volume resource.The type of the volume.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetBackupId(String value) Specifies the ID of the volume backup to use to create a new volume.voidThe name of the volume.voidsetOntapConfiguration(IResolvable value) The configuration of an Amazon FSx for NetApp ONTAP volume.voidThe configuration of an Amazon FSx for NetApp ONTAP volume.voidThe configuration of an Amazon FSx for OpenZFS volume.voidThe configuration of an Amazon FSx for OpenZFS volume.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.voidsetVolumeType(String value) The type of the volume.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnVolume
protected CfnVolume(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVolume
protected CfnVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVolume
@Stability(Stable) public CfnVolume(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnVolumeProps props) - 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
-
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.
-
getAttrResourceArn
Returns the volume's Amazon Resource Name (ARN).Example:
arn:aws:fsx:us-east-2:111122223333:volume/fs-0123456789abcdef9/fsvol-01234567891112223 -
getAttrUuid
Returns the volume's universally unique identifier (UUID).Example:
abcd0123-cd45-ef67-11aa-1111aaaa23bc -
getAttrVolumeId
Returns the volume's ID.Example:
fsvol-0123456789abcdefa -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getVolumeRef
A reference to a Volume resource.- Specified by:
getVolumeRefin interfaceIVolumeRef
-
getName
The name of the volume. -
setName
The name of the volume. -
getBackupId
Specifies the ID of the volume backup to use to create a new volume. -
setBackupId
Specifies the ID of the volume backup to use to create a new volume. -
getOntapConfiguration
The configuration of an Amazon FSx for NetApp ONTAP volume.Returns union: either
IResolvableorCfnVolume.OntapConfigurationProperty -
setOntapConfiguration
The configuration of an Amazon FSx for NetApp ONTAP volume. -
setOntapConfiguration
@Stability(Stable) public void setOntapConfiguration(@Nullable CfnVolume.OntapConfigurationProperty value) The configuration of an Amazon FSx for NetApp ONTAP volume. -
getOpenZfsConfiguration
The configuration of an Amazon FSx for OpenZFS volume.Returns union: either
IResolvableorCfnVolume.OpenZFSConfigurationProperty -
setOpenZfsConfiguration
The configuration of an Amazon FSx for OpenZFS volume. -
setOpenZfsConfiguration
@Stability(Stable) public void setOpenZfsConfiguration(@Nullable CfnVolume.OpenZFSConfigurationProperty value) The configuration of an Amazon FSx for OpenZFS volume. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource. -
getVolumeType
The type of the volume. -
setVolumeType
The type of the volume.
-