Skip to content

describe_inference_experiment

describe_inference_experiment(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    name: Optional[InferenceExperimentName] = None,
) -> DescribeInferenceExperimentResponse

Returns details about an inference experiment.

Parameters:

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def describe_inference_experiment(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    name: Optional[
        "capo_sagemaker.types.inference_experiment_name.InferenceExperimentName"
    ] = None,
) -> "capo_sagemaker.types.describe_inference_experiment_response.DescribeInferenceExperimentResponse":
    """<p>Returns details about an inference experiment.</p>

    Args:
        name: <p>The name of the inference experiment to describe.</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_inference_experiment_request.DescribeInferenceExperimentRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.describe_inference_experiment_response.DescribeInferenceExperimentResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.describe_inference_experiment

        output, http_response = (
            capo_sagemaker._operations.sage_maker.describe_inference_experiment.describe_inference_experiment(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeInferenceExperiment")
    )
    input_: capo_sagemaker.types.describe_inference_experiment_request.DescribeInferenceExperimentRequest = {}
    if name is not None:
        input_["name"] = name

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output