1import type * as auditmanager from "@distilled.cloud/aws/auditmanager";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `auditmanager:GetDelegations`.
7 *
8 * Lists the delegations assigned to the calling account. Provide the
9 * implementation with `Effect.provide(AWS.AuditManager.GetDelegationsHttp)`.
10 * ### Delegations
11 * **Example:** List the Account's Delegations
12 * ```typescript
13 * const getDelegations = yield* AWS.AuditManager.GetDelegations();
14 * const result = yield* getDelegations({ maxResults: 20 });
15 * ```
16 *
17 * @binding
18 */
19export interface GetDelegations extends Binding.Service<
20 GetDelegations,
21 "AWS.AuditManager.GetDelegations",
22 () => Effect.Effect<
23 (
24 request?: auditmanager.GetDelegationsRequest,
25 ) => Effect.Effect<
26 auditmanager.GetDelegationsResponse,
27 auditmanager.GetDelegationsError
28 >
29 >
30> {}
31
32export const GetDelegations = Binding.Service<GetDelegations>(
33 "AWS.AuditManager.GetDelegations",
34);