update_job
async
¶
update_job(
job_id: JobId,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 | |