The best way to control Claude Code, Codex and more from any computer or phone

main
ts 21 lines 864 Bytes
Raw
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 { ListGroupResources } from "./ListGroupResources.ts";
5
6 export 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 );