What is the meaning of def lambda_handler(event, context):

0 votes
Can someone help me with the explanation of

def lambda_handler(event, context): in brief as I am new to lambda function and unable to understand the use of this statement.

Thank you in advance.
Dec 27, 2018 in AWS by Sradha
• 1,710 points
539 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey @sradha, 

def lambda_handler(event, context): 

Here def is for defining a function with a handler name as lambda_handler, it can be anything depending on your use. 

event :- this is the type of data that is being passed to your handler. Generally it is of python dict type but again it can be of any type. 

context:- this is used to provide runtime information to your handler. This is of LambdaContext type.

for more details on this refer this documentation from amazon.

answered Dec 27, 2018 by Nabarupa

Related Questions In AWS

0 votes
1 answer

What is the maximum storage capacity of a node in Redshift?

You can create a cluster using either ...READ MORE

answered Oct 26, 2018 in AWS by Archana
• 5,360 points
73 views
0 votes
1 answer

What is the benfits of using Elastic Load Balancer in VPC?

Hello, @Jino. Talking about the Load Balancer, it ...READ MORE

answered Nov 20, 2018 in AWS by Priyaj
• 56,120 points
87 views
0 votes
1 answer

What is the use of AWS OpsWork?

AWS OpsWorks is a configuration management service ...READ MORE

answered Dec 14, 2018 in AWS by Tushar
26 views
0 votes
1 answer
0 votes
1 answer
+3 votes
12 answers

AWS VPC - What is the difference between Internet Gateway & NAT

Internet Gateway An Internet Gateway is a logical connection ...READ MORE

answered Apr 24, 2018 in AWS by Flying geek
• 3,130 points
5,455 views
0 votes
1 answer

What is the difference between Amazon Cloudfront and S3

major difference is that cloudfront allows you ...READ MORE

answered Jul 9, 2018 in AWS by Priyaj
• 56,120 points
69 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.