You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: subscription/notify-lambda/src/notification_lambda.py
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,22 @@
2
2
importrequests
3
3
fromloggerimportlogger
4
4
5
-
# This lambda is triggered through a subscription to the cmr-internal-subscription-sit SNS topic. It processes the events which are notifications that get sent
5
+
# This lambda is triggered through a subscription to the cmr-internal-subscription-<env> SNS topic. It processes the events which are notifications that get sent
6
6
# to an external URL.
7
7
8
-
# Lambda's cannot handle Type hints in some cases. They are left as comments.
"""The handler is the starting point that is triggered by an SNS topic subscription with a filter that designates tha the notification sent is a URL notification. """
9
+
"""The handler is the starting point that is triggered by an SNS topic subscription with a filter that designates tha the notification sent is a URL notification.
10
+
Input: event: Dict[str, Any], context: Any
11
+
Returns: None"""
12
12
13
13
logger.debug(f"Ingest notification lambda received event: {json.dumps(event, indent=2)}")
0 commit comments