We announced the upcoming
end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3.
For dates, additional details, and information on how to migrate, please refer to the linked announcement.
Class: AWS.CloudFront.Signer
- Inherits:
-
Object
- Object
- AWS.CloudFront.Signer
- Defined in:
- lib/cloudfront/signer.js
Constructor Summary collapse
-
new AWS.CloudFront.Signer(keyPairId, privateKey) ⇒ void
constructor
A signer object can be used to generate signed URLs and cookies for granting access to content on restricted CloudFront distributions.
Method Summary collapse
-
getSignedCookie(options, cb) ⇒ Object?
Create a signed Amazon CloudFront Cookie.
-
getSignedUrl(options, cb) ⇒ String?
Create a signed Amazon CloudFront URL.
Constructor Details
new AWS.CloudFront.Signer(keyPairId, privateKey) ⇒ void
A signer object can be used to generate signed URLs and cookies for granting access to content on restricted CloudFront distributions.
Method Details
getSignedCookie(options, cb) ⇒ Object?
Create a signed Amazon CloudFront Cookie.
getSignedUrl(options, cb) ⇒ String?
Create a signed Amazon CloudFront URL.
Keep in mind that URLs meant for use in media/flash players may have
different requirements for URL formats (e.g. some require that the
extension be removed, some require the file name to be prefixed
- mp4: