Skip to content

describe_labeling_job async

describe_labeling_job(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    labeling_job_name: Optional[LabelingJobName] = None,
) -> DescribeLabelingJobResponse

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/async_sage_maker.py
async def describe_labeling_job(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sagemaker.types.describe_labeling_job_request.DescribeLabelingJobRequest]",
    ) -> AsyncOperationResponse[
        "capo_sagemaker.types.describe_labeling_job_response.DescribeLabelingJobResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.describe_labeling_job

        (
            output,
            http_response,
        ) = await capo_sagemaker._operations.sage_maker.describe_labeling_job.async_describe_labeling_job(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output