| 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 | /** `GetEvidence` request with `assessmentId` injected from the bound {@link Assessment}. */ |
| 7 | export interface GetEvidenceRequest extends Omit< |
| 8 | auditmanager.GetEvidenceRequest, |
| 9 | "assessmentId" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for `auditmanager:GetEvidence`. |
| 14 | * |
| 15 | * Gets a single evidence item from the bound assessment. Provide the |
| 16 | * implementation with `Effect.provide(AWS.AuditManager.GetEvidenceHttp)`. |
| 17 | * ### Reading Evidence |
| 18 | * **Example:** Get a Single Evidence Item |
| 19 | * ```typescript |
| 20 | * const getEvidence = yield* AWS.AuditManager.GetEvidence(assessment); |
| 21 | * const result = yield* getEvidence({ controlSetId, evidenceFolderId, evidenceId }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface GetEvidence extends Binding.Service< |
| 27 | GetEvidence, |
| 28 | "AWS.AuditManager.GetEvidence", |
| 29 | ( |
| 30 | assessment: Assessment, |
| 31 | ) => Effect.Effect< |
| 32 | ( |
| 33 | request: GetEvidenceRequest, |
| 34 | ) => Effect.Effect< |
| 35 | auditmanager.GetEvidenceResponse, |
| 36 | auditmanager.GetEvidenceError |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | |
| 41 | export const GetEvidence = Binding.Service<GetEvidence>( |
| 42 | "AWS.AuditManager.GetEvidence", |
| 43 | ); |