The CDK Construct Library for AWS::Chatbot
AWS::Chatbot Construct Library---
AWS Chatbot is an AWS service that enables DevOps and software development teams to use Slack chat rooms to monitor and respond to operational events in their AWS Cloud. AWS Chatbot processes AWS service notifications from Amazon Simple Notification Service (Amazon SNS), and forwards them to Slack chat rooms so teams can analyze and act on them immediately, regardless of location.
This module is part of the AWS Cloud Development Kit project.
# Example automatically generated from non-compiling source. May contain errors. import aws_cdk.aws_chatbot as chatbot import aws_cdk.aws_sns as sns slack_channel = chatbot.SlackChannelConfiguration(self, "MySlackChannel", slack_channel_configuration_name="YOUR_CHANNEL_NAME", slack_workspace_id="YOUR_SLACK_WORKSPACE_ID", slack_channel_id="YOUR_SLACK_CHANNEL_ID" ) slack_channel.add_to_role_policy(iam.PolicyStatement( effect=iam.Effect.ALLOW, actions=["s3:GetObject" ], resources=["arn:aws:s3:::abc/xyz/123.txt"] )) slack_channel.add_notification_topic(sns.Topic(self, "MyTopic"))
Slack channel configuration automatically create a log group with the name
us-east-1 upon first execution with
log data set to never expire.
logRetention property can be used to set a different expiration period. A log group will be created if not already exists.
If the log group already exists, it's expiration will be configured to the value specified in this construct (never expire, by default).
By default, CDK uses the AWS SDK retry options when interacting with the log group. The
allows you to customize the maximum number of retries and base backoff duration.
Note that, if
logRetention is set, a CloudFormation custom
resource is added
to the stack that pre-creates the log group as part of the stack deployment, if it already doesn't exist, and sets the
correct log retention period (never expire, by default).
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size aws_cdk.aws_chatbot-1.140.0-py3-none-any.whl (50.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size aws-cdk.aws-chatbot-1.140.0.tar.gz (51.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for aws_cdk.aws_chatbot-1.140.0-py3-none-any.whl
Hashes for aws-cdk.aws-chatbot-1.140.0.tar.gz