Class CfnMicrosoftTeamsChannelConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.chatbot.CfnMicrosoftTeamsChannelConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMicrosoftTeamsChannelConfigurationProps>
- Enclosing interface:
CfnMicrosoftTeamsChannelConfigurationProps
@Stability(Stable)
public static final class CfnMicrosoftTeamsChannelConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMicrosoftTeamsChannelConfigurationProps>
A builder for
CfnMicrosoftTeamsChannelConfigurationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configurationName
(String configurationName) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getConfigurationName()
guardrailPolicies
(List<String> guardrailPolicies) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getGuardrailPolicies()
iamRoleArn
(String iamRoleArn) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getIamRoleArn()
loggingLevel
(String loggingLevel) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getLoggingLevel()
snsTopicArns
(List<String> snsTopicArns) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getSnsTopicArns()
Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getTeamId()
teamsChannelId
(String teamsChannelId) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getTeamsChannelId()
teamsTenantId
(String teamsTenantId) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getTeamsTenantId()
userRoleRequired
(Boolean userRoleRequired) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getUserRoleRequired()
userRoleRequired
(IResolvable userRoleRequired) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getUserRoleRequired()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationName
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder configurationName(String configurationName) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getConfigurationName()
- Parameters:
configurationName
- The name of the configuration. This parameter is required.- Returns:
this
-
iamRoleArn
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder iamRoleArn(String iamRoleArn) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getIamRoleArn()
- Parameters:
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 .- Returns:
this
-
teamId
Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getTeamId()
- Parameters:
teamId
- The ID of the Microsoft Team authorized with AWS Chatbot . This parameter is required. 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 .- Returns:
this
-
teamsChannelId
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder teamsChannelId(String teamsChannelId) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getTeamsChannelId()
- Parameters:
teamsChannelId
- The id of the Microsoft Teams channel. This parameter is required.- Returns:
this
-
teamsTenantId
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder teamsTenantId(String teamsTenantId) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getTeamsTenantId()
- Parameters:
teamsTenantId
- The ID of the Microsoft Teams tenant. This parameter is required. 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 .- Returns:
this
-
guardrailPolicies
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder guardrailPolicies(List<String> guardrailPolicies) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.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
-
loggingLevel
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder loggingLevel(String loggingLevel) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.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
-
snsTopicArns
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder snsTopicArns(List<String> snsTopicArns) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getSnsTopicArns()
- Parameters:
snsTopicArns
- The ARNs of the SNS topics that deliver notifications to AWS Chatbot .- Returns:
this
-
userRoleRequired
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder userRoleRequired(Boolean userRoleRequired) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getUserRoleRequired()
- Parameters:
userRoleRequired
- Enables use of a user role requirement in your chat configuration.- Returns:
this
-
userRoleRequired
@Stability(Stable) public CfnMicrosoftTeamsChannelConfigurationProps.Builder userRoleRequired(IResolvable userRoleRequired) Sets the value ofCfnMicrosoftTeamsChannelConfigurationProps.getUserRoleRequired()
- Parameters:
userRoleRequired
- Enables use of a user role requirement in your chat configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMicrosoftTeamsChannelConfigurationProps>
- Returns:
- a new instance of
CfnMicrosoftTeamsChannelConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-