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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:50:59.974Z")
@Stability(Stable)
public class CfnBotAlias
extends CfnResource
implements IInspectable
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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Specifies the S3 bucket location where audio logs are stored.static interface
Settings for logging audio of conversations between Amazon Lex and a user.static interface
Specifies settings that are unique to a locale.static interface
Specifies settings that are unique to a locale.static final class
A fluent builder forCfnBotAlias
.static interface
The Amazon CloudWatch Logs log group where the text and metadata logs are delivered.static interface
Contains information about code hooks that Amazon Lex calls during a conversation.static interface
Configures conversation logging that saves audio, text, and metadata for the conversations with your users.static interface
Specifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot.static interface
Specifies an Amazon S3 bucket for logging audio conversations.static interface
Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.static interface
Defines the Amazon CloudWatch Logs destination log group for conversation text logs.static interface
Defines settings to enable text conversation logs.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnBotAlias
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnBotAlias
(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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setBotAliasLocaleSettings
(List<Object> value) Specifies settings that are unique to a locale.void
Specifies settings that are unique to a locale.void
setBotAliasName
(String value) The name of the bot alias.void
setBotAliasTags
(List<Object> value) An array of key-value pairs to apply to this resource.void
setBotAliasTags
(IResolvable value) An array of key-value pairs to apply to this resource.void
The unique identifier of the bot.void
setBotVersion
(String value) The version of the bot that the bot alias references.void
Specifies whether Amazon Lex logs text and audio for conversations with the bot.void
Specifies whether Amazon Lex logs text and audio for conversations with the bot.void
setDescription
(String value) The description of the bot alias.void
Determines 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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. -
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. -
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. -
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.
-