1import type * as aa from "@distilled.cloud/aws/accessanalyzer";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `access-analyzer:ListPolicyGenerations`.
7 *
8 * Lists the account's recent policy-generation jobs. Provide the
9 * implementation with
10 * `Effect.provide(AWS.AccessAnalyzer.ListPolicyGenerationsHttp)`.
11 * ### Policy Generation
12 * **Example:** List Policy Generations
13 * ```typescript
14 * const listGenerations =
15 * yield* AWS.AccessAnalyzer.ListPolicyGenerations();
16 * const page = yield* listGenerations();
17 * ```
18 *
19 * @binding
20 */
21export interface ListPolicyGenerations extends Binding.Service<
22 ListPolicyGenerations,
23 "AWS.AccessAnalyzer.ListPolicyGenerations",
24 () => Effect.Effect<
25 (
26 request?: aa.ListPolicyGenerationsRequest,
27 ) => Effect.Effect<
28 aa.ListPolicyGenerationsResponse,
29 aa.ListPolicyGenerationsError
30 >
31 >
32> {}
33
34export const ListPolicyGenerations = Binding.Service<ListPolicyGenerations>(
35 "AWS.AccessAnalyzer.ListPolicyGenerations",
36);