File tree 3 files changed +6
-6
lines changed
aws_lambda_powertools/utilities/parser/envelopes
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
from .base import BaseEnvelope
2
- from .cloudwatch import CloudatchLogsEnvelope
2
+ from .cloudwatch import CloudWatchLogsEnvelope
3
3
from .dynamodb import DynamoDBStreamEnvelope
4
4
from .event_bridge import EventBridgeEnvelope
5
5
from .sns import SnsEnvelope
6
6
from .sqs import SqsEnvelope
7
7
8
8
__all__ = [
9
- "CloudatchLogsEnvelope " ,
9
+ "CloudWatchLogsEnvelope " ,
10
10
"DynamoDBStreamEnvelope" ,
11
11
"EventBridgeEnvelope" ,
12
12
"SnsEnvelope" ,
Original file line number Diff line number Diff line change 8
8
logger = logging .getLogger (__name__ )
9
9
10
10
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.
13
13
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),
15
15
though it can also be a JSON encoded string.
16
16
Regardless of its type it'll be parsed into a BaseModel object.
17
17
Original file line number Diff line number Diff line change 12
12
from tests .functional .parser .utils import load_event
13
13
14
14
15
- @event_parser (model = MyCloudWatchBusiness , envelope = envelopes .CloudatchLogsEnvelope )
15
+ @event_parser (model = MyCloudWatchBusiness , envelope = envelopes .CloudWatchLogsEnvelope )
16
16
def handle_cloudwatch_logs (event : List [MyCloudWatchBusiness ], _ : LambdaContext ):
17
17
assert len (event ) == 1
18
18
log : MyCloudWatchBusiness = event [0 ]
You can’t perform that action at this time.
0 commit comments