async def get_job_tagging(
self,
account_id: "capo_s3_control.types.account_id.AccountId",
job_id: "capo_s3_control.types.job_id.JobId",
*,
config_overrides: Optional[AsyncS3ControlClientConfig] = None,
) -> "capo_s3_control.types.get_job_tagging_result.GetJobTaggingResult":
"""<p>Returns the tags on an S3 Batch Operations job. </p> <dl> <dt>Permissions</dt> <dd> <p>To use the <code>GetJobTagging</code> operation, you must have permission to perform the <code>s3:GetJobTagging</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-managing-jobs.html#batch-ops-job-tags">Controlling access and labeling jobs using tags</a> in the <i>Amazon S3 User Guide</i>.</p> </dd> </dl> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutJobTagging.html">PutJobTagging</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteJobTagging.html">DeleteJobTagging</a> </p> </li> </ul>
Args:
account_id: <p>The Amazon Web Services account ID associated with the S3 Batch Operations job.</p>
job_id: <p>The ID for the S3 Batch Operations job whose tags you want to retrieve.</p>
Raises:
capo_s3_control.errors.internal_service_exception.InternalServiceException: <p></p>
capo_s3_control.errors.not_found_exception.NotFoundException: <p></p>
capo_s3_control.errors.too_many_requests_exception.TooManyRequestsException: <p></p>
capo_s3_control.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_s3_control.types.get_job_tagging_request.GetJobTaggingRequest]",
) -> AsyncOperationResponse[
"capo_s3_control.types.get_job_tagging_result.GetJobTaggingResult"
]:
import capo_s3_control._operations.awss3_control_service_v20180820.get_job_tagging
(
output,
http_response,
) = await capo_s3_control._operations.awss3_control_service_v20180820.get_job_tagging.async_get_job_tagging(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetJobTagging")
)
input_: capo_s3_control.types.get_job_tagging_request.GetJobTaggingRequest = {
"account_id": account_id,
"job_id": job_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output