| 1 | import type * as identitystore from "@distilled.cloud/aws/identitystore"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Instance } from "./Instance.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for the `DeleteGroupMembership` operation (IAM action |
| 8 | * `identitystore:DeleteGroupMembership`), scoped to one {@link Instance}. |
| 9 | * |
| 10 | * Removes a group membership from the bound instance's identity store by `MembershipId`. The instance's |
| 11 | * `IdentityStoreId` is injected from the binding. Provide the implementation with |
| 12 | * `Effect.provide(AWS.IdentityCenter.DeleteGroupMembershipHttp)`. |
| 13 | * ### Managing Group Memberships |
| 14 | * **Example:** Remove a User From a Group |
| 15 | * ```typescript |
| 16 | * // init — bind the operation to the Identity Center instance |
| 17 | * const deleteGroupMembership = yield* AWS.IdentityCenter.DeleteGroupMembership(instance); |
| 18 | * |
| 19 | * // runtime |
| 20 | * yield* deleteGroupMembership({ MembershipId: membershipId }); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface DeleteGroupMembership extends Binding.Service< |
| 26 | DeleteGroupMembership, |
| 27 | "AWS.IdentityCenter.DeleteGroupMembership", |
| 28 | ( |
| 29 | instance: Instance, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request: Omit< |
| 33 | identitystore.DeleteGroupMembershipRequest, |
| 34 | "IdentityStoreId" |
| 35 | >, |
| 36 | ) => Effect.Effect< |
| 37 | identitystore.DeleteGroupMembershipResponse, |
| 38 | identitystore.DeleteGroupMembershipError |
| 39 | > |
| 40 | > |
| 41 | > {} |
| 42 | export const DeleteGroupMembership = Binding.Service<DeleteGroupMembership>( |
| 43 | "AWS.IdentityCenter.DeleteGroupMembership", |
| 44 | ); |