Skip to content

DescribeSlackWorkspaces

Source: src/AWS/Chatbot/DescribeSlackWorkspaces.ts

Runtime binding for chatbot:DescribeSlackWorkspaces.

Lists the Slack workspaces authorized with AWS Chatbot in the account — useful for identity/workspace audit automation. Provide the implementation with Effect.provide(AWS.Chatbot.DescribeSlackWorkspacesHttp).

const describeSlackWorkspaces =
yield* AWS.Chatbot.DescribeSlackWorkspaces();
const result = yield* describeSlackWorkspaces();
const teamIds = (result.SlackWorkspaces ?? []).map((w) => w.SlackTeamId);