| 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 { GroupResources } from "./GroupResources.ts"; |
| 5 | |
| 6 | export const GroupResourcesHttp = Layer.effect( |
| 7 | GroupResources, |
| 8 | makeResourceGroupsGroupHttpBinding({ |
| 9 | tag: "AWS.ResourceGroups.GroupResources", |
| 10 | operation: resourcegroups.groupResources, |
| 11 | actions: ["resource-groups:GroupResources"], |
| 12 | // Application-group membership works by applying the `awsApplication` |
| 13 | // tag to the member through the Resource Groups Tagging API. |
| 14 | supportingActions: ["tag:GetResources", "tag:TagResources"], |
| 15 | }), |
| 16 | ); |