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

****************************
update_package_configuration
****************************



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

  

  Updates the software package configuration.

   

  Requires permission to access the `UpdatePackageConfiguration <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ and `iam\:PassRole <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html>`__ actions.

  

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


  **Request Syntax**
  ::

    response = client.update_package_configuration(
        versionUpdateByJobsConfig={
            'enabled': True|False,
            'roleArn': 'string'
        },
        clientToken='string'
    )
    
  :type versionUpdateByJobsConfig: dict
  :param versionUpdateByJobsConfig: 

    Configuration to manage job's package version reporting. This updates the thing's reserved named shadow that the job targets.

    

  
    - **enabled** *(boolean) --* 

      Indicates whether the Job is enabled or not.

      

    
    - **roleArn** *(string) --* 

      The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved named shadow when the job successfully completes.

      

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

  