Skip to content

Commit 8d81e37

Browse files
ysaito1001aws-sdk-rust-ci
authored andcommitted
[smithy-rs] Re-export HttpRequest and HttpResponse in client crates (#3762)
## Motivation and Context smithy-lang/smithy-rs#3591 ## Description In early days of smithy-rs, we used to re-export [Request](https://docs.rs/aws-sdk-s3/0.25.0/aws_sdk_s3/client/customize/struct.Request.html) and [Response](https://docs.rs/aws-sdk-s3/0.25.0/aws_sdk_s3/client/customize/struct.Request.html) types. When we overhauled the underlying smithy runtime from middleware to orchestrator, we did not re-export the corresponding types [HttpRequest](https://docs.rs/aws-smithy-runtime-api/latest/aws_smithy_runtime_api/client/orchestrator/type.HttpRequest.html) and [HttpResponse](https://docs.rs/aws-smithy-runtime-api/latest/aws_smithy_runtime_api/client/orchestrator/type.HttpResponse.html) to client crates. This PR will re-export them in `crate::config::http`. ## Testing Added a new test file for `ClientRuntimeTypesReExportGenerator.kt` that verifies re-exports. ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [x] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent 4baefd1 commit 8d81e37

File tree

769 files changed

+2689
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

769 files changed

+2689
-385
lines changed

sdk/accessanalyzer/src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,9 @@ pub use ::aws_smithy_types::config_bag::Layer;
13581358
/// Types needed to configure endpoint resolution.
13591359
pub mod endpoint;
13601360

1361+
/// HTTP request and response types.
1362+
pub mod http;
1363+
13611364
/// Types needed to implement [`Intercept`](crate::config::Intercept).
13621365
pub mod interceptors;
13631366

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpRequest;
3+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpResponse;

sdk/account/src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,9 @@ pub use ::aws_smithy_types::config_bag::Layer;
13371337
/// Types needed to configure endpoint resolution.
13381338
pub mod endpoint;
13391339

1340+
/// HTTP request and response types.
1341+
pub mod http;
1342+
13401343
/// Types needed to implement [`Intercept`](crate::config::Intercept).
13411344
pub mod interceptors;
13421345

sdk/account/src/config/http.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpRequest;
3+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpResponse;

sdk/acm/src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,9 @@ pub use ::aws_smithy_types::config_bag::Layer;
13371337
/// Types needed to configure endpoint resolution.
13381338
pub mod endpoint;
13391339

1340+
/// HTTP request and response types.
1341+
pub mod http;
1342+
13401343
/// Types needed to implement [`Intercept`](crate::config::Intercept).
13411344
pub mod interceptors;
13421345

sdk/acm/src/config/http.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpRequest;
3+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpResponse;

sdk/acmpca/src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,9 @@ pub use ::aws_smithy_types::config_bag::Layer;
13371337
/// Types needed to configure endpoint resolution.
13381338
pub mod endpoint;
13391339

1340+
/// HTTP request and response types.
1341+
pub mod http;
1342+
13401343
/// Types needed to implement [`Intercept`](crate::config::Intercept).
13411344
pub mod interceptors;
13421345

sdk/acmpca/src/config/http.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpRequest;
3+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpResponse;

sdk/amp/src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,9 @@ pub use ::aws_smithy_types::config_bag::Layer;
13581358
/// Types needed to configure endpoint resolution.
13591359
pub mod endpoint;
13601360

1361+
/// HTTP request and response types.
1362+
pub mod http;
1363+
13611364
/// Types needed to implement [`Intercept`](crate::config::Intercept).
13621365
pub mod interceptors;
13631366

sdk/amp/src/config/http.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpRequest;
3+
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpResponse;

0 commit comments

Comments
 (0)