File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
aws_lambda_powertools/utilities/parser/envelopes Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11from .base import BaseEnvelope
2- from .cloudwatch import CloudatchLogsEnvelope
2+ from .cloudwatch import CloudWatchLogsEnvelope
33from .dynamodb import DynamoDBStreamEnvelope
44from .event_bridge import EventBridgeEnvelope
55from .sns import SnsEnvelope
66from .sqs import SqsEnvelope
77
88__all__ = [
9- "CloudatchLogsEnvelope " ,
9+ "CloudWatchLogsEnvelope " ,
1010 "DynamoDBStreamEnvelope" ,
1111 "EventBridgeEnvelope" ,
1212 "SnsEnvelope" ,
Original file line number Diff line number Diff line change 88logger = logging .getLogger (__name__ )
99
1010
11- class CloudatchLogsEnvelope (BaseEnvelope ):
12- """Cloudatch Envelope to extract a List of log records.
11+ class CloudWatchLogsEnvelope (BaseEnvelope ):
12+ """CloudWatch Envelope to extract a List of log records.
1313
14- The record's body parameter is a string (after being base64 decoded and gzipped),
14+ The record's body parameter is a string (after being base64 decoded and gzipped),
1515 though it can also be a JSON encoded string.
1616 Regardless of its type it'll be parsed into a BaseModel object.
1717
Original file line number Diff line number Diff line change 1212from tests .functional .parser .utils import load_event
1313
1414
15- @event_parser (model = MyCloudWatchBusiness , envelope = envelopes .CloudatchLogsEnvelope )
15+ @event_parser (model = MyCloudWatchBusiness , envelope = envelopes .CloudWatchLogsEnvelope )
1616def handle_cloudwatch_logs (event : List [MyCloudWatchBusiness ], _ : LambdaContext ):
1717 assert len (event ) == 1
1818 log : MyCloudWatchBusiness = event [0 ]
You can’t perform that action at this time.
0 commit comments