Skip to content

RemoveEndpoints

Source: src/AWS/GlobalAccelerator/RemoveEndpoints.ts

Runtime binding for globalaccelerator:RemoveEndpoints.

Deregisters endpoints from the bound EndpointGroup at runtime — e.g. draining an instance before it is terminated. Unlike a full UpdateEndpointGroup, removing endpoints leaves the group’s other endpoints and health-check configuration untouched. The endpoint group ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.GlobalAccelerator.RemoveEndpointsHttp).

// init — bind the operation to the endpoint group
const removeEndpoints = yield* AWS.GlobalAccelerator.RemoveEndpoints(group);
// runtime
yield* removeEndpoints({
EndpointIdentifiers: [{ EndpointId: allocationId }],
});