MessageAttributeValueProperty Struct Added in v2.275.0
A message attribute value and its data type, for Amazon SQS and Amazon SNS targets.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eventsv2 as eventsv2 } from 'aws-cdk-lib';
const messageAttributeValueProperty: eventsv2.CfnSubscriber.MessageAttributeValueProperty = {
dataType: 'dataType',
// the properties below are optional
binaryValue: 'binaryValue',
stringValue: 'stringValue',
};
Properties
binaryValueoptionalstringbinary_valueoptionalstrbinaryValueoptionalStringBinaryValueoptionalstringBinaryValueoptional*string#The attribute value for the Binary data type, Base64-encoded.
The attribute data type.
For Amazon SQS targets, specify String, Number, or Binary, optionally with a custom label suffix such as Number.float. For Amazon SNS targets, specify String, String.Array, Number, or Binary.
stringValueoptionalstringstring_valueoptionalstrstringValueoptionalStringStringValueoptionalstringStringValueoptional*string#The attribute value for the String and Number data types (and String.Array for Amazon SNS targets).