AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Generate a signed URL that allows access to distribution and resource path by applying access restrictions specified in a custom policy document.

Namespace: Amazon.CloudFront
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z


public String SignUrl(
         String resourceUrlOrPath,
         String keyPairId,
         TextReader privateKey,
         String policy
Type: System.String

The URL or path that uniquely identifies a resource within a distribution. For standard distributions the resource URL will be "http://" + distributionName + "/" + path (may also include URL parameters. For distributions with the HTTPS required protocol, the resource URL must start with "https://". RTMP resources do not take the form of a URL, and instead the resource path is nothing but the stream's name.

Type: System.String

Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.

Type: System.IO.TextReader

The RSA private key data that corresponding to the certificate keypair identified by keyPairId.

Type: System.String

A policy document that describes the access permissions that will be applied by the signed URL. To generate a custom policy use

Return Value
Type: String
A signed URL that will permit access to distribution and S3 objects as specified in the policy document.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5