| 1 | import type * as chatbot from "@distilled.cloud/aws/chatbot"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `chatbot:DeleteSlackUserIdentity`. |
| 7 | * |
| 8 | * Unlinks a Slack user identity from its AWS user identity — the write half |
| 9 | * of identity offboarding automation (e.g. revoke a departing employee's |
| 10 | * chat identity from a Lambda triggered by your HR system). Provide the |
| 11 | * implementation with |
| 12 | * `Effect.provide(AWS.Chatbot.DeleteSlackUserIdentityHttp)`. |
| 13 | * ### Slack Identity Management |
| 14 | * **Example:** Unlink a Slack user identity |
| 15 | * ```typescript |
| 16 | * const deleteSlackUserIdentity = |
| 17 | * yield* AWS.Chatbot.DeleteSlackUserIdentity(); |
| 18 | * yield* deleteSlackUserIdentity({ |
| 19 | * ChatConfigurationArn: configurationArn, |
| 20 | * SlackTeamId: "T012ABCDEFG", |
| 21 | * SlackUserId: "U012AB3CD", |
| 22 | * }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface DeleteSlackUserIdentity extends Binding.Service< |
| 28 | DeleteSlackUserIdentity, |
| 29 | "AWS.Chatbot.DeleteSlackUserIdentity", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: chatbot.DeleteSlackUserIdentityRequest, |
| 33 | ) => Effect.Effect< |
| 34 | chatbot.DeleteSlackUserIdentityResult, |
| 35 | chatbot.DeleteSlackUserIdentityError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | |
| 40 | export const DeleteSlackUserIdentity = Binding.Service<DeleteSlackUserIdentity>( |
| 41 | "AWS.Chatbot.DeleteSlackUserIdentity", |
| 42 | ); |