# CfnVolumeProps

Properties for defining a `CfnVolume`.

Extends: CfnVolumeProps
Used as props by: CfnVolume

- Source: Generated code
- Type last changed: v2.203.0 · 1 Jul 2025

## Example

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

  // the properties below are optional
  encrypted: false,
  iops: 123,
  kmsKeyId: 'kmsKeyId',
  sizeInGb: 123,
  snapshotId: 'snapshotId',
  tagSpecifications: [{
    resourceType: 'resourceType',
    tags: [{
      key: 'key',
      value: 'value',
    }],
  }],
  throughput: 123,
  volumeType: 'volumeType',
};
```

## Properties

- `availabilityZone`: string (required) — The Availability Zone in which to create the volume.

- `encrypted`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the volume should be encrypted.

- `iops`: number — The number of I/O operations per second (IOPS).

- `kmsKeyId`: string — The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.

- `sizeInGb`: number — The size of the volume, in GiBs.

- `snapshotId`: string — The snapshot from which to create the volume.

- `tagSpecifications`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVolume.TagSpecificationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_workspacesinstances.CfnVolume.TagSpecificationProperty.html)[] — The tags passed to EBS volume.

- `throughput`: number — The throughput to provision for a volume, with a maximum of 1,000 MiB/s.

- `volumeType`: string — The volume type.
