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/utilities/parser.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -291,7 +291,7 @@ Here's an example of parsing a model found in an event coming from EventBridge,
291
291
4. Parser then parsed the `detail` key using `UserModel`
292
292
293
293
294
-
### built-in envelopes
294
+
### Built-in envelopes
295
295
296
296
Parser comes with the following built-in envelopes, where `Model` in the return section is your given model.
297
297
@@ -304,8 +304,9 @@ Parser comes with the following built-in envelopes, where `Model` in the return
304
304
|**KinesisDataStreamEnvelope**| 1. Parses data using `KinesisDataStreamModel` which will base64 decode it. <br/> 2. Parses records in in `Records` key using your model and returns them in a list. |`List[Model]`|
305
305
|**SnsEnvelope**| 1. Parses data using `SnsModel`. <br/> 2. Parses records in `body` key using your model and return them in a list. |`List[Model]`|
306
306
|**SnsSqsEnvelope**| 1. Parses data using `SqsModel`. <br/> 2. Parses SNS records in `body` key using `SnsNotificationModel`. <br/> 3. Parses data in `Message` key using your model and return them in a list. |`List[Model]`|
307
-
|**ApiGatewayEnvelope** 1. Parses data using `APIGatewayProxyEventModel`. <br/> 2. Parses `body` key using your model and returns it. |`Model`|
308
-
### bringing your own envelope
307
+
|**ApiGatewayEnvelope**| 1. Parses data using `APIGatewayProxyEventModel`. <br/> 2. Parses `body` key using your model and returns it. |`Model`|
308
+
309
+
### Bringing your own envelope
309
310
310
311
You can create your own Envelope model and logic by inheriting from `BaseEnvelope`, and implementing the `parse` method.
0 commit comments