async def describe_managed_endpoint(
self,
id: "capo_emr_containers.types.resource_id_string.ResourceIdString",
virtual_cluster_id: "capo_emr_containers.types.resource_id_string.ResourceIdString",
*,
config_overrides: Optional[AsyncEMRcontainersClientConfig] = None,
) -> "capo_emr_containers.types.describe_managed_endpoint_response.DescribeManagedEndpointResponse":
"""<p>Displays detailed information about a managed endpoint. A managed endpoint is a gateway that connects Amazon EMR Studio to Amazon EMR on EKS so that Amazon EMR Studio can communicate with your virtual cluster.</p>
Args:
id: <p>This output displays ID of the managed endpoint.</p>
virtual_cluster_id: <p>The ID of the endpoint's virtual cluster.</p>
Raises:
capo_emr_containers.errors.internal_server_exception.InternalServerException: <p>This is an internal server exception.</p>
capo_emr_containers.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_emr_containers.errors.validation_exception.ValidationException: <p>There are invalid parameters in the client request.</p>
capo_emr_containers.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_emr_containers.types.describe_managed_endpoint_request.DescribeManagedEndpointRequest]",
) -> AsyncOperationResponse[
"capo_emr_containers.types.describe_managed_endpoint_response.DescribeManagedEndpointResponse"
]:
import capo_emr_containers._operations.aws_chicago_web_service.describe_managed_endpoint
(
output,
http_response,
) = await capo_emr_containers._operations.aws_chicago_web_service.describe_managed_endpoint.async_describe_managed_endpoint(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_emr_containers.types.describe_managed_endpoint_response.DescribeManagedEndpointResponse",
) -> dict[str, Any]:
import capo_emr_containers.types.describe_managed_endpoint_response
return capo_emr_containers.types.describe_managed_endpoint_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeManagedEndpoint", redact_output=_redact_output),
)
input_: capo_emr_containers.types.describe_managed_endpoint_request.DescribeManagedEndpointRequest = {
"id": id,
"virtual_cluster_id": virtual_cluster_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output