diff --git a/CHANGELOG.md b/CHANGELOG.md index 4298915a309..5deb6a8d9b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.6.1] - 2020-09-23 + +### Fixed +- **Utilities**: Fix issue with boolean values in DynamoDB stream event data class. + ## [1.6.0] - 2020-09-22 ### Added diff --git a/aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py b/aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py index db581ceaf7d..bc3a4a82995 100644 --- a/aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py +++ b/aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py @@ -35,7 +35,7 @@ def bool_value(self) -> Optional[bool]: Example: >>> {"BOOL": True} """ - item = self.get("bool") + item = self.get("BOOL") return None if item is None else bool(item) @property diff --git a/pyproject.toml b/pyproject.toml index 803b200a0c9..78f501c9227 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aws_lambda_powertools" -version = "1.6.0" +version = "1.6.1" description = "Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric" authors = ["Amazon Web Services"] classifiers=[