getSlotTypes
abstract suspend fun getSlotTypes(input: GetSlotTypesRequest = GetSlotTypesRequest { }): GetSlotTypesResponse
Returns slot type information as follows:
If you specify the
nameContainsfield, returns the$LATESTversion of all slot types that contain the specified string.If you don't specify the
nameContainsfield, returns information about the$LATESTversion of all slot types.
The operation requires permission for the lex:GetSlotTypes action.
Samples
fun main() {
//sampleStart
// This example shows how to get a list of all of the slot types in your account.
val resp = lexModelBuildingClient.getSlotTypes {
nextToken = ""
maxResults = 10
}
//sampleEnd
}