The best way to control Claude Code, Codex and more from any computer or phone

main
ts 37 lines 1.28 KB
Raw
1 import type * as securityhub from "@distilled.cloud/aws/securityhub";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `securityhub:GetFindingHistory`.
7 *
8 * Returns the history of a finding for up to 90 days — every update Security Hub or a provider applied to it.
9 * Account-level operation — invoked with the caller's request as-is.
10 * Provide the implementation with
11 * `Effect.provide(AWS.SecurityHub.GetFindingHistoryHttp)`.
12 * ### Working with Findings
13 * **Example:** Audit a Finding's History
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const getFindingHistory = yield* AWS.SecurityHub.GetFindingHistory();
17 *
18 * // runtime
19 * const { Records } = yield* getFindingHistory({
20 * FindingIdentifier: { Id: findingId, ProductArn: productArn },
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface GetFindingHistory extends Binding.Service<
27 GetFindingHistory,
28 "AWS.SecurityHub.GetFindingHistory",
29 () => Effect.Effect<
30 (
31 request?: securityhub.GetFindingHistoryRequest,
32 ) => Effect.Effect<securityhub.GetFindingHistoryResponse, securityhub.GetFindingHistoryError>
33 >
34 > {}
35 export const GetFindingHistory = Binding.Service<GetFindingHistory>(
36 "AWS.SecurityHub.GetFindingHistory",
37 );