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.
Namespace: Amazon.LexModelBuildingService.Model
Assembly: AWSSDK.LexModelBuildingService.dll
Version: 3.x.y.z
public class GetBotRequest : AmazonLexModelBuildingServiceRequest IAmazonWebServiceRequest
The GetBotRequest type exposes the following members
Name | Description | |
---|---|---|
GetBotRequest() |
Name | Type | Description | |
---|---|---|---|
Name | System.String |
Gets and sets the property Name. The name of the bot. The name is case sensitive. |
|
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.
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;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5