As referenced in the Connect API reference ChatMessage supports:
- For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024.
- For application/json, the Length Constraints are Minimum of 1, Maximum of 12000.
- For application/vnd.amazonaws.connect.message.interactive.response, the Length Constraints are Minimum of 1, Maximum of 12288.
If the ContentType application/json could be added to the list and supported in the Message class that would be appreciated.