From 218e268df82934f10e8da45bd6cfc1744f0a1417 Mon Sep 17 00:00:00 2001 From: Aaron J Todd Date: Mon, 9 Sep 2024 10:33:32 -0400 Subject: [PATCH] deprecate http-02x presign APIs --- .changelog/1725892046.md | 11 +++++++++++ aws/rust-runtime/aws-inlineable/src/presigning.rs | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 .changelog/1725892046.md diff --git a/.changelog/1725892046.md b/.changelog/1725892046.md new file mode 100644 index 0000000000..0c8228ccc0 --- /dev/null +++ b/.changelog/1725892046.md @@ -0,0 +1,11 @@ +--- +applies_to: +- aws-sdk-rust +authors: +- aajtodd +references: [] +breaking: false +new_feature: false +bug_fix: false +--- +deprecate http-02x presign APIs in favor of http-1x equivalents diff --git a/aws/rust-runtime/aws-inlineable/src/presigning.rs b/aws/rust-runtime/aws-inlineable/src/presigning.rs index df09416fa9..c19d160e18 100644 --- a/aws/rust-runtime/aws-inlineable/src/presigning.rs +++ b/aws/rust-runtime/aws-inlineable/src/presigning.rs @@ -225,11 +225,14 @@ impl PresignedRequest { } /// Given a body, produce an `http::Request` from this `PresignedRequest` + #[deprecated = "Prefer the `make_http_1x_request()` instead by enabling the `http-1x` feature."] + #[allow(deprecated)] pub fn make_http_02x_request(&self, body: B) -> http::Request { self.clone().into_http_02x_request(body) } /// Converts this `PresignedRequest` directly into an `http` request. + #[deprecated = "Prefer the `into_http_1x_request` instead by enabling the `http-1x` feature."] pub fn into_http_02x_request(self, body: B) -> http::Request { self.http_request .try_into_http02x()