Skip to content

(@aws-cdk/aws-events): EventPattern type does not support using content-based filtering #13330

@jscott-resilient

Description

@jscott-resilient

There is no type support for content based filtering unless I've missed some documentation (please provide a link if there is any!)

Reproduction Steps

The code snippet below shows a type error complaining about "resources" not being of type string[]

Screenshot 2021-03-01 at 17 04 44

to work around this I did the following:

Screenshot 2021-03-01 at 17 05 24

After building the stack and looking in AWS console, the expected event pattern was created and the events matched as expected, so updating the type is all that is needed.

Environment

  • aws-cdk/events: 1.91.0
  • typescript: 4.2.2

This is 🐛 Bug Report

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eventsRelated to CloudWatch Eventseffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions