You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/upgrade.md
+87
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ The transition from Powertools for Python v1 to v2 is as painless as possible, a
11
11
Changes at a glance:
12
12
13
13
* The API for **event handler's `Response`** has minor changes to support multi value headers and cookies.
14
+
* The **legacy SQS batch processor** was removed.
14
15
15
16
???+ important
16
17
Powertools for Python v2 drops suport for Python 3.6, following the Python 3.6 End-Of-Life (EOL) reached on December 23, 2021.
@@ -55,3 +56,89 @@ def get_todos():
55
56
cookies=["CookieName=CookieValue"]
56
57
)
57
58
```
59
+
60
+
## Legacy SQS Batch Processor
61
+
62
+
The deprecated `PartialSQSProcessor` and `sqs_batch_processor` were removed.
63
+
You can migrate to the [native batch processing](https://aws.amazon.com/about-aws/whats-new/2021/11/aws-lambda-partial-batch-response-sqs-event-source/) capability by:
64
+
65
+
1. If you use **`sqs_batch_decorator`** you can now use **`batch_processor`** decorator
66
+
2. If you use **`PartialSQSProcessor`** you can now use **`BatchProcessor`**
67
+
3. [Enable the functionality](../utilities/batch#required-resources) on SQS
68
+
4. Change your Lambda Handler to return the new response format
69
+
70
+
=== "Decorator: Before"
71
+
72
+
```python hl_lines="1 6"
73
+
from aws_lambda_powertools.utilities.batch import sqs_batch_processor
0 commit comments