@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:29.367Z") public class CfnVolume extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnVolume.Builder
A fluent builder for
CfnVolume . |
static interface |
CfnVolume.ClientConfigurationsProperty
Specifies who can mount an OpenZFS file system and the options available while mounting the file system.
|
static interface |
CfnVolume.NfsExportsProperty
The configuration object for mounting a Network File System (NFS) file system.
|
static interface |
CfnVolume.OntapConfigurationProperty
Specifies the configuration of the ONTAP volume that you are creating.
|
static interface |
CfnVolume.OpenZFSConfigurationProperty
Specifies the configuration of the Amazon FSx for OpenZFS volume that you are creating.
|
static interface |
CfnVolume.OriginSnapshotProperty
The configuration object that specifies the snapshot to use as the origin of the data for the volume.
|
static interface |
CfnVolume.TieringPolicyProperty
Describes the data tiering policy for an ONTAP volume.
|
static interface |
CfnVolume.UserAndGroupQuotasProperty
An object specifying how much storage users or groups can use on the volume.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnVolume(Construct scope,
java.lang.String id,
CfnVolumeProps props)
Create a new `AWS::FSx::Volume`.
|
protected |
CfnVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVolume(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrResourceArn()
Returns the volume's Amazon Resource Name (ARN).
|
java.lang.String |
getAttrUuid()
Returns the volume's universally unique identifier (UUID).
|
java.lang.String |
getAttrVolumeId()
Returns the volume's ID.
|
java.lang.String |
getBackupId()
Specifies the ID of the volume backup to use to create a new volume.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getName()
The name of the volume.
|
java.lang.Object |
getOntapConfiguration()
The configuration of an Amazon FSx for NetApp ONTAP volume.
|
java.lang.Object |
getOpenZfsConfiguration()
The configuration of an Amazon FSx for OpenZFS volume.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
java.lang.String |
getVolumeType()
The type of the volume.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setBackupId(java.lang.String value)
Specifies the ID of the volume backup to use to create a new volume.
|
void |
setName(java.lang.String value)
The name of the volume.
|
void |
setOntapConfiguration(CfnVolume.OntapConfigurationProperty value)
The configuration of an Amazon FSx for NetApp ONTAP volume.
|
void |
setOntapConfiguration(IResolvable value)
The configuration of an Amazon FSx for NetApp ONTAP volume.
|
void |
setOpenZfsConfiguration(CfnVolume.OpenZFSConfigurationProperty value)
The configuration of an Amazon FSx for OpenZFS volume.
|
void |
setOpenZfsConfiguration(IResolvable value)
The configuration of an Amazon FSx for OpenZFS volume.
|
void |
setVolumeType(java.lang.String value)
The type of the volume.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnVolume(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnVolume(Construct scope, java.lang.String id, CfnVolumeProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrResourceArn()
Example: arn:aws:fsx:us-east-2:111122223333:volume/fs-0123456789abcdef9/fsvol-01234567891112223
public java.lang.String getAttrUuid()
Example: abcd0123-cd45-ef67-11aa-1111aaaa23bc
public java.lang.String getAttrVolumeId()
Example: fsvol-0123456789abcdefa
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
For more information, see Tag .
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getBackupId()
public void setBackupId(java.lang.String value)
public java.lang.Object getOntapConfiguration()
public void setOntapConfiguration(IResolvable value)
public void setOntapConfiguration(CfnVolume.OntapConfigurationProperty value)
public java.lang.Object getOpenZfsConfiguration()
public void setOpenZfsConfiguration(IResolvable value)
public void setOpenZfsConfiguration(CfnVolume.OpenZFSConfigurationProperty value)
public java.lang.String getVolumeType()
public void setVolumeType(java.lang.String value)