@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 17 lines 825 Bytes
Raw
1 import * as config from "@distilled.cloud/aws/config-service";
2 import * as Layer from "effect/Layer";
3 import { makeConfigAccountHttpBinding } from "./BindingHttp.ts";
4 import { StartResourceEvaluation } from "./StartResourceEvaluation.ts";
5
6 export const StartResourceEvaluationHttp = Layer.effect(
7 StartResourceEvaluation,
8 makeConfigAccountHttpBinding({
9 tag: "AWS.Config.StartResourceEvaluation",
10 operation: config.startResourceEvaluation,
11 // cloudformation:DescribeType is a dependent action: Config validates
12 // the CFN_RESOURCE_SCHEMA resource type schema with the CALLER's
13 // permissions and rejects with AccessDeniedException without it
14 // (observed live; see the StartResourceEvaluation API reference).
15 actions: ["config:StartResourceEvaluation", "cloudformation:DescribeType"],
16 }),
17 );