Skip to content

Commit 90224ed

Browse files
committed
rename to aws-sdk-cloudfront-signer
1 parent 9499949 commit 90224ed

17 files changed

Lines changed: 14 additions & 14 deletions

File tree

.changelog/1764870201.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ breaking: false
99
new_feature: true
1010
bug_fix: false
1111
---
12-
New utility crate `aws-sdk-cloudfront-url-signer` for generating [signed URLs and Cookies for accessing private distribution content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
12+
New utility crate `aws-sdk-cloudfront-signer` for generating [signed URLs and Cookies for accessing private distribution content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).

aws/rust-runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99
"aws-runtime-api",
1010
"aws-sigv4",
1111
"aws-types",
12-
"aws-sdk-cloudfront-url-signer"
12+
"aws-sdk-cloudfront-signer"
1313
]
1414

1515
exclude = ["aws-config"]

aws/rust-runtime/aws-sdk-cloudfront-url-signer/Cargo.toml renamed to aws/rust-runtime/aws-sdk-cloudfront-signer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "aws-sdk-cloudfront-url-signer"
2+
name = "aws-sdk-cloudfront-signer"
33
version = "0.1.0"
44
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>"]
55
description = "CloudFront URL and cookie signing utilities for AWS SDK for Rust"
File renamed without changes.

aws/rust-runtime/aws-sdk-cloudfront-url-signer/README.md renamed to aws/rust-runtime/aws-sdk-cloudfront-signer/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# aws-sdk-cloudfront-url-signer
1+
# aws-sdk-cloudfront-signer
22

33
A library for generating signed URLs and cookies for Amazon CloudFront private content.
44

@@ -52,7 +52,7 @@ See the [CloudFront Developer Guide](https://docs.aws.amazon.com/AmazonCloudFron
5252
Canned policies provide simple time-based access control with just an expiration time:
5353

5454
```rust,ignore
55-
use aws_sdk_cloudfront_url_signer::{sign_url, SigningRequest, PrivateKey};
55+
use aws_sdk_cloudfront_signer::{sign_url, SigningRequest, PrivateKey};
5656
use aws_smithy_types::DateTime;
5757
5858
// Load your CloudFront private key
@@ -93,7 +93,7 @@ let request = SigningRequest::builder()
9393
Custom policies enable advanced access control with activation dates, IP restrictions, and wildcard patterns:
9494

9595
```rust,ignore
96-
use aws_sdk_cloudfront_url_signer::{sign_url, SigningRequest, PrivateKey};
96+
use aws_sdk_cloudfront_signer::{sign_url, SigningRequest, PrivateKey};
9797
use aws_smithy_types::DateTime;
9898
9999
let private_key = PrivateKey::from_pem(include_bytes!("private_key.pem"))?;
@@ -117,7 +117,7 @@ Custom policy URLs include a `Policy` parameter (base64-encoded JSON) instead of
117117
Signed cookies work similarly but return cookie name-value pairs:
118118

119119
```rust,ignore
120-
use aws_sdk_cloudfront_url_signer::{sign_cookies, SigningRequest, PrivateKey};
120+
use aws_sdk_cloudfront_signer::{sign_cookies, SigningRequest, PrivateKey};
121121
use aws_smithy_types::DateTime;
122122
123123
let private_key = PrivateKey::from_pem(include_bytes!("private_key.pem"))?;
@@ -154,7 +154,7 @@ For custom policies, cookies include:
154154
Load a key from bytes (useful when loading from AWS Secrets Manager or environment variables):
155155

156156
```rust,ignore
157-
use aws_sdk_cloudfront_url_signer::PrivateKey;
157+
use aws_sdk_cloudfront_signer::PrivateKey;
158158
159159
// From a byte slice
160160
let key = PrivateKey::from_pem(include_bytes!("private_key.pem"))?;
@@ -169,7 +169,7 @@ let key = PrivateKey::from_pem(pem_string.as_bytes())?;
169169
With the `rt-tokio` feature enabled, you can load keys directly from files:
170170

171171
```rust,ignore
172-
use aws_sdk_cloudfront_url_signer::PrivateKey;
172+
use aws_sdk_cloudfront_signer::PrivateKey;
173173
174174
let key = PrivateKey::from_pem_file("private_key.pem").await?;
175175
```
@@ -289,7 +289,7 @@ This is useful when working with HTTP clients that use the `http` crate types.
289289
All operations return `Result<T, SigningError>`:
290290

291291
```rust,ignore
292-
use aws_sdk_cloudfront_url_signer::{sign_url, SigningRequest, PrivateKey, error::SigningError};
292+
use aws_sdk_cloudfront_signer::{sign_url, SigningRequest, PrivateKey, error::SigningError};
293293
294294
let result = sign_url(&request);
295295
match result {

aws/rust-runtime/aws-sdk-cloudfront-url-signer/src/error.rs renamed to aws/rust-runtime/aws-sdk-cloudfront-signer/src/error.rs

File renamed without changes.

aws/rust-runtime/aws-sdk-cloudfront-url-signer/src/key.rs renamed to aws/rust-runtime/aws-sdk-cloudfront-signer/src/key.rs

File renamed without changes.

aws/rust-runtime/aws-sdk-cloudfront-url-signer/src/lib.rs renamed to aws/rust-runtime/aws-sdk-cloudfront-signer/src/lib.rs

File renamed without changes.

aws/rust-runtime/aws-sdk-cloudfront-url-signer/src/policy.rs renamed to aws/rust-runtime/aws-sdk-cloudfront-signer/src/policy.rs

File renamed without changes.

aws/rust-runtime/aws-sdk-cloudfront-url-signer/src/sign.rs renamed to aws/rust-runtime/aws-sdk-cloudfront-signer/src/sign.rs

File renamed without changes.

0 commit comments

Comments
 (0)