Redirect to a new URL in a CloudFront Functions viewer request event
The following code example shows how to redirect to a new URL in a CloudFront Functions viewer request event.
For a complete list of AWS SDK developer guides and code examples, see Using CloudFront with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.