I'm uploading files to my bucket, I want the ability to filter events before my inflight function is triggered.
bucket.onCreate(inflight (key: str) => {
// inflight function is triggered for all files in the bucket
});
Proposed Solution
bucket.onCreate(inflight (key: str) => {
// inflight function is only triggered on matches
}, { prefix: 'uploads/', suffix: '.png' });
When setting a Lambda destination for S3 events, you can filter by the prefix or suffix. Our abstraction could use the same functionality, although I'm not sure how Azure or Google would handle this!?
Random other note, but maybe filters with code would be useful here too? Ability to filter events before the inflight is triggered? Although when it compiles into the cloud I'm not actually sure how this would work....
Implementation Notes
No response
Component
No response
Community Notes
Please vote by adding a 👍 reaction to the issue to help us prioritize.
If you are interested to work on this issue, please leave a comment.
If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Discord.
Use Case
I'm uploading files to my bucket, I want the ability to filter events before my inflight function is triggered.
Proposed Solution
When setting a Lambda destination for S3 events, you can filter by the prefix or suffix. Our abstraction could use the same functionality, although I'm not sure how Azure or Google would handle this!?
Random other note, but maybe filters with code would be useful here too? Ability to filter events before the inflight is triggered? Although when it compiles into the cloud I'm not actually sure how this would work....
Implementation Notes
No response
Component
No response
Community Notes