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.
Container for the parameters to the GetIntents operation. Returns intent information as follows:
If you specify the nameContains
field, returns the $LATEST
version of
all intents that contain the specified string.
If you don't specify the nameContains
field, returns information about the
$LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
Namespace: Amazon.LexModelBuildingService.Model
Assembly: AWSSDK.LexModelBuildingService.dll
Version: 3.x.y.z
public class GetIntentsRequest : AmazonLexModelBuildingServiceRequest IAmazonWebServiceRequest
The GetIntentsRequest type exposes the following members
Name | Description | |
---|---|---|
GetIntentsRequest() |
Name | Type | Description | |
---|---|---|---|
MaxResults | System.Int32 |
Gets and sets the property MaxResults. The maximum number of intents to return in the response. The default is 10. |
|
NameContains | System.String |
Gets and sets the property NameContains. Substring to match in intent names. An intent will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." |
|
NextToken | System.String |
Gets and sets the property NextToken. A pagination token that fetches the next page of intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request. |
This example shows how to get a list of all of the intents in your account.
var client = new AmazonLexModelBuildingServiceClient(); var response = client.GetIntents(new GetIntentsRequest { MaxResults = 10, NextToken = "" }); List<IntentMetadata> intents = response.Intents;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5