@Stability(value=Experimental) public static final class SlackChannelConfiguration.Builder extends Object implements software.amazon.jsii.Builder<SlackChannelConfiguration>
SlackChannelConfiguration.| Modifier and Type | Method and Description |
|---|---|
SlackChannelConfiguration |
build() |
static SlackChannelConfiguration.Builder |
create(software.constructs.Construct scope,
String id) |
SlackChannelConfiguration.Builder |
loggingLevel(LoggingLevel loggingLevel)
(experimental) Specifies the logging level for this configuration.
|
SlackChannelConfiguration.Builder |
logRetention(RetentionDays logRetention)
(experimental) The number of days log events are kept in CloudWatch Logs.
|
SlackChannelConfiguration.Builder |
logRetentionRetryOptions(LogRetentionRetryOptions logRetentionRetryOptions)
(experimental) When log retention is specified, a custom resource attempts to create the CloudWatch log group.
|
SlackChannelConfiguration.Builder |
logRetentionRole(IRole logRetentionRole)
(experimental) The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
|
SlackChannelConfiguration.Builder |
notificationTopics(List<? extends ITopic> notificationTopics)
(experimental) The SNS topics that deliver notifications to AWS Chatbot.
|
SlackChannelConfiguration.Builder |
role(IRole role)
(experimental) The permission role of Slack channel configuration.
|
SlackChannelConfiguration.Builder |
slackChannelConfigurationName(String slackChannelConfigurationName)
(experimental) The name of Slack channel configuration.
|
SlackChannelConfiguration.Builder |
slackChannelId(String slackChannelId)
(experimental) The ID of the Slack channel.
|
SlackChannelConfiguration.Builder |
slackWorkspaceId(String slackWorkspaceId)
(experimental) The ID of the Slack workspace authorized with AWS Chatbot.
|
@Stability(value=Experimental) public static SlackChannelConfiguration.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.SlackChannelConfiguration.Builder.@Stability(value=Experimental) public SlackChannelConfiguration.Builder slackChannelConfigurationName(String slackChannelConfigurationName)
slackChannelConfigurationName - The name of Slack channel configuration. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration.Builder slackChannelId(String slackChannelId)
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.
slackChannelId - The ID of the Slack channel. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration.Builder slackWorkspaceId(String slackWorkspaceId)
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.
slackWorkspaceId - The ID of the Slack workspace authorized with AWS Chatbot. This parameter is required.thishttps://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro@Stability(value=Experimental) public SlackChannelConfiguration.Builder loggingLevel(LoggingLevel loggingLevel)
This property affects the log entries pushed to Amazon CloudWatch Logs.
Default: LoggingLevel.NONE
loggingLevel - Specifies the logging level for this configuration. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration.Builder logRetention(RetentionDays logRetention)
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
logRetention - The number of days log events are kept in CloudWatch Logs. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration.Builder logRetentionRetryOptions(LogRetentionRetryOptions logRetentionRetryOptions)
These options control the retry policy when interacting with CloudWatch APIs.
Default: - Default AWS SDK retry options.
logRetentionRetryOptions - When log retention is specified, a custom resource attempts to create the CloudWatch log group. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration.Builder logRetentionRole(IRole logRetentionRole)
Default: - A new role is created.
logRetentionRole - The IAM role for the Lambda function associated with the custom resource that sets the retention policy. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration.Builder notificationTopics(List<? extends ITopic> notificationTopics)
Default: None
notificationTopics - The SNS topics that deliver notifications to AWS Chatbot. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration.Builder role(IRole role)
Default: - A role will be created.
role - The permission role of Slack channel configuration. This parameter is required.this@Stability(value=Experimental) public SlackChannelConfiguration build()
build in interface software.amazon.jsii.Builder<SlackChannelConfiguration>Copyright © 2021. All rights reserved.