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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesinstances-volumeassociation.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesinstances-volumeassociation.html#cfn-workspacesinstances-volumeassociation-device

disassociate_mode

Mode to use when disassociating the volume.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesinstances-volumeassociation.html#cfn-workspacesinstances-volumeassociation-disassociatemode

volume_id

ID of the volume to attach to the workspace instance.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesinstances-volumeassociation.html#cfn-workspacesinstances-volumeassociation-volumeid

workspace_instance_id

ID of the workspace instance to associate with the volume.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesinstances-volumeassociation.html#cfn-workspacesinstances-volumeassociation-workspaceinstanceid