interface AWSEventMetadataProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWSEventMetadataProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2#AWSEventMetadataProps |
Java | software.amazon.awscdk.AWSEventMetadataProps |
Python | aws_cdk.AWSEventMetadataProps |
TypeScript (source) | aws-cdk-lib » AWSEventMetadataProps |
Properties for AWS EventBridge event metadata.
Example
import { BucketEvents } from '@aws-cdk/mixins-preview/aws-s3/events';
import * as events from 'aws-cdk-lib/aws-events';
declare const bucket: s3.Bucket;
const bucketEvents = BucketEvents.fromBucket(bucket);
const pattern = bucketEvents.objectCreatedPattern({
eventMetadata: {
region: events.Match.prefix('us-'),
version: ['0']
}
});
Properties
| Name | Type | Description |
|---|---|---|
| region? | string[] | Identifies the AWS region where the event originated. |
| resources? | string[] | This JSON array contains ARNs that identify resources that are involved in the event. |
| version? | string[] | By default, this is set to 0 (zero) in all events. |
region?
Type:
string[]
(optional, default: No filtering on region)
Identifies the AWS region where the event originated.
resources?
Type:
string[]
(optional, default: No filtering on resource)
This JSON array contains ARNs that identify resources that are involved in the event.
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?
Type:
string[]
(optional, default: No filtering on version)
By default, this is set to 0 (zero) in all events.

.NET
Go
Java
Python
TypeScript (