1import type * as organizations from "@distilled.cloud/aws/organizations";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `organizations:ListDelegatedServicesForAccount`.
7 *
8 * Lists the Amazon Web Services services for which the specified account is a delegated administrator.
9 * Account-level operation — Organizations is a management-account-scoped
10 * global service, so the binding takes no resource argument. Provide the
11 * implementation with `Effect.provide(AWS.Organizations.ListDelegatedServicesForAccountHttp)`.
12 * ### Delegated Administration & Trusted Access
13 * **Example:** List an Account's Delegated Services
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const listDelegatedServicesForAccount = yield* AWS.Organizations.ListDelegatedServicesForAccount();
17 *
18 * // runtime
19 * const { DelegatedServices } = yield* listDelegatedServicesForAccount({
20 * AccountId: accountId,
21 * });
22 * ```
23 *
24 * @binding
25 */
26export interface ListDelegatedServicesForAccount extends Binding.Service<
27 ListDelegatedServicesForAccount,
28 "AWS.Organizations.ListDelegatedServicesForAccount",
29 () => Effect.Effect<
30 (
31 request: organizations.ListDelegatedServicesForAccountRequest,
32 ) => Effect.Effect<
33 organizations.ListDelegatedServicesForAccountResponse,
34 organizations.ListDelegatedServicesForAccountError
35 >
36 >
37> {}
38export const ListDelegatedServicesForAccount =
39 Binding.Service<ListDelegatedServicesForAccount>(
40 "AWS.Organizations.ListDelegatedServicesForAccount",
41 );