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

*****************************
start_thing_registration_task
*****************************



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

  

  Creates a bulk thing provisioning task.

   

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


  **Request Syntax**
  ::

    response = client.start_thing_registration_task(
        templateBody='string',
        inputFileBucket='string',
        inputFileKey='string',
        roleArn='string'
    )
    
  :type templateBody: string
  :param templateBody: **[REQUIRED]** 

    The provisioning template.

    

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

    The S3 bucket that contains the input file.

    

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

    The name of input file within the S3 bucket. This file contains a newline delimited JSON file. Each line contains the parameter values to provision one device (thing).

    

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

    The IAM role ARN that grants permission the input file.

    

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

    
    ::

      {
          'taskId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **taskId** *(string) --* 

        The bulk thing provisioning task ID.

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

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

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

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

  