A new Slack channel configuration.
import { SlackChannelConfiguration } from 'aws-cdk-lib/aws-chatbot';Or use the module namespace:
import * as chatbot from 'aws-cdk-lib/aws-chatbot';
// chatbot.SlackChannelConfigurationConfiguration passed to the constructor as SlackChannelConfigurationProps.
slackChannelConfigurationNameRequiredstringThe name of Slack channel configuration.
slackChannelIdRequiredstringThe 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 9-character string at the end of the URL. For example, ABCBBLZZZ.
slackWorkspaceIdRequiredstringThe ID of the Slack workspace authorized with AWS Chatbot. To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot User Guide.
guardrailPoliciesOptionalIManagedPolicy[]A list of IAM managed policies that are applied as channel guardrails.
Default: - The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
loggingLevelOptionalLoggingLevelSpecifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
Default: LoggingLevel.NONE
logRetentionOptionalRetentionDaysThe number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to `INFINITE`.
Default: logs.RetentionDays.INFINITE
logRetentionRetryOptionsOptionalLogRetentionRetryOptionsWhen log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs.
Default: - Default AWS SDK retry options.
logRetentionRoleOptionalIRoleThe IAM role for the Lambda function associated with the custom resource that sets the retention policy.
Default: - A new role is created.
notificationTopicsOptionalITopic[]The SNS topics that deliver notifications to AWS Chatbot.
Default: None
roleOptionalIRoleThe permission role of Slack channel configuration.
Default: - A role will be created.
userRoleRequiredOptionalbooleanEnables use of a user role requirement in your chat configuration.
Default: false
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-chatbot