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

main
ts 24 lines 942 Bytes
Raw
1 import * as appregistry from "@distilled.cloud/aws/service-catalog-appregistry";
2 import * as Layer from "effect/Layer";
3 import { makeAppRegistryAccountHttpBinding } from "./BindingHttp.ts";
4 import { SyncResource } from "./SyncResource.ts";
5
6 export const SyncResourceHttp = Layer.effect(
7 SyncResource,
8 makeAppRegistryAccountHttpBinding({
9 tag: "AWS.AppRegistry.SyncResource",
10 operation: appregistry.syncResource,
11 // The target is an arbitrary external resource, so nothing here supports
12 // resource-level scoping. SyncResource verifies the CALLER can read and
13 // update the target resource, so the documented companion permissions
14 // (CloudFormation + resource-tagging) are granted alongside.
15 actions: [
16 "servicecatalog:SyncResource",
17 "cloudformation:DescribeStacks",
18 "cloudformation:UpdateStack",
19 "tag:GetResources",
20 "tag:TagResources",
21 "tag:UntagResources",
22 ],
23 }),
24 );