| 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:ListMicrosoftTeamsConfiguredTeams`. |
| 7 | * |
| 8 | * Lists the Microsoft Teams teams onboarded to AWS Chatbot in the account — |
| 9 | * useful for identity/team audit automation. Provide the implementation |
| 10 | * with `Effect.provide(AWS.Chatbot.ListMicrosoftTeamsConfiguredTeamsHttp)`. |
| 11 | * ### Microsoft Teams Identity Management |
| 12 | * **Example:** List configured Microsoft Teams teams |
| 13 | * ```typescript |
| 14 | * const listMicrosoftTeamsConfiguredTeams = |
| 15 | * yield* AWS.Chatbot.ListMicrosoftTeamsConfiguredTeams(); |
| 16 | * const result = yield* listMicrosoftTeamsConfiguredTeams(); |
| 17 | * const teamIds = (result.ConfiguredTeams ?? []).map((t) => t.TeamId); |
| 18 | * ``` |
| 19 | * |
| 20 | * @binding |
| 21 | */ |
| 22 | export interface ListMicrosoftTeamsConfiguredTeams extends Binding.Service< |
| 23 | ListMicrosoftTeamsConfiguredTeams, |
| 24 | "AWS.Chatbot.ListMicrosoftTeamsConfiguredTeams", |
| 25 | () => Effect.Effect< |
| 26 | ( |
| 27 | request?: chatbot.ListMicrosoftTeamsConfiguredTeamsRequest, |
| 28 | ) => Effect.Effect< |
| 29 | chatbot.ListMicrosoftTeamsConfiguredTeamsResult, |
| 30 | chatbot.ListMicrosoftTeamsConfiguredTeamsError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | |
| 35 | export const ListMicrosoftTeamsConfiguredTeams = |
| 36 | Binding.Service<ListMicrosoftTeamsConfiguredTeams>( |
| 37 | "AWS.Chatbot.ListMicrosoftTeamsConfiguredTeams", |
| 38 | ); |