adding data_as_bytes to KinesisStreamRecordPayload #617
Labels
feature-request
feature request
good first issue
Good for newcomers
help wanted
Could use a second pair of eyes/hands
p3
Is your feature request related to a problem? Please describe.
currently the
KinesisStreamRecordPayload
hasdata_as_text
anddata_as_json
helpers which are useful for deserialising text/json payload; however, we can have gzipped payload (e.g., from cloudwatch logs) which we don't want to convert tostr
but still want to leverage the dataclass to do the base64 decodeDescribe the solution you'd like
a
data_as_bytes
method inKinesisStreamRecordPayload
Describe alternatives you've considered
Another custom wrapper class, or just getting the
record.kinesis.data
attribute then do the base64 decode; but both are not as clean as having a helper onKinesisStreamRecordPayload
Additional context
N/A
The text was updated successfully, but these errors were encountered: