

# Message

A single conversation turn.

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

 ** content **   <a name="context-Type-Message-content"></a>
The turn's text content.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 35000.  
Required: Yes

 ** role **   <a name="context-Type-Message-role"></a>
The role of the participant that produced this turn. Valid values:  
+  `USER` - The user asked or said this turn.
+  `ASSISTANT` - The assistant answered in this turn.
Type: String  
Valid Values: `USER | ASSISTANT`   
Required: Yes

## See Also
<a name="API_Message_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/context-2022-07-26/Message) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/Message) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/Message) 