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

**************
update_package
**************



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

  

  Updates the supported fields for a specific software package.

   

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


  **Request Syntax**
  ::

    response = client.update_package(
        packageName='string',
        description='string',
        defaultVersionName='string',
        unsetDefaultVersion=True|False,
        clientToken='string'
    )
    
  :type packageName: string
  :param packageName: **[REQUIRED]** 

    The name of the target software package.

    

  
  :type description: string
  :param description: 

    The package description.

    

  
  :type defaultVersionName: string
  :param defaultVersionName: 

    The name of the default package version.

     

    **Note:** You cannot name a ``defaultVersion`` and set ``unsetDefaultVersion`` equal to ``true`` at the same time.

    

  
  :type unsetDefaultVersion: boolean
  :param unsetDefaultVersion: 

    Indicates whether you want to remove the named default package version from the software package. Set as ``true`` to remove the default package version.

     

    **Note:** You cannot name a ``defaultVersion`` and set ``unsetDefaultVersion`` equal to ``true`` at the same time.

    

  
  :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**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **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.ResourceNotFoundException`

  