| 1 | import * as ga from "@distilled.cloud/aws/global-accelerator"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeGaEndpointGroupHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { RemoveEndpoints } from "./RemoveEndpoints.ts"; |
| 5 | |
| 6 | export 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 | ); |