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
5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 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 | |