Skip to content
v2.274.0

AWS::Lex Construct Library ​

This module is part of the AWS Cloud Development Kit project.

ts
import * as lex from 'aws-cdk-lib/aws-lex';
python
import aws_cdk.aws_lex as lex
java
import software.amazon.awscdk.services.lex.*;
csharp
using Amazon.CDK.AWS.Lex;
go
import lex "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::Lex.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Types ​

NameKindSummary
CfnBotConstruct (L1)> Amazon Lex V2 is the only supported version in CloudFormation .
CfnBotAliasConstruct (L1)> Amazon Lex V2 is the only supported version in CloudFormation .
CfnBotVersionConstruct (L1)> Amazon Lex V2 is the only supported version in CloudFormation .
CfnResourcePolicyConstruct (L1)> Amazon Lex V2 is the only supported version in CloudFormation .
CfnBot.AdvancedRecognitionSettingPropertyStructProvides settings that enable advanced recognition settings for slot values.
CfnBot.AllowedInputTypesPropertyStructSpecifies the allowed input types.
CfnBot.AudioAndDTMFInputSpecificationPropertyStructSpecifies the audio and DTMF input specification.
CfnBot.AudioFillerSettingsPropertyStruct
CfnBot.AudioLogDestinationPropertyStructThe location of audio log files collected when conversation logging is enabled for a bot.
CfnBot.AudioLogSettingPropertyStructSettings for logging audio of conversations between Amazon Lex and a user.
CfnBot.AudioSpecificationPropertyStructSpecifies the audio input specifications.
CfnBot.BedrockAgentConfigurationPropertyStruct
CfnBot.BedrockAgentIntentConfigurationPropertyStruct
CfnBot.BedrockAgentIntentKnowledgeBaseConfigurationPropertyStruct
CfnBot.BedrockGuardrailConfigurationPropertyStructThe details on the Bedrock guardrail configuration.
CfnBot.BedrockKnowledgeStoreConfigurationPropertyStructContains details about the configuration of a Amazon Bedrock knowledge base.
CfnBot.BedrockModelSpecificationPropertyStructContains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
CfnBot.BKBExactResponseFieldsPropertyStruct
CfnBot.BotAliasLocaleSettingsItemPropertyStructSpecifies locale settings for a single locale.
CfnBot.BotAliasLocaleSettingsPropertyStructSpecifies settings that are unique to a locale.
CfnBot.BotLocalePropertyStructProvides configuration information for a locale.
CfnBot.BotMemberPropertyStructA bot that is a member of a bot network.
CfnBot.BuildtimeSettingsPropertyStructContains specifications about the Amazon Lex build time generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
CfnBot.ButtonPropertyStructDescribes a button to use on a response card used to gather slot values from a user.
CfnBot.CloudWatchLogGroupLogDestinationPropertyStructThe Amazon CloudWatch Logs log group where the text and metadata logs are delivered.
CfnBot.CodeHookSpecificationPropertyStructContains information about code hooks that Amazon Lex calls during a conversation.
CfnBot.CompositeSlotTypeSettingPropertyStructA composite slot is a combination of two or more slots that capture multiple pieces of information in a single user input.
CfnBot.ConditionalBranchPropertyStructA set of actions that Amazon Lex should run if the condition is matched.
CfnBot.ConditionalSpecificationPropertyStructProvides a list of conditional branches.
CfnBot.ConditionPropertyStructProvides an expression that evaluates to true or false.
CfnBot.ConversationLogSettingsPropertyStructConfigures conversation logging that saves audio, text, and metadata for the conversations with your users.
CfnBot.CustomPayloadPropertyStructA custom response string that Amazon Lex sends to your application.
CfnBot.CustomVocabularyItemPropertyStructSpecifies an entry in a custom vocabulary.
CfnBot.CustomVocabularyPropertyStructSpecifies a custom vocabulary.
CfnBot.DataPrivacyPropertyStructBy default, data stored by Amazon Lex is encrypted.
CfnBot.DataSourceConfigurationPropertyStructContains details about the configuration of the knowledge store used for the AMAZON.QnAIntent . You must have already created the knowledge store and indexed the documents within it.
CfnBot.DeepgramSpeechModelConfigPropertyStruct
CfnBot.DefaultConditionalBranchPropertyStructA set of actions that Amazon Lex should run if none of the other conditions are met.
CfnBot.DescriptiveBotBuilderSpecificationPropertyStructContains specifications for the descriptive bot building feature.
CfnBot.DialogActionPropertyStructDefines the action that the bot executes at runtime when the conversation reaches this step.
CfnBot.DialogCodeHookInvocationSettingPropertyStructSettings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
CfnBot.DialogCodeHookSettingPropertyStructSettings that determine the Lambda function that Amazon Lex uses for processing user responses.
CfnBot.DialogStatePropertyStructThe current state of the conversation with the user.
CfnBot.DTMFSpecificationPropertyStructSpecifies the DTMF input specifications.
CfnBot.ElicitationCodeHookInvocationSettingPropertyStructSettings that specify the dialog code hook that is called by Amazon Lex between eliciting slot values.
CfnBot.ErrorLogSettingsPropertyStruct
CfnBot.ExactResponseFieldsPropertyStructContains the names of the fields used for an exact response to the user.
CfnBot.ExternalSourceSettingPropertyStructProvides information about the external source of the slot type's definition.
CfnBot.FulfillmentCodeHookSettingPropertyStructDetermines if a Lambda function should be invoked for a specific intent.
CfnBot.FulfillmentStartResponseSpecificationPropertyStructProvides settings for a message that is sent to the user when a fulfillment Lambda function starts running.
CfnBot.FulfillmentUpdateResponseSpecificationPropertyStructProvides settings for a message that is sent periodically to the user while a fulfillment Lambda function is running.
CfnBot.FulfillmentUpdatesSpecificationPropertyStructProvides information for updating the user on the progress of fulfilling an intent.
CfnBot.GenerativeAISettingsPropertyStructContains specifications about the generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
CfnBot.GrammarSlotTypeSettingPropertyStructSettings requried for a slot type based on a grammar that you provide.
CfnBot.GrammarSlotTypeSourcePropertyStructDescribes the Amazon S3 bucket name and location for the grammar that is the source for the slot type.
CfnBot.ImageResponseCardPropertyStructA card that is shown to the user by a messaging platform.
CfnBot.InitialResponseSettingPropertyStructConfiguration setting for a response sent to the user before Amazon Lex starts eliciting slots.
CfnBot.InputContextPropertyStructA context that must be active for an intent to be selected by Amazon Lex.
CfnBot.IntentClosingSettingPropertyStructProvides a statement the Amazon Lex conveys to the user when the intent is successfully fulfilled.
CfnBot.IntentConfirmationSettingPropertyStructProvides a prompt for making sure that the user is ready for the intent to be fulfilled.
CfnBot.IntentDisambiguationSettingsPropertyStructConfigures the Intent Disambiguation feature that helps resolve ambiguous user inputs when multiple intents could match.
CfnBot.IntentOverridePropertyStructOverride settings to configure the intent state.
CfnBot.IntentPropertyStructRepresents an action that the user wants to perform.
CfnBot.KendraConfigurationPropertyStructProvides configuration information for the AMAZON.KendraSearchIntent intent. When you use this intent, Amazon Lex searches the specified Amazon Kendra index and returns documents from the index that match the user's utterance.
CfnBot.LambdaCodeHookPropertyStructSpecifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot.
CfnBot.MessageGroupPropertyStructProvides one or more messages that Amazon Lex should send to the user.
CfnBot.MessagePropertyStructThe object that provides message text and its type.
CfnBot.MultipleValuesSettingPropertyStructIndicates whether a slot can return multiple values.
CfnBot.NluImprovementSpecificationPropertyStructConfigures the Assisted Natural Language Understanding (NLU) feature for your bot.
CfnBot.ObfuscationSettingPropertyStructDetermines whether Amazon Lex obscures slot values in conversation logs.
CfnBot.OpensearchConfigurationPropertyStructContains details about the configuration of the Amazon OpenSearch Service database used for the AMAZON.QnAIntent .
CfnBot.OutputContextPropertyStructDescribes a session context that is activated when an intent is fulfilled.
CfnBot.PlainTextMessagePropertyStructDefines an ASCII text message to send to the user.
CfnBot.PostDialogCodeHookInvocationSpecificationPropertyStructSpecifies next steps to run after the dialog code hook finishes.
CfnBot.PostFulfillmentStatusSpecificationPropertyStructProvides a setting that determines whether the post-fulfillment response is sent to the user.
CfnBot.PromptAttemptSpecificationPropertyStructSpecifies the settings on a prompt attempt.
CfnBot.PromptSpecificationPropertyStructSpecifies a list of message groups that Amazon Lex sends to a user to elicit a response.
CfnBot.QInConnectAssistantConfigurationPropertyStruct
CfnBot.QInConnectIntentConfigurationPropertyStruct
CfnBot.QnAIntentConfigurationPropertyStructDetails about the the configuration of the built-in Amazon.QnAIntent .
CfnBot.QnAKendraConfigurationPropertyStructContains details about the configuration of the Amazon Kendra index used for the AMAZON.QnAIntent .
CfnBot.ReplicationPropertyStruct
CfnBot.ResponseSpecificationPropertyStructSpecifies a list of message groups that Amazon Lex uses to respond the user input.
CfnBot.RuntimeSettingsPropertyStructContains specifications about the Amazon Lex runtime generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
CfnBot.S3BucketLogDestinationPropertyStructSpecifies an Amazon S3 bucket for logging audio conversations.
CfnBot.S3LocationPropertyStructDefines an Amazon S3 bucket location.
CfnBot.SampleUtteranceGenerationSpecificationPropertyStructContains specifications for the sample utterance generation feature.
CfnBot.SampleUtterancePropertyStructA sample utterance that invokes an intent or respond to a slot elicitation prompt.
CfnBot.SampleValuePropertyStructDefines one of the values for a slot type.
CfnBot.SentimentAnalysisSettingsPropertyStructDetermines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
CfnBot.SessionAttributePropertyStructA key/value pair representing session-specific context information.
CfnBot.SlotCaptureSettingPropertyStructSettings used when Amazon Lex successfully captures a slot value from a user.
CfnBot.SlotDefaultValuePropertyStructSpecifies the default value to use when a user doesn't provide a value for a slot.
CfnBot.SlotDefaultValueSpecificationPropertyStructThe default value to use when a user doesn't provide a value for a slot.
CfnBot.SlotPriorityPropertyStructSets the priority that Amazon Lex should use when eliciting slot values from a user.
CfnBot.SlotPropertyStructSpecifies the definition of a slot.
CfnBot.SlotResolutionImprovementSpecificationPropertyStructContains specifications for the assisted slot resolution feature.
CfnBot.SlotTypePropertyStructDescribes a slot type.
CfnBot.SlotTypeValuePropertyStructEach slot type can have a set of values.
CfnBot.SlotValueElicitationSettingPropertyStructSpecifies the elicitation setting details eliciting a slot.
CfnBot.SlotValueOverrideMapPropertyStructMaps a slot name to the SlotValueOverride object.
CfnBot.SlotValueOverridePropertyStructThe slot values that Amazon Lex uses when it sets slot values in a dialog step.
CfnBot.SlotValuePropertyStructThe value to set in a slot.
CfnBot.SlotValueRegexFilterPropertyStructProvides a regular expression used to validate the value of a slot.
CfnBot.SlotValueSelectionSettingPropertyStructContains settings used by Amazon Lex to select a slot value.
CfnBot.SpecificationsPropertyStructSubslot specifications.
CfnBot.SpeechFoundationModelPropertyStructConfiguration for a foundation model used for speech synthesis and recognition capabilities.
CfnBot.SpeechModelConfigPropertyStruct
CfnBot.SpeechRecognitionSettingsPropertyStruct
CfnBot.SSMLMessagePropertyStructDefines a Speech Synthesis Markup Language (SSML) prompt.
CfnBot.StillWaitingResponseSpecificationPropertyStructDefines the messages that Amazon Lex sends to a user to remind them that the bot is waiting for a response.
CfnBot.SubSlotSettingPropertyStructSpecifications for the constituent sub slots and the expression for the composite slot.
CfnBot.SubSlotTypeCompositionPropertyStructSubslot type composition.
CfnBot.SubSlotValueElicitationSettingPropertyStructSubslot elicitation settings.
CfnBot.TestBotAliasSettingsPropertyStructSpecifies configuration settings for the alias used to test the bot.
CfnBot.TextInputSpecificationPropertyStructSpecifies the text input specifications.
CfnBot.TextLogDestinationPropertyStructDefines the Amazon CloudWatch Logs destination log group for conversation text logs.
CfnBot.TextLogSettingPropertyStructDefines settings to enable text conversation logs.
CfnBot.UnifiedSpeechSettingsPropertyStructUnified configuration settings that combine speech recognition and synthesis capabilities.
CfnBot.VoiceSettingsPropertyStructDefines settings for using an Amazon Polly voice to communicate with a user.
CfnBot.WaitAndContinueSpecificationPropertyStructSpecifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
CfnBotAlias.AudioLogDestinationPropertyStructSpecifies the S3 bucket location where audio logs are stored.
CfnBotAlias.AudioLogSettingPropertyStructSettings for logging audio of conversations between Amazon Lex and a user.
CfnBotAlias.BotAliasLocaleSettingsItemPropertyStructSpecifies settings that are unique to a locale.
CfnBotAlias.BotAliasLocaleSettingsPropertyStructSpecifies settings that are unique to a locale.
CfnBotAlias.CloudWatchLogGroupLogDestinationPropertyStructThe Amazon CloudWatch Logs log group where the text and metadata logs are delivered.
CfnBotAlias.CodeHookSpecificationPropertyStructContains information about code hooks that Amazon Lex calls during a conversation.
CfnBotAlias.ConversationLogSettingsPropertyStructConfigures conversation logging that saves audio, text, and metadata for the conversations with your users.
CfnBotAlias.LambdaCodeHookPropertyStructSpecifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot.
CfnBotAlias.S3BucketLogDestinationPropertyStructSpecifies an Amazon S3 bucket for logging audio conversations.
CfnBotAlias.SentimentAnalysisSettingsPropertyStructDetermines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
CfnBotAlias.TextLogDestinationPropertyStructDefines the Amazon CloudWatch Logs destination log group for conversation text logs.
CfnBotAlias.TextLogSettingPropertyStructDefines settings to enable text conversation logs.
CfnBotAliasPropsStructProperties for defining a CfnBotAlias.
CfnBotPropsStructProperties for defining a CfnBot.
CfnBotVersion.BotVersionLocaleDetailsPropertyStructThe version of a bot used for a bot locale.
CfnBotVersion.BotVersionLocaleSpecificationPropertyStructSpecifies the locale that Amazon Lex adds to this version.
CfnBotVersionPropsStructProperties for defining a CfnBotVersion.
CfnResourcePolicyPropsStructProperties for defining a CfnResourcePolicy.