| 1 | import * as resourcegroups from "@distilled.cloud/aws/resource-groups"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeResourceGroupsGroupHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { UngroupResources } from "./UngroupResources.ts"; |
| 5 | |
| 6 | export const UngroupResourcesHttp = Layer.effect( |
| 7 | UngroupResources, |
| 8 | makeResourceGroupsGroupHttpBinding({ |
| 9 | tag: "AWS.ResourceGroups.UngroupResources", |
| 10 | operation: resourcegroups.ungroupResources, |
| 11 | actions: ["resource-groups:UngroupResources"], |
| 12 | // Application-group membership is removed by untagging the member |
| 13 | // through the Resource Groups Tagging API. |
| 14 | supportingActions: ["tag:GetResources", "tag:UntagResources"], |
| 15 | }), |
| 16 | ); |