Skip to content

delete_endpoint_group

delete_endpoint_group(
    endpoint_group_arn: GenericString,
    *,
    config_overrides: Optional[GlobalAcceleratorClientConfig] = None,
) -> None

Delete an endpoint group from a listener.

Parameters:

  • endpoint_group_arn (GenericString) –

    The Amazon Resource Name (ARN) of the endpoint group to delete.

Raises:

Source code in docs_src/capo_global_accelerator/_services/global_accelerator.py
def delete_endpoint_group(
    self,
    endpoint_group_arn: "capo_global_accelerator.types.generic_string.GenericString",
    *,
    config_overrides: Optional[GlobalAcceleratorClientConfig] = None,
) -> None:
    """<p>Delete an endpoint group from a listener.</p>

    Args:
        endpoint_group_arn: <p>The Amazon Resource Name (ARN) of the endpoint group to delete.</p>

    Raises:
        capo_global_accelerator.errors.endpoint_group_not_found_exception.EndpointGroupNotFoundException: <p>The endpoint group that you specified doesn't exist.</p>
        capo_global_accelerator.errors.internal_service_error_exception.InternalServiceErrorException: <p>There was an internal error for Global Accelerator.</p>
        capo_global_accelerator.errors.invalid_argument_exception.InvalidArgumentException: <p>An argument that you specified is invalid.</p>
        capo_global_accelerator.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_global_accelerator.types.delete_endpoint_group_request.DeleteEndpointGroupRequest]",
    ) -> OperationResponse[None]:
        import capo_global_accelerator._operations.global_accelerator_v20180706.delete_endpoint_group

        output, http_response = (
            capo_global_accelerator._operations.global_accelerator_v20180706.delete_endpoint_group.delete_endpoint_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteEndpointGroup")
    )
    input_: capo_global_accelerator.types.delete_endpoint_group_request.DeleteEndpointGroupRequest = {
        "endpoint_group_arn": endpoint_group_arn
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output