Add index.html to request URLs without a file name in a CloudFront Functions viewer request event
The following code example shows how to add index.html to request URLs without a file name 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.