1import type * as securityhub from "@distilled.cloud/aws/securityhub";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
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 */
26export interface GetFindingHistory extends Binding.Service<
27 GetFindingHistory,
28 "AWS.SecurityHub.GetFindingHistory",
29 () => Effect.Effect<
30 (
31 request?: securityhub.GetFindingHistoryRequest,
32 ) => Effect.Effect<
33 securityhub.GetFindingHistoryResponse,
34 securityhub.GetFindingHistoryError
35 >
36 >
37> {}
38export const GetFindingHistory = Binding.Service<GetFindingHistory>(
39 "AWS.SecurityHub.GetFindingHistory",
40);