Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PutSessionRequest

import type { PutSessionRequest } from "https://aws-api.deno.dev/v0.3/services/lexruntimev2.ts?docs=full";
interface PutSessionRequest {
botAliasId: string;
botId: string;
localeId: string;
messages?: Message[] | null;
requestAttributes?: {
[key: string]: string | null | undefined;
}
| null;
responseContentType?: string | null;
sessionId: string;
sessionState: SessionState;
}

§Properties

§
botAliasId: string
[src]

The alias identifier of the bot that receives the session data.

§
botId: string
[src]

The identifier of the bot that receives the session data.

§
localeId: string
[src]

The locale where the session is in use.

§
messages?: Message[] | null
[src]

A list of messages to send to the user. Messages are sent in the order that they are defined in the list.

§
requestAttributes?: {
[key: string]: string | null | undefined;
}
| null
[src]

Request-specific information passed between Amazon Lex V2 and the client application.

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

§
responseContentType?: string | null
[src]

The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.

  • If the value is text/plain; charset=utf-8, Amazon Lex V2 returns text in the response.
§
sessionId: string
[src]

The identifier of the session that receives the session data.

§
sessionState: SessionState
[src]

Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.