SageMaker / Client / remove_inference_gateway

remove_inference_gateway

SageMaker.Client.remove_inference_gateway(**kwargs)

Removes an in-cluster inference gateway from a global inference gateway. This operation is asynchronous: the in-cluster inference gateway moves to the REMOVING status, and then no longer appears in ListInferenceGateways. If the in-cluster inference gateway isn’t in the global inference gateway, the operation succeeds and returns no status. The operation returns ResourceNotFound only if the global inference gateway doesn’t exist.

The operation fails with ConflictException while another operation is in progress on the global inference gateway. It fails with ValidationException if the in-cluster inference gateway is the last one, because a global inference gateway must have at least one.

See also: AWS API Documentation

Request Syntax

response = client.remove_inference_gateway(
    Identifier='string',
    ClusterArn='string',
    Namespace='string',
    Name='string'
)
Parameters:
  • Identifier (string) –

    [REQUIRED]

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

  • ClusterArn (string) –

    [REQUIRED]

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

  • Namespace (string) –

    [REQUIRED]

    The Kubernetes namespace of the in-cluster inference gateway.

  • Name (string) –

    [REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'Id': 'string',
    'Name': 'string',
    'Gateway': {
        'Name': 'string',
        'Namespace': 'string',
        'ClusterArn': 'string'
    },
    'Status': 'ADDING'|'ACTIVE'|'REMOVING'|'FAILED'
}

Response Structure

  • (dict) –

    • Arn (string) –

      The Amazon Resource Name (ARN) of the global inference gateway.

    • Id (string) –

      The ID of the global inference gateway.

    • Name (string) –

      The name of the global inference gateway.

    • Gateway (dict) –

      The in-cluster inference gateway that you removed.

      • 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. The cluster must be in the same account and partition as the global inference gateway. It can be in a different Region, but not in an opt-in Region.

    • Status (string) –

      The status of the in-cluster inference gateway in the global inference gateway. This value is absent if the in-cluster inference gateway wasn’t in the global inference gateway.

Exceptions

  • SageMaker.Client.exceptions.ConflictException

  • SageMaker.Client.exceptions.ResourceNotFound