getIntent
inline suspend fun LexModelBuildingClient.getIntent(crossinline block: GetIntentRequest.Builder.() -> Unit): GetIntentResponse
Returns information about an intent. In addition to the intent name, you must specify the intent version.
This operation requires permissions to perform the lex:GetIntent
action.
Samples
fun main() {
//sampleStart
// This example shows how to get information about an intent.
val resp = lexModelBuildingClient.getIntent {
name = "DocOrderPizza"
version = "$LATEST"
}
//sampleEnd
}