We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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
- Volume
Id string - ID of the volume to attach to the workspace instance
- Workspace
Instance stringId - ID of the workspace instance to associate with the volume
- Disassociate
Mode Pulumi.Aws Native. Workspaces Instances. Volume Association Disassociate Mode - 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 stringId - ID of the workspace instance to associate with the volume
- Disassociate
Mode VolumeAssociation Disassociate Mode - 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_ stringid - 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
- volume
Id String - ID of the volume to attach to the workspace instance
- workspace
Instance StringId - ID of the workspace instance to associate with the volume
- disassociate
Mode VolumeAssociation Disassociate Mode - 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 stringId - ID of the workspace instance to associate with the volume
- disassociate
Mode VolumeAssociation Disassociate Mode - 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_ strid - ID of the workspace instance to associate with the volume
- disassociate_
mode VolumeAssociation Disassociate Mode - 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 StringId - ID of the workspace instance to associate with the volume
- disassociate
Mode "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) -> VolumeAssociationfunc 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
| Name | Value |
|---|---|
| Force | FORCE |
| No | NO_FORCE |
| Name | Value |
|---|---|
| Volume | FORCE |
| Volume | NO_FORCE |
| Value |
|---|
FORCE |
NO_FORCE |
| Name | Value |
|---|---|
| Force | FORCE |
| No | NO_FORCE |
| Name | Value |
|---|---|
| Force | FORCE |
| No | NO_FORCE |
| Name | Value |
|---|---|
| FORCE | FORCE |
| NO_FORCE | NO_FORCE |
| Value |
|---|
FORCE |
NO_FORCE |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi