

# SqsMessageAttributeValue
<a name="API_SqsMessageAttributeValue"></a>

A custom SQS message attribute (data type plus string or binary value).

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

 ** BinaryValue **   <a name="eventbridgev2-Type-SqsMessageAttributeValue-BinaryValue"></a>
Base64-encoded literal binary attribute value.  
Type: String  
Required: No

 ** DataType **   <a name="eventbridgev2-Type-SqsMessageAttributeValue-DataType"></a>
Attribute data type. Requiredness, the accepted vocabulary, and any custom label belong to SQS, which rejects an attribute without a data type on delivery.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 8192.  
Required: No

 ** StringValue **   <a name="eventbridgev2-Type-SqsMessageAttributeValue-StringValue"></a>
String attribute value. A JSONata expression resolves once per delivered event.  
Type: String  
Required: No

## See Also
<a name="API_SqsMessageAttributeValue_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/eventbridgev2-2025-05-15/SqsMessageAttributeValue) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/eventbridgev2-2025-05-15/SqsMessageAttributeValue) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/eventbridgev2-2025-05-15/SqsMessageAttributeValue) 