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:ListCreateAccountStatus`.
7 *
8 * Lists the account-creation requests that match the specified states — auditing in-flight and completed account vending.
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.ListCreateAccountStatusHttp)`.
12 * ### Account Vending
13 * **Example:** List In-Flight Account Creations
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const listCreateAccountStatus = yield* AWS.Organizations.ListCreateAccountStatus();
17 *
18 * // runtime
19 * const { CreateAccountStatuses } = yield* listCreateAccountStatus({
20 * States: ["IN_PROGRESS"],
21 * });
22 * ```
23 *
24 * @binding
25 */
26export interface ListCreateAccountStatus extends Binding.Service<
27 ListCreateAccountStatus,
28 "AWS.Organizations.ListCreateAccountStatus",
29 () => Effect.Effect<
30 (
31 request?: organizations.ListCreateAccountStatusRequest,
32 ) => Effect.Effect<
33 organizations.ListCreateAccountStatusResponse,
34 organizations.ListCreateAccountStatusError
35 >
36 >
37> {}
38export const ListCreateAccountStatus = Binding.Service<ListCreateAccountStatus>(
39 "AWS.Organizations.ListCreateAccountStatus",
40);