:doc:`WorkspacesInstances <../../workspaces-instances>` / Client / associate_volume

****************
associate_volume
****************



.. py:method:: WorkspacesInstances.Client.associate_volume(**kwargs)

  

  Attaches a volume to a WorkSpace Instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-instances-2022-07-26/AssociateVolume>`_  


  **Request Syntax**
  ::

    response = client.associate_volume(
        WorkspaceInstanceId='string',
        VolumeId='string',
        Device='string'
    )
    
  :type WorkspaceInstanceId: string
  :param WorkspaceInstanceId: **[REQUIRED]** 

    WorkSpace Instance to attach volume to.

    

  
  :type VolumeId: string
  :param VolumeId: **[REQUIRED]** 

    Volume to be attached.

    

  
  :type Device: string
  :param Device: **[REQUIRED]** 

    Device path for volume attachment.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      Confirms volume attachment.

      
  
  **Exceptions**
  
  *   :py:class:`WorkspacesInstances.Client.exceptions.ValidationException`

  
  *   :py:class:`WorkspacesInstances.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`WorkspacesInstances.Client.exceptions.ThrottlingException`

  
  *   :py:class:`WorkspacesInstances.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`WorkspacesInstances.Client.exceptions.InternalServerException`

  
  *   :py:class:`WorkspacesInstances.Client.exceptions.ConflictException`

  