Class CfnVolume
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.fsx.CfnVolume
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.245Z")
@Stability(Stable)
public class CfnVolume
extends CfnResource
implements IInspectable
A CloudFormation
AWS::FSx::Volume
.
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() .sizeInMegabytes("sizeInMegabytes") .storageVirtualMachineId("storageVirtualMachineId") // the properties below are optional .copyTagsToBackups("copyTagsToBackups") .junctionPath("junctionPath") .ontapVolumeType("ontapVolumeType") .securityStyle("securityStyle") .snapshotPolicy("snapshotPolicy") .storageEfficiencyEnabled("storageEfficiencyEnabled") .tieringPolicy(TieringPolicyProperty.builder() .coolingPeriod(123) .name("name") .build()) .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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
Describes the data tiering policy for an ONTAP volume.static interface
An object specifying how much storage users or 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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
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()
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
setVolumeType
(String value) The type of the volume.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 Construct scope, @NotNull String id, @NotNull CfnVolumeProps props) Create a newAWS::FSx::Volume
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
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
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
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. -
getVolumeType
The type of the volume. -
setVolumeType
The type of the volume.
-