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
public CookiesForCannedPolicy GetCookiesForCannedPolicy(
AmazonCloudFrontCookieSigner.Protocols protocol,
String distributionDomain,
FileSystemInfo privateKey,
String resourcePath,
String keyPairId,
DateTime expiresOn
)
The protocol used to access content using signed cookies.
The domain name of the distribution.
The private key file. RSA private key (.pem) are supported.
The path for the resource.
The key pair id corresponding to the private key file given.
The expiration date till which content can be accessed using the generated cookies.
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5