getBot

inline suspend fun LexModelBuildingClient.getBot(crossinline block: GetBotRequest.Builder.() -> Unit): GetBotResponse

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.

Samples


fun main() { 
   //sampleStart 
   // This example shows how to get configuration information for a bot.
val resp = lexModelBuildingClient.getBot {
    name = "DocOrderPizza"
    versionOrAlias = "$LATEST"
} 
   //sampleEnd
}