def describe_job_run(
self,
id: "capo_emr_containers.types.resource_id_string.ResourceIdString",
virtual_cluster_id: "capo_emr_containers.types.resource_id_string.ResourceIdString",
*,
config_overrides: Optional[EMRcontainersClientConfig] = None,
) -> "capo_emr_containers.types.describe_job_run_response.DescribeJobRunResponse":
"""<p>Displays detailed information about a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.</p>
Args:
id: <p>The ID of the job run request. </p>
virtual_cluster_id: <p>The ID of the virtual cluster for which the job run is submitted.</p>
Raises:
capo_emr_containers.errors.internal_server_exception.InternalServerException: <p>This is an internal server exception.</p>
capo_emr_containers.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_emr_containers.errors.validation_exception.ValidationException: <p>There are invalid parameters in the client request.</p>
capo_emr_containers.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_emr_containers.types.describe_job_run_request.DescribeJobRunRequest]",
) -> OperationResponse[
"capo_emr_containers.types.describe_job_run_response.DescribeJobRunResponse"
]:
import capo_emr_containers._operations.aws_chicago_web_service.describe_job_run
output, http_response = (
capo_emr_containers._operations.aws_chicago_web_service.describe_job_run.describe_job_run(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_emr_containers.types.describe_job_run_response.DescribeJobRunResponse",
) -> dict[str, Any]:
import capo_emr_containers.types.describe_job_run_response
return capo_emr_containers.types.describe_job_run_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeJobRun", redact_output=_redact_output),
)
input_: capo_emr_containers.types.describe_job_run_request.DescribeJobRunRequest = {
"id": id,
"virtual_cluster_id": virtual_cluster_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output