update_job
¶
update_job(
job_id: JobId,
*,
config_overrides: Optional[IoTClientConfig] = None,
description: Optional[JobDescription] = None,
presigned_url_config: Optional[PresignedUrlConfig] = None,
job_executions_rollout_config: Optional[JobExecutionsRolloutConfig] = None,
abort_config: Optional[AbortConfig] = None,
timeout_config: Optional[TimeoutConfig] = None,
namespace_id: Optional[NamespaceId] = None,
job_executions_retry_config: Optional[JobExecutionsRetryConfig] = None,
) -> None
Updates supported fields of the specified job.
Requires permission to access the UpdateJob action.
Parameters:
-
job_id(JobId) –The ID of the job to be updated.
-
description(Optional[JobDescription], default:None) –A short text description of the job.
-
presigned_url_config(Optional[PresignedUrlConfig], default:None) –Configuration information for pre-signed S3 URLs.
-
job_executions_rollout_config(Optional[JobExecutionsRolloutConfig], default:None) –Allows you to create a staged rollout of the job.
-
abort_config(Optional[AbortConfig], default:None) –Allows you to create criteria to abort a job.
-
timeout_config(Optional[TimeoutConfig], default:None) –Specifies the amount of time each device has to finish its execution of the job. The timer is started when the job execution status is set to
IN_PROGRESS. If the job execution status is not set to another terminal state before the time expires, it will be automatically set toTIMED_OUT. -
namespace_id(Optional[NamespaceId], default:None) –The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/The
namespaceIdfeature is only supported by IoT Greengrass at this time. For more information, see Setting up IoT Greengrass core devices. -
job_executions_retry_config(Optional[JobExecutionsRetryConfig], default:None) –Allows you to create the criteria to retry a job.
Raises:
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 | |