1import type * as securityhub from "@distilled.cloud/aws/securityhub";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `securityhub:CreateMembers`.
7 *
8 * Creates member associations between this administrator account and the specified accounts.
9 * Account-level operation — invoked with the caller's request as-is.
10 * Provide the implementation with
11 * `Effect.provide(AWS.SecurityHub.CreateMembersHttp)`.
12 * ### Members & Organization
13 * **Example:** Add Member Accounts
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const createMembers = yield* AWS.SecurityHub.CreateMembers();
17 *
18 * // runtime
19 * const { UnprocessedAccounts } = yield* createMembers({
20 * AccountDetails: [{ AccountId: "111122223333" }],
21 * });
22 * ```
23 *
24 * @binding
25 */
26export interface CreateMembers extends Binding.Service<
27 CreateMembers,
28 "AWS.SecurityHub.CreateMembers",
29 () => Effect.Effect<
30 (
31 request?: securityhub.CreateMembersRequest,
32 ) => Effect.Effect<
33 securityhub.CreateMembersResponse,
34 securityhub.CreateMembersError
35 >
36 >
37> {}
38export const CreateMembers = Binding.Service<CreateMembers>(
39 "AWS.SecurityHub.CreateMembers",
40);