Skip to content

get_job_bookmark async

get_job_bookmark(
    job_name: JobName,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    run_id: Optional[RunId] = None,
) -> GetJobBookmarkResponse

Returns information on a job bookmark entry.

For more information about enabling and using job bookmarks, see:

Parameters:

  • job_name (JobName) –

    The name of the job in question.

  • run_id (Optional[RunId], default: None ) –

    The unique run identifier associated with this job run.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def get_job_bookmark(
    self,
    job_name: "capo_glue.types.job_name.JobName",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    run_id: Optional["capo_glue.types.run_id.RunId"] = None,
) -> "capo_glue.types.get_job_bookmark_response.GetJobBookmarkResponse":
    """<p>Returns information on a job bookmark entry.</p> <p>For more information about enabling and using job bookmarks, see:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-continuations.html">Tracking processed data using job bookmarks</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Job parameters used by Glue</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-job.html#aws-glue-api-jobs-job-Job">Job structure</a> </p> </li> </ul>

    Args:
        job_name: <p>The name of the job in question.</p>
        run_id: <p>The unique run identifier associated with this job run.</p>

    Raises:
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.validation_exception.ValidationException: <p>A value could not be validated.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.get_job_bookmark_request.GetJobBookmarkRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.get_job_bookmark_response.GetJobBookmarkResponse"
    ]:
        import capo_glue._operations.aws_glue.get_job_bookmark

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.get_job_bookmark.async_get_job_bookmark(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetJobBookmark")
    )
    input_: capo_glue.types.get_job_bookmark_request.GetJobBookmarkRequest = {
        "job_name": job_name
    }
    if run_id is not None:
        input_["run_id"] = run_id

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output