interface FilterProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EventsV2.CfnSubscriber.FilterProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseventsv2#CfnSubscriber_FilterProperty |
Java | software.amazon.awscdk.services.eventsv2.CfnSubscriber.FilterProperty |
Python | aws_cdk.aws_eventsv2.CfnSubscriber.FilterProperty |
TypeScript | aws-cdk-lib » aws_eventsv2 » CfnSubscriber » FilterProperty |
A single filter entry: an event pattern and the scope of the event it is evaluated against.
Example
// 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 filterProperty: eventsv2.CfnSubscriber.FilterProperty = {
pattern: 'pattern',
scope: 'scope',
};
Properties
| Name | Type | Description |
|---|---|---|
| pattern | string | The event pattern, as a JSON string. |
| scope | string | Which part of the event the pattern is evaluated against: DATA (the event payload), METADATA (event metadata), or SYSTEM_METADATA (service-generated metadata). |
pattern
Type:
string
The event pattern, as a JSON string.
scope
Type:
string
Which part of the event the pattern is evaluated against: DATA (the event payload), METADATA (event metadata), or SYSTEM_METADATA (service-generated metadata).

.NET
Go
Java
Python
TypeScript