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