Class CfnBotAlias
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lex.CfnBotAlias
- All Implemented Interfaces:
IInspectable,IBotAliasRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:42.915Z")
@Stability(Stable)
public class CfnBotAlias
extends CfnResource
implements IInspectable, IBotAliasRef
Amazon Lex V2 is the only supported version in AWS 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.services.lex.*;
Object sentimentAnalysisSettings;
CfnBotAlias cfnBotAlias = CfnBotAlias.Builder.create(this, "MyCfnBotAlias")
.botAliasName("botAliasName")
.botId("botId")
// the properties below are optional
.botAliasLocaleSettings(List.of(BotAliasLocaleSettingsItemProperty.builder()
.botAliasLocaleSetting(BotAliasLocaleSettingsProperty.builder()
.enabled(false)
// the properties below are optional
.codeHookSpecification(CodeHookSpecificationProperty.builder()
.lambdaCodeHook(LambdaCodeHookProperty.builder()
.codeHookInterfaceVersion("codeHookInterfaceVersion")
.lambdaArn("lambdaArn")
.build())
.build())
.build())
.localeId("localeId")
.build()))
.botAliasTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.botVersion("botVersion")
.conversationLogSettings(ConversationLogSettingsProperty.builder()
.audioLogSettings(List.of(AudioLogSettingProperty.builder()
.destination(AudioLogDestinationProperty.builder()
.s3Bucket(S3BucketLogDestinationProperty.builder()
.logPrefix("logPrefix")
.s3BucketArn("s3BucketArn")
// the properties below are optional
.kmsKeyArn("kmsKeyArn")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecifies the S3 bucket location where audio logs are stored.static interfaceSettings for logging audio of conversations between Amazon Lex and a user.static interfaceSpecifies settings that are unique to a locale.static interfaceSpecifies settings that are unique to a locale.static final classA fluent builder forCfnBotAlias.static interfaceThe Amazon CloudWatch Logs log group where the text and metadata logs are delivered.static interfaceContains information about code hooks that Amazon Lex calls during a conversation.static interfaceConfigures conversation logging that saves audio, text, and metadata for the conversations with your users.static interfaceSpecifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot.static interfaceSpecifies an Amazon S3 bucket for logging audio conversations.static interfaceDetermines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.static interfaceDefines the Amazon CloudWatch Logs destination log group for conversation text logs.static interfaceDefines settings to enable text conversation logs.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lex.IBotAliasRef
IBotAliasRef.Jsii$Default, IBotAliasRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnBotAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBotAlias(software.amazon.jsii.JsiiObjectRef objRef) CfnBotAlias(software.constructs.Construct scope, String id, CfnBotAliasProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the bot alias.The unique identifier of the bot alias.The current status of the bot alias.Specifies settings that are unique to a locale.The name of the bot alias.A reference to a BotAlias resource.An array of key-value pairs to apply to this resource.getBotId()The unique identifier of the bot.The version of the bot that the bot alias references.Specifies whether Amazon Lex logs text and audio for conversations with the bot.The description of the bot alias.Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetBotAliasLocaleSettings(List<Object> value) Specifies settings that are unique to a locale.voidSpecifies settings that are unique to a locale.voidsetBotAliasName(String value) The name of the bot alias.voidsetBotAliasTags(List<Object> value) An array of key-value pairs to apply to this resource.voidsetBotAliasTags(IResolvable value) An array of key-value pairs to apply to this resource.voidThe unique identifier of the bot.voidsetBotVersion(String value) The version of the bot that the bot alias references.voidSpecifies whether Amazon Lex logs text and audio for conversations with the bot.voidSpecifies whether Amazon Lex logs text and audio for conversations with the bot.voidsetDescription(String value) The description of the bot alias.voidDetermines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBotAlias
protected CfnBotAlias(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBotAlias
protected CfnBotAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBotAlias
@Stability(Stable) public CfnBotAlias(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBotAliasProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the bot alias. -
getAttrBotAliasId
The unique identifier of the bot alias. -
getAttrBotAliasStatus
The current status of the bot alias.When the status is Available the alias is ready for use with your bot.
-
getBotAliasRef
A reference to a BotAlias resource.- Specified by:
getBotAliasRefin interfaceIBotAliasRef
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getBotAliasName
The name of the bot alias. -
setBotAliasName
The name of the bot alias. -
getBotId
The unique identifier of the bot. -
setBotId
The unique identifier of the bot. -
getBotAliasLocaleSettings
Specifies settings that are unique to a locale.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBotAlias.BotAliasLocaleSettingsItemProperty> -
setBotAliasLocaleSettings
Specifies settings that are unique to a locale. -
setBotAliasLocaleSettings
Specifies settings that are unique to a locale. -
getBotAliasTags
An array of key-value pairs to apply to this resource.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTag> -
setBotAliasTags
An array of key-value pairs to apply to this resource. -
setBotAliasTags
An array of key-value pairs to apply to this resource. -
getBotVersion
The version of the bot that the bot alias references. -
setBotVersion
The version of the bot that the bot alias references. -
getConversationLogSettings
Specifies whether Amazon Lex logs text and audio for conversations with the bot.Returns union: either
IResolvableorCfnBotAlias.ConversationLogSettingsProperty -
setConversationLogSettings
Specifies whether Amazon Lex logs text and audio for conversations with the bot. -
setConversationLogSettings
@Stability(Stable) public void setConversationLogSettings(@Nullable CfnBotAlias.ConversationLogSettingsProperty value) Specifies whether Amazon Lex logs text and audio for conversations with the bot. -
getDescription
The description of the bot alias. -
setDescription
The description of the bot alias. -
getSentimentAnalysisSettings
Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances. -
setSentimentAnalysisSettings
Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
-