Returns a description of a processing job.
Parameters:
-
processing_job_name
(Optional[ProcessingJobName], default:
None
)
–
The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.
Raises:
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
| def describe_processing_job(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
processing_job_name: Optional[
"capo_sagemaker.types.processing_job_name.ProcessingJobName"
] = None,
) -> "capo_sagemaker.types.describe_processing_job_response.DescribeProcessingJobResponse":
"""<p>Returns a description of a processing job.</p>
Args:
processing_job_name: <p>The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.</p>
Raises:
capo_sagemaker.errors.resource_not_found.ResourceNotFound: <p>Resource being access is not found.</p>
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sagemaker.types.describe_processing_job_request.DescribeProcessingJobRequest]",
) -> OperationResponse[
"capo_sagemaker.types.describe_processing_job_response.DescribeProcessingJobResponse"
]:
import capo_sagemaker._operations.sage_maker.describe_processing_job
output, http_response = (
capo_sagemaker._operations.sage_maker.describe_processing_job.describe_processing_job(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeProcessingJob")
)
input_: capo_sagemaker.types.describe_processing_job_request.DescribeProcessingJobRequest = {}
if processing_job_name is not None:
input_["processing_job_name"] = processing_job_name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|