Class CfnSlackChannelConfigurationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.chatbot.CfnSlackChannelConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSlackChannelConfigurationMixinProps>
- Enclosing interface:
CfnSlackChannelConfigurationMixinProps
@Stability(Stable)
public static final class CfnSlackChannelConfigurationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSlackChannelConfigurationMixinProps>
A builder for
CfnSlackChannelConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configurationName(String configurationName) Sets the value ofCfnSlackChannelConfigurationMixinProps.getConfigurationName()customizationResourceArns(List<String> customizationResourceArns) Sets the value ofCfnSlackChannelConfigurationMixinProps.getCustomizationResourceArns()guardrailPolicies(List<String> guardrailPolicies) Sets the value ofCfnSlackChannelConfigurationMixinProps.getGuardrailPolicies()iamRoleArn(String iamRoleArn) Sets the value ofCfnSlackChannelConfigurationMixinProps.getIamRoleArn()iamRoleArn(IRoleRef iamRoleArn) Sets the value ofCfnSlackChannelConfigurationMixinProps.getIamRoleArn()loggingLevel(String loggingLevel) Sets the value ofCfnSlackChannelConfigurationMixinProps.getLoggingLevel()slackChannelId(String slackChannelId) Sets the value ofCfnSlackChannelConfigurationMixinProps.getSlackChannelId()slackWorkspaceId(String slackWorkspaceId) Sets the value ofCfnSlackChannelConfigurationMixinProps.getSlackWorkspaceId()snsTopicArns(List<? extends Object> snsTopicArns) Sets the value ofCfnSlackChannelConfigurationMixinProps.getSnsTopicArns()Sets the value ofCfnSlackChannelConfigurationMixinProps.getTags()userRoleRequired(Boolean userRoleRequired) Sets the value ofCfnSlackChannelConfigurationMixinProps.getUserRoleRequired()userRoleRequired(IResolvable userRoleRequired) Sets the value ofCfnSlackChannelConfigurationMixinProps.getUserRoleRequired()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationName
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder configurationName(String configurationName) Sets the value ofCfnSlackChannelConfigurationMixinProps.getConfigurationName()- Parameters:
configurationName- The name of the configuration.- Returns:
this
-
customizationResourceArns
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder customizationResourceArns(List<String> customizationResourceArns) Sets the value ofCfnSlackChannelConfigurationMixinProps.getCustomizationResourceArns()- Parameters:
customizationResourceArns- Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for .- Returns:
this
-
guardrailPolicies
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder guardrailPolicies(List<String> guardrailPolicies) Sets the value ofCfnSlackChannelConfigurationMixinProps.getGuardrailPolicies()- Parameters:
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.- Returns:
this
-
iamRoleArn
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder iamRoleArn(String iamRoleArn) Sets the value ofCfnSlackChannelConfigurationMixinProps.getIamRoleArn()- Parameters:
iamRoleArn- The ARN of the IAM role that defines the permissions for . This is a user-defined role that will assume. This is not the service-linked role. For more information, see IAM Policies for in chat applications .- Returns:
this
-
iamRoleArn
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder iamRoleArn(IRoleRef iamRoleArn) Sets the value ofCfnSlackChannelConfigurationMixinProps.getIamRoleArn()- Parameters:
iamRoleArn- The ARN of the IAM role that defines the permissions for . This is a user-defined role that will assume. This is not the service-linked role. For more information, see IAM Policies for in chat applications .- Returns:
this
-
loggingLevel
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder loggingLevel(String loggingLevel) Sets the value ofCfnSlackChannelConfigurationMixinProps.getLoggingLevel()- Parameters:
loggingLevel- Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. Logging levels includeERROR,INFO, orNONE.- Returns:
this
-
slackChannelId
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder slackChannelId(String slackChannelId) Sets the value ofCfnSlackChannelConfigurationMixinProps.getSlackChannelId()- Parameters:
slackChannelId- The ID of the Slack channel. 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 character string at the end of the URL. For example,ABCBBLZZZ.- Returns:
this
-
slackWorkspaceId
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder slackWorkspaceId(String slackWorkspaceId) Sets the value ofCfnSlackChannelConfigurationMixinProps.getSlackWorkspaceId()- Parameters:
slackWorkspaceId- The ID of the Slack workspace authorized with . To get the workspace ID, you must perform the initial authorization flow with Slack in the in chat applications console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-3 in Tutorial: Get started with Slack in the in chat applications User Guide .- Returns:
this
-
snsTopicArns
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder snsTopicArns(List<? extends Object> snsTopicArns) Sets the value ofCfnSlackChannelConfigurationMixinProps.getSnsTopicArns()- Parameters:
snsTopicArns- The ARNs of the SNS topics that deliver notifications to .- Returns:
this
-
tags
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnSlackChannelConfigurationMixinProps.getTags()- Parameters:
tags- The tags to add to the configuration.- Returns:
this
-
userRoleRequired
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder userRoleRequired(Boolean userRoleRequired) Sets the value ofCfnSlackChannelConfigurationMixinProps.getUserRoleRequired()- Parameters:
userRoleRequired- Enables use of a user role requirement in your chat configuration.- Returns:
this
-
userRoleRequired
@Stability(Stable) public CfnSlackChannelConfigurationMixinProps.Builder userRoleRequired(IResolvable userRoleRequired) Sets the value ofCfnSlackChannelConfigurationMixinProps.getUserRoleRequired()- Parameters:
userRoleRequired- Enables use of a user role requirement in your chat configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSlackChannelConfigurationMixinProps>- Returns:
- a new instance of
CfnSlackChannelConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-