Skip to content

Commit 766395c

Browse files
committed
Remove deprecated aws-smithy-client
1 parent 9e8a01d commit 766395c

File tree

14 files changed

+10
-30
lines changed

14 files changed

+10
-30
lines changed

rust_dev_preview/cross_service/rest_ses/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ uuid = { version = "1.2.1", features = ["v4", "serde"] }
4545
xlsxwriter = "0.6.0"
4646

4747
[dev-dependencies]
48-
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["test-util"] }
48+
aws-smithy-runtime = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
4949
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
5050
fake = { version = "2.5.0", features = ["uuid"] }
5151
once_cell = "1.15.0"

rust_dev_preview/examples/cognitoidentity/src/bin/describe-identity-pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ async fn describe_pool(client: &Client, id: &str) -> Result<(), Error> {
6464
println!(" value: {}", value);
6565
}
6666

67-
let open_id_arns = response.open_id_connect_provider_ar_ns();
67+
let open_id_arns = response.open_id_connect_provider_arns();
6868
println!(" Open ID provider ARNs:");
6969
for arn in open_id_arns {
7070
println!(" {}", arn);
7171
}
7272

73-
let saml_arns = response.saml_provider_ar_ns();
73+
let saml_arns = response.saml_provider_arns();
7474
println!(" SAML provider ARNs:");
7575
for arn in saml_arns {
7676
println!(" {}", arn);

rust_dev_preview/examples/custom-root-certificates/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ description = "An example demonstrating setting a custom root certificate with r
88

99
[dependencies]
1010
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
11-
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
1211
# bringing our own HTTPs so no need for the default features
1312
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", default-features = false }
1413
tokio = { version = "1.21.2", features = ["full"] }

rust_dev_preview/examples/dynamodb/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ edition = "2021"
1414
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
1515
aws-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
1616
aws-sdk-dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
17-
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [ "client-hyper", "rustls", "rt-tokio", ] }
1817
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [ "rt-tokio", ] }
1918
aws-smithy-runtime = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["test-util"] }
2019
aws-smithy-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }

rust_dev_preview/examples/glue/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next"
1717
aws-sdk-glue = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
1818
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
1919
aws-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
20-
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
21-
"client-hyper",
22-
"rustls",
23-
"rt-tokio",
24-
] }
2520
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
2621
"rt-tokio",
2722
] }

rust_dev_preview/examples/kms/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ description = "Example usage of the KMS service"
1111
[dependencies]
1212
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
1313
aws-sdk-kms = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
14-
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
15-
"client-hyper",
16-
"rustls",
17-
"rt-tokio",
18-
] }
1914
tokio = { version = "1.20.1", features = ["full"] }
2015
base64 = "0.13.0"
2116
clap = { version = "~4.2", features = ["derive"] }

rust_dev_preview/examples/s3/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next"
2626
aws-endpoint = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
2727
# snippet-end:[s3.rust.s3-object-lambda-cargo.toml]
2828
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
29-
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
30-
"test-util",
31-
] }
3229
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["rt-tokio"] }
3330
aws-smithy-runtime = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
3431
aws-smithy-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }

rust_dev_preview/examples/s3/src/bin/put-object-progress.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ async fn put_object(client: &Client, opts: &Opt) -> Result<(), anyhow::Error> {
160160
// ProgressBody wrapped implementation.
161161
let customized = request
162162
.customize()
163-
.await?
164163
.map_request(ProgressBody::<SdkBody>::replace);
165164

166165
let out = customized.send().await?;

rust_dev_preview/examples/sending-presigned-requests/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ reqwest = "0.11"
1616
clap = { version = "~4.2", features = ["derive"] }
1717
tokio = { version = "1.20.1", features = ["full"] }
1818
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
19+
hyper-tls = "0.5.0"

rust_dev_preview/examples/sending-presigned-requests/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fn print_as_curl_request(presigned_req: &PresignedRequest, body: Option<&str>) {
127127

128128
/// This function demonstrates how you can send a presigned request using [hyper](https://crates.io/crates/hyper)
129129
async fn send_presigned_request_with_hyper(req: PresignedRequest, body: hyper::Body) {
130-
let conn = aws_smithy_client::conns::https();
130+
let conn = hyper_tls::HttpsConnector::new();
131131
let client = hyper::Client::builder().build(conn);
132132
let req = req.to_http_request(body).unwrap();
133133

0 commit comments

Comments
 (0)