@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 39 lines 1.31 KB
Raw
1 import type * as auditmanager from "@distilled.cloud/aws/auditmanager";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Assessment } from "./Assessment.ts";
5
6 /** `GetChangeLogs` request with `assessmentId` injected from the bound {@link Assessment}. */
7 export interface GetChangeLogsRequest extends Omit<
8 auditmanager.GetChangeLogsRequest,
9 "assessmentId"
10 > {}
11
12 /**
13 * Runtime binding for `auditmanager:GetChangeLogs`.
14 *
15 * Lists the changelog — who did what, when — for the bound
16 * assessment, optionally narrowed to a control set or control. Provide the
17 * implementation with `Effect.provide(AWS.AuditManager.GetChangeLogsHttp)`.
18 * ### Audit Trail
19 * **Example:** Read the Assessment Changelog
20 * ```typescript
21 * const getChangeLogs = yield* AWS.AuditManager.GetChangeLogs(assessment);
22 * const result = yield* getChangeLogs({ maxResults: 20 });
23 * ```
24 *
25 * @binding
26 */
27 export interface GetChangeLogs extends Binding.Service<
28 GetChangeLogs,
29 "AWS.AuditManager.GetChangeLogs",
30 (
31 assessment: Assessment,
32 ) => Effect.Effect<
33 (
34 request?: GetChangeLogsRequest,
35 ) => Effect.Effect<auditmanager.GetChangeLogsResponse, auditmanager.GetChangeLogsError>
36 >
37 > {}
38
39 export const GetChangeLogs = Binding.Service<GetChangeLogs>("AWS.AuditManager.GetChangeLogs");