Difference between revisions of "Lambda handler"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
+
*<code>[[def]] lambda_handler(event, context):</code>
[[def]] lambda_handler(event, context):
 
  
  
Line 26: Line 25:
 
== See also ==
 
== See also ==
 
* {{AWS Lambda}}
 
* {{AWS Lambda}}
 +
 +
[[Category:AWS]]

Revision as of 13:32, 27 August 2021

  • def lambda_handler(event, context):


 def lambda_handler(event, context):
 
     # Generate HTTP redirect response with 302 status code and Location header.
     
     response = {
         'status': '302',
         'statusDescription': 'Found',
         'headers': {
             'location': [{
                 'key': 'Location',
                 'value': 'http://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html'
             }]
         }
     }
     
     return response


See also

Advertising: