# MessageAttributeValueProperty

A message attribute value and its data type, for Amazon SQS and Amazon SNS targets.

- Source: Generated code
- Type last changed: v2.275.0 · 26 Oct 2026

## 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

- `binaryValue`: string — The attribute value for the Binary data type, Base64-encoded.

- `dataType`: string (required) — 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.

- `stringValue`: string — The attribute value for the String and Number data types (and String.Array for Amazon SNS targets).
