:doc:`Connect <../../connect>` / Client / disassociate_workspace

**********************
disassociate_workspace
**********************



.. py:method:: Connect.Client.disassociate_workspace(**kwargs)

  

  Removes the association between a workspace and one or more users or routing profiles.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociateWorkspace>`_  


  **Request Syntax**
  ::

    response = client.disassociate_workspace(
        InstanceId='string',
        WorkspaceId='string',
        ResourceArns=[
            'string',
        ]
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    The identifier of the workspace.

    

  
  :type ResourceArns: list
  :param ResourceArns: **[REQUIRED]** 

    The Amazon Resource Names (ARNs) of the resources to disassociate from the workspace.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'SuccessfulList': [
              {
                  'ResourceArn': 'string'
              },
          ],
          'FailedList': [
              {
                  'ResourceArn': 'string',
                  'ErrorCode': 'string',
                  'ErrorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SuccessfulList** *(list) --* 

        A list of resources that were successfully disassociated from the workspace.

        
        

        - *(dict) --* 

          Contains information about a resource that was successfully associated with a workspace in a batch operation.

          
          

          - **ResourceArn** *(string) --* 

            The Amazon Resource Name (ARN) of the resource that was successfully associated.

            
      
    
      

      - **FailedList** *(list) --* 

        A list of resources that failed to be disassociated from the workspace, including error details.

        
        

        - *(dict) --* 

          Contains information about a resource that failed to be associated with a workspace in a batch operation.

          
          

          - **ResourceArn** *(string) --* 

            The Amazon Resource Name (ARN) of the resource that failed to be associated.

            
          

          - **ErrorCode** *(string) --* 

            The error code indicating why the association failed.

            
          

          - **ErrorMessage** *(string) --* 

            An error message describing why the association failed.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

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

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

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  