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
Nested ClassesModifier and TypeClassDescriptionstatic 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 interfaceDescribes the data tiering policy for an ONTAP volume.static interfaceAn 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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
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.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.voidsetVolumeType(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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:
inspectin 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:
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
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.
-