The AWS SDK for JavaScript v2 has reached end-of-support.
We recommend that you migrate to AWS SDK for JavaScript v3. For additional details and information on how to migrate, please refer to the announcement.

Class: AWS.LexModelBuildingService

Inherits:
AWS.Service show all
Identifier:
lexmodelbuildingservice
API Version:
2017-04-19
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Amazon Lex is an AWS service for building conversational voice and text interfaces. Use these actions to create, update, and delete conversational bots for new and existing client applications.

Sending a Request Using LexModelBuildingService

var lexmodelbuildingservice = new AWS.LexModelBuildingService();
lexmodelbuildingservice.createBotVersion(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the LexModelBuildingService object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var lexmodelbuildingservice = new AWS.LexModelBuildingService({apiVersion: '2017-04-19'});

You can also set the API version globally in AWS.config.apiVersions using the lexmodelbuildingservice service identifier:

AWS.config.apiVersions = {
  lexmodelbuildingservice: '2017-04-19',
  // other service API versions
};

var lexmodelbuildingservice = new AWS.LexModelBuildingService();

Version:

  • 2017-04-19

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.LexModelBuildingService(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a LexModelBuildingService object

var lexmodelbuildingservice = new AWS.LexModelBuildingService({apiVersion: '2017-04-19'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.LexModelBuildingService.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.LexModelBuildingService.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.LexModelBuildingService.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

createBotVersion(params = {}, callback) ⇒ AWS.Request

Creates a new version of the bot based on the $LATEST version. If the $LATEST version of this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version. It returns the last created version.

Note: You can update only the $LATEST version of the bot. You can't update the numbered versions that you create with the CreateBotVersion operation.

When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.

This operation requires permission for the lex:CreateBotVersion action.

Service Reference:

Examples:

Calling the createBotVersion operation

var params = {
  name: 'STRING_VALUE', /* required */
  checksum: 'STRING_VALUE'
};
lexmodelbuildingservice.createBotVersion(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

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

    • checksum — (String)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • name — (String)

        The name of the bot.

      • description — (String)

        A description of the bot.

      • intents — (Array<map>)

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

        • intentNamerequired — (String)

          The name of the intent.

        • intentVersionrequired — (String)

          The version of the intent.

      • clarificationPrompt — (map)

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

        • messagesrequired — (Array<map>)

          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).

          • contentTyperequired — (String)

            The content type of the message string.

            Possible values include:
            • "PlainText"
            • "SSML"
            • "CustomPayload"
          • contentrequired — (String)

            The text of the message.

          • groupNumber — (Integer)

            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.

        • maxAttemptsrequired — (Integer)

          The number of times to prompt the user for information.

        • responseCard — (String)

          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.

      • abortStatement — (map)

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

        • messagesrequired — (Array<map>)

          A collection of message objects.

          • contentTyperequired — (String)

            The content type of the message string.

            Possible values include:
            • "PlainText"
            • "SSML"
            • "CustomPayload"
          • contentrequired — (String)

            The text of the message.

          • groupNumber — (Integer)

            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.

        • responseCard — (String)

          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.

      • status — (String)

        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.

        Possible values include:
        • "BUILDING"
        • "READY"
        • "READY_BASIC_TESTING"
        • "FAILED"
        • "NOT_BUILT"
      • failureReason — (String)

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

      • lastUpdatedDate — (Date)

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

      • createdDate — (Date)

        The date when the bot version was created.

      • idleSessionTTLInSeconds — (Integer)

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

      • voiceId — (String)

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

      • checksum — (String)

        Checksum identifying the version of the bot that was created.

      • version — (String)

        The version of the bot.

      • locale — (String)

        Specifies the target locale for the bot.

        Possible values include:
        • "de-DE"
        • "en-AU"
        • "en-GB"
        • "en-IN"
        • "en-US"
        • "es-419"
        • "es-ES"
        • "es-US"
        • "fr-FR"
        • "fr-CA"
        • "it-IT"
        • "ja-JP"
        • "ko-KR"
      • childDirected — (Boolean)

        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.

      • enableModelImprovements — (Boolean)

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

      • detectSentiment — (Boolean)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createIntentVersion(params = {}, callback) ⇒ AWS.Request

Creates a new version of an intent based on the $LATEST version of the intent. If the $LATEST version of this intent hasn't changed since you last updated it, Amazon Lex doesn't create a new version. It returns the last version you created.

Note: You can update only the $LATEST version of the intent. You can't update the numbered versions that you create with the CreateIntentVersion operation.

When you create a version of an intent, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.

This operation requires permissions to perform the lex:CreateIntentVersion action.

Service Reference:

Examples:

Calling the createIntentVersion operation

var params = {
  name: 'STRING_VALUE', /* required */
  checksum: 'STRING_VALUE'
};
lexmodelbuildingservice.createIntentVersion(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

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

    • checksum — (String)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • name — (String)

        The name of the intent.

      • description — (String)

        A description of the intent.

      • slots — (Array<map>)

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

        • namerequired — (String)

          The name of the slot.

        • description — (String)

          A description of the slot.

        • slotConstraintrequired — (String)

          Specifies whether the slot is required or optional.

          Possible values include:
          • "Required"
          • "Optional"
        • slotType — (String)

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

        • slotTypeVersion — (String)

          The version of the slot type.

        • valueElicitationPrompt — (map)

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

          • messagesrequired — (Array<map>)

            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).

            • contentTyperequired — (String)

              The content type of the message string.

              Possible values include:
              • "PlainText"
              • "SSML"
              • "CustomPayload"
            • contentrequired — (String)

              The text of the message.

            • groupNumber — (Integer)

              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.

          • maxAttemptsrequired — (Integer)

            The number of times to prompt the user for information.

          • responseCard — (String)

            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.

        • priority — (Integer)

          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.

        • sampleUtterances — (Array<String>)

          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.

        • responseCard — (String)

          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.

        • obfuscationSetting — (String)

          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 .

          Possible values include:
          • "NONE"
          • "DEFAULT_OBFUSCATION"
        • defaultValueSpec — (map)

          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.

          • defaultValueListrequired — (Array<map>)

            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.

            • defaultValuerequired — (String)

              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."

      • sampleUtterances — (Array<String>)

        An array of sample utterances configured for the intent.

      • confirmationPrompt — (map)

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

        • messagesrequired — (Array<map>)

          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).

          • contentTyperequired — (String)

            The content type of the message string.

            Possible values include:
            • "PlainText"
            • "SSML"
            • "CustomPayload"
          • contentrequired — (String)

            The text of the message.

          • groupNumber — (Integer)

            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.

        • maxAttemptsrequired — (Integer)

          The number of times to prompt the user for information.

        • responseCard — (String)

          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.

      • rejectionStatement — (map)

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

        • messagesrequired — (Array<map>)

          A collection of message objects.

          • contentTyperequired — (String)

            The content type of the message string.

            Possible values include:
            • "PlainText"
            • "SSML"
            • "CustomPayload"
          • contentrequired — (String)

            The text of the message.

          • groupNumber — (Integer)

            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.

        • responseCard — (String)

          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.

      • followUpPrompt — (map)

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

        • promptrequired — (map)

          Prompts for information from the user.

          • messagesrequired — (Array<map>)

            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).

            • contentTyperequired — (String)

              The content type of the message string.

              Possible values include:
              • "PlainText"
              • "SSML"
              • "CustomPayload"
            • contentrequired — (String)

              The text of the message.

            • groupNumber — (Integer)

              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.

          • maxAttemptsrequired — (Integer)

            The number of times to prompt the user for information.

          • responseCard — (String)

            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.

        • rejectionStatementrequired — (map)

          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.

          • messagesrequired — (Array<map>)

            A collection of message objects.

            • contentTyperequired — (String)

              The content type of the message string.

              Possible values include:
              • "PlainText"
              • "SSML"
              • "CustomPayload"
            • contentrequired — (String)

              The text of the message.

            • groupNumber — (Integer)

              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.

          • responseCard — (String)

            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.

      • conclusionStatement — (map)

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

        • messagesrequired — (Array<map>)

          A collection of message objects.

          • contentTyperequired — (String)

            The content type of the message string.

            Possible values include:
            • "PlainText"
            • "SSML"
            • "CustomPayload"
          • contentrequired — (String)

            The text of the message.

          • groupNumber — (Integer)

            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.

        • responseCard — (String)

          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.

      • dialogCodeHook — (map)

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

        • urirequired — (String)

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

        • messageVersionrequired — (String)

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

      • fulfillmentActivity — (map)

        Describes how the intent is fulfilled.

        • typerequired — (String)

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

          Possible values include:
          • "ReturnIntent"
          • "CodeHook"
        • codeHook — (map)

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

          • urirequired — (String)

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

          • messageVersionrequired — (String)

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

      • parentIntentSignature — (String)

        A unique identifier for a built-in intent.

      • lastUpdatedDate — (Date)

        The date that the intent was updated.

      • createdDate — (Date)

        The date that the intent was created.

      • version — (String)

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

      • checksum — (String)

        Checksum of the intent version created.

      • kendraConfiguration — (map)

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

        • kendraIndexrequired — (String)

          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.

        • queryFilterString — (String)

          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.

        • rolerequired — (String)

          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.

      • inputContexts — (Array<map>)

        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.

        • namerequired — (String)

          The name of the context.

      • outputContexts — (Array<map>)

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

        • namerequired — (String)

          The name of the context.

        • timeToLiveInSecondsrequired — (Integer)

          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).

        • turnsToLiverequired — (Integer)

          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.

Returns: