SageMaker / Client / list_inference_gateways

list_inference_gateways

SageMaker.Client.list_inference_gateways(**kwargs)

Lists the in-cluster inference gateways in a global inference gateway, in the order that they were added. Each summary includes the status of the in-cluster inference gateway and, if the status is FAILED, the reason for the failure. DescribeGlobalInferenceGateway doesn’t return the in-cluster inference gateways; use this operation to list them.

See also: AWS API Documentation

Request Syntax

response = client.list_inference_gateways(
    Identifier='string',
    Filters=[
        {
            'Name': 'Status'|'ClusterArn',
            'Value': 'string'
        },
    ],
    NextToken='string',
    MaxResults=123
)
Parameters:
  • Identifier (string) –

    [REQUIRED]

    The name, Amazon Resource Name (ARN), or ID of the global inference gateway.

  • Filters (list) –

    The filters to apply to the results. You can filter by Status and ClusterArn. Multiple filters are combined with a logical AND.

    • (dict) –

      A filter for ListInferenceGateways. The filter matches the in-cluster inference gateways whose attribute named by Name equals Value.

      • Name (string) – [REQUIRED]

        The attribute to filter in-cluster inference gateways on. Supported values are Status and ClusterArn.

      • Value (string) – [REQUIRED]

        The value to match. For the Status filter, specify a status of an in-cluster inference gateway. For the ClusterArn filter, specify the Amazon Resource Name (ARN) of a SageMaker HyperPod cluster.

  • NextToken (string) – If the result of the previous ListInferenceGateways request was truncated, the response includes a NextToken. To retrieve the next set of in-cluster inference gateways, use the token in the next request.

  • MaxResults (integer) – The maximum number of in-cluster inference gateways to return in the response.

Return type:

dict

Returns:

Response Syntax

{
    'InferenceGatewaySummaries': [
        {
            'Name': 'string',
            'Namespace': 'string',
            'ClusterArn': 'string',
            'Status': 'ADDING'|'ACTIVE'|'REMOVING'|'FAILED',
            'FailureReason': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • InferenceGatewaySummaries (list) –

      The summaries of the in-cluster inference gateways, in the order that they were added.

      • (dict) –

        Summary information about an in-cluster inference gateway in a global inference gateway, including its status.

        • Name (string) –

          The name of the InferenceGatewayConfig resource that defines the in-cluster inference gateway.

        • Namespace (string) –

          The Kubernetes namespace of the in-cluster inference gateway.

        • ClusterArn (string) –

          The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster that runs the in-cluster inference gateway.

        • Status (string) –

          The status of the in-cluster inference gateway in the global inference gateway. This status describes the membership in the global inference gateway, not the health of the in-cluster inference gateway.

        • FailureReason (string) –

          The reason that adding or removing the in-cluster inference gateway failed. This value is set only when the status is FAILED.

    • NextToken (string) –

      If the result of the previous ListInferenceGateways request was truncated, the response includes a NextToken. To retrieve the next set of in-cluster inference gateways, use the token in the next request.

Exceptions

  • SageMaker.Client.exceptions.ResourceNotFound