public static final class CfnSlackChannelConfigurationProps.Builder
extends java.lang.Object
CfnSlackChannelConfigurationProps
Constructor and Description |
---|
Builder() |
public CfnSlackChannelConfigurationProps.Builder configurationName(java.lang.String configurationName)
CfnSlackChannelConfigurationProps.getConfigurationName()
configurationName
- The name of the configuration. This parameter is required.this
public CfnSlackChannelConfigurationProps.Builder iamRoleArn(java.lang.String iamRoleArn)
CfnSlackChannelConfigurationProps.getIamRoleArn()
iamRoleArn
- The ARN of the IAM role that defines the permissions for AWS Chatbot . This parameter is required.
This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot .this
public CfnSlackChannelConfigurationProps.Builder slackChannelId(java.lang.String slackChannelId)
CfnSlackChannelConfigurationProps.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 CfnSlackChannelConfigurationProps.Builder slackWorkspaceId(java.lang.String slackWorkspaceId)
CfnSlackChannelConfigurationProps.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 CfnSlackChannelConfigurationProps.Builder guardrailPolicies(java.util.List<java.lang.String> guardrailPolicies)
CfnSlackChannelConfigurationProps.getGuardrailPolicies()
guardrailPolicies
- The list of IAM policy ARNs that are applied as channel guardrails.
The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.this
public CfnSlackChannelConfigurationProps.Builder loggingLevel(java.lang.String loggingLevel)
CfnSlackChannelConfigurationProps.getLoggingLevel()
loggingLevel
- Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
Logging levels include ERROR
, INFO
, or NONE
.this
public CfnSlackChannelConfigurationProps.Builder snsTopicArns(java.util.List<java.lang.String> snsTopicArns)
CfnSlackChannelConfigurationProps.getSnsTopicArns()
snsTopicArns
- The ARNs of the SNS topics that deliver notifications to AWS Chatbot .this
public CfnSlackChannelConfigurationProps.Builder userRoleRequired(java.lang.Boolean userRoleRequired)
CfnSlackChannelConfigurationProps.getUserRoleRequired()
userRoleRequired
- Enables use of a user role requirement in your chat configuration.this
public CfnSlackChannelConfigurationProps.Builder userRoleRequired(IResolvable userRoleRequired)
CfnSlackChannelConfigurationProps.getUserRoleRequired()
userRoleRequired
- Enables use of a user role requirement in your chat configuration.this
public CfnSlackChannelConfigurationProps build()
CfnSlackChannelConfigurationProps
java.lang.NullPointerException
- if any required attribute was not provided