We recommend new projects start with resources from the AWS provider.
aws-native.workspacesinstances.VolumeAssociation
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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
- 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 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 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
- No
Force - NO_FORCE
- Volume
Association Disassociate Mode Force - FORCE
- Volume
Association Disassociate Mode No Force - NO_FORCE
- Force
- FORCE
- No
Force - NO_FORCE
- Force
- FORCE
- No
Force - 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
We recommend new projects start with resources from the AWS provider.