Skip to content

Commit 39c1fda

Browse files
Update aws_lambda_powertools/utilities/data_classes/kinesis_stream_event.py
Co-authored-by: Leandro Damascena <[email protected]> Signed-off-by: kiitosu <[email protected]>
1 parent 81e8dfb commit 39c1fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/data_classes/kinesis_stream_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def state(self) -> dict:
136136

137137
@property
138138
def shard_id(self) -> str | None:
139-
return self["shardId"]
139+
return self.get("shardId")
140140

141141
@property
142142
def event_source_arn(self) -> str:

0 commit comments

Comments
 (0)