Skip to content

get_job_tagging

get_job_tagging(
    account_id: AccountId,
    job_id: JobId,
    *,
    config_overrides: Optional[S3ControlClientConfig] = None,
) -> GetJobTaggingResult

Returns the tags on an S3 Batch Operations job.

Permissions

To use the GetJobTagging operation, you must have permission to perform the s3:GetJobTagging action. For more information, see Controlling access and labeling jobs using tags in the Amazon S3 User Guide.

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 for the S3 Batch Operations job whose tags you want to retrieve.

Raises:

Source code in docs_src/capo_s3_control/_services/s3_control.py
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[S3ControlClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_s3_control.types.get_job_tagging_request.GetJobTaggingRequest]",
    ) -> OperationResponse[
        "capo_s3_control.types.get_job_tagging_result.GetJobTaggingResult"
    ]:
        import capo_s3_control._operations.awss3_control_service_v20180820.get_job_tagging

        output, http_response = (
            capo_s3_control._operations.awss3_control_service_v20180820.get_job_tagging.get_job_tagging(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output