Delete a global inference gateway and its member inference gateways, which are then free to join another global inference gateway. Asynchronous: the global inference gateway is DELETING while its managed endpoint resources are torn down; poll DescribeGlobalInferenceGateway until it returns ResourceNotFound. Does not touch the customer's clusters. Idempotent: a Delete whose Identifier matches no global inference gateway succeeds and echoes what the Identifier says (Arn and Id for an ARN or Id, Name for a name).
Parameters:
Raises:
-
ConflictException
–
There was a conflict when you attempted to modify a SageMaker entity such as an Experiment or Artifact.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
| async def delete_global_inference_gateway(
self,
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
identifier: Optional[
"capo_sagemaker.types.global_inference_gateway_identifier.GlobalInferenceGatewayIdentifier"
] = None,
) -> "capo_sagemaker.types.delete_global_inference_gateway_response.DeleteGlobalInferenceGatewayResponse":
"""Delete a global inference gateway and its member inference gateways, which are then free to join another global inference gateway. Asynchronous: the global inference gateway is DELETING while its managed endpoint resources are torn down; poll DescribeGlobalInferenceGateway until it returns ResourceNotFound. Does not touch the customer's clusters. Idempotent: a Delete whose Identifier matches no global inference gateway succeeds and echoes what the Identifier says (Arn and Id for an ARN or Id, Name for a name).
Args:
identifier: <p>The name, Amazon Resource Name (ARN), or ID of the global inference gateway to delete.</p>
Raises:
capo_sagemaker.errors.conflict_exception.ConflictException: <p>There was a conflict when you attempted to modify a SageMaker entity such as an <code>Experiment</code> or <code>Artifact</code>.</p>
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sagemaker.types.delete_global_inference_gateway_request.DeleteGlobalInferenceGatewayRequest]",
) -> AsyncOperationResponse[
"capo_sagemaker.types.delete_global_inference_gateway_response.DeleteGlobalInferenceGatewayResponse"
]:
import capo_sagemaker._operations.sage_maker.delete_global_inference_gateway
(
output,
http_response,
) = await capo_sagemaker._operations.sage_maker.delete_global_inference_gateway.async_delete_global_inference_gateway(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteGlobalInferenceGateway")
)
input_: capo_sagemaker.types.delete_global_inference_gateway_request.DeleteGlobalInferenceGatewayRequest = {}
if identifier is not None:
input_["identifier"] = identifier
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|