1import * as resourcegroups from "@distilled.cloud/aws/resource-groups";
2import * as Layer from "effect/Layer";
3import { makeResourceGroupsGroupHttpBinding } from "./BindingHttp.ts";
4import { ListGroupResources } from "./ListGroupResources.ts";
5
6export const ListGroupResourcesHttp = Layer.effect(
7 ListGroupResources,
8 makeResourceGroupsGroupHttpBinding({
9 tag: "AWS.ResourceGroups.ListGroupResources",
10 operation: resourcegroups.listGroupResources,
11 actions: ["resource-groups:ListGroupResources"],
12 // Documented minimum permissions: member enumeration reads through the
13 // Resource Groups Tagging API and (for CLOUDFORMATION_STACK_1_0 groups)
14 // the owning stack, on arbitrary member ARNs.
15 supportingActions: [
16 "tag:GetResources",
17 "cloudformation:DescribeStacks",
18 "cloudformation:ListStackResources",
19 ],
20 }),
21);