Skip to content

batch_get_jobs

batch_get_jobs(
    job_names: JobNameList, *, config_overrides: Optional[GlueClientConfig] = None
) -> BatchGetJobsResponse

Returns a list of resource metadata for a given list of job names. After calling the ListJobs operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

Parameters:

  • job_names (JobNameList) –

    A list of job names, which might be the names returned from the ListJobs operation.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def batch_get_jobs(
    self,
    job_names: "capo_glue.types.job_name_list.JobNameList",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.batch_get_jobs_response.BatchGetJobsResponse":
    """<p>Returns a list of resource metadata for a given list of job names. After calling the <code>ListJobs</code> operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags. </p>

    Args:
        job_names: <p>A list of job names, which might be the names returned from the <code>ListJobs</code> operation.</p>

    Raises:
        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.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.batch_get_jobs_request.BatchGetJobsRequest]",
    ) -> OperationResponse[
        "capo_glue.types.batch_get_jobs_response.BatchGetJobsResponse"
    ]:
        import capo_glue._operations.aws_glue.batch_get_jobs

        output, http_response = (
            capo_glue._operations.aws_glue.batch_get_jobs.batch_get_jobs(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_glue.types.batch_get_jobs_response.BatchGetJobsResponse",
    ) -> dict[str, Any]:
        import capo_glue.types.batch_get_jobs_response

        return capo_glue.types.batch_get_jobs_response.redact_sensitive(output)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("BatchGetJobs", redact_output=_redact_output),
    )
    input_: capo_glue.types.batch_get_jobs_request.BatchGetJobsRequest = {
        "job_names": job_names
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output