AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to GetSessionAsync.

Namespace: Amazon.Lex
Assembly: AWSSDK.Lex.dll
Version: 3.x.y.z

Syntax

C#
public virtual GetSessionResponse GetSession(
         GetSessionRequest request
)

Parameters

request
Type: Amazon.Lex.Model.GetSessionRequest

Container for the necessary parameters to execute the GetSession service method.

Return Value


The response from the GetSession service method, as returned by Lex.

Exceptions

ExceptionCondition
BadRequestException Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes.
InternalFailureException Internal service error. Retry the call.
LimitExceededException Exceeded a limit.
NotFoundException The resource (such as the Amazon Lex bot or an alias) that is referred to is not found.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also