lambdafunction

Lambda event

class awsmate.lambdafunction.LambdaEvent(event_object: dict)

Bases: object

Superclass of input events received by AWS Lambda functions triggered by the various AWS services.

Without being abstract, this class has no other public method than LambdaEvent.__init__().

Parameters:

event_object (dict) – The parameter event received by the AWS Lambda function handler.

Raises:

TypeError – If event_object is not a dict.

Examples

>>> def lambda_handler(raw_event, context):
>>>     from awsmate.lambdafunction import LambdaEvent
>>>     event = LambdaEvent(raw_event)