1import * as resourcegroups from "@distilled.cloud/aws/resource-groups";
2import * as Layer from "effect/Layer";
3import { makeResourceGroupsGroupHttpBinding } from "./BindingHttp.ts";
4import { GroupResources } from "./GroupResources.ts";
5
6export 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);