Skip to content

delete_global_inference_gateway

delete_global_inference_gateway(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    identifier: Optional[GlobalInferenceGatewayIdentifier] = None,
) -> 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).

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/sage_maker.py
def delete_global_inference_gateway(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.delete_global_inference_gateway_request.DeleteGlobalInferenceGatewayRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.delete_global_inference_gateway_response.DeleteGlobalInferenceGatewayResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.delete_global_inference_gateway

        output, http_response = (
            capo_sagemaker._operations.sage_maker.delete_global_inference_gateway.delete_global_inference_gateway(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output