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/async_glue.py
| async def batch_get_jobs(
self,
job_names: "capo_glue.types.job_name_list.JobNameList",
*,
config_overrides: Optional[AsyncGlueClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_glue.types.batch_get_jobs_request.BatchGetJobsRequest]",
) -> AsyncOperationResponse[
"capo_glue.types.batch_get_jobs_response.BatchGetJobsResponse"
]:
import capo_glue._operations.aws_glue.batch_get_jobs
(
output,
http_response,
) = await capo_glue._operations.aws_glue.batch_get_jobs.async_batch_get_jobs(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|