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.

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.CloudFront.dll
Version: 3.x.y.z

Syntax

C#
public String GetCustomSignedURL(
         AmazonCloudFrontUrlSigner.Protocol protocol,
         String distributionDomain,
         TextReader privateKey,
         String resourcePath,
         String keyPairId,
         DateTime expiresOn,
         DateTime activeFrom,
         String ipRange
)
Parameters
protocol
Type: Amazon.CloudFront.AmazonCloudFrontUrlSigner.Protocol

The protocol of the URL

distributionDomain
Type: System.String

The domain name of the distribution

privateKey
Type: System.IO.TextReader

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

resourcePath
Type: System.String

The path for the resource, or the name of the stream for rtmp

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: String
The signed URL.

Version Information

.NET Standard:
Supported in: 1.3

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