public static final class CfnSlackChannelConfiguration.Builder
extends java.lang.Object
CfnSlackChannelConfiguration
.Modifier and Type | Method and Description |
---|---|
CfnSlackChannelConfiguration |
build() |
CfnSlackChannelConfiguration.Builder |
configurationName(java.lang.String configurationName)
The name of the configuration.
|
static CfnSlackChannelConfiguration.Builder |
create(Construct scope,
java.lang.String id) |
CfnSlackChannelConfiguration.Builder |
guardrailPolicies(java.util.List<java.lang.String> guardrailPolicies)
The list of IAM policy ARNs that are applied as channel guardrails.
|
CfnSlackChannelConfiguration.Builder |
iamRoleArn(java.lang.String iamRoleArn)
The ARN of the IAM role that defines the permissions for AWS Chatbot .
|
CfnSlackChannelConfiguration.Builder |
loggingLevel(java.lang.String loggingLevel)
Specifies the logging level for this configuration.
|
CfnSlackChannelConfiguration.Builder |
slackChannelId(java.lang.String slackChannelId)
The ID of the Slack channel.
|
CfnSlackChannelConfiguration.Builder |
slackWorkspaceId(java.lang.String slackWorkspaceId)
The ID of the Slack workspace authorized with AWS Chatbot .
|
CfnSlackChannelConfiguration.Builder |
snsTopicArns(java.util.List<java.lang.String> snsTopicArns)
The ARNs of the SNS topics that deliver notifications to AWS Chatbot .
|
CfnSlackChannelConfiguration.Builder |
userRoleRequired(java.lang.Boolean userRoleRequired)
Enables use of a user role requirement in your chat configuration.
|
CfnSlackChannelConfiguration.Builder |
userRoleRequired(IResolvable userRoleRequired)
Enables use of a user role requirement in your chat configuration.
|
public static CfnSlackChannelConfiguration.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnSlackChannelConfiguration.Builder
.public CfnSlackChannelConfiguration.Builder configurationName(java.lang.String configurationName)
configurationName
- The name of the configuration. This parameter is required.this
public CfnSlackChannelConfiguration.Builder iamRoleArn(java.lang.String iamRoleArn)
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 .
iamRoleArn
- The ARN of the IAM role that defines the permissions for AWS Chatbot . This parameter is required.this
public CfnSlackChannelConfiguration.Builder slackChannelId(java.lang.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
public CfnSlackChannelConfiguration.Builder slackWorkspaceId(java.lang.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.this
public CfnSlackChannelConfiguration.Builder guardrailPolicies(java.util.List<java.lang.String> guardrailPolicies)
The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
guardrailPolicies
- The list of IAM policy ARNs that are applied as channel guardrails. This parameter is required.this
public CfnSlackChannelConfiguration.Builder loggingLevel(java.lang.String loggingLevel)
Logging levels include ERROR
, INFO
, or NONE
.
loggingLevel
- Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. This parameter is required.this
public CfnSlackChannelConfiguration.Builder snsTopicArns(java.util.List<java.lang.String> snsTopicArns)
snsTopicArns
- The ARNs of the SNS topics that deliver notifications to AWS Chatbot . This parameter is required.this
public CfnSlackChannelConfiguration.Builder userRoleRequired(java.lang.Boolean userRoleRequired)
userRoleRequired
- Enables use of a user role requirement in your chat configuration. This parameter is required.this
public CfnSlackChannelConfiguration.Builder userRoleRequired(IResolvable userRoleRequired)
userRoleRequired
- Enables use of a user role requirement in your chat configuration. This parameter is required.this
public CfnSlackChannelConfiguration build()