1 回答
- 最新
- 投票最多
- 评论最多
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!
已回答 2 个月前
相关内容
- AWS 官方已更新 2 年前