public static final class SlackChannelConfigurationProps.Builder
extends java.lang.Object
SlackChannelConfigurationProps
Constructor and Description |
---|
Builder() |
public SlackChannelConfigurationProps.Builder slackChannelConfigurationName(java.lang.String slackChannelConfigurationName)
SlackChannelConfigurationProps.getSlackChannelConfigurationName()
slackChannelConfigurationName
- The name of Slack channel configuration. This parameter is required.this
public SlackChannelConfigurationProps.Builder slackChannelId(java.lang.String slackChannelId)
SlackChannelConfigurationProps.getSlackChannelId()
slackChannelId
- The ID of the Slack channel. This parameter is required.
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.this
public SlackChannelConfigurationProps.Builder slackWorkspaceId(java.lang.String slackWorkspaceId)
SlackChannelConfigurationProps.getSlackWorkspaceId()
slackWorkspaceId
- The ID of the Slack workspace authorized with AWS Chatbot. This parameter is required.
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.this
public SlackChannelConfigurationProps.Builder loggingLevel(LoggingLevel loggingLevel)
SlackChannelConfigurationProps.getLoggingLevel()
loggingLevel
- Specifies the logging level for this configuration.
This property affects the log entries pushed to Amazon CloudWatch Logs.this
public SlackChannelConfigurationProps.Builder logRetention(RetentionDays logRetention)
SlackChannelConfigurationProps.getLogRetention()
logRetention
- The 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
.this
public SlackChannelConfigurationProps.Builder logRetentionRetryOptions(LogRetentionRetryOptions logRetentionRetryOptions)
SlackChannelConfigurationProps.getLogRetentionRetryOptions()
logRetentionRetryOptions
- When 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.this
public SlackChannelConfigurationProps.Builder logRetentionRole(IRole logRetentionRole)
SlackChannelConfigurationProps.getLogRetentionRole()
logRetentionRole
- The IAM role for the Lambda function associated with the custom resource that sets the retention policy.this
public SlackChannelConfigurationProps.Builder notificationTopics(java.util.List<? extends ITopic> notificationTopics)
SlackChannelConfigurationProps.getNotificationTopics()
notificationTopics
- The SNS topics that deliver notifications to AWS Chatbot.this
public SlackChannelConfigurationProps.Builder role(IRole role)
SlackChannelConfigurationProps.getRole()
role
- The permission role of Slack channel configuration.this
public SlackChannelConfigurationProps build()
SlackChannelConfigurationProps
java.lang.NullPointerException
- if any required attribute was not provided