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).
Managing Endpoints
Section titled “Managing Endpoints”// init — bind the operation to the endpoint groupconst addEndpoints = yield* AWS.GlobalAccelerator.AddEndpoints(group);
// runtimeyield* addEndpoints({ EndpointConfigurations: [{ EndpointId: allocationId, Weight: 128 }],});