{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.lexruntimeservice#AWSDeepSenseRunTimeService": { "type": "service", "version": "2016-11-28", "operations": [ { "target": "com.amazonaws.lexruntimeservice#DeleteSession" }, { "target": "com.amazonaws.lexruntimeservice#GetSession" }, { "target": "com.amazonaws.lexruntimeservice#PostContent" }, { "target": "com.amazonaws.lexruntimeservice#PostText" }, { "target": "com.amazonaws.lexruntimeservice#PutSession" } ], "traits": { "aws.api#service": { "sdkId": "Lex Runtime Service", "arnNamespace": "lex", "cloudFormationName": "LexRuntimeService", "cloudTrailEventSource": "lexruntimeservice.amazonaws.com", "endpointPrefix": "runtime.lex" }, "aws.auth#sigv4": { "name": "lex" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

Amazon Lex provides both build and runtime endpoints. Each endpoint\n provides a set of operations (API). Your conversational bot uses the\n runtime API to understand user utterances (user input text or voice). For\n example, suppose a user says \"I want pizza\", your bot sends this input to\n Amazon Lex using the runtime API. Amazon Lex recognizes that the user\n request is for the OrderPizza intent (one of the intents defined in the\n bot). Then Amazon Lex engages in user conversation on behalf of the bot to\n elicit required information (slot values, such as pizza size and crust\n type), and then performs fulfillment activity (that you configured when\n you created the bot). You use the build-time API to create and manage your\n Amazon Lex bot. For a list of build-time operations, see the build-time\n API, .

", "smithy.api#title": "Amazon Lex Runtime Service" } }, "com.amazonaws.lexruntimeservice#Accept": { "type": "string" }, "com.amazonaws.lexruntimeservice#ActiveContext": { "type": "structure", "members": { "name": { "target": "com.amazonaws.lexruntimeservice#ActiveContextName", "traits": { "smithy.api#documentation": "

The name of the context.

", "smithy.api#required": {} } }, "timeToLive": { "target": "com.amazonaws.lexruntimeservice#ActiveContextTimeToLive", "traits": { "smithy.api#documentation": "

The length of time or number of turns that a context remains\n active.

", "smithy.api#required": {} } }, "parameters": { "target": "com.amazonaws.lexruntimeservice#ActiveContextParametersMap", "traits": { "smithy.api#documentation": "

State variables for the current context. You can use these values as\n default values for slots in subsequent events.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

A context is a variable that contains information about the current\n state of the conversation between a user and Amazon Lex. Context can be set\n automatically by Amazon Lex when an intent is fulfilled, or it can be set at\n runtime using the PutContent, PutText, or\n PutSession operation.

" } }, "com.amazonaws.lexruntimeservice#ActiveContextName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 100 }, "smithy.api#pattern": "^([A-Za-z]_?)+$" } }, "com.amazonaws.lexruntimeservice#ActiveContextParametersMap": { "type": "map", "key": { "target": "com.amazonaws.lexruntimeservice#ParameterName" }, "value": { "target": "com.amazonaws.lexruntimeservice#Text" }, "traits": { "smithy.api#length": { "min": 0, "max": 10 } } }, "com.amazonaws.lexruntimeservice#ActiveContextTimeToLive": { "type": "structure", "members": { "timeToLiveInSeconds": { "target": "com.amazonaws.lexruntimeservice#ActiveContextTimeToLiveInSeconds", "traits": { "smithy.api#documentation": "

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

" } }, "turnsToLive": { "target": "com.amazonaws.lexruntimeservice#ActiveContextTurnsToLive", "traits": { "smithy.api#documentation": "

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

" } } }, "traits": { "smithy.api#documentation": "

The length of time or number of turns that a context remains\n active.

" } }, "com.amazonaws.lexruntimeservice#ActiveContextTimeToLiveInSeconds": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 5, "max": 86400 } } }, "com.amazonaws.lexruntimeservice#ActiveContextTurnsToLive": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 20 } } }, "com.amazonaws.lexruntimeservice#ActiveContextsList": { "type": "list", "member": { "target": "com.amazonaws.lexruntimeservice#ActiveContext" }, "traits": { "smithy.api#length": { "min": 0, "max": 20 }, "smithy.api#sensitive": {} } }, "com.amazonaws.lexruntimeservice#BadGatewayException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.lexruntimeservice#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

Either the Amazon Lex bot is still building, or one of the dependent\n services (Amazon Polly, AWS Lambda) failed with an internal service\n error.

", "smithy.api#error": "server", "smithy.api#httpError": 502 } }, "com.amazonaws.lexruntimeservice#BadRequestException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

Request validation failed, there is no usable message in the context,\n or the bot build failed, is still in progress, or contains unbuilt\n changes.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.lexruntimeservice#BlobStream": { "type": "blob", "traits": { "smithy.api#streaming": {} } }, "com.amazonaws.lexruntimeservice#BotAlias": { "type": "string" }, "com.amazonaws.lexruntimeservice#BotName": { "type": "string" }, "com.amazonaws.lexruntimeservice#BotVersion": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 }, "smithy.api#pattern": "[0-9]+|\\$LATEST" } }, "com.amazonaws.lexruntimeservice#Button": { "type": "structure", "members": { "text": { "target": "com.amazonaws.lexruntimeservice#ButtonTextStringWithLength", "traits": { "smithy.api#documentation": "

Text that is visible to the user on the button.

", "smithy.api#required": {} } }, "value": { "target": "com.amazonaws.lexruntimeservice#ButtonValueStringWithLength", "traits": { "smithy.api#documentation": "

The value sent to Amazon Lex when a user chooses the button. For\n example, consider button text \"NYC.\" When the user chooses the button, the\n value sent can be \"New York City.\"

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents an option to be shown on the client platform (Facebook,\n Slack, etc.)

" } }, "com.amazonaws.lexruntimeservice#ButtonTextStringWithLength": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 15 } } }, "com.amazonaws.lexruntimeservice#ButtonValueStringWithLength": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1000 } } }, "com.amazonaws.lexruntimeservice#ConfirmationStatus": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "None", "name": "NONE" }, { "value": "Confirmed", "name": "CONFIRMED" }, { "value": "Denied", "name": "DENIED" } ] } }, "com.amazonaws.lexruntimeservice#ConflictException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

Two clients are using the same AWS account, Amazon Lex bot, and user\n ID.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.lexruntimeservice#ContentType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "application/vnd.amazonaws.card.generic", "name": "GENERIC" } ] } }, "com.amazonaws.lexruntimeservice#DeleteSession": { "type": "operation", "input": { "target": "com.amazonaws.lexruntimeservice#DeleteSessionRequest" }, "output": { "target": "com.amazonaws.lexruntimeservice#DeleteSessionResponse" }, "errors": [ { "target": "com.amazonaws.lexruntimeservice#BadRequestException" }, { "target": "com.amazonaws.lexruntimeservice#ConflictException" }, { "target": "com.amazonaws.lexruntimeservice#InternalFailureException" }, { "target": "com.amazonaws.lexruntimeservice#LimitExceededException" }, { "target": "com.amazonaws.lexruntimeservice#NotFoundException" } ], "traits": { "smithy.api#documentation": "

Removes session information for a specified bot, alias, and user ID.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/bot/{botName}/alias/{botAlias}/user/{userId}/session", "code": 200 } } }, "com.amazonaws.lexruntimeservice#DeleteSessionRequest": { "type": "structure", "members": { "botName": { "target": "com.amazonaws.lexruntimeservice#BotName", "traits": { "smithy.api#documentation": "

The name of the bot that contains the session data.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "botAlias": { "target": "com.amazonaws.lexruntimeservice#BotAlias", "traits": { "smithy.api#documentation": "

The alias in use for the bot that contains the session data.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "userId": { "target": "com.amazonaws.lexruntimeservice#UserId", "traits": { "smithy.api#documentation": "

The identifier of the user associated with the session data.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.lexruntimeservice#DeleteSessionResponse": { "type": "structure", "members": { "botName": { "target": "com.amazonaws.lexruntimeservice#BotName", "traits": { "smithy.api#documentation": "

The name of the bot associated with the session data.

" } }, "botAlias": { "target": "com.amazonaws.lexruntimeservice#BotAlias", "traits": { "smithy.api#documentation": "

The alias in use for the bot associated with the session data.

" } }, "userId": { "target": "com.amazonaws.lexruntimeservice#UserId", "traits": { "smithy.api#documentation": "

The ID of the client application user.

" } }, "sessionId": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

The unique identifier for the session.

" } } } }, "com.amazonaws.lexruntimeservice#DependencyFailedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.lexruntimeservice#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

One of the dependencies, such as AWS Lambda or Amazon Polly, threw an\n exception. For example,

\n ", "smithy.api#error": "client", "smithy.api#httpError": 424 } }, "com.amazonaws.lexruntimeservice#DialogAction": { "type": "structure", "members": { "type": { "target": "com.amazonaws.lexruntimeservice#DialogActionType", "traits": { "smithy.api#documentation": "

The next action that the bot should take in its interaction with the\n user. The possible values are:

\n ", "smithy.api#required": {} } }, "intentName": { "target": "com.amazonaws.lexruntimeservice#IntentName", "traits": { "smithy.api#documentation": "

The name of the intent.

" } }, "slots": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

Map of the slots that have been gathered and their values.

" } }, "slotToElicit": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

The name of the slot that should be elicited from the user.

" } }, "fulfillmentState": { "target": "com.amazonaws.lexruntimeservice#FulfillmentState", "traits": { "smithy.api#documentation": "

The fulfillment state of the intent. The possible values are:

\n " } }, "message": { "target": "com.amazonaws.lexruntimeservice#Text", "traits": { "smithy.api#documentation": "

The message that should be shown to the user. If you don't specify a\n message, Amazon Lex will use the message configured for the intent.

" } }, "messageFormat": { "target": "com.amazonaws.lexruntimeservice#MessageFormatType", "traits": { "smithy.api#documentation": "" } } }, "traits": { "smithy.api#documentation": "

Describes the next action that the bot should take in its interaction\n with the user and provides information about the context in which the\n action takes place. Use the DialogAction data type to set the\n interaction to a specific state, or to return the interaction to a\n previous state.

" } }, "com.amazonaws.lexruntimeservice#DialogActionType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ElicitIntent", "name": "ELICIT_INTENT" }, { "value": "ConfirmIntent", "name": "CONFIRM_INTENT" }, { "value": "ElicitSlot", "name": "ELICIT_SLOT" }, { "value": "Close", "name": "CLOSE" }, { "value": "Delegate", "name": "DELEGATE" } ] } }, "com.amazonaws.lexruntimeservice#DialogState": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ElicitIntent", "name": "ELICIT_INTENT" }, { "value": "ConfirmIntent", "name": "CONFIRM_INTENT" }, { "value": "ElicitSlot", "name": "ELICIT_SLOT" }, { "value": "Fulfilled", "name": "FULFILLED" }, { "value": "ReadyForFulfillment", "name": "READY_FOR_FULFILLMENT" }, { "value": "Failed", "name": "FAILED" } ] } }, "com.amazonaws.lexruntimeservice#Double": { "type": "double" }, "com.amazonaws.lexruntimeservice#ErrorMessage": { "type": "string" }, "com.amazonaws.lexruntimeservice#FulfillmentState": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "Fulfilled", "name": "FULFILLED" }, { "value": "Failed", "name": "FAILED" }, { "value": "ReadyForFulfillment", "name": "READY_FOR_FULFILLMENT" } ] } }, "com.amazonaws.lexruntimeservice#GenericAttachment": { "type": "structure", "members": { "title": { "target": "com.amazonaws.lexruntimeservice#StringWithLength", "traits": { "smithy.api#documentation": "

The title of the option.

" } }, "subTitle": { "target": "com.amazonaws.lexruntimeservice#StringWithLength", "traits": { "smithy.api#documentation": "

The subtitle shown below the title.

" } }, "attachmentLinkUrl": { "target": "com.amazonaws.lexruntimeservice#StringUrlWithLength", "traits": { "smithy.api#documentation": "

The URL of an attachment to the response card.

" } }, "imageUrl": { "target": "com.amazonaws.lexruntimeservice#StringUrlWithLength", "traits": { "smithy.api#documentation": "

The URL of an image that is displayed to the user.

" } }, "buttons": { "target": "com.amazonaws.lexruntimeservice#listOfButtons", "traits": { "smithy.api#documentation": "

The list of options to show to the user.

" } } }, "traits": { "smithy.api#documentation": "

Represents an option rendered to the user when a prompt is shown. It\n could be an image, a button, a link, or text.

" } }, "com.amazonaws.lexruntimeservice#GetSession": { "type": "operation", "input": { "target": "com.amazonaws.lexruntimeservice#GetSessionRequest" }, "output": { "target": "com.amazonaws.lexruntimeservice#GetSessionResponse" }, "errors": [ { "target": "com.amazonaws.lexruntimeservice#BadRequestException" }, { "target": "com.amazonaws.lexruntimeservice#InternalFailureException" }, { "target": "com.amazonaws.lexruntimeservice#LimitExceededException" }, { "target": "com.amazonaws.lexruntimeservice#NotFoundException" } ], "traits": { "smithy.api#documentation": "

Returns session information for a specified bot, alias, and user\n ID.

", "smithy.api#http": { "method": "GET", "uri": "/bot/{botName}/alias/{botAlias}/user/{userId}/session", "code": 200 } } }, "com.amazonaws.lexruntimeservice#GetSessionRequest": { "type": "structure", "members": { "botName": { "target": "com.amazonaws.lexruntimeservice#BotName", "traits": { "smithy.api#documentation": "

The name of the bot that contains the session data.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "botAlias": { "target": "com.amazonaws.lexruntimeservice#BotAlias", "traits": { "smithy.api#documentation": "

The alias in use for the bot that contains the session data.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "userId": { "target": "com.amazonaws.lexruntimeservice#UserId", "traits": { "smithy.api#documentation": "

The ID of the client application user. Amazon Lex uses this to identify a\n user's conversation with your bot.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "checkpointLabelFilter": { "target": "com.amazonaws.lexruntimeservice#IntentSummaryCheckpointLabel", "traits": { "smithy.api#documentation": "

A string used to filter the intents returned in the\n recentIntentSummaryView structure.

\n

When you specify a filter, only intents with their\n checkpointLabel field set to that string are\n returned.

", "smithy.api#httpQuery": "checkpointLabelFilter" } } } }, "com.amazonaws.lexruntimeservice#GetSessionResponse": { "type": "structure", "members": { "recentIntentSummaryView": { "target": "com.amazonaws.lexruntimeservice#IntentSummaryList", "traits": { "smithy.api#documentation": "

An array of information about the intents used in the session. The\n array can contain a maximum of three summaries. If more than three intents\n are used in the session, the recentIntentSummaryView\n operation contains information about the last three intents used.

\n

If you set the checkpointLabelFilter parameter in the\n request, the array contains only the intents with the specified\n label.

" } }, "sessionAttributes": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

Map of key/value pairs representing the session-specific context\n information. It contains application information passed between Amazon Lex and\n a client application.

" } }, "sessionId": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

A unique identifier for the session.

" } }, "dialogAction": { "target": "com.amazonaws.lexruntimeservice#DialogAction", "traits": { "smithy.api#documentation": "

Describes the current state of the bot.

" } }, "activeContexts": { "target": "com.amazonaws.lexruntimeservice#ActiveContextsList", "traits": { "smithy.api#documentation": "

A list of active contexts for the session. A context can be set when\n an intent is fulfilled or by calling the PostContent,\n PostText, or PutSession operation.

\n

You can use a context to control the intents that can follow up an\n intent, or to modify the operation of your application.

" } } } }, "com.amazonaws.lexruntimeservice#HttpContentType": { "type": "string" }, "com.amazonaws.lexruntimeservice#IntentConfidence": { "type": "structure", "members": { "score": { "target": "com.amazonaws.lexruntimeservice#Double", "traits": { "smithy.api#documentation": "

A score that indicates how confident Amazon Lex is that an intent satisfies\n the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate\n higher confidence.

" } } }, "traits": { "smithy.api#documentation": "

Provides a score that indicates the confidence that Amazon Lex has that an\n intent is the one that satisfies the user's intent.

" } }, "com.amazonaws.lexruntimeservice#IntentList": { "type": "list", "member": { "target": "com.amazonaws.lexruntimeservice#PredictedIntent" }, "traits": { "smithy.api#length": { "min": 0, "max": 4 } } }, "com.amazonaws.lexruntimeservice#IntentName": { "type": "string" }, "com.amazonaws.lexruntimeservice#IntentSummary": { "type": "structure", "members": { "intentName": { "target": "com.amazonaws.lexruntimeservice#IntentName", "traits": { "smithy.api#documentation": "

The name of the intent.

" } }, "checkpointLabel": { "target": "com.amazonaws.lexruntimeservice#IntentSummaryCheckpointLabel", "traits": { "smithy.api#documentation": "

A user-defined label that identifies a particular intent. You can use\n this label to return to a previous intent.

\n

Use the checkpointLabelFilter parameter of the\n GetSessionRequest operation to filter the intents returned\n by the operation to those with only the specified label.

" } }, "slots": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

Map of the slots that have been gathered and their values.

" } }, "confirmationStatus": { "target": "com.amazonaws.lexruntimeservice#ConfirmationStatus", "traits": { "smithy.api#documentation": "

The status of the intent after the user responds to the confirmation\n prompt. If the user confirms the intent, Amazon Lex sets this field to\n Confirmed. If the user denies the intent, Amazon Lex sets this\n value to Denied. The possible values are:

\n " } }, "dialogActionType": { "target": "com.amazonaws.lexruntimeservice#DialogActionType", "traits": { "smithy.api#documentation": "

The next action that the bot should take in its interaction with the\n user. The possible values are:

\n ", "smithy.api#required": {} } }, "fulfillmentState": { "target": "com.amazonaws.lexruntimeservice#FulfillmentState", "traits": { "smithy.api#documentation": "

The fulfillment state of the intent. The possible values are:

\n " } }, "slotToElicit": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

The next slot to elicit from the user. If there is not slot to elicit,\n the field is blank.

" } } }, "traits": { "smithy.api#documentation": "

Provides information about the state of an intent. You can use this\n information to get the current state of an intent so that you can process\n the intent, or so that you can return the intent to its previous\n state.

" } }, "com.amazonaws.lexruntimeservice#IntentSummaryCheckpointLabel": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": "[a-zA-Z0-9-]+" } }, "com.amazonaws.lexruntimeservice#IntentSummaryList": { "type": "list", "member": { "target": "com.amazonaws.lexruntimeservice#IntentSummary" }, "traits": { "smithy.api#length": { "min": 0, "max": 3 } } }, "com.amazonaws.lexruntimeservice#InternalFailureException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

Internal service error. Retry the call.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.lexruntimeservice#LimitExceededException": { "type": "structure", "members": { "retryAfterSeconds": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#httpHeader": "Retry-After" } }, "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

Exceeded a limit.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.lexruntimeservice#LoopDetectedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.lexruntimeservice#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

This exception is not used.

", "smithy.api#error": "server", "smithy.api#httpError": 508 } }, "com.amazonaws.lexruntimeservice#MessageFormatType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "PlainText", "name": "PLAIN_TEXT" }, { "value": "CustomPayload", "name": "CUSTOM_PAYLOAD" }, { "value": "SSML", "name": "SSML" }, { "value": "Composite", "name": "COMPOSITE" } ] } }, "com.amazonaws.lexruntimeservice#NotAcceptableException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

The accept header in the request does not have a valid value.

", "smithy.api#error": "client", "smithy.api#httpError": 406 } }, "com.amazonaws.lexruntimeservice#NotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

The resource (such as the Amazon Lex bot or an alias) that is referred\n to is not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.lexruntimeservice#ParameterName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 100 } } }, "com.amazonaws.lexruntimeservice#PostContent": { "type": "operation", "input": { "target": "com.amazonaws.lexruntimeservice#PostContentRequest" }, "output": { "target": "com.amazonaws.lexruntimeservice#PostContentResponse" }, "errors": [ { "target": "com.amazonaws.lexruntimeservice#BadGatewayException" }, { "target": "com.amazonaws.lexruntimeservice#BadRequestException" }, { "target": "com.amazonaws.lexruntimeservice#ConflictException" }, { "target": "com.amazonaws.lexruntimeservice#DependencyFailedException" }, { "target": "com.amazonaws.lexruntimeservice#InternalFailureException" }, { "target": "com.amazonaws.lexruntimeservice#LimitExceededException" }, { "target": "com.amazonaws.lexruntimeservice#LoopDetectedException" }, { "target": "com.amazonaws.lexruntimeservice#NotAcceptableException" }, { "target": "com.amazonaws.lexruntimeservice#NotFoundException" }, { "target": "com.amazonaws.lexruntimeservice#RequestTimeoutException" }, { "target": "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException" } ], "traits": { "aws.auth#unsignedPayload": {}, "smithy.api#auth": [ "aws.auth#sigv4" ], "smithy.api#documentation": "

Sends user input (text or speech) to Amazon Lex. Clients use this API to\n send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the\n user input using the machine learning model that it built for the bot.

\n

The PostContent operation supports audio input at 8kHz\n and 16kHz. You can use 8kHz audio to achieve higher speech recognition\n accuracy in telephone audio applications.

\n

In response, Amazon Lex returns the next message to convey to the user.\n Consider the following example messages:

\n \n

Not all Amazon Lex messages require a response from the user. For example,\n conclusion statements do not require a response. Some messages require\n only a yes or no response. In addition to the message, Amazon Lex\n provides additional context about the message in the response that you can\n use to enhance client behavior, such as displaying the appropriate client\n user interface. Consider the following examples:

\n \n

In addition, Amazon Lex also returns your application-specific\n sessionAttributes. For more information, see Managing\n Conversation Context.

", "smithy.api#http": { "method": "POST", "uri": "/bot/{botName}/alias/{botAlias}/user/{userId}/content", "code": 200 } } }, "com.amazonaws.lexruntimeservice#PostContentRequest": { "type": "structure", "members": { "botName": { "target": "com.amazonaws.lexruntimeservice#BotName", "traits": { "smithy.api#documentation": "

Name of the Amazon Lex bot.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "botAlias": { "target": "com.amazonaws.lexruntimeservice#BotAlias", "traits": { "smithy.api#documentation": "

Alias of the Amazon Lex bot.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "userId": { "target": "com.amazonaws.lexruntimeservice#UserId", "traits": { "smithy.api#documentation": "

The ID of the client application user. Amazon Lex uses this to identify a\n user's conversation with your bot. At runtime, each request must contain\n the userID field.

\n

To decide the user ID to use for your application, consider the\n following factors.

\n ", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "sessionAttributes": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonAttributesString", "traits": { "smithy.api#documentation": "

You pass this value as the x-amz-lex-session-attributes\n HTTP header.

\n

Application-specific information passed between Amazon Lex and a client\n application. The value must be a JSON serialized and base64 encoded map\n with string keys and values. The total size of the\n sessionAttributes and requestAttributes\n headers is limited to 12 KB.

\n

For more information, see Setting Session Attributes.

", "smithy.api#httpHeader": "x-amz-lex-session-attributes" } }, "requestAttributes": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonAttributesString", "traits": { "smithy.api#documentation": "

You pass this value as the x-amz-lex-request-attributes\n HTTP header.

\n

Request-specific information passed between Amazon Lex and a client\n application. The value must be a JSON serialized and base64 encoded map\n with string keys and values. The total size of the\n requestAttributes and sessionAttributes\n headers is limited to 12 KB.

\n

The namespace x-amz-lex: is reserved for special\n attributes. Don't create any request attributes with the prefix\n x-amz-lex:.

\n

For more information, see Setting Request Attributes.

", "smithy.api#httpHeader": "x-amz-lex-request-attributes" } }, "contentType": { "target": "com.amazonaws.lexruntimeservice#HttpContentType", "traits": { "smithy.api#documentation": "

You pass this value as the Content-Type HTTP header.

\n

Indicates the audio format or text. The header value must start with\n one of the following prefixes:

\n ", "smithy.api#httpHeader": "Content-Type", "smithy.api#required": {} } }, "accept": { "target": "com.amazonaws.lexruntimeservice#Accept", "traits": { "smithy.api#documentation": "

You pass this value as the Accept HTTP header.

\n

The message Amazon Lex returns in the response can be either text or\n speech based on the Accept HTTP header value in the request.

\n ", "smithy.api#httpHeader": "Accept" } }, "inputStream": { "target": "com.amazonaws.lexruntimeservice#BlobStream", "traits": { "smithy.api#documentation": "

User input in PCM or Opus audio format or text format as described in\n the Content-Type HTTP header.

\n

You can stream audio data to Amazon Lex or you can create a local buffer\n that captures all of the audio data before sending. In general, you get\n better performance if you stream audio data rather than buffering the data\n locally.

", "smithy.api#httpPayload": {}, "smithy.api#required": {} } }, "activeContexts": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonActiveContextsString", "traits": { "smithy.api#documentation": "

A list of contexts active for the request. A context can be activated\n when a previous intent is fulfilled, or by including the context in the\n request,

\n

If you don't specify a list of contexts, Amazon Lex will use the current\n list of contexts for the session. If you specify an empty list, all\n contexts for the session are cleared.

", "smithy.api#httpHeader": "x-amz-lex-active-contexts" } } } }, "com.amazonaws.lexruntimeservice#PostContentResponse": { "type": "structure", "members": { "contentType": { "target": "com.amazonaws.lexruntimeservice#HttpContentType", "traits": { "smithy.api#documentation": "

Content type as specified in the Accept HTTP header in\n the request.

", "smithy.api#httpHeader": "Content-Type" } }, "intentName": { "target": "com.amazonaws.lexruntimeservice#IntentName", "traits": { "smithy.api#documentation": "

Current user intent that Amazon Lex is aware of.

", "smithy.api#httpHeader": "x-amz-lex-intent-name" } }, "nluIntentConfidence": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonString", "traits": { "smithy.api#documentation": "

Provides a score that indicates how confident Amazon Lex is that the\n returned intent is the one that matches the user's intent. The score is\n between 0.0 and 1.0.

\n

The score is a relative score, not an absolute score. The score may\n change based on improvements to Amazon Lex.

", "smithy.api#httpHeader": "x-amz-lex-nlu-intent-confidence" } }, "alternativeIntents": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonString", "traits": { "smithy.api#documentation": "

One to four alternative intents that may be applicable to the user's\n intent.

\n

Each alternative includes a score that indicates how confident Amazon Lex\n is that the intent matches the user's intent. The intents are sorted by\n the confidence score.

", "smithy.api#httpHeader": "x-amz-lex-alternative-intents" } }, "slots": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonString", "traits": { "smithy.api#documentation": "

Map of zero or more intent slots (name/value pairs) Amazon Lex detected\n from the user input during the conversation. The field is base-64\n encoded.

\n

Amazon Lex creates a resolution list containing likely values for a slot.\n The value that it returns is determined by the\n valueSelectionStrategy selected when the slot type was\n created or updated. If valueSelectionStrategy is set to\n ORIGINAL_VALUE, the value provided by the user is returned,\n if the user value is similar to the slot values. If\n valueSelectionStrategy is set to\n TOP_RESOLUTION Amazon Lex returns the first value in the\n resolution list or, if there is no resolution list, null. If you don't\n specify a valueSelectionStrategy, the default is\n ORIGINAL_VALUE.

", "smithy.api#httpHeader": "x-amz-lex-slots" } }, "sessionAttributes": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonString", "traits": { "smithy.api#documentation": "

Map of key/value pairs representing the session-specific context\n information.

", "smithy.api#httpHeader": "x-amz-lex-session-attributes" } }, "sentimentResponse": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

The sentiment expressed in an utterance.

\n

When the bot is configured to send utterances to Amazon Comprehend for\n sentiment analysis, this field contains the result of the analysis.

", "smithy.api#httpHeader": "x-amz-lex-sentiment" } }, "message": { "target": "com.amazonaws.lexruntimeservice#Text", "traits": { "smithy.api#deprecated": { "message": "The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales." }, "smithy.api#documentation": "

You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419,\n es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales, the\n message field is null. You should use the\n encodedMessage field instead.

\n

The message to convey to the user. The message can come from the bot's\n configuration or from a Lambda function.

\n

If the intent is not configured with a Lambda function, or if the Lambda\n function returned Delegate as the\n dialogAction.type in its response, Amazon Lex decides on the\n next course of action and selects an appropriate message from the bot's\n configuration based on the current interaction context. For example, if\n Amazon Lex isn't able to understand user input, it uses a clarification prompt\n message.

\n

When you create an intent you can assign messages to groups. When\n messages are assigned to groups Amazon Lex returns one message from each group\n in the response. The message field is an escaped JSON string containing\n the messages. For more information about the structure of the JSON string\n returned, see msg-prompts-formats.

\n

If the Lambda function returns a message, Amazon Lex passes it to the client\n in its response.

", "smithy.api#httpHeader": "x-amz-lex-message" } }, "encodedMessage": { "target": "com.amazonaws.lexruntimeservice#SensitiveString", "traits": { "smithy.api#documentation": "

The message to convey to the user. The message can come from the bot's\n configuration or from a Lambda function.

\n

If the intent is not configured with a Lambda function, or if the Lambda\n function returned Delegate as the\n dialogAction.type in its response, Amazon Lex decides on the\n next course of action and selects an appropriate message from the bot's\n configuration based on the current interaction context. For example, if\n Amazon Lex isn't able to understand user input, it uses a clarification prompt\n message.

\n

When you create an intent you can assign messages to groups. When\n messages are assigned to groups Amazon Lex returns one message from each group\n in the response. The message field is an escaped JSON string containing\n the messages. For more information about the structure of the JSON string\n returned, see msg-prompts-formats.

\n

If the Lambda function returns a message, Amazon Lex passes it to the client\n in its response.

\n

The encodedMessage field is base-64 encoded. You must \n decode the field before you can use the value.

", "smithy.api#httpHeader": "x-amz-lex-encoded-message" } }, "messageFormat": { "target": "com.amazonaws.lexruntimeservice#MessageFormatType", "traits": { "smithy.api#documentation": "

The format of the response message. One of the following\n values:

\n ", "smithy.api#httpHeader": "x-amz-lex-message-format" } }, "dialogState": { "target": "com.amazonaws.lexruntimeservice#DialogState", "traits": { "smithy.api#documentation": "

Identifies the current state of the user interaction. Amazon Lex returns\n one of the following values as dialogState. The client can\n optionally use this information to customize the user interface.

\n ", "smithy.api#httpHeader": "x-amz-lex-dialog-state" } }, "slotToElicit": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

If the dialogState value is ElicitSlot,\n returns the name of the slot for which Amazon Lex is eliciting a value.

", "smithy.api#httpHeader": "x-amz-lex-slot-to-elicit" } }, "inputTranscript": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#deprecated": { "message": "The inputTranscript field is deprecated, use the encodedInputTranscript field instead. The inputTranscript field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales." }, "smithy.api#documentation": "

The text used to process the request.

\n

You can use this field only in the de-DE, en-AU, en-GB, en-US, es-419,\n es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales, the\n inputTranscript field is null. You should use the\n encodedInputTranscript field instead.

\n

If the input was an audio stream, the inputTranscript\n field contains the text extracted from the audio stream. This is the text\n that is actually processed to recognize intents and slot values. You can\n use this information to determine if Amazon Lex is correctly processing the\n audio that you send.

", "smithy.api#httpHeader": "x-amz-lex-input-transcript" } }, "encodedInputTranscript": { "target": "com.amazonaws.lexruntimeservice#SensitiveStringUnbounded", "traits": { "smithy.api#documentation": "

The text used to process the request.

\n

If the input was an audio stream, the\n encodedInputTranscript field contains the text extracted\n from the audio stream. This is the text that is actually processed to\n recognize intents and slot values. You can use this information to\n determine if Amazon Lex is correctly processing the audio that you send.

\n

The encodedInputTranscript field is base-64 encoded. You must \n decode the field before you can use the value.

", "smithy.api#httpHeader": "x-amz-lex-encoded-input-transcript" } }, "audioStream": { "target": "com.amazonaws.lexruntimeservice#BlobStream", "traits": { "smithy.api#documentation": "

The prompt (or statement) to convey to the user. This is based on the\n bot configuration and context. For example, if Amazon Lex did not understand\n the user intent, it sends the clarificationPrompt configured\n for the bot. If the intent requires confirmation before taking the\n fulfillment action, it sends the confirmationPrompt. Another\n example: Suppose that the Lambda function successfully fulfilled the\n intent, and sent a message to convey to the user. Then Amazon Lex sends that\n message in the response.

", "smithy.api#httpPayload": {} } }, "botVersion": { "target": "com.amazonaws.lexruntimeservice#BotVersion", "traits": { "smithy.api#documentation": "

The version of the bot that responded to the conversation. You can use\n this information to help determine if one version of a bot is performing\n better than another version.

", "smithy.api#httpHeader": "x-amz-lex-bot-version" } }, "sessionId": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

The unique identifier for the session.

", "smithy.api#httpHeader": "x-amz-lex-session-id" } }, "activeContexts": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonActiveContextsString", "traits": { "smithy.api#documentation": "

A list of active contexts for the session. A context can be set when\n an intent is fulfilled or by calling the PostContent,\n PostText, or PutSession operation.

\n

You can use a context to control the intents that can follow up an\n intent, or to modify the operation of your application.

", "smithy.api#httpHeader": "x-amz-lex-active-contexts" } } } }, "com.amazonaws.lexruntimeservice#PostText": { "type": "operation", "input": { "target": "com.amazonaws.lexruntimeservice#PostTextRequest" }, "output": { "target": "com.amazonaws.lexruntimeservice#PostTextResponse" }, "errors": [ { "target": "com.amazonaws.lexruntimeservice#BadGatewayException" }, { "target": "com.amazonaws.lexruntimeservice#BadRequestException" }, { "target": "com.amazonaws.lexruntimeservice#ConflictException" }, { "target": "com.amazonaws.lexruntimeservice#DependencyFailedException" }, { "target": "com.amazonaws.lexruntimeservice#InternalFailureException" }, { "target": "com.amazonaws.lexruntimeservice#LimitExceededException" }, { "target": "com.amazonaws.lexruntimeservice#LoopDetectedException" }, { "target": "com.amazonaws.lexruntimeservice#NotFoundException" } ], "traits": { "smithy.api#documentation": "

Sends user input to Amazon Lex. Client applications can use this API to\n send requests to Amazon Lex at runtime. Amazon Lex then interprets the user input\n using the machine learning model it built for the bot.

\n

In response, Amazon Lex returns the next message to convey to\n the user an optional responseCard to display. Consider the\n following example messages:

\n \n\n

Not all Amazon Lex messages require a user response. For example, a\n conclusion statement does not require a response. Some messages require\n only a \"yes\" or \"no\" user response. In addition to the\n message, Amazon Lex provides additional context about the\n message in the response that you might use to enhance client behavior, for\n example, to display the appropriate client user interface. These are the\n slotToElicit, dialogState,\n intentName, and slots fields in the response.\n Consider the following examples:

\n\n \n\n

In addition, Amazon Lex also returns your application-specific\n sessionAttributes. For more information, see Managing\n Conversation Context.

", "smithy.api#http": { "method": "POST", "uri": "/bot/{botName}/alias/{botAlias}/user/{userId}/text", "code": 200 } } }, "com.amazonaws.lexruntimeservice#PostTextRequest": { "type": "structure", "members": { "botName": { "target": "com.amazonaws.lexruntimeservice#BotName", "traits": { "smithy.api#documentation": "

The name of the Amazon Lex bot.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "botAlias": { "target": "com.amazonaws.lexruntimeservice#BotAlias", "traits": { "smithy.api#documentation": "

The alias of the Amazon Lex bot.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "userId": { "target": "com.amazonaws.lexruntimeservice#UserId", "traits": { "smithy.api#documentation": "

The ID of the client application user. Amazon Lex uses this to identify a\n user's conversation with your bot. At runtime, each request must contain\n the userID field.

\n

To decide the user ID to use for your application, consider the\n following factors.

\n ", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "sessionAttributes": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

Application-specific information passed between Amazon Lex and a client\n application.

\n

For more information, see Setting Session Attributes.

" } }, "requestAttributes": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

Request-specific information passed between Amazon Lex and a client\n application.

\n

The namespace x-amz-lex: is reserved for special\n attributes. Don't create any request attributes with the prefix\n x-amz-lex:.

\n

For more information, see Setting Request Attributes.

" } }, "inputText": { "target": "com.amazonaws.lexruntimeservice#Text", "traits": { "smithy.api#documentation": "

The text that the user entered (Amazon Lex interprets this text).

", "smithy.api#required": {} } }, "activeContexts": { "target": "com.amazonaws.lexruntimeservice#ActiveContextsList", "traits": { "smithy.api#documentation": "

A list of contexts active for the request. A context can be activated\n when a previous intent is fulfilled, or by including the context in the\n request,

\n

If you don't specify a list of contexts, Amazon Lex will use the current\n list of contexts for the session. If you specify an empty list, all\n contexts for the session are cleared.

" } } } }, "com.amazonaws.lexruntimeservice#PostTextResponse": { "type": "structure", "members": { "intentName": { "target": "com.amazonaws.lexruntimeservice#IntentName", "traits": { "smithy.api#documentation": "

The current user intent that Amazon Lex is aware of.

" } }, "nluIntentConfidence": { "target": "com.amazonaws.lexruntimeservice#IntentConfidence", "traits": { "smithy.api#documentation": "

Provides a score that indicates how confident Amazon Lex is that the\n returned intent is the one that matches the user's intent. The score is\n between 0.0 and 1.0. For more information, see Confidence Scores.

\n

The score is a relative score, not an absolute score. The score may\n change based on improvements to Amazon Lex.

" } }, "alternativeIntents": { "target": "com.amazonaws.lexruntimeservice#IntentList", "traits": { "smithy.api#documentation": "

One to four alternative intents that may be applicable to the user's\n intent.

\n

Each alternative includes a score that indicates how confident Amazon Lex\n is that the intent matches the user's intent. The intents are sorted by\n the confidence score.

" } }, "slots": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

The intent slots that Amazon Lex detected from the user input in the\n conversation.

\n

Amazon Lex creates a resolution list containing likely values for a slot.\n The value that it returns is determined by the\n valueSelectionStrategy selected when the slot type was\n created or updated. If valueSelectionStrategy is set to\n ORIGINAL_VALUE, the value provided by the user is returned,\n if the user value is similar to the slot values. If\n valueSelectionStrategy is set to\n TOP_RESOLUTION Amazon Lex returns the first value in the\n resolution list or, if there is no resolution list, null. If you don't\n specify a valueSelectionStrategy, the default is\n ORIGINAL_VALUE.

" } }, "sessionAttributes": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

A map of key-value pairs representing the session-specific context\n information.

" } }, "message": { "target": "com.amazonaws.lexruntimeservice#Text", "traits": { "smithy.api#documentation": "

The message to convey to the user. The message can come from the bot's\n configuration or from a Lambda function.

\n

If the intent is not configured with a Lambda function, or if the Lambda\n function returned Delegate as the\n dialogAction.type its response, Amazon Lex decides on the next\n course of action and selects an appropriate message from the bot's\n configuration based on the current interaction context. For example, if\n Amazon Lex isn't able to understand user input, it uses a clarification prompt\n message.

\n

When you create an intent you can assign messages to groups. When\n messages are assigned to groups Amazon Lex returns one message from each group\n in the response. The message field is an escaped JSON string containing\n the messages. For more information about the structure of the JSON string\n returned, see msg-prompts-formats.

\n

If the Lambda function returns a message, Amazon Lex passes it to the client\n in its response.

" } }, "sentimentResponse": { "target": "com.amazonaws.lexruntimeservice#SentimentResponse", "traits": { "smithy.api#documentation": "

The sentiment expressed in and utterance.

\n

When the bot is configured to send utterances to Amazon Comprehend for\n sentiment analysis, this field contains the result of the analysis.

" } }, "messageFormat": { "target": "com.amazonaws.lexruntimeservice#MessageFormatType", "traits": { "smithy.api#documentation": "

The format of the response message. One of the following\n values:

\n " } }, "dialogState": { "target": "com.amazonaws.lexruntimeservice#DialogState", "traits": { "smithy.api#documentation": "

Identifies the current state of the user interaction. Amazon Lex returns\n one of the following values as dialogState. The client can\n optionally use this information to customize the user interface.

\n " } }, "slotToElicit": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

If the dialogState value is ElicitSlot,\n returns the name of the slot for which Amazon Lex is eliciting a value.

" } }, "responseCard": { "target": "com.amazonaws.lexruntimeservice#ResponseCard", "traits": { "smithy.api#documentation": "

Represents the options that the user has to respond to the current\n prompt. Response Card can come from the bot configuration (in the\n Amazon Lex console, choose the settings button next to a slot) or from a\n code hook (Lambda function).

" } }, "sessionId": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

A unique identifier for the session.

" } }, "botVersion": { "target": "com.amazonaws.lexruntimeservice#BotVersion", "traits": { "smithy.api#documentation": "

The version of the bot that responded to the conversation. You can use\n this information to help determine if one version of a bot is performing\n better than another version.

" } }, "activeContexts": { "target": "com.amazonaws.lexruntimeservice#ActiveContextsList", "traits": { "smithy.api#documentation": "

A list of active contexts for the session. A context can be set when\n an intent is fulfilled or by calling the PostContent,\n PostText, or PutSession operation.

\n

You can use a context to control the intents that can follow up an\n intent, or to modify the operation of your application.

" } } } }, "com.amazonaws.lexruntimeservice#PredictedIntent": { "type": "structure", "members": { "intentName": { "target": "com.amazonaws.lexruntimeservice#IntentName", "traits": { "smithy.api#documentation": "

The name of the intent that Amazon Lex suggests satisfies the user's\n intent.

" } }, "nluIntentConfidence": { "target": "com.amazonaws.lexruntimeservice#IntentConfidence", "traits": { "smithy.api#documentation": "

Indicates how confident Amazon Lex is that an intent satisfies the user's\n intent.

" } }, "slots": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

The slot and slot values associated with the predicted intent.

" } } }, "traits": { "smithy.api#documentation": "

An intent that Amazon Lex suggests satisfies the user's intent. Includes\n the name of the intent, the confidence that Amazon Lex has that the user's\n intent is satisfied, and the slots defined for the intent.

" } }, "com.amazonaws.lexruntimeservice#PutSession": { "type": "operation", "input": { "target": "com.amazonaws.lexruntimeservice#PutSessionRequest" }, "output": { "target": "com.amazonaws.lexruntimeservice#PutSessionResponse" }, "errors": [ { "target": "com.amazonaws.lexruntimeservice#BadGatewayException" }, { "target": "com.amazonaws.lexruntimeservice#BadRequestException" }, { "target": "com.amazonaws.lexruntimeservice#ConflictException" }, { "target": "com.amazonaws.lexruntimeservice#DependencyFailedException" }, { "target": "com.amazonaws.lexruntimeservice#InternalFailureException" }, { "target": "com.amazonaws.lexruntimeservice#LimitExceededException" }, { "target": "com.amazonaws.lexruntimeservice#NotAcceptableException" }, { "target": "com.amazonaws.lexruntimeservice#NotFoundException" } ], "traits": { "smithy.api#documentation": "

Creates a new session or modifies an existing session with an Amazon Lex\n bot. Use this operation to enable your application to set the state of the\n bot.

\n

For more information, see Managing\n Sessions.

", "smithy.api#http": { "method": "POST", "uri": "/bot/{botName}/alias/{botAlias}/user/{userId}/session", "code": 200 } } }, "com.amazonaws.lexruntimeservice#PutSessionRequest": { "type": "structure", "members": { "botName": { "target": "com.amazonaws.lexruntimeservice#BotName", "traits": { "smithy.api#documentation": "

The name of the bot that contains the session data.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "botAlias": { "target": "com.amazonaws.lexruntimeservice#BotAlias", "traits": { "smithy.api#documentation": "

The alias in use for the bot that contains the session data.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "userId": { "target": "com.amazonaws.lexruntimeservice#UserId", "traits": { "smithy.api#documentation": "

The ID of the client application user. Amazon Lex uses this to identify a\n user's conversation with your bot.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "sessionAttributes": { "target": "com.amazonaws.lexruntimeservice#StringMap", "traits": { "smithy.api#documentation": "

Map of key/value pairs representing the session-specific context\n information. It contains application information passed between Amazon Lex and\n a client application.

" } }, "dialogAction": { "target": "com.amazonaws.lexruntimeservice#DialogAction", "traits": { "smithy.api#documentation": "

Sets the next action that the bot should take to fulfill the\n conversation.

" } }, "recentIntentSummaryView": { "target": "com.amazonaws.lexruntimeservice#IntentSummaryList", "traits": { "smithy.api#documentation": "

A summary of the recent intents for the bot. You can use the intent\n summary view to set a checkpoint label on an intent and modify attributes\n of intents. You can also use it to remove or add intent summary objects to\n the list.

\n

An intent that you modify or add to the list must make sense for the\n bot. For example, the intent name must be valid for the bot. You must\n provide valid values for:

\n \n

If you send the recentIntentSummaryView parameter in a\n PutSession request, the contents of the new summary view\n replaces the old summary view. For example, if a GetSession\n request returns three intents in the summary view and you call\n PutSession with one intent in the summary view, the next\n call to GetSession will only return one intent.

" } }, "accept": { "target": "com.amazonaws.lexruntimeservice#Accept", "traits": { "smithy.api#documentation": "

The message that Amazon Lex returns in the response can be either text or\n speech based depending on the value of this field.

\n ", "smithy.api#httpHeader": "Accept" } }, "activeContexts": { "target": "com.amazonaws.lexruntimeservice#ActiveContextsList", "traits": { "smithy.api#documentation": "

A list of contexts active for the request. A context can be activated\n when a previous intent is fulfilled, or by including the context in the\n request,

\n

If you don't specify a list of contexts, Amazon Lex will use the current\n list of contexts for the session. If you specify an empty list, all\n contexts for the session are cleared.

" } } } }, "com.amazonaws.lexruntimeservice#PutSessionResponse": { "type": "structure", "members": { "contentType": { "target": "com.amazonaws.lexruntimeservice#HttpContentType", "traits": { "smithy.api#documentation": "

Content type as specified in the Accept HTTP header in\n the request.

", "smithy.api#httpHeader": "Content-Type" } }, "intentName": { "target": "com.amazonaws.lexruntimeservice#IntentName", "traits": { "smithy.api#documentation": "

The name of the current intent.

", "smithy.api#httpHeader": "x-amz-lex-intent-name" } }, "slots": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonString", "traits": { "smithy.api#documentation": "

Map of zero or more intent slots Amazon Lex detected from the user input\n during the conversation.

\n

Amazon Lex creates a resolution list containing likely values for a slot.\n The value that it returns is determined by the\n valueSelectionStrategy selected when the slot type was\n created or updated. If valueSelectionStrategy is set to\n ORIGINAL_VALUE, the value provided by the user is returned,\n if the user value is similar to the slot values. If\n valueSelectionStrategy is set to\n TOP_RESOLUTION Amazon Lex returns the first value in the\n resolution list or, if there is no resolution list, null. If you don't\n specify a valueSelectionStrategy the default is\n ORIGINAL_VALUE.

", "smithy.api#httpHeader": "x-amz-lex-slots" } }, "sessionAttributes": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonString", "traits": { "smithy.api#documentation": "

Map of key/value pairs representing session-specific context\n information.

", "smithy.api#httpHeader": "x-amz-lex-session-attributes" } }, "message": { "target": "com.amazonaws.lexruntimeservice#Text", "traits": { "smithy.api#deprecated": { "message": "The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales." }, "smithy.api#documentation": "

The next message that should be presented to the user.

\n

You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419,\n es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales, the\n message field is null. You should use the\n encodedMessage field instead.

", "smithy.api#httpHeader": "x-amz-lex-message" } }, "encodedMessage": { "target": "com.amazonaws.lexruntimeservice#SensitiveString", "traits": { "smithy.api#documentation": "

The next message that should be presented to the user.

\n

The encodedMessage field is base-64 encoded. You must \n decode the field before you can use the value.

", "smithy.api#httpHeader": "x-amz-lex-encoded-message" } }, "messageFormat": { "target": "com.amazonaws.lexruntimeservice#MessageFormatType", "traits": { "smithy.api#documentation": "

The format of the response message. One of the following\n values:

\n ", "smithy.api#httpHeader": "x-amz-lex-message-format" } }, "dialogState": { "target": "com.amazonaws.lexruntimeservice#DialogState", "traits": { "smithy.api#documentation": "

\n ", "smithy.api#httpHeader": "x-amz-lex-dialog-state" } }, "slotToElicit": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

If the dialogState is ElicitSlot, returns\n the name of the slot for which Amazon Lex is eliciting a value.

", "smithy.api#httpHeader": "x-amz-lex-slot-to-elicit" } }, "audioStream": { "target": "com.amazonaws.lexruntimeservice#BlobStream", "traits": { "smithy.api#documentation": "

The audio version of the message to convey to the user.

", "smithy.api#httpPayload": {} } }, "sessionId": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

A unique identifier for the session.

", "smithy.api#httpHeader": "x-amz-lex-session-id" } }, "activeContexts": { "target": "com.amazonaws.lexruntimeservice#SynthesizedJsonActiveContextsString", "traits": { "smithy.api#documentation": "

A list of active contexts for the session.

", "smithy.api#httpHeader": "x-amz-lex-active-contexts" } } } }, "com.amazonaws.lexruntimeservice#RequestTimeoutException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

The input speech is too long.

", "smithy.api#error": "client", "smithy.api#httpError": 408 } }, "com.amazonaws.lexruntimeservice#ResponseCard": { "type": "structure", "members": { "version": { "target": "com.amazonaws.lexruntimeservice#String", "traits": { "smithy.api#documentation": "

The version of the response card format.

" } }, "contentType": { "target": "com.amazonaws.lexruntimeservice#ContentType", "traits": { "smithy.api#documentation": "

The content type of the response.

" } }, "genericAttachments": { "target": "com.amazonaws.lexruntimeservice#genericAttachmentList", "traits": { "smithy.api#documentation": "

An array of attachment objects representing options.

" } } }, "traits": { "smithy.api#documentation": "

If you configure a response card when creating your bots, Amazon Lex\n substitutes the session attributes and slot values that are available, and\n then returns it. The response card can also come from a Lambda function (\n dialogCodeHook and fulfillmentActivity on an\n intent).

" } }, "com.amazonaws.lexruntimeservice#SensitiveString": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1366 }, "smithy.api#sensitive": {} } }, "com.amazonaws.lexruntimeservice#SensitiveStringUnbounded": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.lexruntimeservice#SentimentLabel": { "type": "string" }, "com.amazonaws.lexruntimeservice#SentimentResponse": { "type": "structure", "members": { "sentimentLabel": { "target": "com.amazonaws.lexruntimeservice#SentimentLabel", "traits": { "smithy.api#documentation": "

The inferred sentiment that Amazon Comprehend has the highest\n confidence in.

" } }, "sentimentScore": { "target": "com.amazonaws.lexruntimeservice#SentimentScore", "traits": { "smithy.api#documentation": "

The likelihood that the sentiment was correctly inferred.

" } } }, "traits": { "smithy.api#documentation": "

The sentiment expressed in an utterance.

\n

When the bot is configured to send utterances to Amazon Comprehend for\n sentiment analysis, this field structure contains the result of the\n analysis.

" } }, "com.amazonaws.lexruntimeservice#SentimentScore": { "type": "string" }, "com.amazonaws.lexruntimeservice#String": { "type": "string" }, "com.amazonaws.lexruntimeservice#StringMap": { "type": "map", "key": { "target": "com.amazonaws.lexruntimeservice#String" }, "value": { "target": "com.amazonaws.lexruntimeservice#String" }, "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.lexruntimeservice#StringUrlWithLength": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 } } }, "com.amazonaws.lexruntimeservice#StringWithLength": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 80 } } }, "com.amazonaws.lexruntimeservice#SynthesizedJsonActiveContextsString": { "type": "string", "traits": { "smithy.api#mediaType": "application/json", "smithy.api#sensitive": {} } }, "com.amazonaws.lexruntimeservice#SynthesizedJsonAttributesString": { "type": "string", "traits": { "smithy.api#mediaType": "application/json", "smithy.api#sensitive": {} } }, "com.amazonaws.lexruntimeservice#SynthesizedJsonString": { "type": "string", "traits": { "smithy.api#mediaType": "application/json" } }, "com.amazonaws.lexruntimeservice#Text": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1024 }, "smithy.api#sensitive": {} } }, "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.lexruntimeservice#String" } }, "traits": { "smithy.api#documentation": "

The Content-Type header (PostContent API) has an invalid\n value.

", "smithy.api#error": "client", "smithy.api#httpError": 415 } }, "com.amazonaws.lexruntimeservice#UserId": { "type": "string", "traits": { "smithy.api#length": { "min": 2, "max": 100 }, "smithy.api#pattern": "[0-9a-zA-Z._:-]+" } }, "com.amazonaws.lexruntimeservice#genericAttachmentList": { "type": "list", "member": { "target": "com.amazonaws.lexruntimeservice#GenericAttachment" }, "traits": { "smithy.api#length": { "min": 0, "max": 10 } } }, "com.amazonaws.lexruntimeservice#listOfButtons": { "type": "list", "member": { "target": "com.amazonaws.lexruntimeservice#Button" }, "traits": { "smithy.api#length": { "min": 0, "max": 5 } } } } }