aws-cdk-lib.aws_fsx.CfnVolumeProps

interface CfnVolumeProps

LanguageType name
.NETAmazon.CDK.AWS.FSx.CfnVolumeProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsfsx#CfnVolumeProps
Javasoftware.amazon.awscdk.services.fsx.CfnVolumeProps
Pythonaws_cdk.aws_fsx.CfnVolumeProps
TypeScript aws-cdk-lib » aws_fsx » CfnVolumeProps

Properties for defining a CfnVolume.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fsx as fsx } from 'aws-cdk-lib';
const cfnVolumeProps: fsx.CfnVolumeProps = {
  name: 'name',

  // the properties below are optional
  backupId: 'backupId',
  ontapConfiguration: {
    sizeInMegabytes: 'sizeInMegabytes',
    storageVirtualMachineId: 'storageVirtualMachineId',

    // the properties below are optional
    copyTagsToBackups: 'copyTagsToBackups',
    junctionPath: 'junctionPath',
    ontapVolumeType: 'ontapVolumeType',
    securityStyle: 'securityStyle',
    snapshotPolicy: 'snapshotPolicy',
    storageEfficiencyEnabled: 'storageEfficiencyEnabled',
    tieringPolicy: {
      coolingPeriod: 123,
      name: 'name',
    },
  },
  openZfsConfiguration: {
    parentVolumeId: 'parentVolumeId',

    // the properties below are optional
    copyTagsToSnapshots: false,
    dataCompressionType: 'dataCompressionType',
    nfsExports: [{
      clientConfigurations: [{
        clients: 'clients',
        options: ['options'],
      }],
    }],
    options: ['options'],
    originSnapshot: {
      copyStrategy: 'copyStrategy',
      snapshotArn: 'snapshotArn',
    },
    readOnly: false,
    recordSizeKiB: 123,
    storageCapacityQuotaGiB: 123,
    storageCapacityReservationGiB: 123,
    userAndGroupQuotas: [{
      id: 123,
      storageCapacityQuotaGiB: 123,
      type: 'type',
    }],
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  volumeType: 'volumeType',
};

Properties

NameTypeDescription
namestringThe name of the volume.
backupId?stringSpecifies the ID of the volume backup to use to create a new volume.
ontapConfiguration?IResolvable | OntapConfigurationPropertyThe configuration of an Amazon FSx for NetApp ONTAP volume.
openZfsConfiguration?IResolvable | OpenZFSConfigurationPropertyThe configuration of an Amazon FSx for OpenZFS volume.
tags?CfnTag[]An array of key-value pairs to apply to this resource.
volumeType?stringThe type of the volume.

name

Type: string

The name of the volume.


backupId?

Type: string (optional)

Specifies the ID of the volume backup to use to create a new volume.


ontapConfiguration?

Type: IResolvable | OntapConfigurationProperty (optional)

The configuration of an Amazon FSx for NetApp ONTAP volume.


openZfsConfiguration?

Type: IResolvable | OpenZFSConfigurationProperty (optional)

The configuration of an Amazon FSx for OpenZFS volume.


tags?

Type: CfnTag[] (optional)

An array of key-value pairs to apply to this resource.

For more information, see Tag .


volumeType?

Type: string (optional)

The type of the volume.