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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.supportapp.slack_channel_configurations
WHERE
Identifier = '{{ team_id }}|{{ channel_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

supportapp:CreateSlackChannelConfiguration,
supportapp:ListSlackChannelConfigurations