| 1 | import type * as organizations from "@distilled.cloud/aws/organizations"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `organizations:ListDelegatedAdministrators`. |
| 7 | * |
| 8 | * Lists the accounts that are designated as delegated administrators in the organization, optionally filtered by service principal. |
| 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.ListDelegatedAdministratorsHttp)`. |
| 12 | * ### Delegated Administration & Trusted Access |
| 13 | * **Example:** List Delegated Administrators |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const listDelegatedAdministrators = yield* AWS.Organizations.ListDelegatedAdministrators(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { DelegatedAdministrators } = yield* listDelegatedAdministrators(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ListDelegatedAdministrators extends Binding.Service< |
| 25 | ListDelegatedAdministrators, |
| 26 | "AWS.Organizations.ListDelegatedAdministrators", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: organizations.ListDelegatedAdministratorsRequest, |
| 30 | ) => Effect.Effect< |
| 31 | organizations.ListDelegatedAdministratorsResponse, |
| 32 | organizations.ListDelegatedAdministratorsError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const ListDelegatedAdministrators = |
| 37 | Binding.Service<ListDelegatedAdministrators>( |
| 38 | "AWS.Organizations.ListDelegatedAdministrators", |
| 39 | ); |