@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:32.061Z") 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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnBotAlias(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) of the bot alias.
|
java.lang.String |
getAttrBotAliasId()
The unique identifier of the bot alias.
|
java.lang.String |
getAttrBotAliasStatus()
The current status of the bot alias.
|
java.lang.Object |
getBotAliasLocaleSettings()
Maps configuration information to a specific locale.
|
java.lang.String |
getBotAliasName()
The name of the bot alias.
|
java.lang.Object |
getBotAliasTags()
An array of key-value pairs to apply to this resource.
|
java.lang.String |
getBotId()
The unique identifier of the bot.
|
java.lang.String |
getBotVersion()
The version of the bot that the bot alias references.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getConversationLogSettings()
Specifies whether Amazon Lex logs text and audio for conversations with the bot.
|
java.lang.String |
getDescription()
The description of the bot alias.
|
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setBotAliasLocaleSettings(IResolvable value)
Maps configuration information to a specific locale.
|
void |
setBotAliasLocaleSettings(java.util.List<java.lang.Object> value)
Maps configuration information to a specific locale.
|
void |
setBotAliasName(java.lang.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(java.util.List<java.lang.Object> value)
An array of key-value pairs to apply to this resource.
|
void |
setBotId(java.lang.String value)
The unique identifier of the bot.
|
void |
setBotVersion(java.lang.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(java.lang.String value)
The description of the bot alias.
|
void |
setSentimentAnalysisSettings(java.lang.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, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnBotAlias(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnBotAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnBotAlias(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
public java.lang.String getAttrBotAliasId()
public java.lang.String getAttrBotAliasStatus()
When the status is Available the alias is ready for use with your bot.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getBotAliasName()
public void setBotAliasName(java.lang.String value)
public java.lang.String getBotId()
public void setBotId(java.lang.String value)
public java.lang.Object getSentimentAnalysisSettings()
public void setSentimentAnalysisSettings(java.lang.Object value)
public java.lang.Object getBotAliasLocaleSettings()
You can use this parameter to specify a specific Lambda function to run different functions in different locales.
public void setBotAliasLocaleSettings(IResolvable value)
You can use this parameter to specify a specific Lambda function to run different functions in different locales.
public void setBotAliasLocaleSettings(java.util.List<java.lang.Object> value)
You can use this parameter to specify a specific Lambda function to run different functions in different locales.
public java.lang.Object getBotAliasTags()
You can only add tags when you specify an alias.
For more information, see Tag .
public void setBotAliasTags(IResolvable value)
You can only add tags when you specify an alias.
For more information, see Tag .
public void setBotAliasTags(java.util.List<java.lang.Object> value)
You can only add tags when you specify an alias.
For more information, see Tag .
public java.lang.String getBotVersion()
public void setBotVersion(java.lang.String value)
public java.lang.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 .
public void setConversationLogSettings(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 .
public void setConversationLogSettings(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 .
public java.lang.String getDescription()
public void setDescription(java.lang.String value)