import type * as identitystore from "@distilled.cloud/aws/identitystore"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Instance } from "./Instance.ts"; /** * Runtime binding for the `CreateGroupMembership` operation (IAM action * `identitystore:CreateGroupMembership`), scoped to one {@link Instance}. * * Adds a user to a group in the bound instance's identity store, returning the new `MembershipId`. The instance's * `IdentityStoreId` is injected from the binding. Provide the implementation with * `Effect.provide(AWS.IdentityCenter.CreateGroupMembershipHttp)`. * ### Managing Group Memberships * **Example:** Add a User to a Group * ```typescript * // init — bind the operation to the Identity Center instance * const createGroupMembership = yield* AWS.IdentityCenter.CreateGroupMembership(instance); * * // runtime * const { MembershipId } = yield* createGroupMembership({ * GroupId: groupId, * MemberId: { UserId: userId }, * }); * ``` * * @binding */ export interface CreateGroupMembership extends Binding.Service Effect.Effect<(request: Omit) => Effect.Effect>> { } export declare const CreateGroupMembership: CreateGroupMembership; //# sourceMappingURL=CreateGroupMembership.d.ts.map