AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Chatbot::SlackChannelConfiguration

CfnSlackChannelConfiguration

> AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged. The `AWS::Chatbot::SlackChannelConfiguration` resource configures a Slack channel to allow users to use with CloudFormation templates. This resource requires some setup to be done in the in chat applications console. To provide the required Slack workspace ID, you must perform the initial authorization flow with Slack in the in chat applications console, then copy and paste the workspace ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html#slack-client-setup) in the *in chat applications User Guide* .

Import

import { CfnSlackChannelConfiguration } from 'aws-cdk-lib/aws-chatbot';

Or use the module namespace:

import * as chatbot from 'aws-cdk-lib/aws-chatbot';
// chatbot.CfnSlackChannelConfiguration

Properties

Configuration passed to the constructor as CfnSlackChannelConfigurationProps.

configurationNameRequired
string

The name of the configuration.

iamRoleArnRequired
string | IRoleRef

The ARN of the IAM role that defines the permissions for . This is a user-defined role that will assume. This is not the service-linked role. For more information, see [IAM Policies for in chat applications](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) .

slackChannelIdRequired
string

The ID of the Slack channel. To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the character string at the end of the URL. For example, `ABCBBLZZZ` .

slackWorkspaceIdRequired
string

The ID of the Slack workspace authorized with . To get the workspace ID, you must perform the initial authorization flow with Slack in the in chat applications console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html#slack-client-setup) in the *in chat applications User Guide* .

customizationResourceArnsOptional
string[]

Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for .

guardrailPoliciesOptional
string[]

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

loggingLevelOptional
string

Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. Logging levels include `ERROR` , `INFO` , or `NONE` .

Default: - "NONE"

snsTopicArnsOptional
string | ITopicRef[]

The ARNs of the SNS topics that deliver notifications to .

tagsOptional
CfnTag[]

The tags to add to the configuration.

userRoleRequiredOptional
boolean | IResolvable

Enables use of a user role requirement in your chat configuration.

Default: - false

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-chatbot
CFN TypeAWS::Chatbot::SlackChannelConfiguration
Properties10

External Links