CreateGroupMembership
Source:
src/AWS/IdentityCenter/CreateGroupMembership.ts
Runtime binding for the CreateGroupMembership operation (IAM action
identitystore:CreateGroupMembership), scoped to one 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
Section titled “Managing Group Memberships”// init — bind the operation to the Identity Center instanceconst createGroupMembership = yield* AWS.IdentityCenter.CreateGroupMembership(instance);
// runtimeconst { MembershipId } = yield* createGroupMembership({ GroupId: groupId, MemberId: { UserId: userId },});