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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-06T01:36:29.541Z")
@Stability(Stable)
public class CfnVolume
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic interface
Use to specify configuration options for a volume’s storage aggregate or aggregates.static interface
Sets 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 class
A fluent builder forCfnVolume
.static interface
Specifies who can mount an OpenZFS file system and the options available while mounting the file system.static interface
The configuration object for mounting a Network File System (NFS) file system.static interface
Specifies the configuration of the ONTAP volume that you are creating.static interface
Specifies the configuration of the Amazon FSx for OpenZFS volume that you are creating.static interface
The configuration object that specifies the snapshot to use as the origin of the data for the volume.static interface
Specifies the retention period of an FSx for ONTAP SnapLock volume.static interface
Specifies the SnapLock configuration for an FSx for ONTAP SnapLock volume.static interface
The configuration to set the retention period of an FSx for ONTAP SnapLock volume.static interface
Describes the data tiering policy for an ONTAP volume.static interface
Configures 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnVolume
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnVolume
(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.The type of the volume.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setBackupId
(String value) Specifies the ID of the volume backup to use to create a new volume.void
The name of the volume.void
setOntapConfiguration
(IResolvable value) The configuration of an Amazon FSx for NetApp ONTAP volume.void
The configuration of an Amazon FSx for NetApp ONTAP volume.void
The configuration of an Amazon FSx for OpenZFS volume.void
The configuration of an Amazon FSx for OpenZFS volume.void
setTagsRaw
(List<CfnTag> value) An array of key-value pairs to apply to this resource.void
setVolumeType
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
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. -
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. -
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.
-