

# Message


Information about a message.

## Contents


 ** inputName **   <a name="iotevents-Type-iotevents-data_Message-inputName"></a>
The name of the input into which the message payload is transformed.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`   
Required: Yes

 ** messageId **   <a name="iotevents-Type-iotevents-data_Message-messageId"></a>
The ID to assign to the message. Within each batch sent, each `"messageId"` must be unique.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `^[a-zA-Z0-9_-]+$`   
Required: Yes

 ** payload **   <a name="iotevents-Type-iotevents-data_Message-payload"></a>
The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).  
Type: Base64-encoded binary data object  
Required: Yes

 ** timestamp **   <a name="iotevents-Type-iotevents-data_Message-timestamp"></a>
The timestamp associated with the message.  
Type: [TimestampValue](API_iotevents-data_TimestampValue.md) object  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iotevents-data-2018-10-23/Message) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotevents-data-2018-10-23/Message) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotevents-data-2018-10-23/Message) 