

# ChatMessage

A single message in a chat session.

## Contents
<a name="API_ChatMessage_Contents"></a>

 ** author **   <a name="assurance-Type-ChatMessage-author"></a>
The principal that authored the message.  
Type: String  
Valid Values: `user | agent`   
Required: Yes

 ** content **   <a name="assurance-Type-ChatMessage-content"></a>
The message text content.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 100000.  
Required: Yes

 ** createdAt **   <a name="assurance-Type-ChatMessage-createdAt"></a>
The timestamp when the message was created.  
Type: Timestamp  
Required: Yes

 ** sequenceNumber **   <a name="assurance-Type-ChatMessage-sequenceNumber"></a>
The position of this message in the session's sequence.  
Type: Long  
Valid Range: Minimum value of 0.  
Required: Yes

## See Also
<a name="API_ChatMessage_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/assurance-2022-07-26/ChatMessage) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/assurance-2022-07-26/ChatMessage) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/assurance-2022-07-26/ChatMessage) 