Skip to main content

slack_workspaces

Creates, updates, deletes, gets or lists a slack_workspaces resource.

Overview

Nameslack_workspaces
TypeResource
Idaws.chatbot.slack_workspaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
slack_team_idstringThe ID of the Slack workspace authorized with AWS Chatbot. (pattern: <code>[0-9A-Z]{1,255}</code>)
slack_team_namestringThe name of the Slack workspace.
statestringEither ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled. (pattern: <code>(ENABLED|DISABLED)</code>)
state_reasonstringProvided if State is DISABLED. Provides context as to why the resource is disabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_slack_workspacesselectregionList all authorized Slack workspaces connected to the AWS Account onboarded with AWS Chatbot.
delete_slack_workspace_authorizationdeleteregionDeletes the Slack workspace authorization that allows channels to be configured in that workspace. This requires all configured channels in the workspace to be deleted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

List all authorized Slack workspaces connected to the AWS Account onboarded with AWS Chatbot.

SELECT
slack_team_id,
slack_team_name,
state,
state_reason
FROM aws.chatbot.slack_workspaces
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes the Slack workspace authorization that allows channels to be configured in that workspace. This requires all configured channels in the workspace to be deleted.

DELETE FROM aws.chatbot.slack_workspaces
WHERE region = '{{ region }}' --required
;