Gets information about a labeling job.
Parameters:
-
labeling_job_name
(Optional[LabelingJobName], default:
None
)
–
The name of the labeling job to return information for.
Raises:
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
| def describe_labeling_job(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
labeling_job_name: Optional[
"capo_sagemaker.types.labeling_job_name.LabelingJobName"
] = None,
) -> "capo_sagemaker.types.describe_labeling_job_response.DescribeLabelingJobResponse":
"""<p>Gets information about a labeling job.</p>
Args:
labeling_job_name: <p>The name of the labeling job to return information for.</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_labeling_job_request.DescribeLabelingJobRequest]",
) -> OperationResponse[
"capo_sagemaker.types.describe_labeling_job_response.DescribeLabelingJobResponse"
]:
import capo_sagemaker._operations.sage_maker.describe_labeling_job
output, http_response = (
capo_sagemaker._operations.sage_maker.describe_labeling_job.describe_labeling_job(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeLabelingJob")
)
input_: capo_sagemaker.types.describe_labeling_job_request.DescribeLabelingJobRequest = {}
if labeling_job_name is not None:
input_["labeling_job_name"] = labeling_job_name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|