1 Answer
- Newest
- Most votes
- Most comments
1
I found a way to do it using Content-based filtering with $or matching.
Documentation is still unclear about the specific use case but after a couple of trials and errors I got it working by declaring the event pattern like this:
{
"source": ["aws.s3"],
"detail-type": ["Object Created"],
"detail": {
"bucket": {
"name": ["some-bucket"]
},
"$or": [
{
"object": {
"key": [{
"prefix": "some-prefix/"
}]
}
},
{
"object": {
"key": [{
"prefix": "some-other-prefix/"
}]
}
}
]
}
}
Hope it helps!
answered 11 days ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 6 months ago