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

********************************************
disassociate_traffic_distribution_group_user
********************************************



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

  

  Disassociates an agent from a traffic distribution group. This API can be called only in the Region where the traffic distribution group is created.

  

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


  **Request Syntax**
  ::

    response = client.disassociate_traffic_distribution_group_user(
        TrafficDistributionGroupId='string',
        UserId='string',
        InstanceId='string'
    )
    
  :type TrafficDistributionGroupId: string
  :param TrafficDistributionGroupId: **[REQUIRED]** 

    The identifier of the traffic distribution group. This can be the ID or the ARN of the traffic distribution group.

    

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

    The identifier for the user. This can be the ID or the ARN of the user.

    

  
  :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.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

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

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

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

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

  