getBots
inline suspend fun LexModelBuildingClient.getBots(crossinline block: GetBotsRequest.Builder.() -> Unit): GetBotsResponse
Returns bot information as follows:
If you provide the
nameContains
field, the response includes information for the$LATEST
version of all bots whose name contains the specified string.If you don't specify the
nameContains
field, the operation returns information about the$LATEST
version of all of your bots.
This operation requires permission for the lex:GetBots
action.
Samples
fun main() {
//sampleStart
// This example shows how to get a list of all of the bots in your account.
val resp = lexModelBuildingClient.getBots {
nextToken = ""
maxResults = 5
}
//sampleEnd
}