Class CfnBot.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot>
- Enclosing class:
CfnBot
CfnBot
.-
Method Summary
Modifier and TypeMethodDescriptionautoBuildBotLocales
(Boolean autoBuildBotLocales) Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.autoBuildBotLocales
(IResolvable autoBuildBotLocales) Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.botFileS3Location
(IResolvable botFileS3Location) The Amazon S3 location of files used to import a bot.botFileS3Location
(CfnBot.S3LocationProperty botFileS3Location) The Amazon S3 location of files used to import a bot.botLocales
(List<? extends Object> botLocales) A list of locales for the bot.botLocales
(IResolvable botLocales) A list of locales for the bot.A list of tags to add to the bot.botTags
(IResolvable botTags) A list of tags to add to the bot.build()
static CfnBot.Builder
dataPrivacy
(Object dataPrivacy) By default, data stored by Amazon Lex is encrypted.description
(String description) The description of the version.idleSessionTtlInSeconds
(Number idleSessionTtlInSeconds) The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.The name of the bot locale.The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.testBotAliasSettings
(IResolvable testBotAliasSettings) Specifies configuration settings for the alias used to test the bot.testBotAliasSettings
(CfnBot.TestBotAliasSettingsProperty testBotAliasSettings) Specifies configuration settings for the alias used to test the bot.testBotAliasTags
(List<? extends Object> testBotAliasTags) A list of tags to add to the test alias for a bot.testBotAliasTags
(IResolvable testBotAliasTags) A list of tags to add to the test alias for a bot.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnBot.Builder
.
-
dataPrivacy
By default, data stored by Amazon Lex is encrypted.The
DataPrivacy
structure provides settings that determine how Amazon Lex handles special cases of securing the data for your bot.- Parameters:
dataPrivacy
- By default, data stored by Amazon Lex is encrypted. This parameter is required.- Returns:
this
-
idleSessionTtlInSeconds
The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.
You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
- Parameters:
idleSessionTtlInSeconds
- The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. This parameter is required.- Returns:
this
-
name
The name of the bot locale.- Parameters:
name
- The name of the bot locale. This parameter is required.- Returns:
this
-
roleArn
The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role used to build and run the bot. This parameter is required.- Returns:
this
-
autoBuildBotLocales
Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.- Parameters:
autoBuildBotLocales
- Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change. This parameter is required.- Returns:
this
-
autoBuildBotLocales
Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.- Parameters:
autoBuildBotLocales
- Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change. This parameter is required.- Returns:
this
-
botFileS3Location
The Amazon S3 location of files used to import a bot.The files must be in the import format specified in JSON format for importing and exporting in the Amazon Lex developer guide.
- Parameters:
botFileS3Location
- The Amazon S3 location of files used to import a bot. This parameter is required.- Returns:
this
-
botFileS3Location
@Stability(Stable) public CfnBot.Builder botFileS3Location(CfnBot.S3LocationProperty botFileS3Location) The Amazon S3 location of files used to import a bot.The files must be in the import format specified in JSON format for importing and exporting in the Amazon Lex developer guide.
- Parameters:
botFileS3Location
- The Amazon S3 location of files used to import a bot. This parameter is required.- Returns:
this
-
botLocales
A list of locales for the bot.- Parameters:
botLocales
- A list of locales for the bot. This parameter is required.- Returns:
this
-
botLocales
A list of locales for the bot.- Parameters:
botLocales
- A list of locales for the bot. This parameter is required.- Returns:
this
-
botTags
A list of tags to add to the bot.You can only add tags when you import a bot. You can't use the
UpdateBot
operation to update tags. To update tags, use theTagResource
operation.- Parameters:
botTags
- A list of tags to add to the bot. This parameter is required.- Returns:
this
-
botTags
A list of tags to add to the bot.You can only add tags when you import a bot. You can't use the
UpdateBot
operation to update tags. To update tags, use theTagResource
operation.- Parameters:
botTags
- A list of tags to add to the bot. This parameter is required.- Returns:
this
-
description
The description of the version.- Parameters:
description
- The description of the version. This parameter is required.- Returns:
this
-
testBotAliasSettings
Specifies configuration settings for the alias used to test the bot.If the
TestBotAliasSettings
property is not specified, the settings are configured with default values.- Parameters:
testBotAliasSettings
- Specifies configuration settings for the alias used to test the bot. This parameter is required.- Returns:
this
-
testBotAliasSettings
@Stability(Stable) public CfnBot.Builder testBotAliasSettings(CfnBot.TestBotAliasSettingsProperty testBotAliasSettings) Specifies configuration settings for the alias used to test the bot.If the
TestBotAliasSettings
property is not specified, the settings are configured with default values.- Parameters:
testBotAliasSettings
- Specifies configuration settings for the alias used to test the bot. This parameter is required.- Returns:
this
-
testBotAliasTags
A list of tags to add to the test alias for a bot.You can only add tags when you import a bot. You can't use the
UpdateAlias
operation to update tags. To update tags on the test alias, use theTagResource
operation.- Parameters:
testBotAliasTags
- A list of tags to add to the test alias for a bot. This parameter is required.- Returns:
this
-
testBotAliasTags
A list of tags to add to the test alias for a bot.You can only add tags when you import a bot. You can't use the
UpdateAlias
operation to update tags. To update tags on the test alias, use theTagResource
operation.- Parameters:
testBotAliasTags
- A list of tags to add to the test alias for a bot. This parameter is required.- Returns:
this
-
build
-