Skip to main content

slack_channel_configurations

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

Overview

Nameslack_channel_configurations
TypeResource
Idaws.support_app.slack_channel_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringThe point where pagination should resume when the response returns only partial results. (pattern: <code>^\S+$</code>)
slack_channel_configurationsarrayThe configurations for a Slack channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_slack_channel_configurationsselectregionLists the Slack channel configurations for an Amazon Web Services account.
create_slack_channel_configurationinsertregion, channelId, channelRoleArn, notifyOnCaseSeverity, teamIdCreates a Slack channel configuration for your Amazon Web Services account. You can add up to 5 Slack workspaces for your account. You can add up to 20 Slack channels for your account. A Slack channel can have up to 100 Amazon Web Services accounts. This means that only 100 accounts can add the same Slack channel to the Amazon Web Services Support App. We recommend that you only add the accounts that you need to manage support cases for your organization. This can reduce the notifications about case updates that you receive in the Slack channel. We recommend that you choose a private Slack channel so that only members in that channel have read and write access to your support cases. Anyone in your Slack channel can create, update, or resolve support cases for your account. Users require an invitation to join private channels.
update_slack_channel_configurationupdateregion, channelId, teamIdUpdates the configuration for a Slack channel, such as case update notifications.
delete_slack_channel_configurationdeleteregionDeletes a Slack channel configuration from your Amazon Web Services account. This operation doesn't delete your Slack channel.

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

Lists the Slack channel configurations for an Amazon Web Services account.

SELECT
next_token,
slack_channel_configurations
FROM aws.support_app.slack_channel_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a Slack channel configuration for your Amazon Web Services account. You can add up to 5 Slack workspaces for your account. You can add up to 20 Slack channels for your account. A Slack channel can have up to 100 Amazon Web Services accounts. This means that only 100 accounts can add the same Slack channel to the Amazon Web Services Support App. We recommend that you only add the accounts that you need to manage support cases for your organization. This can reduce the notifications about case updates that you receive in the Slack channel. We recommend that you choose a private Slack channel so that only members in that channel have read and write access to your support cases. Anyone in your Slack channel can create, update, or resolve support cases for your account. Users require an invitation to join private channels.

INSERT INTO aws.support_app.slack_channel_configurations (
channelId,
channelName,
channelRoleArn,
notifyOnAddCorrespondenceToCase,
notifyOnCaseSeverity,
notifyOnCreateOrReopenCase,
notifyOnResolveCase,
teamId,
region
)
SELECT
'{{ channelId }}' /* required */,
'{{ channelName }}',
'{{ channelRoleArn }}' /* required */,
{{ notifyOnAddCorrespondenceToCase }},
'{{ notifyOnCaseSeverity }}' /* required */,
{{ notifyOnCreateOrReopenCase }},
{{ notifyOnResolveCase }},
'{{ teamId }}' /* required */,
'{{ region }}'
;

UPDATE examples

Updates the configuration for a Slack channel, such as case update notifications.

UPDATE aws.support_app.slack_channel_configurations
SET
channelId = '{{ channelId }}',
channelName = '{{ channelName }}',
channelRoleArn = '{{ channelRoleArn }}',
notifyOnAddCorrespondenceToCase = {{ notifyOnAddCorrespondenceToCase }},
notifyOnCaseSeverity = '{{ notifyOnCaseSeverity }}',
notifyOnCreateOrReopenCase = {{ notifyOnCreateOrReopenCase }},
notifyOnResolveCase = {{ notifyOnResolveCase }},
teamId = '{{ teamId }}'
WHERE
region = '{{ region }}' --required
AND channelId = '{{ channelId }}' --required
AND teamId = '{{ teamId }}' --required
RETURNING
channel_id,
channel_name,
channel_role_arn,
notify_on_add_correspondence_to_case,
notify_on_case_severity,
notify_on_create_or_reopen_case,
notify_on_resolve_case,
team_id;

DELETE examples

Deletes a Slack channel configuration from your Amazon Web Services account. This operation doesn't delete your Slack channel.

DELETE FROM aws.support_app.slack_channel_configurations
WHERE region = '{{ region }}' --required
;