Class CfnBotAliasPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotAliasPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:00.948Z") @Stability(Stable) public class CfnBotAliasPropsMixin extends Mixin implements software.constructs.IMixin

Amazon Lex V2 is the only supported version in CloudFormation .

Specifies an alias for the specified version of a bot. Use an alias to enable you to change the version of a bot without updating applications that use the bot.

For example, you can specify an alias called "PROD" that your applications use to call the Amazon Lex bot.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.lex.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 Object sentimentAnalysisSettings;
 CfnBotAliasPropsMixin cfnBotAliasPropsMixin = CfnBotAliasPropsMixin.Builder.create(CfnBotAliasMixinProps.builder()
         .botAliasLocaleSettings(List.of(BotAliasLocaleSettingsItemProperty.builder()
                 .botAliasLocaleSetting(BotAliasLocaleSettingsProperty.builder()
                         .codeHookSpecification(CodeHookSpecificationProperty.builder()
                                 .lambdaCodeHook(LambdaCodeHookProperty.builder()
                                         .codeHookInterfaceVersion("codeHookInterfaceVersion")
                                         .lambdaArn("lambdaArn")
                                         .build())
                                 .build())
                         .enabled(false)
                         .build())
                 .localeId("localeId")
                 .build()))
         .botAliasName("botAliasName")
         .botAliasTags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .botId("botId")
         .botVersion("botVersion")
         .conversationLogSettings(ConversationLogSettingsProperty.builder()
                 .audioLogSettings(List.of(AudioLogSettingProperty.builder()
                         .destination(AudioLogDestinationProperty.builder()
                                 .s3Bucket(S3BucketLogDestinationProperty.builder()
                                         .kmsKeyArn("kmsKeyArn")
                                         .logPrefix("logPrefix")
                                         .s3BucketArn("s3BucketArn")
                                         .build())
                                 .build())
                         .enabled(false)
                         .build()))
                 .textLogSettings(List.of(TextLogSettingProperty.builder()
                         .destination(TextLogDestinationProperty.builder()
                                 .cloudWatch(CloudWatchLogGroupLogDestinationProperty.builder()
                                         .cloudWatchLogGroupArn("cloudWatchLogGroupArn")
                                         .logPrefix("logPrefix")
                                         .build())
                                 .build())
                         .enabled(false)
                         .build()))
                 .build())
         .description("description")
         .sentimentAnalysisSettings(sentimentAnalysisSettings)
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnBotAliasPropsMixin

      protected CfnBotAliasPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnBotAliasPropsMixin

      protected CfnBotAliasPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnBotAliasPropsMixin

      @Stability(Stable) public CfnBotAliasPropsMixin(@NotNull CfnBotAliasMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::Lex::BotAlias.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnBotAliasPropsMixin

      @Stability(Stable) public CfnBotAliasPropsMixin(@NotNull CfnBotAliasMixinProps props)
      Create a mixin to apply properties to AWS::Lex::BotAlias.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnBotAliasMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()