1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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!
beantwortet vor einem Monat
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 7 Monaten
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren