1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. workspacesinstances
  6. VolumeAssociation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::WorkspacesInstances::VolumeAssociation

    Create VolumeAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VolumeAssociation(name: string, args: VolumeAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def VolumeAssociation(resource_name: str,
                          args: VolumeAssociationArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def VolumeAssociation(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          device: Optional[str] = None,
                          volume_id: Optional[str] = None,
                          workspace_instance_id: Optional[str] = None,
                          disassociate_mode: Optional[VolumeAssociationDisassociateMode] = None)
    func NewVolumeAssociation(ctx *Context, name string, args VolumeAssociationArgs, opts ...ResourceOption) (*VolumeAssociation, error)
    public VolumeAssociation(string name, VolumeAssociationArgs args, CustomResourceOptions? opts = null)
    public VolumeAssociation(String name, VolumeAssociationArgs args)
    public VolumeAssociation(String name, VolumeAssociationArgs args, CustomResourceOptions options)
    
    type: aws-native:workspacesinstances:VolumeAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_workspacesinstances_volume_association" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VolumeAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VolumeAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VolumeAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VolumeAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VolumeAssociation resource accepts the following input properties:

    Device string
    The device name for the volume attachment
    VolumeId string
    ID of the volume to attach to the workspace instance
    WorkspaceInstanceId string
    ID of the workspace instance to associate with the volume
    DisassociateMode Pulumi.AwsNative.WorkspacesInstances.VolumeAssociationDisassociateMode
    Mode to use when disassociating the volume
    Device string
    The device name for the volume attachment
    VolumeId string
    ID of the volume to attach to the workspace instance
    WorkspaceInstanceId string
    ID of the workspace instance to associate with the volume
    DisassociateMode VolumeAssociationDisassociateMode
    Mode to use when disassociating the volume
    device string
    The device name for the volume attachment
    volume_id string
    ID of the volume to attach to the workspace instance
    workspace_instance_id string
    ID of the workspace instance to associate with the volume
    disassociate_mode "FORCE" | "NO_FORCE"
    Mode to use when disassociating the volume
    device String
    The device name for the volume attachment
    volumeId String
    ID of the volume to attach to the workspace instance
    workspaceInstanceId String
    ID of the workspace instance to associate with the volume
    disassociateMode VolumeAssociationDisassociateMode
    Mode to use when disassociating the volume
    device string
    The device name for the volume attachment
    volumeId string
    ID of the volume to attach to the workspace instance
    workspaceInstanceId string
    ID of the workspace instance to associate with the volume
    disassociateMode VolumeAssociationDisassociateMode
    Mode to use when disassociating the volume
    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 VolumeAssociationDisassociateMode
    Mode to use when disassociating the volume
    device String
    The device name for the volume attachment
    volumeId String
    ID of the volume to attach to the workspace instance
    workspaceInstanceId String
    ID of the workspace instance to associate with the volume
    disassociateMode "FORCE" | "NO_FORCE"
    Mode to use when disassociating the volume

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VolumeAssociation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VolumeAssociation Resource

    Get an existing VolumeAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): VolumeAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> VolumeAssociation
    func GetVolumeAssociation(ctx *Context, name string, id IDInput, state *VolumeAssociationState, opts ...ResourceOption) (*VolumeAssociation, error)
    public static VolumeAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static VolumeAssociation get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingVolumeAssociation:    type: aws-native:workspacesinstances:VolumeAssociation    get:      id: ${id}
    import {
      to = aws-native_workspacesinstances_volume_association.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state VolumeAssociationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    VolumeAssociationDisassociateMode

    Mode to use when disassociating the volume

    NameValue
    ForceFORCE
    NoForceNO_FORCE
    NameValue
    VolumeAssociationDisassociateModeForceFORCE
    VolumeAssociationDisassociateModeNoForceNO_FORCE
    Value
    FORCE
    NO_FORCE
    NameValue
    ForceFORCE
    NoForceNO_FORCE
    NameValue
    ForceFORCE
    NoForceNO_FORCE
    NameValue
    FORCEFORCE
    NO_FORCENO_FORCE
    Value
    FORCE
    NO_FORCE

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial