@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.593Z") @Stability(value=Stable) public class CfnBotAlias extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnBotAlias.AudioLogDestinationProperty
Specifies the S3 bucket location where audio logs are stored.
|
static interface |
CfnBotAlias.AudioLogSettingProperty
Settings for logging audio of conversations between Amazon Lex and a user.
|
static interface |
CfnBotAlias.BotAliasLocaleSettingsItemProperty
Specifies settings that are unique to a locale.
|
static interface |
CfnBotAlias.BotAliasLocaleSettingsProperty
Specifies settings that are unique to a locale.
|
static class |
CfnBotAlias.Builder
A fluent builder for
CfnBotAlias. |
static interface |
CfnBotAlias.CloudWatchLogGroupLogDestinationProperty
The Amazon CloudWatch Logs log group where the text and metadata logs are delivered.
|
static interface |
CfnBotAlias.CodeHookSpecificationProperty
Contains information about code hooks that Amazon Lex calls during a conversation.
|
static interface |
CfnBotAlias.ConversationLogSettingsProperty
Configures conversation logging that saves audio, text, and metadata for the conversations with your users.
|
static interface |
CfnBotAlias.LambdaCodeHookProperty
Specifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot.
|
static interface |
CfnBotAlias.S3BucketLogDestinationProperty
Specifies an Amazon S3 bucket for logging audio conversations.
|
static interface |
CfnBotAlias.TextLogDestinationProperty
Defines the Amazon CloudWatch Logs destination log group for conversation text logs.
|
static interface |
CfnBotAlias.TextLogSettingProperty
Defines settings to enable conversation logs.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnBotAlias(software.constructs.Construct scope,
String id,
CfnBotAliasProps props)
Create a new `AWS::Lex::BotAlias`.
|
protected |
CfnBotAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnBotAlias(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the bot alias.
|
String |
getAttrBotAliasId()
The unique identifier of the bot alias.
|
String |
getAttrBotAliasStatus()
The current status of the bot alias.
|
Object |
getBotAliasLocaleSettings()
Maps configuration information to a specific locale.
|
String |
getBotAliasName()
The name of the bot alias.
|
Object |
getBotAliasTags()
An array of key-value pairs to apply to this resource.
|
String |
getBotId()
The unique identifier of the bot.
|
String |
getBotVersion()
The version of the bot that the bot alias references.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getConversationLogSettings()
Specifies whether Amazon Lex logs text and audio for conversations with the bot.
|
String |
getDescription()
The description of the bot alias.
|
Object |
getSentimentAnalysisSettings()
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.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBotAliasLocaleSettings(IResolvable value)
Maps configuration information to a specific locale.
|
void |
setBotAliasLocaleSettings(List<Object> value)
Maps configuration information to a specific locale.
|
void |
setBotAliasName(String value)
The name of the bot alias.
|
void |
setBotAliasTags(IResolvable value)
An array of key-value pairs to apply to this resource.
|
void |
setBotAliasTags(List<Object> value)
An array of key-value pairs to apply to this resource.
|
void |
setBotId(String value)
The unique identifier of the bot.
|
void |
setBotVersion(String value)
The version of the bot that the bot alias references.
|
void |
setConversationLogSettings(CfnBotAlias.ConversationLogSettingsProperty value)
Specifies whether Amazon Lex logs text and audio for conversations with the bot.
|
void |
setConversationLogSettings(IResolvable value)
Specifies whether Amazon Lex logs text and audio for conversations with the bot.
|
void |
setDescription(String value)
The description of the bot alias.
|
void |
setSentimentAnalysisSettings(Object value)
Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnBotAlias(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnBotAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnBotAlias(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnBotAliasProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrBotAliasId()
@Stability(value=Stable) @NotNull public String getAttrBotAliasStatus()
When the status is Available the alias is ready for use with your bot.
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getBotAliasName()
@Stability(value=Stable)
public void setBotAliasName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getBotId()
@Stability(value=Stable)
public void setBotId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getSentimentAnalysisSettings()
@Stability(value=Stable)
public void setSentimentAnalysisSettings(@NotNull
Object value)
@Stability(value=Stable) @Nullable public Object getBotAliasLocaleSettings()
You can use this parameter to specify a specific Lambda function to run different functions in different locales.
@Stability(value=Stable)
public void setBotAliasLocaleSettings(@Nullable
IResolvable value)
You can use this parameter to specify a specific Lambda function to run different functions in different locales.
@Stability(value=Stable)
public void setBotAliasLocaleSettings(@Nullable
List<Object> value)
You can use this parameter to specify a specific Lambda function to run different functions in different locales.
@Stability(value=Stable) @Nullable public Object getBotAliasTags()
You can only add tags when you specify an alias.
For more information, see Tag .
@Stability(value=Stable)
public void setBotAliasTags(@Nullable
IResolvable value)
You can only add tags when you specify an alias.
For more information, see Tag .
@Stability(value=Stable)
public void setBotAliasTags(@Nullable
List<Object> value)
You can only add tags when you specify an alias.
For more information, see Tag .
@Stability(value=Stable) @Nullable public String getBotVersion()
@Stability(value=Stable)
public void setBotVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getConversationLogSettings()
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 .
@Stability(value=Stable)
public void setConversationLogSettings(@Nullable
CfnBotAlias.ConversationLogSettingsProperty value)
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 .
@Stability(value=Stable)
public void setConversationLogSettings(@Nullable
IResolvable value)
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 .
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.