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

**************
register_thing
**************



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

  

  Provisions a thing in the device registry. RegisterThing calls other IoT control plane APIs. These calls might exceed your account level `IoT Throttling Limits <https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_iot>`__ and cause throttle errors. Please contact `Amazon Web Services Customer Support <https://console.aws.amazon.com/support/home>`__ to raise your throttling limits if necessary.

   

  Requires permission to access the `RegisterThing <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/RegisterThing>`_  


  **Request Syntax**
  ::

    response = client.register_thing(
        templateBody='string',
        parameters={
            'string': 'string'
        }
    )
    
  :type templateBody: string
  :param templateBody: **[REQUIRED]** 

    The provisioning template. See `Provisioning Devices That Have Device Certificates <https://docs.aws.amazon.com/iot/latest/developerguide/provision-w-cert.html>`__ for more information.

    

  
  :type parameters: dict
  :param parameters: 

    The parameters for provisioning a thing. See `Provisioning Templates <https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html>`__ for more information.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'certificatePem': 'string',
          'resourceArns': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **certificatePem** *(string) --* 

        The certificate data, in PEM format.

        
      

      - **resourceArns** *(dict) --* 

        ARNs for the generated resources.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

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

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

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

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

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

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

  