

# MessageContent
<a name="API_MessageContent"></a>

The content of a conversation turn.

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

 ** text **   <a name="opensearchmemory-Type-MessageContent-text"></a>
The text of the turn.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 5242880.  
Required: Yes

## See Also
<a name="API_MessageContent_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/opensearchmemory-2026-08-24/MessageContent) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/opensearchmemory-2026-08-24/MessageContent) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/opensearchmemory-2026-08-24/MessageContent) 