Difference between revisions of "Lambda handler"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{lowercase}}
 +
https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html
  
[[def]] lambda_handler(event, context):
+
* <code>[[def]] lambda_handler(event, context):</code>
  
  
 
* [[HTTP redirect using lambda_handler]] (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-http-redirect)
 
* [[HTTP redirect using lambda_handler]] (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-http-redirect)
<pre>
+
 
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
 
</pre>
 
  
  
 
== See also ==
 
== See also ==
 +
* {{Boto}}
 
* {{AWS Lambda}}
 
* {{AWS Lambda}}
 +
 +
[[Category:AWS]]

Latest revision as of 01:23, 3 March 2022

Advertising: