AWS SDK Version 2 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.

.NET Framework 3.5
 
Returns a signed URL that provides tailored access to private content based on an access time window and an ip range.

Namespace: Amazon.CloudFront
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public String GetCustomSignedURL(
         String resourceUrlOrPath,
         TextReader privateKey,
         String keyPairId,
         DateTime expiresOn,
         DateTime activeFrom,
         String ipRange
)

Parameters

resourceUrlOrPath
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.

privateKey
Type: System.IO.TextReader

Your private key file. RSA private key (.pem) are supported.

keyPairId
Type: System.String

The key pair id corresponding to the private key file given

expiresOn
Type: System.DateTime

The expiration date of the signed URL

activeFrom
Type: System.DateTime

The beginning valid date of the signed URL

ipRange
Type: System.String

The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).

Return Value
Type: System.String
The signed URL.

Version Information

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