Skip to content

describe_global_inference_gateway

describe_global_inference_gateway(
    *,
    config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
def describe_global_inference_gateway(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = 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.
    """

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

        output, http_response = (
            capo_sagemaker._operations.sage_maker.describe_global_inference_gateway.describe_global_inference_gateway(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output