SageMaker / Client / add_inference_gateway
add_inference_gateway¶
- SageMaker.Client.add_inference_gateway(**kwargs)¶
Adds an in-cluster inference gateway to a global inference gateway. This operation is asynchronous: the in-cluster inference gateway starts in the
ADDINGstatus. To check its status, callListInferenceGateways. If the in-cluster inference gateway is already in the global inference gateway, the operation succeeds and returns its current status.An in-cluster inference gateway can belong to only one global inference gateway. If it already belongs to another global inference gateway, the operation fails with
ResourceInUse. The operation fails withConflictExceptionwhile another operation is in progress on the global inference gateway, or if the global inference gateway failed to create.See also: AWS API Documentation
Request Syntax
response = client.add_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. 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.
Namespace (string) –
[REQUIRED]
The Kubernetes namespace of the in-cluster inference gateway.
Name (string) –
[REQUIRED]
The name of the
InferenceGatewayConfigresource 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 added.
Name (string) –
The name of the
InferenceGatewayConfigresource 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.
Exceptions
SageMaker.Client.exceptions.ConflictExceptionSageMaker.Client.exceptions.ResourceNotFoundSageMaker.Client.exceptions.ResourceInUseSageMaker.Client.exceptions.ResourceLimitExceeded