There are more AWS SDK examples available in the AWS Doc SDK Examples
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.
View a markdown version of this page
There are more AWS SDK examples available in the AWS Doc SDK Examples
The following code example shows how to redirect to a new URL in a CloudFront Functions viewer request event.