| 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:DeleteMicrosoftTeamsConfiguredTeam`. |
| 7 | * |
| 8 | * Removes an onboarded Microsoft Teams team from AWS Chatbot — the drastic |
| 9 | * end of offboarding automation. Existing channel configurations for the |
| 10 | * team stop working until it is re-onboarded via the console OAuth flow. |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.Chatbot.DeleteMicrosoftTeamsConfiguredTeamHttp)`. |
| 13 | * ### Microsoft Teams Identity Management |
| 14 | * **Example:** Offboard a Microsoft Teams team |
| 15 | * ```typescript |
| 16 | * const deleteMicrosoftTeamsConfiguredTeam = |
| 17 | * yield* AWS.Chatbot.DeleteMicrosoftTeamsConfiguredTeam(); |
| 18 | * yield* deleteMicrosoftTeamsConfiguredTeam({ |
| 19 | * TeamId: "0a1b2c3d-4e5f-1a2b-3c4d-0a1b2c3d4e5f", |
| 20 | * }); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface DeleteMicrosoftTeamsConfiguredTeam extends Binding.Service< |
| 26 | DeleteMicrosoftTeamsConfiguredTeam, |
| 27 | "AWS.Chatbot.DeleteMicrosoftTeamsConfiguredTeam", |
| 28 | () => Effect.Effect< |
| 29 | ( |
| 30 | request: chatbot.DeleteTeamsConfiguredTeamRequest, |
| 31 | ) => Effect.Effect< |
| 32 | chatbot.DeleteTeamsConfiguredTeamResult, |
| 33 | chatbot.DeleteMicrosoftTeamsConfiguredTeamError |
| 34 | > |
| 35 | > |
| 36 | > {} |
| 37 | |
| 38 | export const DeleteMicrosoftTeamsConfiguredTeam = |
| 39 | Binding.Service<DeleteMicrosoftTeamsConfiguredTeam>( |
| 40 | "AWS.Chatbot.DeleteMicrosoftTeamsConfiguredTeam", |
| 41 | ); |