We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9498101 commit 1b8bae0Copy full SHA for 1b8bae0
lambdas/id_sync/src/id_sync.py
@@ -1,3 +1,11 @@
1
+"""
2
+- Parses the incoming AWS event into `AwsLambdaEvent` and iterate its `records`.
3
+- Delegate each record to `process_record` and collect `nhs_number` from each result.
4
+- If any record has status == "error" raise `IdSyncException` with aggregated nhs_numbers.
5
+- Any unexpected error is wrapped into `IdSyncException(message="Error processing id_sync event")`.
6
7
+
8
+from typing import Any, Dict
9
from common.aws_lambda_event import AwsLambdaEvent
10
from common.clients import logger, STREAM_NAME
11
from common.log_decorator import logging_decorator
0 commit comments