Skip to content

Commit

Permalink
docs(packages): rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
keithalpichi committed Mar 22, 2022
1 parent 58321e4 commit ab7d755
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @aws-sdk/cloudfront-request-presigner
# @aws-sdk/cloudfront-sign

This package provides a presigner based on a CloudFront trusted key group key pair to generate signed urls and cookies for accessing private content on CloudFront.
This package provides functions to generate signed urls and cookies for accessing private content on CloudFront based on a CloudFront trusted key group key pair.

> Please note the process for creating a pre-signed URL with Cloudfront is very different than the process for S3. For more information, please visit the documentation for [restricting CloudFront content with signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
Expand All @@ -9,7 +9,7 @@ This package provides a presigner based on a CloudFront trusted key group key pa
JavaScript Example:

```javascript
const { signUrl } = require("@aws-sdk/cloudfront-request-presigner");
const { signUrl } = require("@aws-sdk/cloudfront-sign");
const cloudfrontDistributionDomain = "https://d111111abcdef8.cloudfront.net";
const s3ObjectKey = "private-content/private.jpeg";
const url = `${cloudfrontDistributionDomain}/${s3ObjectKey}`;
Expand All @@ -27,7 +27,7 @@ const signedUrl = signUrl({
ES6 Example

```javascript
import { signUrl } from "@aws-sdk/cloudfront-request-presigner";
import { signUrl } from "@aws-sdk/cloudfront-sign";
const cloudfrontDistributionDomain = "https://d111111abcdef8.cloudfront.net";
const s3ObjectKey = "private-content/private.jpeg";
const url = `${cloudfrontDistributionDomain}/${s3ObjectKey}`;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@aws-sdk/cloudfront-request-presigner",
"name": "@aws-sdk/cloudfront-sign",
"version": "0.0.1",
"scripts": {
"prepublishOnly": "yarn build:cjs && yarn build:es",
Expand Down Expand Up @@ -38,10 +38,10 @@
]
}
},
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/cloudfront-request-presigner",
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/cloudfront-sign",
"repository": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-js-v3.git",
"directory": "packages/cloudfront-request-presigner"
"directory": "packages/cloudfront-sign"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ab7d755

Please sign in to comment.