Skip to content

describe_global_inference_gateway async

describe_global_inference_gateway(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    identifier: Optional[GlobalInferenceGatewayIdentifier] = None,
) -> DescribeGlobalInferenceGatewayResponse

Retrieves information about a global inference gateway, including its status, endpoints, and routing configuration. To list the in-cluster inference gateways of the global inference gateway, use ListInferenceGateways. To read the tags of the global inference gateway, use ListTags.

Parameters:

Raises:

Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
async def describe_global_inference_gateway(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    identifier: Optional[
        "capo_sagemaker.types.global_inference_gateway_identifier.GlobalInferenceGatewayIdentifier"
    ] = None,
) -> "capo_sagemaker.types.describe_global_inference_gateway_response.DescribeGlobalInferenceGatewayResponse":
    """<p>Retrieves information about a global inference gateway, including its status, endpoints, and routing configuration. To list the in-cluster inference gateways of the global inference gateway, use <code>ListInferenceGateways</code>. To read the tags of the global inference gateway, use <code>ListTags</code>.</p>

    Args:
        identifier: <p>The name, Amazon Resource Name (ARN), or ID of the global inference gateway.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sagemaker.types.describe_global_inference_gateway_request.DescribeGlobalInferenceGatewayRequest]",
    ) -> AsyncOperationResponse[
        "capo_sagemaker.types.describe_global_inference_gateway_response.DescribeGlobalInferenceGatewayResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.describe_global_inference_gateway

        (
            output,
            http_response,
        ) = await capo_sagemaker._operations.sage_maker.describe_global_inference_gateway.async_describe_global_inference_gateway(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeGlobalInferenceGateway")
    )
    input_: capo_sagemaker.types.describe_global_inference_gateway_request.DescribeGlobalInferenceGatewayRequest = {}
    if identifier is not None:
        input_["identifier"] = identifier

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output