dazza-codes / aio-aws

Asyncio utils for AWS Services
Apache License 2.0
3 stars 1 forks source link

Add lambda accessors using response and data properties #26

Closed dazza-codes closed 3 years ago

dazza-codes commented 3 years ago

Fix #18

The raw data stream is collected and accessor methods can try to parse it. Additional convenience properties can be used to inspect details of the response. If the lambda function returns something other than JSON, it should be possible to use custom parsers for the .data bytes. The consumer of any .text or .json property might have to handle JSON decoding errors.