Class CfnBot.Builder

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

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

    • create

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

      @Stability(Stable) public CfnBot.Builder dataPrivacy(Object 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

      @Stability(Stable) public CfnBot.Builder idleSessionTtlInSeconds(Number 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

      @Stability(Stable) public CfnBot.Builder name(String name)
      The name of the bot locale.

      Parameters:
      name - The name of the bot locale. This parameter is required.
      Returns:
      this
    • roleArn

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

      @Stability(Stable) public CfnBot.Builder autoBuildBotLocales(Boolean 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

      @Stability(Stable) public CfnBot.Builder autoBuildBotLocales(IResolvable 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

      @Stability(Stable) public CfnBot.Builder botFileS3Location(IResolvable 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

      @Stability(Stable) public CfnBot.Builder botLocales(IResolvable botLocales)
      A list of locales for the bot.

      Parameters:
      botLocales - A list of locales for the bot. This parameter is required.
      Returns:
      this
    • botLocales

      @Stability(Stable) public CfnBot.Builder botLocales(List<? extends Object> botLocales)
      A list of locales for the bot.

      Parameters:
      botLocales - A list of locales for the bot. This parameter is required.
      Returns:
      this
    • botTags

      @Stability(Stable) public CfnBot.Builder botTags(IResolvable 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 the TagResource operation.

      Parameters:
      botTags - A list of tags to add to the bot. This parameter is required.
      Returns:
      this
    • botTags

      @Stability(Stable) public CfnBot.Builder botTags(List<? extends Object> 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 the TagResource operation.

      Parameters:
      botTags - A list of tags to add to the bot. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnBot.Builder description(String description)
      The description of the version.

      Parameters:
      description - The description of the version. This parameter is required.
      Returns:
      this
    • testBotAliasSettings

      @Stability(Stable) public CfnBot.Builder testBotAliasSettings(IResolvable 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

      @Stability(Stable) public CfnBot.Builder testBotAliasTags(IResolvable 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 the TagResource operation.

      Parameters:
      testBotAliasTags - A list of tags to add to the test alias for a bot. This parameter is required.
      Returns:
      this
    • testBotAliasTags

      @Stability(Stable) public CfnBot.Builder testBotAliasTags(List<? extends Object> 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 the TagResource operation.

      Parameters:
      testBotAliasTags - A list of tags to add to the test alias for a bot. This parameter is required.
      Returns:
      this
    • build

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