From 82f9bb9c30a331a84b482f8ee6a827a5c6b63f14 Mon Sep 17 00:00:00 2001 From: AWS SDK Rust Bot Date: Tue, 3 Dec 2024 23:19:36 +0000 Subject: [PATCH 1/2] Update changelog --- .changelog/1733238900.md | 30 ------------------------------ .changelog/4329788.md | 18 ------------------ CHANGELOG.md | 15 +++++++++++++++ aws/SDK_CHANGELOG.next.json | 18 +++++++++++++++--- 4 files changed, 30 insertions(+), 51 deletions(-) delete mode 100644 .changelog/1733238900.md delete mode 100644 .changelog/4329788.md diff --git a/.changelog/1733238900.md b/.changelog/1733238900.md deleted file mode 100644 index 46630326b1..0000000000 --- a/.changelog/1733238900.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -applies_to: ["aws-sdk-rust"] -authors: ["Velfi"] -references: [] -breaking: false -new_feature: true -bug_fix: false ---- - -Add auth token generator for Amazon Aurora DSQL. - -```rust -use aws_sdk_dsql::auth_token::{AuthTokenGenerator, Config}; - -#[tokio::main] -async fn main() { - let cfg = aws_config::load_defaults(BehaviorVersion::latest()).await; - let generator = AuthTokenGenerator::new( - Config::builder() - .hostname("peccy.dsql.us-east-1.on.aws") - .build() - .expect("cfg is valid"), - ); - let token = generator.auth_token(&cfg).await.unwrap(); - println!("{token}"); -} -``` - -The resulting token can then be used as a password when connecting to the -database server. diff --git a/.changelog/4329788.md b/.changelog/4329788.md deleted file mode 100644 index c45e4c8a7e..0000000000 --- a/.changelog/4329788.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -applies_to: ["server"] -authors: ["drganjoo"] -references: ["smithy-rs#3880"] -breaking: true -new_feature: false -bug_fix: true ---- -Unnamed enums now validate assigned values and will raise a `ConstraintViolation` if an unknown variant is set. - -The following is an example of an unnamed enum: -```smithy -@enum([ - { value: "MONDAY" }, - { value: "TUESDAY" } -]) -string UnnamedDayOfWeek -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index b451dbebf0..f3cacea9ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,19 @@ +December 3rd, 2024 +================== +**Breaking Changes:** +- :bug::warning: (server, [smithy-rs#3880](https://github.com/smithy-lang/smithy-rs/issues/3880)) Unnamed enums now validate assigned values and will raise a `ConstraintViolation` if an unknown variant is set. + + The following is an example of an unnamed enum: + ```smithy + @enum([ + { value: "MONDAY" }, + { value: "TUESDAY" } + ]) + string UnnamedDayOfWeek + ``` + + November 5th, 2024 ================== diff --git a/aws/SDK_CHANGELOG.next.json b/aws/SDK_CHANGELOG.next.json index 5ce51b17d4..86594b0ac0 100644 --- a/aws/SDK_CHANGELOG.next.json +++ b/aws/SDK_CHANGELOG.next.json @@ -18,7 +18,7 @@ "aws-sdk-rust#1202" ], "since-commit": "1e803494dc1c9f1d8290cf9317ed39b026a603a2", - "age": 4 + "age": 5 }, { "message": "Client SDKs built with the `awsQueryCompatible` trait now include the `x-amzn-query-mode` header. This header signals the service that the clients are operating in compatible mode.\n", @@ -32,7 +32,7 @@ "smithy-rs#3883" ], "since-commit": "c606065c0e2e97d3cecb6a675ffc226dc488d674", - "age": 3 + "age": 4 }, { "message": "Fix default credential provider chain not respecting endpoint URL overrides from environment\n", @@ -46,7 +46,19 @@ "aws-sdk-rust#1193" ], "since-commit": "c606065c0e2e97d3cecb6a675ffc226dc488d674", - "age": 3 + "age": 4 + }, + { + "message": "Add auth token generator for Amazon Aurora DSQL.\n\n```rust\nuse aws_sdk_dsql::auth_token::{AuthTokenGenerator, Config};\n\n#[tokio::main]\nasync fn main() {\n let cfg = aws_config::load_defaults(BehaviorVersion::latest()).await;\n let generator = AuthTokenGenerator::new(\n Config::builder()\n .hostname(\"peccy.dsql.us-east-1.on.aws\")\n .build()\n .expect(\"cfg is valid\"),\n );\n let token = generator.auth_token(&cfg).await.unwrap();\n println!(\"{token}\");\n}\n```\n\nThe resulting token can then be used as a password when connecting to the\ndatabase server.\n", + "meta": { + "bug": false, + "breaking": false, + "tada": true + }, + "author": "Velfi", + "references": [], + "since-commit": "039177d0ee6dd288ad57de2230a1110bbe7ff7d5", + "age": 1 } ], "aws-sdk-model": [] From 2922940de138c9c38dc1a59504da0e5d3b6879f5 Mon Sep 17 00:00:00 2001 From: AWS SDK Rust Bot Date: Tue, 3 Dec 2024 23:25:02 +0000 Subject: [PATCH 2/2] Synchronize the SDK lockfile --- aws/sdk/Cargo.lock | 60 +++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/aws/sdk/Cargo.lock b/aws/sdk/Cargo.lock index 96add7d19b..ff5e58b618 100644 --- a/aws/sdk/Cargo.lock +++ b/aws/sdk/Cargo.lock @@ -326,7 +326,7 @@ dependencies = [ "aws-sdk-sts", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -508,7 +508,7 @@ dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-eventstream 0.60.5", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -530,7 +530,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -557,7 +557,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -580,7 +580,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -608,7 +608,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-query", "aws-smithy-runtime 1.7.4", @@ -636,7 +636,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -660,7 +660,7 @@ dependencies = [ "aws-sigv4 1.2.6", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -690,7 +690,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-query", "aws-smithy-runtime 1.7.4", @@ -717,7 +717,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -744,7 +744,7 @@ dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-eventstream 0.60.5", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -771,7 +771,7 @@ dependencies = [ "aws-sigv4 1.2.6", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -799,7 +799,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -825,7 +825,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -854,7 +854,7 @@ dependencies = [ "aws-smithy-eventstream 0.60.5", "aws-smithy-experimental", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -903,7 +903,7 @@ dependencies = [ "aws-smithy-checksums 0.60.13 (registry+https://github.com/rust-lang/crates.io-index)", "aws-smithy-eventstream 0.60.5 (registry+https://github.com/rust-lang/crates.io-index)", "aws-smithy-http 0.60.11 (registry+https://github.com/rust-lang/crates.io-index)", - "aws-smithy-json 0.60.7 (registry+https://github.com/rust-lang/crates.io-index)", + "aws-smithy-json 0.60.7", "aws-smithy-runtime 1.7.3", "aws-smithy-runtime-api 1.7.3 (registry+https://github.com/rust-lang/crates.io-index)", "aws-smithy-types 1.2.9 (registry+https://github.com/rust-lang/crates.io-index)", @@ -933,7 +933,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -962,7 +962,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -983,7 +983,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -1004,7 +1004,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-query", "aws-smithy-runtime 1.7.4", @@ -1031,7 +1031,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -1058,7 +1058,7 @@ dependencies = [ "aws-runtime 1.4.4", "aws-smithy-async 1.2.1", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", "aws-smithy-types 1.2.9", @@ -1084,7 +1084,7 @@ dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-eventstream 0.60.5", "aws-smithy-http 0.60.11", - "aws-smithy-json 0.60.7", + "aws-smithy-json 0.61.1", "aws-smithy-protocol-test 0.63.0", "aws-smithy-runtime 1.7.4", "aws-smithy-runtime-api 1.7.3", @@ -1373,19 +1373,19 @@ version = "0.60.3" [[package]] name = "aws-smithy-json" version = "0.60.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4683df9469ef09468dad3473d129960119a0d3593617542b7d52086c8486f2d6" dependencies = [ - "aws-smithy-types 1.2.9", - "proptest", - "serde_json", + "aws-smithy-types 1.2.9 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "aws-smithy-json" -version = "0.60.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4683df9469ef09468dad3473d129960119a0d3593617542b7d52086c8486f2d6" +version = "0.61.1" dependencies = [ - "aws-smithy-types 1.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "aws-smithy-types 1.2.9", + "proptest", + "serde_json", ] [[package]]