# AWSEventMetadataProps

Properties for AWS EventBridge event metadata.

- Source: [`core/lib/eventbridge.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/eventbridge.ts#L4)
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

```ts
import { BucketEvents } from '@aws-cdk/mixins-preview/aws-s3/events';
import * as events from 'aws-cdk-lib/aws-events';

const bucketEvents = BucketEvents.fromBucket(bucket);

const pattern = bucketEvents.objectCreatedPattern({
  eventMetadata: {
    region: events.Match.prefix('us-'),
    version: ['0']
  }
});
```

## Properties

- `region`: string[] — Identifies the AWS region where the event originated.

  **Default:** No filtering on region

- `resources`: string[] — This JSON array contains ARNs that identify resources that are involved in the event.

  **Default:** No filtering on resource

  Inclusion of these ARNs is at the discretion of the
  service.

  For example, Amazon EC2 instance state-changes include Amazon EC2
  instance ARNs, Auto Scaling events include ARNs for both instances and
  Auto Scaling groups, but API calls with AWS CloudTrail do not include
  resource ARNs.

- `version`: string[] — By default, this is set to 0 (zero) in all events.

  **Default:** No filtering on version
