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 guardduty from "@distilled.cloud/aws/guardduty"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Detector } from "./Detector.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `guardduty:ArchiveFindings`. |
| 8 | * |
| 9 | * Archives triaged findings so they stop surfacing in the active queue. Only the administrator account owning the detector can archive. |
| 10 | * The detector id is injected from the bound {@link Detector}. |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.GuardDuty.ArchiveFindingsHttp)`. |
| 13 | * ### Working with Findings |
| 14 | * **Example:** Archive Triaged Findings |
| 15 | * ```typescript |
| 16 | * // init |
| 17 | * const archiveFindings = yield* AWS.GuardDuty.ArchiveFindings(detector); |
| 18 | * |
| 19 | * // runtime |
| 20 | * yield* archiveFindings({ FindingIds: findingIds }); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface ArchiveFindings extends Binding.Service< |
| 26 | ArchiveFindings, |
| 27 | "AWS.GuardDuty.ArchiveFindings", |
| 28 | ( |
| 29 | detector: Detector, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request?: Omit<guardduty.ArchiveFindingsRequest, "DetectorId">, |
| 33 | ) => Effect.Effect<guardduty.ArchiveFindingsResponse, guardduty.ArchiveFindingsError> |
| 34 | > |
| 35 | > {} |
| 36 | export const ArchiveFindings = Binding.Service<ArchiveFindings>("AWS.GuardDuty.ArchiveFindings"); |