Interface | Description |
---|---|
CfnSlackChannelConfigurationProps |
Properties for defining a `AWS::Chatbot::SlackChannelConfiguration`.
|
ISlackChannelConfiguration |
(experimental) Represents a Slack channel configuration.
|
ISlackChannelConfiguration.Jsii$Default |
Internal default implementation for
ISlackChannelConfiguration . |
SlackChannelConfigurationProps |
(experimental) Properties for a new Slack channel configuration.
|
Class | Description |
---|---|
CfnSlackChannelConfiguration |
A CloudFormation `AWS::Chatbot::SlackChannelConfiguration`.
|
CfnSlackChannelConfiguration.Builder |
A fluent builder for
CfnSlackChannelConfiguration . |
CfnSlackChannelConfigurationProps.Builder |
A builder for
CfnSlackChannelConfigurationProps |
CfnSlackChannelConfigurationProps.Jsii$Proxy |
An implementation for
CfnSlackChannelConfigurationProps |
ISlackChannelConfiguration.Jsii$Proxy |
A proxy class which represents a concrete javascript instance of this type.
|
SlackChannelConfiguration |
(experimental) A new Slack channel configuration.
|
SlackChannelConfiguration.Builder |
(experimental) A fluent builder for
SlackChannelConfiguration . |
SlackChannelConfigurationProps.Builder |
A builder for
SlackChannelConfigurationProps |
SlackChannelConfigurationProps.Jsii$Proxy |
An implementation for
SlackChannelConfigurationProps |
Enum | Description |
---|---|
LoggingLevel |
(experimental) Logging levels include ERROR, INFO, or NONE.
|
---
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 without compilation. See https://github.com/aws/jsii/issues/826 import software.amazon.awscdk.aws_chatbot; SlackChannelConfiguration slackChannel = new SlackChannelConfiguration(this, "MySlackChannel", new SlackChannelConfigurationProps() .slackChannelConfigurationName("YOUR_CHANNEL_NAME") .slackWorkspaceId("YOUR_SLACK_WORKSPACE_ID") .slackChannelId("YOUR_SLACK_CHANNEL_ID")); slackChannel.addToPrincipalPolicy(new PolicyStatement(new PolicyStatementProps() .effect(iam.Effect.getALLOW()) .actions(asList("s3:GetObject")) .resources(asList("arn:aws:s3:::abc/xyz/123.txt"))));
Slack channel configuration automatically create a log group with the name /aws/chatbot/<configuration-name>
in us-east-1
upon first execution with
log data set to never expire.
The 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 logRetentionRetryOptions
property
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).
Copyright © 2021. All rights reserved.