getSlotTypes

abstract suspend fun getSlotTypes(input: GetSlotTypesRequest = GetSlotTypesRequest { }): GetSlotTypesResponse

Returns slot type information as follows:

  • If you specify the nameContains field, returns the $LATEST version of all slot types that contain the specified string.

  • If you don't specify the nameContains field, returns information about the $LATEST version 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
}