:doc:`IoT <../../iot>` / Client / add_thing_to_thing_group

************************
add_thing_to_thing_group
************************



.. py:method:: IoT.Client.add_thing_to_thing_group(**kwargs)

  

  Adds a thing to a thing group.

   

  Requires permission to access the `AddThingToThingGroup <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/AddThingToThingGroup>`_  


  **Request Syntax**
  ::

    response = client.add_thing_to_thing_group(
        thingGroupName='string',
        thingGroupArn='string',
        thingName='string',
        thingArn='string',
        overrideDynamicGroups=True|False
    )
    
  :type thingGroupName: string
  :param thingGroupName: 

    The name of the group to which you are adding a thing.

    

  
  :type thingGroupArn: string
  :param thingGroupArn: 

    The ARN of the group to which you are adding a thing.

    

  
  :type thingName: string
  :param thingName: 

    The name of the thing to add to a group.

    

  
  :type thingArn: string
  :param thingArn: 

    The ARN of the thing to add to a group.

    

  
  :type overrideDynamicGroups: boolean
  :param overrideDynamicGroups: 

    Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

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

  