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

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.LexModelBuildingService.AmazonLexModelBuildingServiceRequest
      Amazon.LexModelBuildingService.Model.GetBotRequest

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

Syntax

C#
public class GetBotRequest : AmazonLexModelBuildingServiceRequest
         IAmazonWebServiceRequest

The GetBotRequest type exposes the following members

Constructors

NameDescription
Public Method GetBotRequest()

Properties

NameTypeDescription
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.

Examples

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

To get information about a bot


var client = new AmazonLexModelBuildingServiceClient();
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;
int idleSessionTTLInSeconds = response.IdleSessionTTLInSeconds;
List<Intent> intents = response.Intents;
DateTime lastUpdatedDate = response.LastUpdatedDate;
string locale = response.Locale;
string status = response.Status;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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