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
DescriptionResource schema for AWS::Chatbot::SlackChannelConfiguration.
Idaws.chatbot.slack_channel_configurations

Fields

NameDatatypeDescription
slack_workspace_idstringThe id of the Slack workspace
slack_channel_idstringThe id of the Slack channel
configuration_namestringThe name of the configuration
iam_role_arnstringThe ARN of the IAM role that defines the permissions for AWS Chatbot
sns_topic_arnsarrayARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.
logging_levelstringSpecifies the logging level for this configuration:ERROR,INFO or NONE. This property affects the log entries pushed to Amazon CloudWatch logs
arnstringAmazon Resource Name (ARN) of the configuration
guardrail_policiesarrayThe list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
tagsarrayThe tags to add to the configuration
user_role_requiredbooleanEnables use of a user role requirement in your chat configuration
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSlackWorkspaceId, SlackChannelId, ConfigurationName, IamRoleArn, 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,
slack_workspace_id,
slack_channel_id,
configuration_name,
iam_role_arn,
sns_topic_arns,
logging_level,
arn,
guardrail_policies,
tags,
user_role_required
FROM aws.chatbot.slack_channel_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual slack_channel_configuration.

SELECT
region,
slack_workspace_id,
slack_channel_id,
configuration_name,
iam_role_arn,
sns_topic_arns,
logging_level,
arn,
guardrail_policies,
tags,
user_role_required
FROM aws.chatbot.slack_channel_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

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.chatbot.slack_channel_configurations (
SlackWorkspaceId,
SlackChannelId,
ConfigurationName,
IamRoleArn,
region
)
SELECT
'{{ SlackWorkspaceId }}',
'{{ SlackChannelId }}',
'{{ ConfigurationName }}',
'{{ IamRoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.chatbot.slack_channel_configurations
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

chatbot:CreateSlackChannelConfiguration,
chatbot:TagResource,
iam:PassRole,
iam:CreateServiceLinkedRole

Read

chatbot:DescribeSlackChannelConfigurations

Update

chatbot:UpdateSlackChannelConfiguration,
chatbot:TagResource,
chatbot:UntagResource,
chatbot:ListTagsForResource,
iam:PassRole

Delete

chatbot:DeleteSlackChannelConfiguration

List

chatbot:DescribeSlackChannelConfigurations