Class 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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::FSx::Volume.

      Parameters:
      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.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrResourceArn

      @Stability(Stable) @NotNull public String getAttrResourceArn()
      Returns the volume's Amazon Resource Name (ARN).

      Example: arn:aws:fsx:us-east-2:111122223333:volume/fs-0123456789abcdef9/fsvol-01234567891112223

    • getAttrUuid

      @Stability(Stable) @NotNull public String getAttrUuid()
      Returns the volume's universally unique identifier (UUID).

      Example: abcd0123-cd45-ef67-11aa-1111aaaa23bc

    • getAttrVolumeId

      @Stability(Stable) @NotNull public String getAttrVolumeId()
      Returns the volume's ID.

      Example: fsvol-0123456789abcdefa

    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the volume.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the volume.
    • getBackupId

      @Stability(Stable) @Nullable public String getBackupId()
      Specifies the ID of the volume backup to use to create a new volume.
    • setBackupId

      @Stability(Stable) public void setBackupId(@Nullable String value)
      Specifies the ID of the volume backup to use to create a new volume.
    • getOntapConfiguration

      @Stability(Stable) @Nullable public Object getOntapConfiguration()
      The configuration of an Amazon FSx for NetApp ONTAP volume.
    • setOntapConfiguration

      @Stability(Stable) public void setOntapConfiguration(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public Object getOpenZfsConfiguration()
      The configuration of an Amazon FSx for OpenZFS volume.
    • setOpenZfsConfiguration

      @Stability(Stable) public void setOpenZfsConfiguration(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public String getVolumeType()
      The type of the volume.
    • setVolumeType

      @Stability(Stable) public void setVolumeType(@Nullable String value)
      The type of the volume.