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 GetBot operation. Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.

This operation requires permissions for the lex:GetBot action.

Inheritance Hierarchy


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


public class GetBotRequest : AmazonLexModelBuildingServiceRequest

The GetBotRequest type exposes the following members


Public Method GetBotRequest()


Public Property Name System.String

Gets and sets the property Name.

The name of the bot. The name is case sensitive.

Public Property VersionOrAlias System.String

Gets and sets the property VersionOrAlias.

The version or alias of the bot.


This example shows how to get configuration information for a bot.

To get information about a bot

var response = client.GetBot(new GetBotRequest 
    Name = "DocOrderPizza",
    VersionOrAlias = "$LATEST"

string version = response.Version;
string name = response.Name;
Statement abortStatement = response.AbortStatement;
string checksum = response.Checksum;
bool childDirected = response.ChildDirected;
Prompt clarificationPrompt = response.ClarificationPrompt;
DateTime createdDate = response.CreatedDate;
string description = response.Description;
integer idleSessionTTLInSeconds = response.IdleSessionTTLInSeconds;
List intents = response.Intents;
DateTime lastUpdatedDate = response.LastUpdatedDate;
string locale = response.Locale;
string status = response.Status;


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