Code examples for creating a signature for a signed URL - Amazon CloudFront
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Code examples for creating a signature for a signed URL

This section includes downloadable application examples that demonstrate how to create signatures for signed URLs. Examples are available in Perl, PHP, C#, and Java. You can use any of the examples to create signed URLs. The Perl script runs on Linux and macOS platforms. The PHP example will work on any server that runs PHP. The C# example uses the .NET Framework.

For example code in JavaScript (Node.js), see Creating Amazon CloudFront Signed URLs in Node.js on the Amazon Developer Blog.

For example code in Python, see Generate a signed URL for Amazon CloudFront in the Amazon SDK for Python (Boto3) API Reference and this example code in the Boto3 GitHub repository.