Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutSessionCommand

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.

example

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);
see

PutSessionCommandInput for command's input shape.

see

PutSessionCommandOutput for command's response shape.

see

config for LexRuntimeServiceClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: PutSessionCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<PutSessionCommandInput, PutSessionCommandOutput>

Methods

Static getEndpointParameterInstructions