| 1 | import type * as auditmanager from "@distilled.cloud/aws/auditmanager"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 36 | auditmanager.GetChangeLogsResponse, |
| 37 | auditmanager.GetChangeLogsError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | |
| 42 | export const GetChangeLogs = Binding.Service<GetChangeLogs>( |
| 43 | "AWS.AuditManager.GetChangeLogs", |
| 44 | ); |