Skip to main content

slack_workspace_configurations

Creates, updates, deletes or gets a slack_workspace_configuration resource or lists slack_workspace_configurations in a region

Overview

Nameslack_workspace_configurations
TypeResource
DescriptionAn AWS Support App resource that creates, updates, lists, and deletes Slack workspace configurations.
Idaws.supportapp.slack_workspace_configurations

Fields

NameDatatypeDescription
team_idstringThe team ID in Slack, which uniquely identifies a workspace.
version_idstringAn identifier used to update an existing Slack workspace configuration in AWS CloudFormation.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTTeamId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all slack_workspace_configurations in a region.

SELECT
region,
team_id,
version_id
FROM aws.supportapp.slack_workspace_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual slack_workspace_configuration.

SELECT
region,
team_id,
version_id
FROM aws.supportapp.slack_workspace_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<TeamId>';

INSERT example

Use the following StackQL query and manifest file to create a new slack_workspace_configuration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.supportapp.slack_workspace_configurations (
TeamId,
region
)
SELECT
'{{ TeamId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.supportapp.slack_workspace_configurations
WHERE data__Identifier = '<TeamId>'
AND region = 'us-east-1';

Permissions

To operate on the slack_workspace_configurations resource, the following permissions are required:

Create

supportapp:RegisterSlackWorkspaceForOrganization,
supportapp:ListSlackWorkspaceConfigurations

Read

supportapp:ListSlackWorkspaceConfigurations

Update

supportapp:RegisterSlackWorkspaceForOrganization,
supportapp:ListSlackWorkspaceConfigurations

Delete

supportapp:ListSlackWorkspaceConfigurations,
supportapp:DeleteSlackWorkspaceConfiguration

List

supportapp:ListSlackWorkspaceConfigurations