We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 680ee69 commit 6cddf76Copy full SHA for 6cddf76
aws_lambda_powertools/utilities/batch/sqs.py
@@ -4,18 +4,20 @@
4
Batch SQS utilities
5
"""
6
7
-from typing import List
+from typing import List, Optional
8
9
import boto3
10
+from botocore.config import Config
11
12
from aws_lambda_powertools.middleware_factory import lambda_handler_decorator
13
14
from .base import BasePartialProcessor
15
16
17
class PartialSQSProcessor(BasePartialProcessor):
- def __init__(self):
18
- self.client = boto3.client("sqs")
+ def __init__(self, config: Optional[Config] = None):
19
+ config = config or Config()
20
+ self.client = boto3.client("sqs", config=config)
21
self.success_messages: List = []
22
self.fail_messages: List = []
23
0 commit comments