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

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

AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 by Pulumi

aws-native.workspacesinstances.VolumeAssociation

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 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.
    
    

    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
    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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    VolumeAssociationDisassociateMode, VolumeAssociationDisassociateModeArgs

    Force
    FORCE
    NoForce
    NO_FORCE
    VolumeAssociationDisassociateModeForce
    FORCE
    VolumeAssociationDisassociateModeNoForce
    NO_FORCE
    Force
    FORCE
    NoForce
    NO_FORCE
    Force
    FORCE
    NoForce
    NO_FORCE
    FORCE
    FORCE
    NO_FORCE
    NO_FORCE
    "FORCE"
    FORCE
    "NO_FORCE"
    NO_FORCE

    Package Details

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

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

    AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 by Pulumi