Creates a new session or modifies an existing session with an Amazon Lex bot. Use this operation to enable your application to set the state of the bot.
For more information, see Managing Sessions.
Use a bare-bones client and the command you need to make an API call.
import { LexRuntimeServiceClient, PutSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import // const { LexRuntimeServiceClient, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import const client = new LexRuntimeServiceClient(config); const command = new PutSessionCommand(input); const response = await client.send(command);
PutSessionCommandInput for command's input shape.
input
PutSessionCommandOutput for command's response shape.
response
config for LexRuntimeServiceClient's config shape.
config
Creates a new session or modifies an existing session with an Amazon Lex bot. Use this operation to enable your application to set the state of the bot.
For more information, see Managing Sessions.
Use a bare-bones client and the command you need to make an API call.
import { LexRuntimeServiceClient, PutSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import // const { LexRuntimeServiceClient, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import const client = new LexRuntimeServiceClient(config); const command = new PutSessionCommand(input); const response = await client.send(command);
PutSessionCommandInput for command's
input
shape.PutSessionCommandOutput for command's
response
shape.config for LexRuntimeServiceClient's
config
shape.