cloudtools / troposphere

troposphere - Python library to create AWS CloudFormation descriptions
BSD 2-Clause "Simplified" License
4.93k stars 1.45k forks source link

add FilterCriteria to serverless/KinesisEvent #2235

Closed InQuirer closed 5 months ago

InQuirer commented 5 months ago

AWS docs/ref:

fixes error:

Function(
    title='MyLambdaFunction',
    Events={
        "KinesisEvent": KinesisEvent(
            title="KinesisEvent",
            Stream='arn:aws:kinesis:us-east-1:123456789012:stream/my-stream',
            StartingPosition=TRIM_HORIZON,
            FilterCriteria=FilterCriteria(  # this change allows to add filters
                Filters=[
                    Filter(Pattern='{"key": ["val1", "val2"]}'),
                ]
            ),
        )
    }
)
markpeek commented 5 months ago

Thanks!