@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, 06:00 UTC

main
ts 41 lines 1.54 KB
Raw
1 import type * as aiops from "@distilled.cloud/aws/aiops";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { InvestigationGroup } from "./InvestigationGroup.ts";
5
6 /**
7 * Runtime binding for `aiops:GetInvestigationGroup`.
8 *
9 * Reads the bound {@link InvestigationGroup}'s full configuration — the
10 * telemetry-access role, retention period, encryption, tag key boundaries,
11 * chatbot notification channels, and cross-account configurations — so an
12 * ops function can audit or report on the Region's investigation setup. The
13 * group's ARN is injected from the binding. Provide the implementation with
14 * `Effect.provide(AWS.AIOps.GetInvestigationGroupHttp)`.
15 * ### Reading the Investigation Group
16 * **Example:** Inspect the Group's Configuration
17 * ```typescript
18 * // init — grants aiops:GetInvestigationGroup on the group
19 * const getInvestigationGroup = yield* AWS.AIOps.GetInvestigationGroup(group);
20 *
21 * // runtime
22 * const detail = yield* getInvestigationGroup();
23 * yield* Effect.log(
24 * `${detail.name} retains investigations for ${detail.retentionInDays} days`,
25 * );
26 * ```
27 *
28 * @binding
29 */
30 export interface GetInvestigationGroup extends Binding.Service<
31 GetInvestigationGroup,
32 "AWS.AIOps.GetInvestigationGroup",
33 (
34 group: InvestigationGroup,
35 ) => Effect.Effect<
36 () => Effect.Effect<aiops.GetInvestigationGroupResponse, aiops.GetInvestigationGroupError>
37 >
38 > {}
39 export const GetInvestigationGroup = Binding.Service<GetInvestigationGroup>(
40 "AWS.AIOps.GetInvestigationGroup",
41 );