Class CfnSlackChannelConfiguration.Builder

java.lang.Object
software.amazon.awscdk.services.chatbot.CfnSlackChannelConfiguration.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSlackChannelConfiguration>
Enclosing class:
CfnSlackChannelConfiguration

@Stability(Stable) public static final class CfnSlackChannelConfiguration.Builder extends Object implements software.amazon.jsii.Builder<CfnSlackChannelConfiguration>
A fluent builder for CfnSlackChannelConfiguration.
  • Method Details

    • create

      @Stability(Stable) public static CfnSlackChannelConfiguration.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSlackChannelConfiguration.Builder.
    • configurationName

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder configurationName(String configurationName)
      The name of the configuration.

      Parameters:
      configurationName - The name of the configuration. This parameter is required.
      Returns:
      this
    • iamRoleArn

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder iamRoleArn(String iamRoleArn)
      The ARN of the IAM role that defines the permissions for AWS Chatbot .

      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 .

      Parameters:
      iamRoleArn - The ARN of the IAM role that defines the permissions for AWS Chatbot . This parameter is required.
      Returns:
      this
    • slackChannelId

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder slackChannelId(String 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 9-character string at the end of the URL. For example, ABCBBLZZZ .

      Parameters:
      slackChannelId - The ID of the Slack channel. This parameter is required.
      Returns:
      this
    • slackWorkspaceId

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder slackWorkspaceId(String slackWorkspaceId)
      The ID of the Slack workspace authorized with AWS Chatbot .

      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 .

      Parameters:
      slackWorkspaceId - The ID of the Slack workspace authorized with AWS Chatbot . This parameter is required.
      Returns:
      this
    • guardrailPolicies

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder guardrailPolicies(List<String> 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.

      Parameters:
      guardrailPolicies - The list of IAM policy ARNs that are applied as channel guardrails. This parameter is required.
      Returns:
      this
    • loggingLevel

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder loggingLevel(String 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 .

      Parameters:
      loggingLevel - Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. This parameter is required.
      Returns:
      this
    • snsTopicArns

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder snsTopicArns(List<String> snsTopicArns)
      The ARNs of the SNS topics that deliver notifications to AWS Chatbot .

      Parameters:
      snsTopicArns - The ARNs of the SNS topics that deliver notifications to AWS Chatbot . This parameter is required.
      Returns:
      this
    • userRoleRequired

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder userRoleRequired(Boolean userRoleRequired)
      Enables use of a user role requirement in your chat configuration.

      Parameters:
      userRoleRequired - Enables use of a user role requirement in your chat configuration. This parameter is required.
      Returns:
      this
    • userRoleRequired

      @Stability(Stable) public CfnSlackChannelConfiguration.Builder userRoleRequired(IResolvable userRoleRequired)
      Enables use of a user role requirement in your chat configuration.

      Parameters:
      userRoleRequired - Enables use of a user role requirement in your chat configuration. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnSlackChannelConfiguration build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSlackChannelConfiguration>
      Returns:
      a newly built instance of CfnSlackChannelConfiguration.