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 Details

    • create

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

      @Stability(Stable) public CfnBotAlias.Builder botAliasName(String botAliasName)
      The name of the bot alias.

      Parameters:
      botAliasName - The name of the bot alias. This parameter is required.
      Returns:
      this
    • botId

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

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

      @Stability(Stable) public CfnBotAlias.Builder botAliasTags(List<? extends Object> 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

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

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

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