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.

Container for the parameters to the GetBots operation. Returns bot information as follows:

This operation requires permission for the lex:GetBots action.

Inheritance Hierarchy


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


public class GetBotsRequest : AmazonLexModelBuildingServiceRequest

The GetBotsRequest type exposes the following members


Public Method GetBotsRequest()


Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of bots to return in the response that the request will return. The default is 10.

Public Property NameContains System.String

Gets and sets the property NameContains.

Substring to match in bot names. A bot will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

Public Property NextToken System.String

Gets and sets the property NextToken.

A pagination token that fetches the next page of bots. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of bots, specify the pagination token in the next request.


This example shows how to get a list of all of the bots in your account.

To get a list of bots

var response = client.GetBots(new GetBotsRequest 
    MaxResults = 5,
    NextToken = ""

List bots = response.Bots;


Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms