# Lambda\@Edge

* Lambda\@Edge lets you run Node.js and Python Lambda functions to customize content that CloudFront delivers, **executing the functions in AWS locations closer to the viewer**.\\

* You can **use Lambda functions to change CloudFront requests and responses at the following points:**\\

  * **After CloudFront receives a request from a viewer** (viewer request)\\

  * **Before CloudFront forwards the request to the origin** (origin request)\\

  * **After CloudFront receives the response from the origin** (origin response)\\

  * **Before CloudFront forwards the response to the viewer** (viewer response)

![](https://40640462-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQ39nPAiP6LTprAFu1T%2F-MSG3SBZ_tkKDkIzvwcM%2F-MSJol7MfSKombEJejtj%2Fimage.png?alt=media\&token=6761cfaf-b6ad-43f5-947d-472653844a31)
