Skip to content

AddEndpoints

Source: src/AWS/GlobalAccelerator/AddEndpoints.ts

Runtime binding for globalaccelerator:AddEndpoints.

Registers additional endpoints (ALB/NLB ARNs, EC2 instance IDs, or Elastic IP allocation IDs) on the bound EndpointGroup at runtime — the dynamic-scaling counterpart to declaring endpoints in the resource props. Unlike a full UpdateEndpointGroup, adding endpoints does not touch the group’s other endpoints or its health-check configuration. The endpoint group ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.GlobalAccelerator.AddEndpointsHttp).

// init — bind the operation to the endpoint group
const addEndpoints = yield* AWS.GlobalAccelerator.AddEndpoints(group);
// runtime
yield* addEndpoints({
EndpointConfigurations: [{ EndpointId: allocationId, Weight: 128 }],
});