We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b2b99d + 126ab2a commit 54d2684Copy full SHA for 54d2684
lasp_opensearch_data_center/constructs/backend_storage.py
@@ -10,6 +10,8 @@
10
aws_s3_notifications as s3_notify,
11
)
12
13
+from aws_cdk.aws_s3 import NotificationKeyFilter
14
+
15
16
class BackendStorageConstruct(Construct):
17
"""Construct containing standard resources used by the data center back end, including notification mechanisms
@@ -102,7 +104,8 @@ def __init__(
102
104
# Send files from dropbox bucket into SQS
103
105
self.dropbox_bucket.add_event_notification(
106
s3.EventType.OBJECT_CREATED,
- s3_notify.SqsDestination(self.dropbox_queue)
107
+ s3_notify.SqsDestination(self.dropbox_queue),
108
+ s3.NotificationKeyFilter(prefix="received_files/")
109
110
111
# Create DLQ
0 commit comments