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 signed cookies that grants universal access to private content until a given date.

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

Syntax

C#
public CookiesForCannedPolicy GetCookiesForCannedPolicy(
         AmazonCloudFrontCookieSigner.Protocols protocol,
         String distributionDomain,
         FileSystemInfo privateKey,
         String resourcePath,
         String keyPairId,
         DateTime expiresOn
)
Parameters
protocol
Type: Amazon.CloudFront.AmazonCloudFrontCookieSigner.Protocols

The protocol used to access content using signed cookies.

distributionDomain
Type: System.String

The domain name of the distribution.

privateKey
Type: System.IO.FileSystemInfo

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

resourcePath
Type: System.String

The path for the resource.

keyPairId
Type: System.String

The key pair id corresponding to the private key file given.

expiresOn
Type: System.DateTime

The expiration date till which content can be accessed using the generated cookies.

Return Value
The signed cookies.

Version Information

.NET Standard:
Supported in: 1.3

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