getIntents
abstract suspend fun getIntents(input: GetIntentsRequest = GetIntentsRequest { }): GetIntentsResponse
Returns intent information as follows:
If you specify the
nameContains
field, returns the$LATEST
version of all intents that contain the specified string.If you don't specify the
nameContains
field, returns information about the$LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
Samples
fun main() {
//sampleStart
// This example shows how to get a list of all of the intents in your account.
val resp = lexModelBuildingClient.getIntents {
nextToken = ""
maxResults = 10
}
//sampleEnd
}