Skip to main content

slack_channel_configurations

Creates, updates, deletes or gets a slack_channel_configuration resource or lists slack_channel_configurations in a region

Overview

Nameslack_channel_configurations
TypeResource
DescriptionAn AWS Support App resource that creates, updates, lists and deletes Slack channel configurations.
Idaws.supportapp.slack_channel_configurations

Fields

NameDatatypeDescription
team_idstringThe team ID in Slack, which uniquely identifies a workspace.
channel_idstringThe channel ID in Slack, which identifies a channel within a workspace.
channel_namestringThe channel name in Slack.
notify_on_create_or_reopen_casebooleanWhether to notify when a case is created or reopened.
notify_on_add_correspondence_to_casebooleanWhether to notify when a correspondence is added to a case.
notify_on_resolve_casebooleanWhether to notify when a case is resolved.
notify_on_case_severitystringThe severity level of a support case that a customer wants to get notified for.
channel_role_arnstringThe Amazon Resource Name (ARN) of an IAM role that grants the AWS Support App access to perform operations for AWS services.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTTeamId, ChannelId, NotifyOnCaseSeverity, ChannelRoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all slack_channel_configurations in a region.

SELECT
region,
team_id,
channel_id,
channel_name,
notify_on_create_or_reopen_case,
notify_on_add_correspondence_to_case,
notify_on_resolve_case,
notify_on_case_severity,
channel_role_arn
FROM aws.supportapp.slack_channel_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual slack_channel_configuration.

SELECT
region,
team_id,
channel_id,
channel_name,
notify_on_create_or_reopen_case,
notify_on_add_correspondence_to_case,
notify_on_resolve_case,
notify_on_case_severity,
channel_role_arn
FROM aws.supportapp.slack_channel_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<TeamId>|<ChannelId>';

INSERT example

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

/*+ create */
INSERT INTO aws.supportapp.slack_channel_configurations (
TeamId,
ChannelId,
NotifyOnCaseSeverity,
ChannelRoleArn,
region
)
SELECT
'{{ TeamId }}',
'{{ ChannelId }}',
'{{ NotifyOnCaseSeverity }}',
'{{ ChannelRoleArn }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

supportapp:CreateSlackChannelConfiguration,
supportapp:ListSlackChannelConfigurations

Read

supportapp:ListSlackChannelConfigurations

Update

supportapp:UpdateSlackChannelConfiguration,
supportapp:ListSlackChannelConfigurations

Delete

supportapp:DeleteSlackChannelConfiguration,
supportapp:ListSlackChannelConfigurations

List

supportapp:ListSlackChannelConfigurations