Skip to content

describe_endpoint_config

describe_endpoint_config(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    endpoint_config_name: Optional[EndpointConfigName] = None,
) -> DescribeEndpointConfigOutput

Returns the description of an endpoint configuration created using the CreateEndpointConfig API.

Parameters:

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def describe_endpoint_config(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    endpoint_config_name: Optional[
        "capo_sagemaker.types.endpoint_config_name.EndpointConfigName"
    ] = None,
) -> "capo_sagemaker.types.describe_endpoint_config_output.DescribeEndpointConfigOutput":
    """<p>Returns the description of an endpoint configuration created using the <code>CreateEndpointConfig</code> API.</p>

    Args:
        endpoint_config_name: <p>The name of the endpoint configuration.</p>

    Raises:
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.describe_endpoint_config_input.DescribeEndpointConfigInput]",
    ) -> OperationResponse[
        "capo_sagemaker.types.describe_endpoint_config_output.DescribeEndpointConfigOutput"
    ]:
        import capo_sagemaker._operations.sage_maker.describe_endpoint_config

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeEndpointConfig")
    )
    input_: capo_sagemaker.types.describe_endpoint_config_input.DescribeEndpointConfigInput = {}
    if endpoint_config_name is not None:
        input_["endpoint_config_name"] = endpoint_config_name

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