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: docs/core/event_handler/appsync.md
+112Lines changed: 112 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -598,6 +598,118 @@ Use the following code for `merchantInfo` and `searchMerchant` functions respect
598
598
}
599
599
```
600
600
601
+
### Custom data models
602
+
603
+
You can subclass `AppSyncResolverEvent` to bring your own set of methods to handle incoming events, by using `data_model` param in the `resolve` method.
604
+
605
+
606
+
=== "custom_model.py"
607
+
608
+
```python hl_lines="11-14 19 26"
609
+
from aws_lambda_powertools import Logger, Tracer
610
+
611
+
from aws_lambda_powertools.logging import correlation_paths
612
+
from aws_lambda_powertools.event_handler import AppSyncResolver
0 commit comments