Class CfnBotAlias.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBotAlias.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotAlias>
- Enclosing class:
- CfnBotAlias
@Stability(Stable)
public static final class CfnBotAlias.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotAlias>
A fluent builder for
CfnBotAlias
.-
Method Summary
Modifier and TypeMethodDescriptionbotAliasLocaleSettings
(List<? extends Object> botAliasLocaleSettings) Specifies settings that are unique to a locale.botAliasLocaleSettings
(IResolvable botAliasLocaleSettings) Specifies settings that are unique to a locale.botAliasName
(String botAliasName) The name of the bot alias.botAliasTags
(List<? extends Object> botAliasTags) An array of key-value pairs to apply to this resource.botAliasTags
(IResolvable botAliasTags) An array of key-value pairs to apply to this resource.The unique identifier of the bot.botVersion
(String botVersion) The version of the bot that the bot alias references.build()
conversationLogSettings
(IResolvable conversationLogSettings) Specifies whether Amazon Lex logs text and audio for conversations with the bot.conversationLogSettings
(CfnBotAlias.ConversationLogSettingsProperty conversationLogSettings) Specifies whether Amazon Lex logs text and audio for conversations with the bot.static CfnBotAlias.Builder
description
(String description) The description of the bot alias.sentimentAnalysisSettings
(Object sentimentAnalysisSettings) Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnBotAlias.Builder
.
-
botAliasName
The name of the bot alias.- Parameters:
botAliasName
- The name of the bot alias. This parameter is required.- Returns:
this
-
botId
The unique identifier of the bot.- Parameters:
botId
- The unique identifier of the bot. This parameter is required.- Returns:
this
-
botAliasLocaleSettings
@Stability(Stable) public CfnBotAlias.Builder botAliasLocaleSettings(IResolvable botAliasLocaleSettings) Specifies settings that are unique to a locale.For example, you can use different Lambda function depending on the bot's locale.
- Parameters:
botAliasLocaleSettings
- Specifies settings that are unique to a locale. This parameter is required.- Returns:
this
-
botAliasLocaleSettings
@Stability(Stable) public CfnBotAlias.Builder botAliasLocaleSettings(List<? extends Object> botAliasLocaleSettings) Specifies settings that are unique to a locale.For example, you can use different Lambda function depending on the bot's locale.
- Parameters:
botAliasLocaleSettings
- Specifies settings that are unique to a locale. This parameter is required.- Returns:
this
-
botAliasTags
An array of key-value pairs to apply to this resource.You can only add tags when you specify an alias.
For more information, see Tag .
- Parameters:
botAliasTags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
-
botAliasTags
An array of key-value pairs to apply to this resource.You can only add tags when you specify an alias.
For more information, see Tag .
- Parameters:
botAliasTags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
-
botVersion
The version of the bot that the bot alias references.- Parameters:
botVersion
- The version of the bot that the bot alias references. This parameter is required.- Returns:
this
-
conversationLogSettings
@Stability(Stable) public CfnBotAlias.Builder conversationLogSettings(IResolvable conversationLogSettings) Specifies whether Amazon Lex logs text and audio for conversations with the bot.When you enable conversation logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch logs. Audio logs store input in Amazon S3 .
- Parameters:
conversationLogSettings
- Specifies whether Amazon Lex logs text and audio for conversations with the bot. This parameter is required.- Returns:
this
-
conversationLogSettings
@Stability(Stable) public CfnBotAlias.Builder conversationLogSettings(CfnBotAlias.ConversationLogSettingsProperty conversationLogSettings) Specifies whether Amazon Lex logs text and audio for conversations with the bot.When you enable conversation logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch logs. Audio logs store input in Amazon S3 .
- Parameters:
conversationLogSettings
- Specifies whether Amazon Lex logs text and audio for conversations with the bot. This parameter is required.- Returns:
this
-
description
The description of the bot alias.- Parameters:
description
- The description of the bot alias. This parameter is required.- Returns:
this
-
sentimentAnalysisSettings
@Stability(Stable) public CfnBotAlias.Builder sentimentAnalysisSettings(Object sentimentAnalysisSettings) Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.- Parameters:
sentimentAnalysisSettings
- Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBotAlias>
- Returns:
- a newly built instance of
CfnBotAlias
.
-