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

**************
create_package
**************



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

  

  Creates an IoT software package that can be deployed to your fleet.

   

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

  

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


  **Request Syntax**
  ::

    response = client.create_package(
        packageName='string',
        description='string',
        tags={
            'string': 'string'
        },
        clientToken='string'
    )
    
  :type packageName: string
  :param packageName: **[REQUIRED]** 

    The name of the new software package.

    

  
  :type description: string
  :param description: 

    A summary of the package being created. This can be used to outline the package's contents or purpose.

    

  
  :type tags: dict
  :param tags: 

    Metadata that can be used to manage the package.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type clientToken: string
  :param clientToken: 

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'packageName': 'string',
          'packageArn': 'string',
          'description': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **packageName** *(string) --* 

        The name of the software package.

        
      

      - **packageArn** *(string) --* 

        The Amazon Resource Name (ARN) for the package.

        
      

      - **description** *(string) --* 

        The package description.

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

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

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

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

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

  