update_job_status
async
¶
update_job_status(
account_id: AccountId,
job_id: JobId,
requested_job_status: RequestedJobStatus,
*,
config_overrides: Optional[AsyncS3ControlClientConfig] = None,
status_update_reason: Optional[JobStatusUpdateReason] = None,
) -> UpdateJobStatusResult
Updates the status for the specified job. Use this operation to confirm that you want to run a job or to cancel an existing job. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
- Permissions
-
To use the
UpdateJobStatusoperation, you must have permission to perform thes3:UpdateJobStatusaction.
Related actions include:
Parameters:
-
account_id(AccountId) –The Amazon Web Services account ID associated with the S3 Batch Operations job.
-
job_id(JobId) –The ID of the job whose status you want to update.
-
requested_job_status(RequestedJobStatus) –The status that you want to move the specified job to.
-
status_update_reason(Optional[JobStatusUpdateReason], default:None) –A description of the reason why you want to change the specified job's status. This field can be any string up to the maximum length.
Raises:
-
BadRequestException– -
InternalServiceException– -
JobStatusException– -
NotFoundException– -
TooManyRequestsException– -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_s3_control/_services/async_s3_control.py
5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 | |