@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 19 lines 786 Bytes
Raw
1 import * as fis from "@distilled.cloud/aws/fis";
2 import * as Layer from "effect/Layer";
3 import { makeFisTemplateHttpBinding } from "./BindingHttp.ts";
4 import { StartExperiment } from "./StartExperiment.ts";
5
6 export const StartExperimentHttp = Layer.effect(
7 StartExperiment,
8 makeFisTemplateHttpBinding({
9 tag: "AWS.FIS.StartExperiment",
10 operation: fis.startExperiment,
11 // Starting also tags the created experiment (internal or caller-supplied
12 // tags), which FIS authorizes as fis:TagResource on the experiment ARN.
13 actions: ["fis:StartExperiment", "fis:TagResource"],
14 requestKey: "experimentTemplateId",
15 grantExperimentWildcard: true,
16 // The first StartExperiment in an account creates AWSServiceRoleForFIS.
17 grantServiceLinkedRole: true,
18 }),
19 );