Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
How is the return object in a Python-AWS lambda used?

In lambda function templates appear the return object

def lambda_handler(event, context):
   
    return {
        "statusCode": 200,
        "body": json.dumps({
            "message": "hello world 2",
        }),
    }

I couldn't find any documentation about how this object is used.

  • How must be configured?
  • What fields are mandatory?
  • When and how is it used? Can be consumed by other services?
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You do not need to return any value, but some calling systems want a response.

For example, if the Lambda function is invoked by API Gateway, it needs to send a response back to the original caller. See: Handle Lambda errors in API Gateway

It can also be used to pass back details errors: AWS Lambda function errors in Python

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!