1import * as ga from "@distilled.cloud/aws/global-accelerator";
2import * as Layer from "effect/Layer";
3import { makeGaEndpointGroupHttpBinding } from "./BindingHttp.ts";
4import { RemoveEndpoints } from "./RemoveEndpoints.ts";
5
6export const RemoveEndpointsHttp = Layer.effect(
7 RemoveEndpoints,
8 makeGaEndpointGroupHttpBinding({
9 tag: "AWS.GlobalAccelerator.RemoveEndpoints",
10 operation: ga.removeEndpoints,
11 // Like AddEndpoints, Global Accelerator authorizes endpoint removal as
12 // an update to the endpoint group, so both actions are required.
13 actions: [
14 "globalaccelerator:RemoveEndpoints",
15 "globalaccelerator:UpdateEndpointGroup",
16 ],
17 }),
18);