Skip to content

Commit a520b66

Browse files
authored
Change bool to BOOL index name when accessing boolean value in dynamodb. (#176)
It seems that when accessing boolean value from dynamodb index name `bool` is used instead of correct one `BOOL`. Have a look at https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html to see list of available attribute values
1 parent aeb52c9 commit a520b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def bool_value(self) -> Optional[bool]:
3535
Example:
3636
>>> {"BOOL": True}
3737
"""
38-
item = self.get("bool")
38+
item = self.get("BOOL")
3939
return None if item is None else bool(item)
4040

4141
@property

0 commit comments

Comments
 (0)