# CfnVolumeAssociationProps

Properties for defining a `CfnVolumeAssociation`.

Extends: CfnVolumeAssociationProps
Used as props by: CfnVolumeAssociation

- 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 cfnVolumeAssociationProps: workspacesinstances.CfnVolumeAssociationProps = {
  device: 'device',
  volumeId: 'volumeId',
  workspaceInstanceId: 'workspaceInstanceId',

  // the properties below are optional
  disassociateMode: 'disassociateMode',
};
```

## Properties

- `device`: string (required) — The device name for the volume attachment.

- `disassociateMode`: string — Mode to use when disassociating the volume.

- `volumeId`: string (required) — ID of the volume to attach to the workspace instance.

- `workspaceInstanceId`: string (required) — ID of the workspace instance to associate with the volume.
