Skip to content

Commit b8ce25b

Browse files
author
Michael Brewer
committed
Merge branch 'develop' into feat-code-pipeline-event
2 parents 049dd9e + bd1dbf0 commit b8ce25b

File tree

5 files changed

+24
-10
lines changed

5 files changed

+24
-10
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) fo
88

99
## [Unreleased]
1010

11+
## [1.15.0] - 2021-05-06
12+
13+
### Added
14+
15+
* **Event handlers**: New API Gateway and ALB utility to reduce routing boilerplate and more
16+
* **Documentation**: Logger enhancements such as bring your own formatter, handler, UTC support, and testing for Python 3.6
17+
* **Parser**: Support for API Gateway REST Proxy event and envelope
18+
* **Logger**: Support for bringing custom formatter, custom handler, custom JSON serializer and deserializer, UTC support, expose `LambdaPowertoolsFormatter`
19+
* **Metrics**: Support for persisting default dimensions that should always be added
20+
21+
### Fixed
22+
23+
* **Documentation**: Fix highlights, Parser types
24+
* **Validator**: Fix event type annotations for `validate` standalone function
25+
* **Parser**: Improve and fix types
26+
* **Internal**: Remove X-Ray SDK version pinning as serialization regression has been fixed in 2.8.0
27+
* **Internal**: Latest documentation correctly includes a copy of API docs reference
28+
1129
## [1.14.0] - 2021-04-09
1230

1331
### Added

docs/core/event_handler/api_gateway.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ description: Core utility
55

66
Event handler for Amazon API Gateway REST/HTTP APIs and Application Loader Balancer (ALB).
77

8-
!!! info "This is currently in Beta as we want to hear feedback on UX."
9-
108
### Key Features
119

1210
* Lightweight routing to reduce boilerplate for API Gateway REST/HTTP API and ALB
@@ -269,7 +267,7 @@ You can use `/path/{dynamic_value}` when configuring dynamic URL paths. This all
269267
@app.get("/hello/<name>")
270268
@tracer.capture_method
271269
def get_hello_you(name):
272-
return {"message": f"hello {name}}"}
270+
return {"message": f"hello {name}"}
273271

274272
# You can continue to use other utilities just as before
275273
@logger.inject_lambda_context(correlation_id_path=correlation_paths.API_GATEWAY_REST)

docs/utilities/idempotency.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ title: Idempotency
33
description: Utility
44
---
55

6-
!!! attention
7-
**This utility is currently in beta**. Please open an [issue in GitHub](https://github.com/awslabs/aws-lambda-powertools-python/issues/new/choose) for any bugs or feature requests.
8-
96
The idempotency utility provides a simple solution to convert your Lambda functions into idempotent operations which
107
are safe to retry.
118

docs/utilities/parser.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Here's an example of parsing a model found in an event coming from EventBridge,
291291
4. Parser then parsed the `detail` key using `UserModel`
292292

293293

294-
### built-in envelopes
294+
### Built-in envelopes
295295

296296
Parser comes with the following built-in envelopes, where `Model` in the return section is your given model.
297297

@@ -304,8 +304,9 @@ Parser comes with the following built-in envelopes, where `Model` in the return
304304
| **KinesisDataStreamEnvelope** | 1. Parses data using `KinesisDataStreamModel` which will base64 decode it. <br/> 2. Parses records in in `Records` key using your model and returns them in a list. | `List[Model]` |
305305
| **SnsEnvelope** | 1. Parses data using `SnsModel`. <br/> 2. Parses records in `body` key using your model and return them in a list. | `List[Model]` |
306306
| **SnsSqsEnvelope** | 1. Parses data using `SqsModel`. <br/> 2. Parses SNS records in `body` key using `SnsNotificationModel`. <br/> 3. Parses data in `Message` key using your model and return them in a list. | `List[Model]` |
307-
| **ApiGatewayEnvelope** 1. Parses data using `APIGatewayProxyEventModel`. <br/> 2. Parses `body` key using your model and returns it. | `Model` |
308-
### bringing your own envelope
307+
| **ApiGatewayEnvelope** | 1. Parses data using `APIGatewayProxyEventModel`. <br/> 2. Parses `body` key using your model and returns it. | `Model` |
308+
309+
### Bringing your own envelope
309310

310311
You can create your own Envelope model and logic by inheriting from `BaseEnvelope`, and implementing the `parse` method.
311312

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aws_lambda_powertools"
3-
version = "1.14.0"
3+
version = "1.15.0"
44
description = "Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric"
55
authors = ["Amazon Web Services"]
66
include = ["aws_lambda_powertools/py.typed"]

0 commit comments

Comments
 (0)