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.
Implementation for accessing LexRuntimeV2
This section contains documentation for the Amazon Lex V2 Runtime V2 API operations.Namespace: Amazon.LexRuntimeV2
Assembly: AWSSDK.LexRuntimeV2.dll
Version: 3.x.y.z
public class AmazonLexRuntimeV2Client : AmazonServiceClient IAmazonLexRuntimeV2, IAmazonService, IDisposable
The AmazonLexRuntimeV2Client type exposes the following members
Name | Description | |
---|---|---|
![]() |
AmazonLexRuntimeV2Client() |
Constructs AmazonLexRuntimeV2Client with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
![]() |
AmazonLexRuntimeV2Client(RegionEndpoint) |
Constructs AmazonLexRuntimeV2Client with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
![]() |
AmazonLexRuntimeV2Client(AmazonLexRuntimeV2Config) |
Constructs AmazonLexRuntimeV2Client with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
![]() |
AmazonLexRuntimeV2Client(AWSCredentials) |
Constructs AmazonLexRuntimeV2Client with AWS Credentials |
![]() |
AmazonLexRuntimeV2Client(AWSCredentials, RegionEndpoint) |
Constructs AmazonLexRuntimeV2Client with AWS Credentials |
![]() |
AmazonLexRuntimeV2Client(AWSCredentials, AmazonLexRuntimeV2Config) |
Constructs AmazonLexRuntimeV2Client with AWS Credentials and an AmazonLexRuntimeV2Client Configuration object. |
![]() |
AmazonLexRuntimeV2Client(string, string) |
Constructs AmazonLexRuntimeV2Client with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonLexRuntimeV2Client(string, string, RegionEndpoint) |
Constructs AmazonLexRuntimeV2Client with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonLexRuntimeV2Client(string, string, AmazonLexRuntimeV2Config) |
Constructs AmazonLexRuntimeV2Client with AWS Access Key ID, AWS Secret Key and an AmazonLexRuntimeV2Client Configuration object. |
![]() |
AmazonLexRuntimeV2Client(string, string, string) |
Constructs AmazonLexRuntimeV2Client with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonLexRuntimeV2Client(string, string, string, RegionEndpoint) |
Constructs AmazonLexRuntimeV2Client with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonLexRuntimeV2Client(string, string, string, AmazonLexRuntimeV2Config) |
Constructs AmazonLexRuntimeV2Client with AWS Access Key ID, AWS Secret Key and an AmazonLexRuntimeV2Client Configuration object. |
Name | Type | Description | |
---|---|---|---|
![]() |
Config | Amazon.Runtime.IClientConfig | Inherited from Amazon.Runtime.AmazonServiceClient. |
Name | Description | |
---|---|---|
![]() |
DeleteSession(DeleteSessionRequest) |
Removes session information for a specified bot, alias, and user ID. You can use this operation to restart a conversation with a bot. When you remove a session, the entire history of the session is removed so that you can start again. You don't need to delete a session. Sessions have a time limit and will expire. Set the session time limit when you create the bot. The default is 5 minutes, but you can specify anything between 1 minute and 24 hours.
If you specify a bot or alias ID that doesn't exist, you receive a
If the locale doesn't exist in the bot, or if the locale hasn't been enables for the
alias, you receive a |
![]() |
DeleteSessionAsync(DeleteSessionRequest, CancellationToken) |
Removes session information for a specified bot, alias, and user ID. You can use this operation to restart a conversation with a bot. When you remove a session, the entire history of the session is removed so that you can start again. You don't need to delete a session. Sessions have a time limit and will expire. Set the session time limit when you create the bot. The default is 5 minutes, but you can specify anything between 1 minute and 24 hours.
If you specify a bot or alias ID that doesn't exist, you receive a
If the locale doesn't exist in the bot, or if the locale hasn't been enables for the
alias, you receive a |
![]() |
DetermineServiceOperationEndpoint(AmazonWebServiceRequest) |
Returns the endpoint that will be used for a particular request. |
![]() |
Dispose() | Inherited from Amazon.Runtime.AmazonServiceClient. |
![]() |
GetSession(GetSessionRequest) |
Returns session information for a specified bot, alias, and user. For example, you can use this operation to retrieve session information for a user that has left a long-running session in use.
If the bot, alias, or session identifier doesn't exist, Amazon Lex V2 returns a |
![]() |
GetSessionAsync(GetSessionRequest, CancellationToken) |
Returns session information for a specified bot, alias, and user. For example, you can use this operation to retrieve session information for a user that has left a long-running session in use.
If the bot, alias, or session identifier doesn't exist, Amazon Lex V2 returns a |
![]() |
PutSession(PutSessionRequest) |
Creates a new session or modifies an existing session with an Amazon Lex V2 bot. Use this operation to enable your application to set the state of the bot. |
![]() |
PutSessionAsync(PutSessionRequest, CancellationToken) |
Creates a new session or modifies an existing session with an Amazon Lex V2 bot. Use this operation to enable your application to set the state of the bot. |
![]() |
RecognizeText(RecognizeTextRequest) |
Sends user input to Amazon Lex V2. Client applications use this API to send requests to Amazon Lex V2 at runtime. Amazon Lex V2 then interprets the user input using the machine learning model that it build for the bot. In response, Amazon Lex V2 returns the next message to convey to the user and an optional response card to display. If the optional post-fulfillment response is specified, the messages are returned as follows. For more information, see PostFulfillmentStatusSpecification.
For more information, see Completion message. |
![]() |
RecognizeTextAsync(RecognizeTextRequest, CancellationToken) |
Sends user input to Amazon Lex V2. Client applications use this API to send requests to Amazon Lex V2 at runtime. Amazon Lex V2 then interprets the user input using the machine learning model that it build for the bot. In response, Amazon Lex V2 returns the next message to convey to the user and an optional response card to display. If the optional post-fulfillment response is specified, the messages are returned as follows. For more information, see PostFulfillmentStatusSpecification.
For more information, see Completion message. |
![]() |
RecognizeUtterance(RecognizeUtteranceRequest) |
Sends user input to Amazon Lex V2. You can send text or speech. Clients use this API to send text and audio requests to Amazon Lex V2 at runtime. Amazon Lex V2 interprets the user input using the machine learning model built for the bot. The following request fields must be compressed with gzip and then base64 encoded before you send them to Amazon Lex V2.
The following response fields are compressed using gzip and then base64 encoded by Amazon Lex V2. Before you can use these fields, you must decode and decompress them.
The example contains a Java application that compresses and encodes a Java object to send to Amazon Lex V2, and a second that decodes and decompresses a response from Amazon Lex V2. If the optional post-fulfillment response is specified, the messages are returned as follows. For more information, see PostFulfillmentStatusSpecification.
For more information, see Completion message. |
![]() |
RecognizeUtteranceAsync(RecognizeUtteranceRequest, CancellationToken) |
Sends user input to Amazon Lex V2. You can send text or speech. Clients use this API to send text and audio requests to Amazon Lex V2 at runtime. Amazon Lex V2 interprets the user input using the machine learning model built for the bot. The following request fields must be compressed with gzip and then base64 encoded before you send them to Amazon Lex V2.
The following response fields are compressed using gzip and then base64 encoded by Amazon Lex V2. Before you can use these fields, you must decode and decompress them.
The example contains a Java application that compresses and encodes a Java object to send to Amazon Lex V2, and a second that decodes and decompresses a response from Amazon Lex V2. If the optional post-fulfillment response is specified, the messages are returned as follows. For more information, see PostFulfillmentStatusSpecification.
For more information, see Completion message. |
Name | Description | |
---|---|---|
![]() |
AfterResponseEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
![]() |
BeforeRequestEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
![]() |
ExceptionEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5