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

*************************
create_provisioning_claim
*************************



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

  

  Creates a provisioning claim.

   

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


  **Request Syntax**
  ::

    response = client.create_provisioning_claim(
        templateName='string'
    )
    
  :type templateName: string
  :param templateName: **[REQUIRED]** 

    The name of the provisioning template to use.

    

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

    
    ::

      {
          'certificateId': 'string',
          'certificatePem': 'string',
          'keyPair': {
              'PublicKey': 'string',
              'PrivateKey': 'string'
          },
          'expiration': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **certificateId** *(string) --* 

        The ID of the certificate.

        
      

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

        The provisioning claim certificate.

        
      

      - **keyPair** *(dict) --* 

        The provisioning claim key pair.

        
        

        - **PublicKey** *(string) --* 

          The public key.

          
        

        - **PrivateKey** *(string) --* 

          The private key.

          
    
      

      - **expiration** *(datetime) --* 

        The provisioning claim expiration time.

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

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

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

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

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

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

  