libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexModels.Lens

Description

 
Synopsis

Operations

StartMigration

startMigration_v1BotName :: Lens' StartMigration Text Source #

The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.

startMigration_v1BotVersion :: Lens' StartMigration Text Source #

The version of the bot to migrate to Amazon Lex V2. You can migrate the $LATEST version as well as any numbered version.

startMigration_v2BotName :: Lens' StartMigration Text Source #

The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to.

  • If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW migration strategy.
  • If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING migration strategy to change the contents of the Amazon Lex V2 bot.

startMigration_v2BotRole :: Lens' StartMigration Text Source #

The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

startMigration_migrationStrategy :: Lens' StartMigration MigrationStrategy Source #

The strategy used to conduct the migration.

  • CREATE_NEW - Creates a new Amazon Lex V2 bot and migrates the Amazon Lex V1 bot to the new bot.
  • UPDATE_EXISTING - Overwrites the existing Amazon Lex V2 bot metadata and the locale being migrated. It doesn't change any other locales in the Amazon Lex V2 bot. If the locale doesn't exist, a new locale is created in the Amazon Lex V2 bot.

startMigrationResponse_v1BotVersion :: Lens' StartMigrationResponse (Maybe Text) Source #

The version of the bot to migrate to Amazon Lex V2.

startMigrationResponse_v2BotId :: Lens' StartMigrationResponse (Maybe Text) Source #

The unique identifier for the Amazon Lex V2 bot.

startMigrationResponse_v1BotLocale :: Lens' StartMigrationResponse (Maybe Locale) Source #

The locale used for the Amazon Lex V1 bot.

startMigrationResponse_v1BotName :: Lens' StartMigrationResponse (Maybe Text) Source #

The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.

startMigrationResponse_v2BotRole :: Lens' StartMigrationResponse (Maybe Text) Source #

The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

startMigrationResponse_migrationId :: Lens' StartMigrationResponse (Maybe Text) Source #

The unique identifier that Amazon Lex assigned to the migration.

DeleteIntentVersion

deleteIntentVersion_version :: Lens' DeleteIntentVersion Text Source #

The version of the intent to delete. You cannot delete the $LATEST version of the intent. To delete the $LATEST version, use the DeleteIntent operation.

GetBotAliases

getBotAliases_nameContains :: Lens' GetBotAliases (Maybe Text) Source #

Substring to match in bot alias names. An alias will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

getBotAliases_nextToken :: Lens' GetBotAliases (Maybe Text) Source #

A pagination token for fetching the next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

getBotAliases_maxResults :: Lens' GetBotAliases (Maybe Natural) Source #

The maximum number of aliases to return in the response. The default is 50. .

getBotAliasesResponse_nextToken :: Lens' GetBotAliasesResponse (Maybe Text) Source #

A pagination token for fetching next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

getBotAliasesResponse_botAliases :: Lens' GetBotAliasesResponse (Maybe [BotAliasMetadata]) Source #

An array of BotAliasMetadata objects, each describing a bot alias.

DeleteBotChannelAssociation

deleteBotChannelAssociation_name :: Lens' DeleteBotChannelAssociation Text Source #

The name of the association. The name is case sensitive.

deleteBotChannelAssociation_botAlias :: Lens' DeleteBotChannelAssociation Text Source #

An alias that points to the specific version of the Amazon Lex bot to which this association is being made.

CreateSlotTypeVersion

createSlotTypeVersion_checksum :: Lens' CreateSlotTypeVersion (Maybe Text) Source #

Checksum for the $LATEST version of the slot type that you want to publish. If you specify a checksum and the $LATEST version of the slot type has a different checksum, Amazon Lex returns a PreconditionFailedException exception and doesn't publish the new version. If you don't specify a checksum, Amazon Lex publishes the $LATEST version.

createSlotTypeVersion_name :: Lens' CreateSlotTypeVersion Text Source #

The name of the slot type that you want to create a new version for. The name is case sensitive.

createSlotTypeVersionResponse_parentSlotTypeSignature :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #

The built-in slot type used a the parent of the slot type.

createSlotTypeVersionResponse_slotTypeConfigurations :: Lens' CreateSlotTypeVersionResponse (Maybe [SlotTypeConfiguration]) Source #

Configuration information that extends the parent built-in slot type.

createSlotTypeVersionResponse_checksum :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #

Checksum of the $LATEST version of the slot type.

createSlotTypeVersionResponse_valueSelectionStrategy :: Lens' CreateSlotTypeVersionResponse (Maybe SlotValueSelectionStrategy) Source #

The strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.

createSlotTypeVersionResponse_version :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #

The version assigned to the new slot type version.

createSlotTypeVersionResponse_lastUpdatedDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime) Source #

The date that the slot type was updated. When you create a resource, the creation date and last update date are the same.

createSlotTypeVersionResponse_enumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe [EnumerationValue]) Source #

A list of EnumerationValue objects that defines the values that the slot type can take.

ListTagsForResource

listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #

The Amazon Resource Name (ARN) of the resource to get a list of tags for.

GetIntent

getIntent_name :: Lens' GetIntent Text Source #

The name of the intent. The name is case sensitive.

getIntent_version :: Lens' GetIntent Text Source #

The version of the intent.

getIntentResponse_fulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity) Source #

Describes how the intent is fulfilled. For more information, see PutIntent.

getIntentResponse_slots :: Lens' GetIntentResponse (Maybe [Slot]) Source #

An array of intent slots configured for the intent.

getIntentResponse_rejectionStatement :: Lens' GetIntentResponse (Maybe Statement) Source #

If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

getIntentResponse_conclusionStatement :: Lens' GetIntentResponse (Maybe Statement) Source #

After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.

getIntentResponse_sampleUtterances :: Lens' GetIntentResponse (Maybe [Text]) Source #

An array of sample utterances configured for the intent.

getIntentResponse_parentIntentSignature :: Lens' GetIntentResponse (Maybe Text) Source #

A unique identifier for a built-in intent.

getIntentResponse_createdDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #

The date that the intent was created.

getIntentResponse_kendraConfiguration :: Lens' GetIntentResponse (Maybe KendraConfiguration) Source #

Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

getIntentResponse_inputContexts :: Lens' GetIntentResponse (Maybe [InputContext]) Source #

An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

getIntentResponse_followUpPrompt :: Lens' GetIntentResponse (Maybe FollowUpPrompt) Source #

If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.

getIntentResponse_lastUpdatedDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #

The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.

getIntentResponse_outputContexts :: Lens' GetIntentResponse (Maybe [OutputContext]) Source #

An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

getIntentResponse_confirmationPrompt :: Lens' GetIntentResponse (Maybe Prompt) Source #

If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.

getIntentResponse_dialogCodeHook :: Lens' GetIntentResponse (Maybe CodeHook) Source #

If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.

getIntentResponse_httpStatus :: Lens' GetIntentResponse Int Source #

The response's http status code.

PutIntent

putIntent_fulfillmentActivity :: Lens' PutIntent (Maybe FulfillmentActivity) Source #

Required. Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillmentActivity defines how the bot places an order with a local pizza store.

You might configure Amazon Lex to return all of the intent information to the client application, or direct it to invoke a Lambda function that can process the intent (for example, place an order with a pizzeria).

putIntent_slots :: Lens' PutIntent (Maybe [Slot]) Source #

An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works.

putIntent_rejectionStatement :: Lens' PutIntent (Maybe Statement) Source #

When the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

You must provide both the rejectionStatement and the confirmationPrompt, or neither.

putIntent_checksum :: Lens' PutIntent (Maybe Text) Source #

Identifies a specific revision of the $LATEST version.

When you create a new intent, leave the checksum field blank. If you specify a checksum you get a BadRequestException exception.

When you want to update a intent, set the checksum field to the checksum of the most recent revision of the $LATEST version. If you don't specify the checksum field, or if the checksum does not match the $LATEST version, you get a PreconditionFailedException exception.

putIntent_conclusionStatement :: Lens' PutIntent (Maybe Statement) Source #

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function.

This element is relevant only if you provide a Lambda function in the fulfillmentActivity. If you return the intent to the client application, you can't specify this element.

The followUpPrompt and conclusionStatement are mutually exclusive. You can specify only one.

putIntent_sampleUtterances :: Lens' PutIntent (Maybe [Text]) Source #

An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas".

In each utterance, a slot name is enclosed in curly braces.

putIntent_parentIntentSignature :: Lens' PutIntent (Maybe Text) Source #

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

putIntent_kendraConfiguration :: Lens' PutIntent (Maybe KendraConfiguration) Source #

Configuration information required to use the AMAZON.KendraSearchIntent intent to connect to an Amazon Kendra index. For more information, see AMAZON.KendraSearchIntent.

putIntent_inputContexts :: Lens' PutIntent (Maybe [InputContext]) Source #

An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

putIntent_followUpPrompt :: Lens' PutIntent (Maybe FollowUpPrompt) Source #

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink.

The action that Amazon Lex takes depends on the user's response, as follows:

  • If the user says "Yes" it responds with the clarification prompt that is configured for the bot.
  • if the user says "Yes" and continues with an utterance that triggers an intent it starts a conversation for the intent.
  • If the user says "No" it responds with the rejection statement configured for the the follow-up prompt.
  • If it doesn't recognize the utterance it repeats the follow-up prompt again.

The followUpPrompt field and the conclusionStatement field are mutually exclusive. You can specify only one.

putIntent_outputContexts :: Lens' PutIntent (Maybe [OutputContext]) Source #

An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

putIntent_confirmationPrompt :: Lens' PutIntent (Maybe Prompt) Source #

Prompts the user to confirm the intent. This question should have a yes or no answer.

Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the OrderPizza intent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.

You you must provide both the rejectionStatement and the confirmationPrompt, or neither.

putIntent_createVersion :: Lens' PutIntent (Maybe Bool) Source #

When set to true a new numbered version of the intent is created. This is the same as calling the CreateIntentVersion operation. If you do not specify createVersion, the default is false.

putIntent_dialogCodeHook :: Lens' PutIntent (Maybe CodeHook) Source #

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction.

For example, suppose your bot determines that the user is John. Your Lambda function might retrieve John's information from a backend database and prepopulate some of the values. For example, if you find that John is gluten intolerant, you might set the corresponding intent slot, GlutenIntolerant, to true. You might find John's phone number and set the corresponding session attribute.

putIntent_description :: Lens' PutIntent (Maybe Text) Source #

A description of the intent.

putIntent_name :: Lens' PutIntent Text Source #

The name of the intent. The name is not case sensitive.

The name can't match a built-in intent name, or a built-in intent name with "AMAZON." removed. For example, because there is a built-in intent called AMAZON.HelpIntent, you can't create a custom intent called HelpIntent.

For a list of built-in intents, see Standard Built-in Intents in the Alexa Skills Kit.

putIntentResponse_fulfillmentActivity :: Lens' PutIntentResponse (Maybe FulfillmentActivity) Source #

If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.

putIntentResponse_slots :: Lens' PutIntentResponse (Maybe [Slot]) Source #

An array of intent slots that are configured for the intent.

putIntentResponse_rejectionStatement :: Lens' PutIntentResponse (Maybe Statement) Source #

If the user answers "no" to the question defined in confirmationPrompt Amazon Lex responds with this statement to acknowledge that the intent was canceled.

putIntentResponse_checksum :: Lens' PutIntentResponse (Maybe Text) Source #

Checksum of the $LATESTversion of the intent created or updated.

putIntentResponse_conclusionStatement :: Lens' PutIntentResponse (Maybe Statement) Source #

After the Lambda function specified in thefulfillmentActivityintent fulfills the intent, Amazon Lex conveys this statement to the user.

putIntentResponse_sampleUtterances :: Lens' PutIntentResponse (Maybe [Text]) Source #

An array of sample utterances that are configured for the intent.

putIntentResponse_parentIntentSignature :: Lens' PutIntentResponse (Maybe Text) Source #

A unique identifier for the built-in intent that this intent is based on.

putIntentResponse_createdDate :: Lens' PutIntentResponse (Maybe UTCTime) Source #

The date that the intent was created.

putIntentResponse_kendraConfiguration :: Lens' PutIntentResponse (Maybe KendraConfiguration) Source #

Configuration information, if any, required to connect to an Amazon Kendra index and use the AMAZON.KendraSearchIntent intent.

putIntentResponse_version :: Lens' PutIntentResponse (Maybe Text) Source #

The version of the intent. For a new intent, the version is always $LATEST.

putIntentResponse_inputContexts :: Lens' PutIntentResponse (Maybe [InputContext]) Source #

An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

putIntentResponse_followUpPrompt :: Lens' PutIntentResponse (Maybe FollowUpPrompt) Source #

If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.

putIntentResponse_lastUpdatedDate :: Lens' PutIntentResponse (Maybe UTCTime) Source #

The date that the intent was updated. When you create a resource, the creation date and last update dates are the same.

putIntentResponse_outputContexts :: Lens' PutIntentResponse (Maybe [OutputContext]) Source #

An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

putIntentResponse_confirmationPrompt :: Lens' PutIntentResponse (Maybe Prompt) Source #

If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.

putIntentResponse_createVersion :: Lens' PutIntentResponse (Maybe Bool) Source #

True if a new version of the intent was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.

putIntentResponse_dialogCodeHook :: Lens' PutIntentResponse (Maybe CodeHook) Source #

If defined in the intent, Amazon Lex invokes this Lambda function for each user input.

putIntentResponse_httpStatus :: Lens' PutIntentResponse Int Source #

The response's http status code.

DeleteIntent

deleteIntent_name :: Lens' DeleteIntent Text Source #

The name of the intent. The name is case sensitive.

GetBuiltinIntents

getBuiltinIntents_locale :: Lens' GetBuiltinIntents (Maybe Locale) Source #

A list of locales that the intent supports.

getBuiltinIntents_nextToken :: Lens' GetBuiltinIntents (Maybe Text) Source #

A pagination token that fetches the next page of intents. If this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, use the pagination token in the next request.

getBuiltinIntents_signatureContains :: Lens' GetBuiltinIntents (Maybe Text) Source #

Substring to match in built-in intent signatures. An intent will be returned if any part of its signature matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

getBuiltinIntents_maxResults :: Lens' GetBuiltinIntents (Maybe Natural) Source #

The maximum number of intents to return in the response. The default is 10.

getBuiltinIntentsResponse_intents :: Lens' GetBuiltinIntentsResponse (Maybe [BuiltinIntentMetadata]) Source #

An array of builtinIntentMetadata objects, one for each intent in the response.

getBuiltinIntentsResponse_nextToken :: Lens' GetBuiltinIntentsResponse (Maybe Text) Source #

A pagination token that fetches the next page of intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request.

PutBot

putBot_abortStatement :: Lens' PutBot (Maybe Statement) Source #

When Amazon Lex can't understand the user's input in context, it tries to elicit the information a few times. After that, Amazon Lex sends the message defined in abortStatement to the user, and then cancels the conversation. To set the number of retries, use the valueElicitationPrompt field for the slot type.

For example, in a pizza ordering bot, Amazon Lex might ask a user "What type of crust would you like?" If the user's response is not one of the expected responses (for example, "thin crust, "deep dish," etc.), Amazon Lex tries to elicit a correct response a few more times.

For example, in a pizza ordering application, OrderPizza might be one of the intents. This intent might require the CrustType slot. You specify the valueElicitationPrompt field when you create the CrustType slot.

If you have defined a fallback intent the cancel statement will not be sent to the user, the fallback intent is used instead. For more information, see AMAZON.FallbackIntent.

putBot_intents :: Lens' PutBot (Maybe [Intent]) Source #

An array of Intent objects. Each intent represents a command that a user can express. For example, a pizza ordering bot might support an OrderPizza intent. For more information, see how-it-works.

putBot_checksum :: Lens' PutBot (Maybe Text) Source #

Identifies a specific revision of the $LATEST version.

When you create a new bot, leave the checksum field blank. If you specify a checksum you get a BadRequestException exception.

When you want to update a bot, set the checksum field to the checksum of the most recent revision of the $LATEST version. If you don't specify the checksum field, or if the checksum does not match the $LATEST version, you get a PreconditionFailedException exception.

putBot_enableModelImprovements :: Lens' PutBot (Maybe Bool) Source #

Set to true to enable access to natural language understanding improvements.

When you set the enableModelImprovements parameter to true you can use the nluIntentConfidenceThreshold parameter to configure confidence scores. For more information, see Confidence Scores.

You can only set the enableModelImprovements parameter in certain Regions. If you set the parameter to true, your bot has access to accuracy improvements.

The Regions where you can set the enableModelImprovements parameter to true are:

  • US East (N. Virginia) (us-east-1)
  • US West (Oregon) (us-west-2)
  • Asia Pacific (Sydney) (ap-southeast-2)
  • EU (Ireland) (eu-west-1)

In other Regions, the enableModelImprovements parameter is set to true by default. In these Regions setting the parameter to false throws a ValidationException exception.

putBot_nluIntentConfidenceThreshold :: Lens' PutBot (Maybe Double) Source #

Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

You must set the enableModelImprovements parameter to true to use confidence scores in the following regions.

  • US East (N. Virginia) (us-east-1)
  • US West (Oregon) (us-west-2)
  • Asia Pacific (Sydney) (ap-southeast-2)
  • EU (Ireland) (eu-west-1)

In other Regions, the enableModelImprovements parameter is set to true by default.

For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

  • AMAZON.FallbackIntent
  • IntentA
  • IntentB
  • IntentC

putBot_detectSentiment :: Lens' PutBot (Maybe Bool) Source #

When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. If you don't specify detectSentiment, the default is false.

putBot_processBehavior :: Lens' PutBot (Maybe ProcessBehavior) Source #

If you set the processBehavior element to BUILD, Amazon Lex builds the bot so that it can be run. If you set the element to SAVE Amazon Lex saves the bot, but doesn't build it.

If you don't specify this value, the default value is BUILD.

putBot_idleSessionTTLInSeconds :: Lens' PutBot (Maybe Natural) Source #

The maximum time in seconds that Amazon Lex retains the data gathered in a conversation.

A user interaction session remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.

For example, suppose that a user chooses the OrderPizza intent, but gets sidetracked halfway through placing an order. If the user doesn't complete the order within the specified time, Amazon Lex discards the slot information that it gathered, and the user must start over.

If you don't include the idleSessionTTLInSeconds element in a PutBot operation request, Amazon Lex uses the default value. This is also true if the request replaces an existing bot.

The default is 300 seconds (5 minutes).

putBot_clarificationPrompt :: Lens' PutBot (Maybe Prompt) Source #

When Amazon Lex doesn't understand the user's intent, it uses this message to get clarification. To specify how many times Amazon Lex should repeat the clarification prompt, use the maxAttempts field. If Amazon Lex still doesn't understand, it sends the message in the abortStatement field.

When you create a clarification prompt, make sure that it suggests the correct response from the user. for example, for a bot that orders pizza and drinks, you might create this clarification prompt: "What would you like to do? You can say 'Order a pizza' or 'Order a drink.'"

If you have defined a fallback intent, it will be invoked if the clarification prompt is repeated the number of times defined in the maxAttempts field. For more information, see AMAZON.FallbackIntent.

If you don't define a clarification prompt, at runtime Amazon Lex will return a 400 Bad Request exception in three cases:

  • Follow-up prompt - When the user responds to a follow-up prompt but does not provide an intent. For example, in response to a follow-up prompt that says "Would you like anything else today?" the user says "Yes." Amazon Lex will return a 400 Bad Request exception because it does not have a clarification prompt to send to the user to get an intent.
  • Lambda function - When using a Lambda function, you return an ElicitIntent dialog type. Since Amazon Lex does not have a clarification prompt to get an intent from the user, it returns a 400 Bad Request exception.
  • PutSession operation - When using the PutSession operation, you send an ElicitIntent dialog type. Since Amazon Lex does not have a clarification prompt to get an intent from the user, it returns a 400 Bad Request exception.

putBot_voiceId :: Lens' PutBot (Maybe Text) Source #

The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions with the user. The locale configured for the voice must match the locale of the bot. For more information, see Voices in Amazon Polly in the Amazon Polly Developer Guide.

putBot_createVersion :: Lens' PutBot (Maybe Bool) Source #

When set to true a new numbered version of the bot is created. This is the same as calling the CreateBotVersion operation. If you don't specify createVersion, the default is false.

putBot_description :: Lens' PutBot (Maybe Text) Source #

A description of the bot.

putBot_tags :: Lens' PutBot (Maybe [Tag]) Source #

A list of tags to add to the bot. You can only add tags when you create a bot, you can't use the PutBot operation to update the tags on a bot. To update tags, use the TagResource operation.

putBot_name :: Lens' PutBot Text Source #

The name of the bot. The name is not case sensitive.

putBot_locale :: Lens' PutBot Locale Source #

Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot.

The default is en-US.

putBot_childDirected :: Lens' PutBot Bool Source #

For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. By specifying true in the childDirected field, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying false in the childDirected field, you confirm that your use of Amazon Lex is not related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the childDirected field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA.

If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ.

putBotResponse_failureReason :: Lens' PutBotResponse (Maybe Text) Source #

If status is FAILED, Amazon Lex provides the reason that it failed to build the bot.

putBotResponse_status :: Lens' PutBotResponse (Maybe LexStatus) Source #

When you send a request to create a bot with processBehavior set to BUILD, Amazon Lex sets the status response element to BUILDING.

In the READY_BASIC_TESTING state you can test the bot with user inputs that exactly match the utterances configured for the bot's intents and values in the slot types.

If Amazon Lex can't build the bot, Amazon Lex sets status to FAILED. Amazon Lex returns the reason for the failure in the failureReason response element.

When you set processBehavior to SAVE, Amazon Lex sets the status code to NOT BUILT.

When the bot is in the READY state you can test and publish the bot.

putBotResponse_abortStatement :: Lens' PutBotResponse (Maybe Statement) Source #

The message that Amazon Lex uses to cancel a conversation. For more information, see PutBot.

putBotResponse_intents :: Lens' PutBotResponse (Maybe [Intent]) Source #

An array of Intent objects. For more information, see PutBot.

putBotResponse_checksum :: Lens' PutBotResponse (Maybe Text) Source #

Checksum of the bot that you created.

putBotResponse_enableModelImprovements :: Lens' PutBotResponse (Maybe Bool) Source #

Indicates whether the bot uses accuracy improvements. true indicates that the bot is using the improvements, otherwise, false.

putBotResponse_nluIntentConfidenceThreshold :: Lens' PutBotResponse (Maybe Double) Source #

The score that determines where Amazon Lex inserts the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent is inserted if the confidence score for all intents is below this value. AMAZON.KendraSearchIntent is only inserted if it is configured for the bot.

putBotResponse_detectSentiment :: Lens' PutBotResponse (Maybe Bool) Source #

true if the bot is configured to send user utterances to Amazon Comprehend for sentiment analysis. If the detectSentiment field was not specified in the request, the detectSentiment field is false in the response.

putBotResponse_locale :: Lens' PutBotResponse (Maybe Locale) Source #

The target locale for the bot.

putBotResponse_createdDate :: Lens' PutBotResponse (Maybe UTCTime) Source #

The date that the bot was created.

putBotResponse_version :: Lens' PutBotResponse (Maybe Text) Source #

The version of the bot. For a new bot, the version is always $LATEST.

putBotResponse_idleSessionTTLInSeconds :: Lens' PutBotResponse (Maybe Natural) Source #

The maximum length of time that Amazon Lex retains the data gathered in a conversation. For more information, see PutBot.

putBotResponse_clarificationPrompt :: Lens' PutBotResponse (Maybe Prompt) Source #

The prompts that Amazon Lex uses when it doesn't understand the user's intent. For more information, see PutBot.

putBotResponse_voiceId :: Lens' PutBotResponse (Maybe Text) Source #

The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. For more information, see PutBot.

putBotResponse_lastUpdatedDate :: Lens' PutBotResponse (Maybe UTCTime) Source #

The date that the bot was updated. When you create a resource, the creation date and last updated date are the same.

putBotResponse_createVersion :: Lens' PutBotResponse (Maybe Bool) Source #

True if a new version of the bot was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.

putBotResponse_childDirected :: Lens' PutBotResponse (Maybe Bool) Source #

For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. By specifying true in the childDirected field, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying false in the childDirected field, you confirm that your use of Amazon Lex is not related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the childDirected field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA.

If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ.

putBotResponse_tags :: Lens' PutBotResponse (Maybe [Tag]) Source #

A list of tags associated with the bot.

putBotResponse_httpStatus :: Lens' PutBotResponse Int Source #

The response's http status code.

DeleteBot

deleteBot_name :: Lens' DeleteBot Text Source #

The name of the bot. The name is case sensitive.

GetImport

getImport_importId :: Lens' GetImport Text Source #

The identifier of the import job information to return.

getImportResponse_failureReason :: Lens' GetImportResponse (Maybe [Text]) Source #

A string that describes why an import job failed to complete.

getImportResponse_importId :: Lens' GetImportResponse (Maybe Text) Source #

The identifier for the specific import job.

getImportResponse_createdDate :: Lens' GetImportResponse (Maybe UTCTime) Source #

A timestamp for the date and time that the import job was created.

getImportResponse_name :: Lens' GetImportResponse (Maybe Text) Source #

The name given to the import job.

getImportResponse_mergeStrategy :: Lens' GetImportResponse (Maybe MergeStrategy) Source #

The action taken when there was a conflict between an existing resource and a resource in the import file.

getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus) Source #

The status of the import job. If the status is FAILED, you can get the reason for the failure from the failureReason field.

getImportResponse_httpStatus :: Lens' GetImportResponse Int Source #

The response's http status code.

GetIntentVersions

getIntentVersions_nextToken :: Lens' GetIntentVersions (Maybe Text) Source #

A pagination token for fetching the next page of intent versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

getIntentVersions_maxResults :: Lens' GetIntentVersions (Maybe Natural) Source #

The maximum number of intent versions to return in the response. The default is 10.

getIntentVersions_name :: Lens' GetIntentVersions Text Source #

The name of the intent for which versions should be returned.

getIntentVersionsResponse_intents :: Lens' GetIntentVersionsResponse (Maybe [IntentMetadata]) Source #

An array of IntentMetadata objects, one for each numbered version of the intent plus one for the $LATEST version.

getIntentVersionsResponse_nextToken :: Lens' GetIntentVersionsResponse (Maybe Text) Source #

A pagination token for fetching the next page of intent versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

GetBuiltinIntent

getBuiltinIntent_signature :: Lens' GetBuiltinIntent Text Source #

The unique identifier for a built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

getBuiltinIntentResponse_signature :: Lens' GetBuiltinIntentResponse (Maybe Text) Source #

The unique identifier for a built-in intent.

getBuiltinIntentResponse_slots :: Lens' GetBuiltinIntentResponse (Maybe [BuiltinIntentSlot]) Source #

An array of BuiltinIntentSlot objects, one entry for each slot type in the intent.

PutBotAlias

putBotAlias_checksum :: Lens' PutBotAlias (Maybe Text) Source #

Identifies a specific revision of the $LATEST version.

When you create a new bot alias, leave the checksum field blank. If you specify a checksum you get a BadRequestException exception.

When you want to update a bot alias, set the checksum field to the checksum of the most recent revision of the $LATEST version. If you don't specify the checksum field, or if the checksum does not match the $LATEST version, you get a PreconditionFailedException exception.

putBotAlias_conversationLogs :: Lens' PutBotAlias (Maybe ConversationLogsRequest) Source #

Settings for conversation logs for the alias.

putBotAlias_description :: Lens' PutBotAlias (Maybe Text) Source #

A description of the alias.

putBotAlias_tags :: Lens' PutBotAlias (Maybe [Tag]) Source #

A list of tags to add to the bot alias. You can only add tags when you create an alias, you can't use the PutBotAlias operation to update the tags on a bot alias. To update tags, use the TagResource operation.

putBotAlias_name :: Lens' PutBotAlias Text Source #

The name of the alias. The name is not case sensitive.

putBotAliasResponse_checksum :: Lens' PutBotAliasResponse (Maybe Text) Source #

The checksum for the current version of the alias.

putBotAliasResponse_botVersion :: Lens' PutBotAliasResponse (Maybe Text) Source #

The version of the bot that the alias points to.

putBotAliasResponse_botName :: Lens' PutBotAliasResponse (Maybe Text) Source #

The name of the bot that the alias points to.

putBotAliasResponse_createdDate :: Lens' PutBotAliasResponse (Maybe UTCTime) Source #

The date that the bot alias was created.

putBotAliasResponse_conversationLogs :: Lens' PutBotAliasResponse (Maybe ConversationLogsResponse) Source #

The settings that determine how Amazon Lex uses conversation logs for the alias.

putBotAliasResponse_lastUpdatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime) Source #

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

putBotAliasResponse_tags :: Lens' PutBotAliasResponse (Maybe [Tag]) Source #

A list of tags associated with a bot.

GetBotVersions

getBotVersions_nextToken :: Lens' GetBotVersions (Maybe Text) Source #

A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

getBotVersions_maxResults :: Lens' GetBotVersions (Maybe Natural) Source #

The maximum number of bot versions to return in the response. The default is 10.

getBotVersions_name :: Lens' GetBotVersions Text Source #

The name of the bot for which versions should be returned.

getBotVersionsResponse_bots :: Lens' GetBotVersionsResponse (Maybe [BotMetadata]) Source #

An array of BotMetadata objects, one for each numbered version of the bot plus one for the $LATEST version.

getBotVersionsResponse_nextToken :: Lens' GetBotVersionsResponse (Maybe Text) Source #

A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

GetBotChannelAssociations

getBotChannelAssociations_nameContains :: Lens' GetBotChannelAssociations (Maybe Text) Source #

Substring to match in channel association names. An association will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To return all bot channel associations, use a hyphen ("-") as the nameContains parameter.

getBotChannelAssociations_nextToken :: Lens' GetBotChannelAssociations (Maybe Text) Source #

A pagination token for fetching the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.

getBotChannelAssociations_maxResults :: Lens' GetBotChannelAssociations (Maybe Natural) Source #

The maximum number of associations to return in the response. The default is 50.

getBotChannelAssociations_botName :: Lens' GetBotChannelAssociations Text Source #

The name of the Amazon Lex bot in the association.

getBotChannelAssociations_botAlias :: Lens' GetBotChannelAssociations Text Source #

An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

getBotChannelAssociationsResponse_botChannelAssociations :: Lens' GetBotChannelAssociationsResponse (Maybe [BotChannelAssociation]) Source #

An array of objects, one for each association, that provides information about the Amazon Lex bot and its association with the channel.

getBotChannelAssociationsResponse_nextToken :: Lens' GetBotChannelAssociationsResponse (Maybe Text) Source #

A pagination token that fetches the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.

DeleteBotAlias

deleteBotAlias_name :: Lens' DeleteBotAlias Text Source #

The name of the alias to delete. The name is case sensitive.

deleteBotAlias_botName :: Lens' DeleteBotAlias Text Source #

The name of the bot that the alias points to.

GetSlotTypes

getSlotTypes_nameContains :: Lens' GetSlotTypes (Maybe Text) Source #

Substring to match in slot type names. A slot type will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

getSlotTypes_nextToken :: Lens' GetSlotTypes (Maybe Text) Source #

A pagination token that fetches the next page of slot types. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch next page of slot types, specify the pagination token in the next request.

getSlotTypes_maxResults :: Lens' GetSlotTypes (Maybe Natural) Source #

The maximum number of slot types to return in the response. The default is 10.

getSlotTypesResponse_nextToken :: Lens' GetSlotTypesResponse (Maybe Text) Source #

If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.

getSlotTypesResponse_slotTypes :: Lens' GetSlotTypesResponse (Maybe [SlotTypeMetadata]) Source #

An array of objects, one for each slot type, that provides information such as the name of the slot type, the version, and a description.

GetMigrations

getMigrations_sortByAttribute :: Lens' GetMigrations (Maybe MigrationSortAttribute) Source #

The field to sort the list of migrations by. You can sort by the Amazon Lex V1 bot name or the date and time that the migration was started.

getMigrations_nextToken :: Lens' GetMigrations (Maybe Text) Source #

A pagination token that fetches the next page of migrations. If the response to this operation is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of migrations, specify the pagination token in the request.

getMigrations_migrationStatusEquals :: Lens' GetMigrations (Maybe MigrationStatus) Source #

Filters the list to contain only migrations in the specified state.

getMigrations_v1BotNameContains :: Lens' GetMigrations (Maybe Text) Source #

Filters the list to contain only bots whose name contains the specified string. The string is matched anywhere in bot name.

getMigrations_maxResults :: Lens' GetMigrations (Maybe Natural) Source #

The maximum number of migrations to return in the response. The default is 10.

getMigrationsResponse_migrationSummaries :: Lens' GetMigrationsResponse (Maybe [MigrationSummary]) Source #

An array of summaries for migrations from Amazon Lex V1 to Amazon Lex V2. To see details of the migration, use the migrationId from the summary in a call to the operation.

getMigrationsResponse_nextToken :: Lens' GetMigrationsResponse (Maybe Text) Source #

If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of migrations.

DeleteUtterances

deleteUtterances_botName :: Lens' DeleteUtterances Text Source #

The name of the bot that stored the utterances.

deleteUtterances_userId :: Lens' DeleteUtterances Text Source #

The unique identifier for the user that made the utterances. This is the user ID that was sent in the PostContent or PostText operation request that contained the utterance.

GetBots

getBots_nameContains :: Lens' GetBots (Maybe Text) Source #

Substring to match in bot names. A bot will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

getBots_nextToken :: Lens' GetBots (Maybe Text) Source #

A pagination token that fetches the next page of bots. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of bots, specify the pagination token in the next request.

getBots_maxResults :: Lens' GetBots (Maybe Natural) Source #

The maximum number of bots to return in the response that the request will return. The default is 10.

getBotsResponse_bots :: Lens' GetBotsResponse (Maybe [BotMetadata]) Source #

An array of botMetadata objects, with one entry for each bot.

getBotsResponse_nextToken :: Lens' GetBotsResponse (Maybe Text) Source #

If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of bots.

getBotsResponse_httpStatus :: Lens' GetBotsResponse Int Source #

The response's http status code.

GetBot

getBot_name :: Lens' GetBot Text Source #

The name of the bot. The name is case sensitive.

getBot_versionOrAlias :: Lens' GetBot Text Source #

The version or alias of the bot.

getBotResponse_failureReason :: Lens' GetBotResponse (Maybe Text) Source #

If status is FAILED, Amazon Lex explains why it failed to build the bot.

getBotResponse_status :: Lens' GetBotResponse (Maybe LexStatus) Source #

The status of the bot.

When the status is BUILDING Amazon Lex is building the bot for testing and use.

If the status of the bot is READY_BASIC_TESTING, you can test the bot using the exact utterances specified in the bot's intents. When the bot is ready for full testing or to run, the status is READY.

If there was a problem with building the bot, the status is FAILED and the failureReason field explains why the bot did not build.

If the bot was saved but not built, the status is NOT_BUILT.

getBotResponse_abortStatement :: Lens' GetBotResponse (Maybe Statement) Source #

The message that Amazon Lex returns when the user elects to end the conversation without completing it. For more information, see PutBot.

getBotResponse_intents :: Lens' GetBotResponse (Maybe [Intent]) Source #

An array of intent objects. For more information, see PutBot.

getBotResponse_checksum :: Lens' GetBotResponse (Maybe Text) Source #

Checksum of the bot used to identify a specific revision of the bot's $LATEST version.

getBotResponse_enableModelImprovements :: Lens' GetBotResponse (Maybe Bool) Source #

Indicates whether the bot uses accuracy improvements. true indicates that the bot is using the improvements, otherwise, false.

getBotResponse_nluIntentConfidenceThreshold :: Lens' GetBotResponse (Maybe Double) Source #

The score that determines where Amazon Lex inserts the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent is inserted if the confidence score for all intents is below this value. AMAZON.KendraSearchIntent is only inserted if it is configured for the bot.

getBotResponse_detectSentiment :: Lens' GetBotResponse (Maybe Bool) Source #

Indicates whether user utterances should be sent to Amazon Comprehend for sentiment analysis.

getBotResponse_locale :: Lens' GetBotResponse (Maybe Locale) Source #

The target locale for the bot.

getBotResponse_createdDate :: Lens' GetBotResponse (Maybe UTCTime) Source #

The date that the bot was created.

getBotResponse_version :: Lens' GetBotResponse (Maybe Text) Source #

The version of the bot. For a new bot, the version is always $LATEST.

getBotResponse_idleSessionTTLInSeconds :: Lens' GetBotResponse (Maybe Natural) Source #

The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. For more information, see PutBot.

getBotResponse_clarificationPrompt :: Lens' GetBotResponse (Maybe Prompt) Source #

The message Amazon Lex uses when it doesn't understand the user's request. For more information, see PutBot.

getBotResponse_voiceId :: Lens' GetBotResponse (Maybe Text) Source #

The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. For more information, see PutBot.

getBotResponse_lastUpdatedDate :: Lens' GetBotResponse (Maybe UTCTime) Source #

The date that the bot was updated. When you create a resource, the creation date and last updated date are the same.

getBotResponse_childDirected :: Lens' GetBotResponse (Maybe Bool) Source #

For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. By specifying true in the childDirected field, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying false in the childDirected field, you confirm that your use of Amazon Lex is not related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the childDirected field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA.

If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ.

getBotResponse_httpStatus :: Lens' GetBotResponse Int Source #

The response's http status code.

CreateBotVersion

createBotVersion_checksum :: Lens' CreateBotVersion (Maybe Text) Source #

Identifies a specific revision of the $LATEST version of the bot. If you specify a checksum and the $LATEST version of the bot has a different checksum, a PreconditionFailedException exception is returned and Amazon Lex doesn't publish a new version. If you don't specify a checksum, Amazon Lex publishes the $LATEST version.

createBotVersion_name :: Lens' CreateBotVersion Text Source #

The name of the bot that you want to create a new version of. The name is case sensitive.

createBotVersionResponse_failureReason :: Lens' CreateBotVersionResponse (Maybe Text) Source #

If status is FAILED, Amazon Lex provides the reason that it failed to build the bot.

createBotVersionResponse_status :: Lens' CreateBotVersionResponse (Maybe LexStatus) Source #

When you send a request to create or update a bot, Amazon Lex sets the status response element to BUILDING. After Amazon Lex builds the bot, it sets status to READY. If Amazon Lex can't build the bot, it sets status to FAILED. Amazon Lex returns the reason for the failure in the failureReason response element.

createBotVersionResponse_abortStatement :: Lens' CreateBotVersionResponse (Maybe Statement) Source #

The message that Amazon Lex uses to cancel a conversation. For more information, see PutBot.

createBotVersionResponse_intents :: Lens' CreateBotVersionResponse (Maybe [Intent]) Source #

An array of Intent objects. For more information, see PutBot.

createBotVersionResponse_checksum :: Lens' CreateBotVersionResponse (Maybe Text) Source #

Checksum identifying the version of the bot that was created.

createBotVersionResponse_enableModelImprovements :: Lens' CreateBotVersionResponse (Maybe Bool) Source #

Indicates whether the bot uses accuracy improvements. true indicates that the bot is using the improvements, otherwise, false.

createBotVersionResponse_detectSentiment :: Lens' CreateBotVersionResponse (Maybe Bool) Source #

Indicates whether utterances entered by the user should be sent to Amazon Comprehend for sentiment analysis.

createBotVersionResponse_idleSessionTTLInSeconds :: Lens' CreateBotVersionResponse (Maybe Natural) Source #

The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. For more information, see PutBot.

createBotVersionResponse_clarificationPrompt :: Lens' CreateBotVersionResponse (Maybe Prompt) Source #

The message that Amazon Lex uses when it doesn't understand the user's request. For more information, see PutBot.

createBotVersionResponse_voiceId :: Lens' CreateBotVersionResponse (Maybe Text) Source #

The Amazon Polly voice ID that Amazon Lex uses for voice interactions with the user.

createBotVersionResponse_lastUpdatedDate :: Lens' CreateBotVersionResponse (Maybe UTCTime) Source #

The date when the $LATEST version of this bot was updated.

createBotVersionResponse_childDirected :: Lens' CreateBotVersionResponse (Maybe Bool) Source #

For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. By specifying true in the childDirected field, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying false in the childDirected field, you confirm that your use of Amazon Lex is not related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the childDirected field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA.

If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ.

DeleteSlotTypeVersion

deleteSlotTypeVersion_version :: Lens' DeleteSlotTypeVersion Text Source #

The version of the slot type to delete. You cannot delete the $LATEST version of the slot type. To delete the $LATEST version, use the DeleteSlotType operation.

DeleteBotVersion

deleteBotVersion_version :: Lens' DeleteBotVersion Text Source #

The version of the bot to delete. You cannot delete the $LATEST version of the bot. To delete the $LATEST version, use the DeleteBot operation.

GetSlotType

getSlotType_name :: Lens' GetSlotType Text Source #

The name of the slot type. The name is case sensitive.

getSlotType_version :: Lens' GetSlotType Text Source #

The version of the slot type.

getSlotTypeResponse_parentSlotTypeSignature :: Lens' GetSlotTypeResponse (Maybe Text) Source #

The built-in slot type used as a parent for the slot type.

getSlotTypeResponse_slotTypeConfigurations :: Lens' GetSlotTypeResponse (Maybe [SlotTypeConfiguration]) Source #

Configuration information that extends the parent built-in slot type.

getSlotTypeResponse_checksum :: Lens' GetSlotTypeResponse (Maybe Text) Source #

Checksum of the $LATEST version of the slot type.

getSlotTypeResponse_valueSelectionStrategy :: Lens' GetSlotTypeResponse (Maybe SlotValueSelectionStrategy) Source #

The strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.

getSlotTypeResponse_createdDate :: Lens' GetSlotTypeResponse (Maybe UTCTime) Source #

The date that the slot type was created.

getSlotTypeResponse_lastUpdatedDate :: Lens' GetSlotTypeResponse (Maybe UTCTime) Source #

The date that the slot type was updated. When you create a resource, the creation date and last update date are the same.

getSlotTypeResponse_enumerationValues :: Lens' GetSlotTypeResponse (Maybe [EnumerationValue]) Source #

A list of EnumerationValue objects that defines the values that the slot type can take.

GetExport

getExport_name :: Lens' GetExport Text Source #

The name of the bot to export.

getExport_version :: Lens' GetExport Text Source #

The version of the bot to export.

getExport_resourceType :: Lens' GetExport ResourceType Source #

The type of resource to export.

getExport_exportType :: Lens' GetExport ExportType Source #

The format of the exported data.

getExportResponse_failureReason :: Lens' GetExportResponse (Maybe Text) Source #

If status is FAILED, Amazon Lex provides the reason that it failed to export the resource.

getExportResponse_exportStatus :: Lens' GetExportResponse (Maybe ExportStatus) Source #

The status of the export.

  • IN_PROGRESS - The export is in progress.
  • READY - The export is complete.
  • FAILED - The export could not be completed.

getExportResponse_url :: Lens' GetExportResponse (Maybe Text) Source #

An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive that contains the exported resource in JSON format. The structure of the archive may change. Your code should not rely on the archive structure.

getExportResponse_name :: Lens' GetExportResponse (Maybe Text) Source #

The name of the bot being exported.

getExportResponse_version :: Lens' GetExportResponse (Maybe Text) Source #

The version of the bot being exported.

getExportResponse_httpStatus :: Lens' GetExportResponse Int Source #

The response's http status code.

GetMigration

getMigration_migrationId :: Lens' GetMigration Text Source #

The unique identifier of the migration to view. The migrationID is returned by the operation.

getMigrationResponse_v1BotVersion :: Lens' GetMigrationResponse (Maybe Text) Source #

The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.

getMigrationResponse_migrationStrategy :: Lens' GetMigrationResponse (Maybe MigrationStrategy) Source #

The strategy used to conduct the migration.

  • CREATE_NEW - Creates a new Amazon Lex V2 bot and migrates the Amazon Lex V1 bot to the new bot.
  • UPDATE_EXISTING - Overwrites the existing Amazon Lex V2 bot metadata and the locale being migrated. It doesn't change any other locales in the Amazon Lex V2 bot. If the locale doesn't exist, a new locale is created in the Amazon Lex V2 bot.

getMigrationResponse_migrationTimestamp :: Lens' GetMigrationResponse (Maybe UTCTime) Source #

The date and time that the migration started.

getMigrationResponse_alerts :: Lens' GetMigrationResponse (Maybe [MigrationAlert]) Source #

A list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to Amazon Lex V2. You receive a warning when an Amazon Lex V1 feature has a different implementation if Amazon Lex V2.

For more information, see Migrating a bot in the Amazon Lex V2 developer guide.

getMigrationResponse_migrationStatus :: Lens' GetMigrationResponse (Maybe MigrationStatus) Source #

Indicates the status of the migration. When the status is COMPLETE the migration is finished and the bot is available in Amazon Lex V2. There may be alerts and warnings that need to be resolved to complete the migration.

getMigrationResponse_v2BotId :: Lens' GetMigrationResponse (Maybe Text) Source #

The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.

getMigrationResponse_v1BotLocale :: Lens' GetMigrationResponse (Maybe Locale) Source #

The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.

getMigrationResponse_v1BotName :: Lens' GetMigrationResponse (Maybe Text) Source #

The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.

getMigrationResponse_v2BotRole :: Lens' GetMigrationResponse (Maybe Text) Source #

The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

getMigrationResponse_migrationId :: Lens' GetMigrationResponse (Maybe Text) Source #

The unique identifier of the migration. This is the same as the identifier used when calling the GetMigration operation.

CreateIntentVersion

createIntentVersion_checksum :: Lens' CreateIntentVersion (Maybe Text) Source #

Checksum of the $LATEST version of the intent that should be used to create the new version. If you specify a checksum and the $LATEST version of the intent has a different checksum, Amazon Lex returns a PreconditionFailedException exception and doesn't publish a new version. If you don't specify a checksum, Amazon Lex publishes the $LATEST version.

createIntentVersion_name :: Lens' CreateIntentVersion Text Source #

The name of the intent that you want to create a new version of. The name is case sensitive.

createIntentVersionResponse_slots :: Lens' CreateIntentVersionResponse (Maybe [Slot]) Source #

An array of slot types that defines the information required to fulfill the intent.

createIntentVersionResponse_rejectionStatement :: Lens' CreateIntentVersionResponse (Maybe Statement) Source #

If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

createIntentVersionResponse_conclusionStatement :: Lens' CreateIntentVersionResponse (Maybe Statement) Source #

After the Lambda function specified in the fulfillmentActivity field fulfills the intent, Amazon Lex conveys this statement to the user.

createIntentVersionResponse_sampleUtterances :: Lens' CreateIntentVersionResponse (Maybe [Text]) Source #

An array of sample utterances configured for the intent.

createIntentVersionResponse_kendraConfiguration :: Lens' CreateIntentVersionResponse (Maybe KendraConfiguration) Source #

Configuration information, if any, for connecting an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

createIntentVersionResponse_version :: Lens' CreateIntentVersionResponse (Maybe Text) Source #

The version number assigned to the new version of the intent.

createIntentVersionResponse_inputContexts :: Lens' CreateIntentVersionResponse (Maybe [InputContext]) Source #

An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

createIntentVersionResponse_followUpPrompt :: Lens' CreateIntentVersionResponse (Maybe FollowUpPrompt) Source #

If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.

createIntentVersionResponse_outputContexts :: Lens' CreateIntentVersionResponse (Maybe [OutputContext]) Source #

An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

createIntentVersionResponse_confirmationPrompt :: Lens' CreateIntentVersionResponse (Maybe Prompt) Source #

If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.

createIntentVersionResponse_dialogCodeHook :: Lens' CreateIntentVersionResponse (Maybe CodeHook) Source #

If defined, Amazon Lex invokes this Lambda function for each user input.

DeleteSlotType

deleteSlotType_name :: Lens' DeleteSlotType Text Source #

The name of the slot type. The name is case sensitive.

StartImport

startImport_tags :: Lens' StartImport (Maybe [Tag]) Source #

A list of tags to add to the imported bot. You can only add tags when you import a bot, you can't add tags to an intent or slot type.

startImport_payload :: Lens' StartImport ByteString Source #

A zip archive in binary format. The archive should contain one file, a JSON file containing the resource to import. The resource should match the type specified in the resourceType field.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

startImport_resourceType :: Lens' StartImport ResourceType Source #

Specifies the type of resource to export. Each resource also exports any resources that it depends on.

  • A bot exports dependent intents.
  • An intent exports dependent slot types.

startImport_mergeStrategy :: Lens' StartImport MergeStrategy Source #

Specifies the action that the StartImport operation should take when there is an existing resource with the same name.

  • FAIL_ON_CONFLICT - The import operation is stopped on the first conflict between a resource in the import file and an existing resource. The name of the resource causing the conflict is in the failureReason field of the response to the GetImport operation.

    OVERWRITE_LATEST - The import operation proceeds even if there is a conflict with an existing resource. The $LASTEST version of the existing resource is overwritten with the data from the import file.

startImportResponse_importId :: Lens' StartImportResponse (Maybe Text) Source #

The identifier for the specific import job.

startImportResponse_createdDate :: Lens' StartImportResponse (Maybe UTCTime) Source #

A timestamp for the date and time that the import job was requested.

startImportResponse_name :: Lens' StartImportResponse (Maybe Text) Source #

The name given to the import job.

startImportResponse_mergeStrategy :: Lens' StartImportResponse (Maybe MergeStrategy) Source #

The action to take when there is a merge conflict.

startImportResponse_importStatus :: Lens' StartImportResponse (Maybe ImportStatus) Source #

The status of the import job. If the status is FAILED, you can get the reason for the failure using the GetImport operation.

startImportResponse_tags :: Lens' StartImportResponse (Maybe [Tag]) Source #

A list of tags added to the imported bot.

GetBotChannelAssociation

getBotChannelAssociation_name :: Lens' GetBotChannelAssociation Text Source #

The name of the association between the bot and the channel. The name is case sensitive.

getBotChannelAssociation_botAlias :: Lens' GetBotChannelAssociation Text Source #

An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

getBotChannelAssociationResponse_failureReason :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

If status is FAILED, Amazon Lex provides the reason that it failed to create the association.

getBotChannelAssociationResponse_status :: Lens' GetBotChannelAssociationResponse (Maybe ChannelStatus) Source #

The status of the bot channel.

  • CREATED - The channel has been created and is ready for use.
  • IN_PROGRESS - Channel creation is in progress.
  • FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.

getBotChannelAssociationResponse_botAlias :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

getBotChannelAssociationResponse_botConfiguration :: Lens' GetBotChannelAssociationResponse (Maybe (HashMap Text Text)) Source #

Provides information that the messaging platform needs to communicate with the Amazon Lex bot.

getBotChannelAssociationResponse_createdDate :: Lens' GetBotChannelAssociationResponse (Maybe UTCTime) Source #

The date that the association between the bot and the channel was created.

getBotChannelAssociationResponse_name :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

The name of the association between the bot and the channel.

getBotChannelAssociationResponse_description :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

A description of the association between the bot and the channel.

PutSlotType

putSlotType_parentSlotTypeSignature :: Lens' PutSlotType (Maybe Text) Source #

The built-in slot type used as the parent of the slot type. When you define a parent slot type, the new slot type has all of the same configuration as the parent.

Only AMAZON.AlphaNumeric is supported.

putSlotType_slotTypeConfigurations :: Lens' PutSlotType (Maybe [SlotTypeConfiguration]) Source #

Configuration information that extends the parent built-in slot type. The configuration is added to the settings for the parent slot type.

putSlotType_checksum :: Lens' PutSlotType (Maybe Text) Source #

Identifies a specific revision of the $LATEST version.

When you create a new slot type, leave the checksum field blank. If you specify a checksum you get a BadRequestException exception.

When you want to update a slot type, set the checksum field to the checksum of the most recent revision of the $LATEST version. If you don't specify the checksum field, or if the checksum does not match the $LATEST version, you get a PreconditionFailedException exception.

putSlotType_valueSelectionStrategy :: Lens' PutSlotType (Maybe SlotValueSelectionStrategy) Source #

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:

  • ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value.
  • TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.

If you don't specify the valueSelectionStrategy, the default is ORIGINAL_VALUE.

putSlotType_createVersion :: Lens' PutSlotType (Maybe Bool) Source #

When set to true a new numbered version of the slot type is created. This is the same as calling the CreateSlotTypeVersion operation. If you do not specify createVersion, the default is false.

putSlotType_description :: Lens' PutSlotType (Maybe Text) Source #

A description of the slot type.

putSlotType_enumerationValues :: Lens' PutSlotType (Maybe [EnumerationValue]) Source #

A list of EnumerationValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot.

A regular expression slot type doesn't require enumeration values. All other slot types require a list of enumeration values.

When Amazon Lex resolves a slot value, it generates a resolution list that contains up to five possible values for the slot. If you are using a Lambda function, this resolution list is passed to the function. If you are not using a Lambda function you can choose to return the value that the user entered or the first value in the resolution list as the slot value. The valueSelectionStrategy field indicates the option to use.

putSlotType_name :: Lens' PutSlotType Text Source #

The name of the slot type. The name is not case sensitive.

The name can't match a built-in slot type name, or a built-in slot type name with "AMAZON." removed. For example, because there is a built-in slot type called AMAZON.DATE, you can't create a custom slot type called DATE.

For a list of built-in slot types, see Slot Type Reference in the Alexa Skills Kit.

putSlotTypeResponse_parentSlotTypeSignature :: Lens' PutSlotTypeResponse (Maybe Text) Source #

The built-in slot type used as the parent of the slot type.

putSlotTypeResponse_slotTypeConfigurations :: Lens' PutSlotTypeResponse (Maybe [SlotTypeConfiguration]) Source #

Configuration information that extends the parent built-in slot type.

putSlotTypeResponse_checksum :: Lens' PutSlotTypeResponse (Maybe Text) Source #

Checksum of the $LATEST version of the slot type.

putSlotTypeResponse_valueSelectionStrategy :: Lens' PutSlotTypeResponse (Maybe SlotValueSelectionStrategy) Source #

The slot resolution strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.

putSlotTypeResponse_createdDate :: Lens' PutSlotTypeResponse (Maybe UTCTime) Source #

The date that the slot type was created.

putSlotTypeResponse_version :: Lens' PutSlotTypeResponse (Maybe Text) Source #

The version of the slot type. For a new slot type, the version is always $LATEST.

putSlotTypeResponse_lastUpdatedDate :: Lens' PutSlotTypeResponse (Maybe UTCTime) Source #

The date that the slot type was updated. When you create a slot type, the creation date and last update date are the same.

putSlotTypeResponse_createVersion :: Lens' PutSlotTypeResponse (Maybe Bool) Source #

True if a new version of the slot type was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.

putSlotTypeResponse_enumerationValues :: Lens' PutSlotTypeResponse (Maybe [EnumerationValue]) Source #

A list of EnumerationValue objects that defines the values that the slot type can take.

GetBuiltinSlotTypes

getBuiltinSlotTypes_locale :: Lens' GetBuiltinSlotTypes (Maybe Locale) Source #

A list of locales that the slot type supports.

getBuiltinSlotTypes_nextToken :: Lens' GetBuiltinSlotTypes (Maybe Text) Source #

A pagination token that fetches the next page of slot types. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of slot types, specify the pagination token in the next request.

getBuiltinSlotTypes_signatureContains :: Lens' GetBuiltinSlotTypes (Maybe Text) Source #

Substring to match in built-in slot type signatures. A slot type will be returned if any part of its signature matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

getBuiltinSlotTypes_maxResults :: Lens' GetBuiltinSlotTypes (Maybe Natural) Source #

The maximum number of slot types to return in the response. The default is 10.

getBuiltinSlotTypesResponse_nextToken :: Lens' GetBuiltinSlotTypesResponse (Maybe Text) Source #

If the response is truncated, the response includes a pagination token that you can use in your next request to fetch the next page of slot types.

getBuiltinSlotTypesResponse_slotTypes :: Lens' GetBuiltinSlotTypesResponse (Maybe [BuiltinSlotTypeMetadata]) Source #

An array of BuiltInSlotTypeMetadata objects, one entry for each slot type returned.

TagResource

tagResource_resourceArn :: Lens' TagResource Text Source #

The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel to tag.

tagResource_tags :: Lens' TagResource [Tag] Source #

A list of tag keys to add to the resource. If a tag key already exists, the existing value is replaced with the new value.

GetUtterancesView

getUtterancesView_botName :: Lens' GetUtterancesView Text Source #

The name of the bot for which utterance information should be returned.

getUtterancesView_botVersions :: Lens' GetUtterancesView (NonEmpty Text) Source #

An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.

getUtterancesView_statusType :: Lens' GetUtterancesView StatusType Source #

To return utterances that were recognized and handled, use Detected. To return utterances that were not recognized, use Missed.

getUtterancesViewResponse_botName :: Lens' GetUtterancesViewResponse (Maybe Text) Source #

The name of the bot for which utterance information was returned.

getUtterancesViewResponse_utterances :: Lens' GetUtterancesViewResponse (Maybe [UtteranceList]) Source #

An array of UtteranceList objects, each containing a list of UtteranceData objects describing the utterances that were processed by your bot. The response contains a maximum of 100 UtteranceData objects for each version. Amazon Lex returns the most frequent utterances received by the bot in the last 15 days.

GetSlotTypeVersions

getSlotTypeVersions_nextToken :: Lens' GetSlotTypeVersions (Maybe Text) Source #

A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

getSlotTypeVersions_maxResults :: Lens' GetSlotTypeVersions (Maybe Natural) Source #

The maximum number of slot type versions to return in the response. The default is 10.

getSlotTypeVersions_name :: Lens' GetSlotTypeVersions Text Source #

The name of the slot type for which versions should be returned.

getSlotTypeVersionsResponse_nextToken :: Lens' GetSlotTypeVersionsResponse (Maybe Text) Source #

A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

getSlotTypeVersionsResponse_slotTypes :: Lens' GetSlotTypeVersionsResponse (Maybe [SlotTypeMetadata]) Source #

An array of SlotTypeMetadata objects, one for each numbered version of the slot type plus one for the $LATEST version.

UntagResource

untagResource_resourceArn :: Lens' UntagResource Text Source #

The Amazon Resource Name (ARN) of the resource to remove the tags from.

untagResource_tagKeys :: Lens' UntagResource [Text] Source #

A list of tag keys to remove from the resource. If a tag key does not exist on the resource, it is ignored.

GetIntents

getIntents_nameContains :: Lens' GetIntents (Maybe Text) Source #

Substring to match in intent names. An intent will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

getIntents_nextToken :: Lens' GetIntents (Maybe Text) Source #

A pagination token that fetches the next page of intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request.

getIntents_maxResults :: Lens' GetIntents (Maybe Natural) Source #

The maximum number of intents to return in the response. The default is 10.

getIntentsResponse_intents :: Lens' GetIntentsResponse (Maybe [IntentMetadata]) Source #

An array of Intent objects. For more information, see PutBot.

getIntentsResponse_nextToken :: Lens' GetIntentsResponse (Maybe Text) Source #

If the response is truncated, the response includes a pagination token that you can specify in your next request to fetch the next page of intents.

GetBotAlias

getBotAlias_name :: Lens' GetBotAlias Text Source #

The name of the bot alias. The name is case sensitive.

getBotAliasResponse_botVersion :: Lens' GetBotAliasResponse (Maybe Text) Source #

The version of the bot that the alias points to.

getBotAliasResponse_botName :: Lens' GetBotAliasResponse (Maybe Text) Source #

The name of the bot that the alias points to.

getBotAliasResponse_createdDate :: Lens' GetBotAliasResponse (Maybe UTCTime) Source #

The date that the bot alias was created.

getBotAliasResponse_conversationLogs :: Lens' GetBotAliasResponse (Maybe ConversationLogsResponse) Source #

The settings that determine how Amazon Lex uses conversation logs for the alias.

getBotAliasResponse_lastUpdatedDate :: Lens' GetBotAliasResponse (Maybe UTCTime) Source #

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

Types

BotAliasMetadata

botAliasMetadata_botVersion :: Lens' BotAliasMetadata (Maybe Text) Source #

The version of the Amazon Lex bot to which the alias points.

botAliasMetadata_botName :: Lens' BotAliasMetadata (Maybe Text) Source #

The name of the bot to which the alias points.

botAliasMetadata_createdDate :: Lens' BotAliasMetadata (Maybe UTCTime) Source #

The date that the bot alias was created.

botAliasMetadata_conversationLogs :: Lens' BotAliasMetadata (Maybe ConversationLogsResponse) Source #

Settings that determine how Amazon Lex uses conversation logs for the alias.

botAliasMetadata_lastUpdatedDate :: Lens' BotAliasMetadata (Maybe UTCTime) Source #

The date that the bot alias was updated. When you create a resource, the creation date and last updated date are the same.

BotChannelAssociation

botChannelAssociation_failureReason :: Lens' BotChannelAssociation (Maybe Text) Source #

If status is FAILED, Amazon Lex provides the reason that it failed to create the association.

botChannelAssociation_status :: Lens' BotChannelAssociation (Maybe ChannelStatus) Source #

The status of the bot channel.

  • CREATED - The channel has been created and is ready for use.
  • IN_PROGRESS - Channel creation is in progress.
  • FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.

botChannelAssociation_botAlias :: Lens' BotChannelAssociation (Maybe Text) Source #

An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

botChannelAssociation_botName :: Lens' BotChannelAssociation (Maybe Text) Source #

The name of the Amazon Lex bot to which this association is being made.

Currently, Amazon Lex supports associations with Facebook and Slack, and Twilio.

botChannelAssociation_botConfiguration :: Lens' BotChannelAssociation (Maybe (HashMap Text Text)) Source #

Provides information necessary to communicate with the messaging platform.

botChannelAssociation_createdDate :: Lens' BotChannelAssociation (Maybe UTCTime) Source #

The date that the association between the Amazon Lex bot and the channel was created.

botChannelAssociation_name :: Lens' BotChannelAssociation (Maybe Text) Source #

The name of the association between the bot and the channel.

botChannelAssociation_type :: Lens' BotChannelAssociation (Maybe ChannelType) Source #

Specifies the type of association by indicating the type of channel being established between the Amazon Lex bot and the external messaging platform.

botChannelAssociation_description :: Lens' BotChannelAssociation (Maybe Text) Source #

A text description of the association you are creating.

BotMetadata

botMetadata_createdDate :: Lens' BotMetadata (Maybe UTCTime) Source #

The date that the bot was created.

botMetadata_version :: Lens' BotMetadata (Maybe Text) Source #

The version of the bot. For a new bot, the version is always $LATEST.

botMetadata_lastUpdatedDate :: Lens' BotMetadata (Maybe UTCTime) Source #

The date that the bot was updated. When you create a bot, the creation date and last updated date are the same.

BuiltinIntentMetadata

builtinIntentMetadata_signature :: Lens' BuiltinIntentMetadata (Maybe Text) Source #

A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

builtinIntentMetadata_supportedLocales :: Lens' BuiltinIntentMetadata (Maybe [Locale]) Source #

A list of identifiers for the locales that the intent supports.

BuiltinIntentSlot

builtinIntentSlot_name :: Lens' BuiltinIntentSlot (Maybe Text) Source #

A list of the slots defined for the intent.

BuiltinSlotTypeMetadata

builtinSlotTypeMetadata_signature :: Lens' BuiltinSlotTypeMetadata (Maybe Text) Source #

A unique identifier for the built-in slot type. To find the signature for a slot type, see Slot Type Reference in the Alexa Skills Kit.

CodeHook

codeHook_uri :: Lens' CodeHook Text Source #

The Amazon Resource Name (ARN) of the Lambda function.

codeHook_messageVersion :: Lens' CodeHook Text Source #

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see using-lambda.

ConversationLogsRequest

conversationLogsRequest_logSettings :: Lens' ConversationLogsRequest [LogSettingsRequest] Source #

The settings for your conversation logs. You can log the conversation text, conversation audio, or both.

conversationLogsRequest_iamRoleArn :: Lens' ConversationLogsRequest Text Source #

The Amazon Resource Name (ARN) of an IAM role with permission to write to your CloudWatch Logs for text logs and your S3 bucket for audio logs. If audio encryption is enabled, this role also provides access permission for the AWS KMS key used for encrypting audio logs. For more information, see Creating an IAM Role and Policy for Conversation Logs.

ConversationLogsResponse

conversationLogsResponse_iamRoleArn :: Lens' ConversationLogsResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket.

conversationLogsResponse_logSettings :: Lens' ConversationLogsResponse (Maybe [LogSettingsResponse]) Source #

The settings for your conversation logs. You can log text, audio, or both.

EnumerationValue

enumerationValue_synonyms :: Lens' EnumerationValue (Maybe [Text]) Source #

Additional values related to the slot type value.

FollowUpPrompt

followUpPrompt_prompt :: Lens' FollowUpPrompt Prompt Source #

Prompts for information from the user.

followUpPrompt_rejectionStatement :: Lens' FollowUpPrompt Statement Source #

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

FulfillmentActivity

fulfillmentActivity_codeHook :: Lens' FulfillmentActivity (Maybe CodeHook) Source #

A description of the Lambda function that is run to fulfill the intent.

fulfillmentActivity_type :: Lens' FulfillmentActivity FulfillmentActivityType Source #

How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application.

InputContext

inputContext_name :: Lens' InputContext Text Source #

The name of the context.

Intent

intent_intentName :: Lens' Intent Text Source #

The name of the intent.

intent_intentVersion :: Lens' Intent Text Source #

The version of the intent.

IntentMetadata

intentMetadata_createdDate :: Lens' IntentMetadata (Maybe UTCTime) Source #

The date that the intent was created.

intentMetadata_lastUpdatedDate :: Lens' IntentMetadata (Maybe UTCTime) Source #

The date that the intent was updated. When you create an intent, the creation date and last updated date are the same.

KendraConfiguration

kendraConfiguration_queryFilterString :: Lens' KendraConfiguration (Maybe Text) Source #

A query filter that Amazon Lex sends to Amazon Kendra to filter the response from the query. The filter is in the format defined by Amazon Kendra. For more information, see Filtering queries.

You can override this filter string with a new filter string at runtime.

kendraConfiguration_kendraIndex :: Lens' KendraConfiguration Text Source #

The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the AMAZON.KendraSearchIntent intent to search. The index must be in the same account and Region as the Amazon Lex bot. If the Amazon Kendra index does not exist, you get an exception when you call the PutIntent operation.

kendraConfiguration_role :: Lens' KendraConfiguration Text Source #

The Amazon Resource Name (ARN) of an IAM role that has permission to search the Amazon Kendra index. The role must be in the same account and Region as the Amazon Lex bot. If the role does not exist, you get an exception when you call the PutIntent operation.

LogSettingsRequest

logSettingsRequest_kmsKeyArn :: Lens' LogSettingsRequest (Maybe Text) Source #

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for encrypting audio logs delivered to an S3 bucket. The key does not apply to CloudWatch Logs and is optional for S3 buckets.

logSettingsRequest_logType :: Lens' LogSettingsRequest LogType Source #

The type of logging to enable. Text logs are delivered to a CloudWatch Logs log group. Audio logs are delivered to an S3 bucket.

logSettingsRequest_destination :: Lens' LogSettingsRequest Destination Source #

Where the logs will be delivered. Text logs are delivered to a CloudWatch Logs log group. Audio logs are delivered to an S3 bucket.

logSettingsRequest_resourceArn :: Lens' LogSettingsRequest Text Source #

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs should be delivered.

LogSettingsResponse

logSettingsResponse_destination :: Lens' LogSettingsResponse (Maybe Destination) Source #

The destination where logs are delivered.

logSettingsResponse_kmsKeyArn :: Lens' LogSettingsResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket.

logSettingsResponse_logType :: Lens' LogSettingsResponse (Maybe LogType) Source #

The type of logging that is enabled.

logSettingsResponse_resourceArn :: Lens' LogSettingsResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered.

logSettingsResponse_resourcePrefix :: Lens' LogSettingsResponse (Maybe Text) Source #

The resource prefix is the first part of the S3 object key within the S3 bucket that you specified to contain audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that you specified.

Message

message_groupNumber :: Lens' Message (Maybe Natural) Source #

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response.

message_contentType :: Lens' Message ContentType Source #

The content type of the message string.

message_content :: Lens' Message Text Source #

The text of the message.

MigrationAlert

migrationAlert_referenceURLs :: Lens' MigrationAlert (Maybe [Text]) Source #

A link to the Amazon Lex documentation that describes how to resolve the alert.

migrationAlert_details :: Lens' MigrationAlert (Maybe [Text]) Source #

Additional details about the alert.

migrationAlert_type :: Lens' MigrationAlert (Maybe MigrationAlertType) Source #

The type of alert. There are two kinds of alerts:

  • ERROR - There was an issue with the migration that can't be resolved. The migration stops.
  • WARN - There was an issue with the migration that requires manual changes to the new Amazon Lex V2 bot. The migration continues.

migrationAlert_message :: Lens' MigrationAlert (Maybe Text) Source #

A message that describes why the alert was issued.

MigrationSummary

migrationSummary_v1BotVersion :: Lens' MigrationSummary (Maybe Text) Source #

The version of the Amazon Lex V1 bot that is the source of the migration.

migrationSummary_migrationTimestamp :: Lens' MigrationSummary (Maybe UTCTime) Source #

The date and time that the migration started.

migrationSummary_migrationStatus :: Lens' MigrationSummary (Maybe MigrationStatus) Source #

The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex V2. There may be alerts and warnings that need to be resolved to complete the migration.

migrationSummary_v2BotId :: Lens' MigrationSummary (Maybe Text) Source #

The unique identifier of the Amazon Lex V2 that is the destination of the migration.

migrationSummary_v1BotLocale :: Lens' MigrationSummary (Maybe Locale) Source #

The locale of the Amazon Lex V1 bot that is the source of the migration.

migrationSummary_v1BotName :: Lens' MigrationSummary (Maybe Text) Source #

The name of the Amazon Lex V1 bot that is the source of the migration.

migrationSummary_v2BotRole :: Lens' MigrationSummary (Maybe Text) Source #

The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

migrationSummary_migrationId :: Lens' MigrationSummary (Maybe Text) Source #

The unique identifier that Amazon Lex assigned to the migration.

OutputContext

outputContext_name :: Lens' OutputContext Text Source #

The name of the context.

outputContext_timeToLiveInSeconds :: Lens' OutputContext Natural Source #

The number of seconds that the context should be active after it is first sent in a PostContent or PostText response. You can set the value between 5 and 86,400 seconds (24 hours).

outputContext_turnsToLive :: Lens' OutputContext Natural Source #

The number of conversation turns that the context should be active. A conversation turn is one PostContent or PostText request and the corresponding response from Amazon Lex.

Prompt

prompt_responseCard :: Lens' Prompt (Maybe Text) Source #

A response card. Amazon Lex uses this prompt at runtime, in the PostText API response. It substitutes session attributes and slot values for placeholders in the response card. For more information, see ex-resp-card.

prompt_messages :: Lens' Prompt (NonEmpty Message) Source #

An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).

prompt_maxAttempts :: Lens' Prompt Natural Source #

The number of times to prompt the user for information.

Slot

slot_slotType :: Lens' Slot (Maybe Text) Source #

The type of the slot, either a custom slot type that you defined or one of the built-in slot types.

slot_valueElicitationPrompt :: Lens' Slot (Maybe Prompt) Source #

The prompt that Amazon Lex uses to elicit the slot value from the user.

slot_responseCard :: Lens' Slot (Maybe Text) Source #

A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.

slot_priority :: Lens' Slot (Maybe Natural) Source #

Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.

If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.

slot_obfuscationSetting :: Lens' Slot (Maybe ObfuscationSetting) Source #

Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .

slot_defaultValueSpec :: Lens' Slot (Maybe SlotDefaultValueSpec) Source #

A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.

slot_slotTypeVersion :: Lens' Slot (Maybe Text) Source #

The version of the slot type.

slot_sampleUtterances :: Lens' Slot (Maybe [Text]) Source #

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.

slot_description :: Lens' Slot (Maybe Text) Source #

A description of the slot.

slot_name :: Lens' Slot Text Source #

The name of the slot.

slot_slotConstraint :: Lens' Slot SlotConstraint Source #

Specifies whether the slot is required or optional.

SlotDefaultValue

slotDefaultValue_defaultValue :: Lens' SlotDefaultValue Text Source #

The default value for the slot. You can specify one of the following:

  • #context-name.slot-name - The slot value "slot-name" in the context "context-name."
  • {attribute} - The slot value of the session attribute "attribute."
  • 'value' - The discrete value "value."

SlotDefaultValueSpec

slotDefaultValueSpec_defaultValueList :: Lens' SlotDefaultValueSpec [SlotDefaultValue] Source #

The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.

The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.

SlotTypeConfiguration

SlotTypeMetadata

slotTypeMetadata_createdDate :: Lens' SlotTypeMetadata (Maybe UTCTime) Source #

The date that the slot type was created.

slotTypeMetadata_lastUpdatedDate :: Lens' SlotTypeMetadata (Maybe UTCTime) Source #

The date that the slot type was updated. When you create a resource, the creation date and last updated date are the same.

SlotTypeRegexConfiguration

slotTypeRegexConfiguration_pattern :: Lens' SlotTypeRegexConfiguration Text Source #

A regular expression used to validate the value of a slot.

Use a standard regular expression. Amazon Lex supports the following characters in the regular expression:

  • A-Z, a-z
  • 0-9
  • Unicode characters ("\ u<Unicode>")

Represent Unicode characters with four digits, for example "\u0041" or "\u005A".

The following regular expression operators are not supported:

  • Infinite repeaters: *, +, or {x,} with no upper bound.
  • Wild card (.)

Statement

statement_responseCard :: Lens' Statement (Maybe Text) Source #

At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.

statement_messages :: Lens' Statement (NonEmpty Message) Source #

A collection of message objects.

Tag

tag_key :: Lens' Tag Text Source #

The key for the tag. Keys are not case-sensitive and must be unique.

tag_value :: Lens' Tag Text Source #

The value associated with a key. The value may be an empty string but it can't be null.

UtteranceData

utteranceData_firstUtteredDate :: Lens' UtteranceData (Maybe UTCTime) Source #

The date that the utterance was first recorded.

utteranceData_count :: Lens' UtteranceData (Maybe Int) Source #

The number of times that the utterance was processed.

utteranceData_utteranceString :: Lens' UtteranceData (Maybe Text) Source #

The text that was entered by the user or the text representation of an audio clip.

utteranceData_lastUtteredDate :: Lens' UtteranceData (Maybe UTCTime) Source #

The date that the utterance was last recorded.

utteranceData_distinctUsers :: Lens' UtteranceData (Maybe Int) Source #

The total number of individuals that used the utterance.

UtteranceList

utteranceList_botVersion :: Lens' UtteranceList (Maybe Text) Source #

The version of the bot that processed the list.

utteranceList_utterances :: Lens' UtteranceList (Maybe [UtteranceData]) Source #

One or more UtteranceData objects that contain information about the utterances that have been made to a bot. The maximum number of object is 100.