remove_inference_gateway
async
¶
remove_inference_gateway(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
identifier: Optional[GlobalInferenceGatewayIdentifier] = None,
cluster_arn: Optional[GlobalInferenceGatewayClusterArn] = None,
namespace: Optional[GlobalInferenceGatewayKubernetesNamespace] = None,
name: Optional[GlobalInferenceGatewayKubernetesResourceName] = None,
) -> RemoveInferenceGatewayResponse
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.
Parameters:
-
identifier(Optional[GlobalInferenceGatewayIdentifier], default:None) –The name, Amazon Resource Name (ARN), or ID of the global inference gateway.
-
cluster_arn(Optional[GlobalInferenceGatewayClusterArn], default:None) –The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster that runs the in-cluster inference gateway.
-
namespace(Optional[GlobalInferenceGatewayKubernetesNamespace], default:None) –The Kubernetes namespace of the in-cluster inference gateway.
-
name(Optional[GlobalInferenceGatewayKubernetesResourceName], default:None) –The name of the
InferenceGatewayConfigresource that defines the in-cluster inference gateway.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
30317 30318 30319 30320 30321 30322 30323 30324 30325 30326 30327 30328 30329 30330 30331 30332 30333 30334 30335 30336 30337 30338 30339 30340 30341 30342 30343 30344 30345 30346 30347 30348 30349 30350 30351 30352 30353 30354 30355 30356 30357 30358 30359 30360 30361 30362 30363 30364 30365 30366 30367 30368 30369 30370 30371 30372 30373 30374 30375 30376 30377 30378 30379 30380 30381 30382 | |