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.
Idawscc.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.

For more information, see AWS::SupportApp::SlackChannelConfiguration.

Methods

NameResourceAccessible byRequired Params
create_resourceslack_channel_configurationsINSERTTeamId, ChannelId, NotifyOnCaseSeverity, ChannelRoleArn, region
delete_resourceslack_channel_configurationsDELETEIdentifier, region
update_resourceslack_channel_configurationsUPDATEIdentifier, PatchDocument, region
list_resourcesslack_channel_configurations_list_onlySELECTregion
get_resourceslack_channel_configurationsSELECTIdentifier, region

SELECT examples

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 awscc.supportapp.slack_channel_configurations
WHERE
region = 'us-east-1' AND
Identifier = '{{ team_id }}|{{ channel_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.supportapp.slack_channel_configurations (
TeamId,
ChannelId,
NotifyOnCaseSeverity,
ChannelRoleArn,
region
)
SELECT
'{{ team_id }}',
'{{ channel_id }}',
'{{ notify_on_case_severity }}',
'{{ channel_role_arn }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.supportapp.slack_channel_configurations
SET PatchDocument = string('{{ {
"ChannelName": channel_name,
"NotifyOnCreateOrReopenCase": notify_on_create_or_reopen_case,
"NotifyOnAddCorrespondenceToCase": notify_on_add_correspondence_to_case,
"NotifyOnResolveCase": notify_on_resolve_case,
"NotifyOnCaseSeverity": notify_on_case_severity,
"ChannelRoleArn": channel_role_arn
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ team_id }}|{{ channel_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.supportapp.slack_channel_configurations
WHERE
Identifier = '{{ team_id }}|{{ channel_id }}' AND
region = 'us-east-1';

Permissions

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

supportapp:CreateSlackChannelConfiguration,
supportapp:ListSlackChannelConfigurations