Returns the description of an endpoint.
Parameters:
Raises:
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
| async def describe_endpoint(
self,
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
endpoint_name: Optional[
"capo_sagemaker.types.endpoint_name.EndpointName"
] = None,
) -> "capo_sagemaker.types.describe_endpoint_output.DescribeEndpointOutput":
"""<p>Returns the description of an endpoint.</p>
Args:
endpoint_name: <p>The name of the endpoint.</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_input.DescribeEndpointInput]",
) -> AsyncOperationResponse[
"capo_sagemaker.types.describe_endpoint_output.DescribeEndpointOutput"
]:
import capo_sagemaker._operations.sage_maker.describe_endpoint
(
output,
http_response,
) = await capo_sagemaker._operations.sage_maker.describe_endpoint.async_describe_endpoint(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeEndpoint")
)
input_: capo_sagemaker.types.describe_endpoint_input.DescribeEndpointInput = {}
if endpoint_name is not None:
input_["endpoint_name"] = endpoint_name
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|