Class CfnMicrosoftTeamsChannelConfiguration.Builder

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

@Stability(Stable) public static final class CfnMicrosoftTeamsChannelConfiguration.Builder extends Object implements software.amazon.jsii.Builder<CfnMicrosoftTeamsChannelConfiguration>
  • Method Details

    • create

      @Stability(Stable) public static CfnMicrosoftTeamsChannelConfiguration.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 CfnMicrosoftTeamsChannelConfiguration.Builder.
    • configurationName

      @Stability(Stable) public CfnMicrosoftTeamsChannelConfiguration.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 CfnMicrosoftTeamsChannelConfiguration.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
    • teamId

      @Stability(Stable) public CfnMicrosoftTeamsChannelConfiguration.Builder teamId(String teamId)
      The ID of the Microsoft Team authorized with AWS Chatbot .

      To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more details, see steps 1-4 in Get started with Microsoft Teams in the AWS Chatbot Administrator Guide .

      Parameters:
      teamId - The ID of the Microsoft Team authorized with AWS Chatbot . This parameter is required.
      Returns:
      this
    • teamsChannelId

      @Stability(Stable) public CfnMicrosoftTeamsChannelConfiguration.Builder teamsChannelId(String teamsChannelId)
      The ID of the Microsoft Teams channel.

      To get the channel ID, open Microsoft Teams, right click on the channel name in the left pane, then choose Copy. An example of the channel ID syntax is: 19%3ab6ef35dc342d56ba5654e6fc6d25a071%40thread.tacv2 .

      Parameters:
      teamsChannelId - The ID of the Microsoft Teams channel. This parameter is required.
      Returns:
      this
    • teamsTenantId

      @Stability(Stable) public CfnMicrosoftTeamsChannelConfiguration.Builder teamsTenantId(String teamsTenantId)
      The ID of the Microsoft Teams tenant.

      To get the tenant ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the tenant ID from the console. For more details, see steps 1-4 in Get started with Microsoft Teams in the AWS Chatbot Administrator Guide .

      Parameters:
      teamsTenantId - The ID of the Microsoft Teams tenant. This parameter is required.
      Returns:
      this
    • guardrailPolicies

      @Stability(Stable) public CfnMicrosoftTeamsChannelConfiguration.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 CfnMicrosoftTeamsChannelConfiguration.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 CfnMicrosoftTeamsChannelConfiguration.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 CfnMicrosoftTeamsChannelConfiguration.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 CfnMicrosoftTeamsChannelConfiguration.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 CfnMicrosoftTeamsChannelConfiguration build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMicrosoftTeamsChannelConfiguration>
      Returns:
      a newly built instance of CfnMicrosoftTeamsChannelConfiguration.