Skip to content

describe_endpoint_config async

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

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

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