Returns the definition of a specific DataBrew job.
Parameters:
-
name
(JobName)
–
The name of the job to be described.
Raises:
Source code in docs_src/capo_databrew/_services/async_data_brew.py
| async def describe_job(
self,
name: "capo_databrew.types.job_name.JobName",
*,
config_overrides: Optional[AsyncDataBrewClientConfig] = None,
) -> "capo_databrew.types.describe_job_response.DescribeJobResponse":
"""<p>Returns the definition of a specific DataBrew job.</p>
Args:
name: <p>The name of the job to be described.</p>
Raises:
capo_databrew.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
capo_databrew.errors.validation_exception.ValidationException: <p>The input parameters for this request failed validation.</p>
capo_databrew.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_databrew.types.describe_job_request.DescribeJobRequest]",
) -> AsyncOperationResponse[
"capo_databrew.types.describe_job_response.DescribeJobResponse"
]:
import capo_databrew._operations.aws_glue_data_brew.describe_job
(
output,
http_response,
) = await capo_databrew._operations.aws_glue_data_brew.describe_job.async_describe_job(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeJob")
)
input_: capo_databrew.types.describe_job_request.DescribeJobRequest = {
"name": name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|