File tree 2 files changed +3
-3
lines changed
aws_lambda_powertools/logging
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
APPSYNC_RESOLVER = 'request.headers."x-amzn-trace-id"'
6
6
APPLICATION_LOAD_BALANCER = 'headers."x-amzn-trace-id"'
7
7
EVENT_BRIDGE = "id"
8
- S3_LAMBDA_OBJECT = "xAmzRequestId"
8
+ S3_OBJECT_LAMBDA = "xAmzRequestId"
Original file line number Diff line number Diff line change @@ -557,12 +557,12 @@ This example is based on the AWS Blog post [Introducing Amazon S3 Object Lambda
557
557
```python hl_lines="4 8 10"
558
558
import requests
559
559
from aws_lambda_powertools import Logger
560
- from aws_lambda_powertools.logging.correlation_paths import S3_LAMBDA_OBJECT
560
+ from aws_lambda_powertools.logging.correlation_paths import S3_OBJECT_LAMBDA
561
561
from aws_lambda_powertools.utilities.data_classes.s3_object_event import S3ObjectLambdaEvent
562
562
563
563
logger = Logger()
564
564
565
- @logger.inject_lambda_context(correlation_id_path=S3_LAMBDA_OBJECT , log_event=True)
565
+ @logger.inject_lambda_context(correlation_id_path=S3_OBJECT_LAMBDA , log_event=True)
566
566
def lambda_handler(event, context):
567
567
event = S3ObjectLambdaEvent(event)
568
568
You can’t perform that action at this time.
0 commit comments