CfnVolumeAssociationProps
- class aws_cdk.aws_workspacesinstances.CfnVolumeAssociationProps(*, device, volume_id, workspace_instance_id, disassociate_mode=None)
Bases:
object
Properties for defining a
CfnVolumeAssociation
.- Parameters:
device (
str
) – The device name for the volume attachment.volume_id (
str
) – ID of the volume to attach to the workspace instance.workspace_instance_id (
str
) – ID of the workspace instance to associate with the volume.disassociate_mode (
Optional
[str
]) – Mode to use when disassociating the volume.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_workspacesinstances as workspacesinstances cfn_volume_association_props = workspacesinstances.CfnVolumeAssociationProps( device="device", volume_id="volumeId", workspace_instance_id="workspaceInstanceId", # the properties below are optional disassociate_mode="disassociateMode" )
Attributes
- device
The device name for the volume attachment.
- disassociate_mode
Mode to use when disassociating the volume.
- volume_id
ID of the volume to attach to the workspace instance.
- workspace_instance_id
ID of the workspace instance to associate with the volume.