slack_workspace_configurations
Creates, updates, deletes or gets a slack_workspace_configuration
resource or lists slack_workspace_configurations
in a region
Overview
Name | slack_workspace_configurations |
Type | Resource |
Description | An AWS Support App resource that creates, updates, lists, and deletes Slack workspace configurations. |
Id | aws.supportapp.slack_workspace_configurations |
Fields
Name | Datatype | Description |
---|---|---|
team_id | string | The team ID in Slack, which uniquely identifies a workspace. |
version_id | string | An identifier used to update an existing Slack workspace configuration in AWS CloudFormation. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | TeamId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.supportapp.slack_workspace_configurations (
TeamId,
region
)
SELECT
'{{ TeamId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.supportapp.slack_workspace_configurations (
TeamId,
VersionId,
region
)
SELECT
'{{ TeamId }}',
'{{ VersionId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: slack_workspace_configuration
props:
- name: TeamId
value: '{{ TeamId }}'
- name: VersionId
value: '{{ VersionId }}'
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