I am currently working on integrating aws Lex with lambda function written in TypeScript and I am facing a situation in which I need help .
Upon reading the aws documentation for LexV2 the following values are available for an intent state:
- Failed
- Fulfilled
- FulfillmentInProgress
- InProgress
- ReadyForFulfillment
- Waiting
However when I used the 'Waiting' value, The following error message showed up :
Invalid Lambda Response: Received invalid response from Lambda: Can not deserialize value of type Intent$IntentState from String "Waiting": value not one of declared Enum instance names: [ReadyForFulfillment, InProgress, Failed, Fulfilled]
Upon this I need help to:
- Understand how is it possible to have values that are not recognized.
- Understand the difference between each of these values (Note: not all of the accepted values are explained in the documentation)