Skip to content

Commit cc2359a

Browse files
committed
[autosync] Release 0.7.0 (#1202)
* Update changelogs * Sync models * bump versions
1 parent ef60457 commit cc2359a

File tree

932 files changed

+79355
-40656
lines changed

Some content is hidden

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

932 files changed

+79355
-40656
lines changed

.smithyrs-githash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c3ef017d4188d0aea2c588ae6ebac3e694bb793e
1+
058f28e4a6433d6b8cee2cd2ee881ddf954ae06e

CHANGELOG.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,104 @@
11
<!-- Do not manually edit this file, use `update-changelogs` -->
2+
0.7.0 (February 18th, 2022)
3+
===========================
4+
**Breaking Changes:**
5+
- ⚠ ([smithy-rs#1144](https://github.com/awslabs/smithy-rs/issues/1144)) The `aws_config::http_provider` module has been renamed to `aws_config::http_credential_provider` to better reflect its purpose.
6+
- ⚠ ([smithy-rs#1144](https://github.com/awslabs/smithy-rs/issues/1144)) Some APIs required that timeout configuration be specified with an `aws_smithy_client::timeout::Settings` struct while
7+
others required an `aws_smithy_types::timeout::TimeoutConfig` struct. Both were equivalent. Now `aws_smithy_types::timeout::TimeoutConfig`
8+
is used everywhere and `aws_smithy_client::timeout::Settings` has been removed. Here's how to migrate code your code that
9+
depended on `timeout::Settings`:
10+
11+
The old way:
12+
```rust
13+
let timeout = timeout::Settings::new()
14+
.with_connect_timeout(Duration::from_secs(1))
15+
.with_read_timeout(Duration::from_secs(2));
16+
```
17+
18+
The new way:
19+
```rust
20+
// This example is passing values, so they're wrapped in `Option::Some`. You can disable a timeout by passing `None`.
21+
let timeout = TimeoutConfig::new()
22+
.with_connect_timeout(Some(Duration::from_secs(1)))
23+
.with_read_timeout(Some(Duration::from_secs(2)));
24+
```
25+
- ⚠ ([smithy-rs#1144](https://github.com/awslabs/smithy-rs/issues/1144)) `MakeConnectorFn`, `HttpConnector`, and `HttpSettings` have been moved from `aws_config::provider_config` to
26+
`aws_smithy_client::http_connector`. This is in preparation for a later update that will change how connectors are
27+
created and configured.
28+
29+
If you were using these structs/enums, you can migrate your old code by importing them from their new location.
30+
- ⚠ ([smithy-rs#1144](https://github.com/awslabs/smithy-rs/issues/1144)) Along with moving `HttpConnector` to `aws_smithy_client`, the `HttpConnector::make_connector` method has been renamed to
31+
`HttpConnector::connector`.
32+
33+
If you were using this method, you can migrate your old code by calling `connector` instead of `make_connector`.
34+
- ⚠ ([smithy-rs#1085](https://github.com/awslabs/smithy-rs/issues/1085)) Moved the following re-exports into a `types` module for all services:
35+
- `aws_sdk_<service>::AggregatedBytes` -> `aws_sdk_<service>::types::AggregatedBytes`
36+
- `aws_sdk_<service>::Blob` -> `aws_sdk_<service>::types::Blob`
37+
- `aws_sdk_<service>::ByteStream` -> `aws_sdk_<service>::types::ByteStream`
38+
- `aws_sdk_<service>::DateTime` -> `aws_sdk_<service>::types::DateTime`
39+
- `aws_sdk_<service>::SdkError` -> `aws_sdk_<service>::types::SdkError`
40+
- ⚠ ([smithy-rs#1085](https://github.com/awslabs/smithy-rs/issues/1085)) `AggregatedBytes` and `ByteStream` are now only re-exported if the service has streaming operations,
41+
and `Blob`/`DateTime` are only re-exported if the service uses them.
42+
- ⚠ ([smithy-rs#1130](https://github.com/awslabs/smithy-rs/issues/1130)) MSRV increased from `1.54` to `1.56.1` per our 2-behind MSRV policy.
43+
- ⚠ ([smithy-rs#1132](https://github.com/awslabs/smithy-rs/issues/1132)) Fluent clients for all services no longer have generics, and now use `DynConnector` and `DynMiddleware` to allow
44+
for connector/middleware customization. This should only break references to the client that specified generic types for it.
45+
46+
If you customized the AWS client's connector or middleware with something like the following:
47+
```rust
48+
let client = aws_sdk_s3::Client::with_config(
49+
aws_sdk_s3::client::Builder::new()
50+
.connector(my_custom_connector) // Connector customization
51+
.middleware(my_custom_middleware) // Middleware customization
52+
.default_async_sleep()
53+
.build(),
54+
config
55+
);
56+
```
57+
Then you will need to wrap the custom connector or middleware in
58+
[`DynConnector`](https://docs.rs/aws-smithy-client/0.36.0/aws_smithy_client/erase/struct.DynConnector.html)
59+
and
60+
[`DynMiddleware`](https://docs.rs/aws-smithy-client/0.36.0/aws_smithy_client/erase/struct.DynMiddleware.html)
61+
respectively:
62+
```rust
63+
let client = aws_sdk_s3::Client::with_config(
64+
aws_sdk_s3::client::Builder::new()
65+
.connector(DynConnector::new(my_custom_connector)) // Now with `DynConnector`
66+
.middleware(DynMiddleware::new(my_custom_middleware)) // Now with `DynMiddleware`
67+
.default_async_sleep()
68+
.build(),
69+
config
70+
);
71+
```
72+
73+
If you had functions that took a generic connector, such as the following:
74+
```rust
75+
fn some_function<C, E>(conn: C) -> Result<()>
76+
where
77+
C: aws_smithy_client::bounds::SmithyConnector<Error = E> + Send + 'static,
78+
E: Into<aws_smithy_http::result::ConnectorError>
79+
{
80+
// ...
81+
}
82+
```
83+
84+
Then the generics and trait bounds will no longer be necessary:
85+
```rust
86+
fn some_function(conn: DynConnector) -> Result<()> {
87+
// ...
88+
}
89+
```
90+
91+
Similarly, functions that took a generic middleware can replace the generic with `DynMiddleware` and
92+
remove their trait bounds.
93+
94+
**New this release:**
95+
- 🐛 ([aws-sdk-rust#443](https://github.com/awslabs/aws-sdk-rust/issues/443)) The `ProfileFileRegionProvider` will now respect regions set in chained profiles
96+
- ([smithy-rs#1144](https://github.com/awslabs/smithy-rs/issues/1144)) Several modules defined in the `aws_config` crate that used to be declared within another module's file have been moved to their own files. The moved modules are `sts`, `connector`, and `default_providers`. They still have the exact same import paths.
97+
- 🐛 ([smithy-rs#1129](https://github.com/awslabs/smithy-rs/issues/1129)) Fix some docs links not working because they were escaped when they shouldn't have been
98+
- ([smithy-rs#1085](https://github.com/awslabs/smithy-rs/issues/1085)) The `Client` and `Config` re-exports now have their documentation inlined in the service docs
99+
- 🐛 ([smithy-rs#1180](https://github.com/awslabs/smithy-rs/issues/1180)) Fixed example showing how to use hardcoded credentials in `aws-types`
100+
101+
2102
0.6.0 (January 26, 2022)
3103
========================
4104
**New this release:**

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This README file is auto-generated by the build system in awslabs/smithy-rs.
44
To update it, edit the `aws/SDK_README.md.hb` Handlebars template in that repository.
55
-->
66

7-
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.6.0-blue)](https://awslabs.github.io/aws-sdk-rust/) ![MSRV](https://img.shields.io/badge/msrv-1.56.1-red) [![Usage Guide](https://img.shields.io/badge/Developer_Guide-blue)](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/welcome.html)
7+
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.7.0-blue)](https://awslabs.github.io/aws-sdk-rust/) ![MSRV](https://img.shields.io/badge/msrv-1.56.1-red) [![Usage Guide](https://img.shields.io/badge/Developer_Guide-blue)](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/welcome.html)
88

99
This repo contains the new AWS SDK for Rust (the SDK) and its [public roadmap](https://github.com/awslabs/aws-sdk-rust/projects/1).
1010

@@ -25,8 +25,8 @@ The SDK provides one crate per AWS service. You must add [Tokio](https://crates.
2525

2626
```toml
2727
[dependencies]
28-
aws-config = "0.6.0"
29-
aws-sdk-dynamodb = "0.6.0"
28+
aws-config = "0.7.0"
29+
aws-sdk-dynamodb = "0.7.0"
3030
tokio = { version = "1", features = ["full"] }
3131
```
3232

examples/apigateway/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ edition = "2018"
66
publish = false
77
[dependencies.aws-config]
88
path = "../../sdk/aws-config"
9-
version = "0.6.0"
9+
version = "0.7.0"
1010

1111
[dependencies.aws-sdk-apigateway]
1212
path = "../../sdk/apigateway"
13-
version = "0.6.0"
13+
version = "0.7.0"
1414

1515
[dependencies.aws-smithy-types-convert]
1616
features = ["convert-chrono"]
1717
path = "../../sdk/aws-smithy-types-convert"
18-
version = "0.36.0"
18+
version = "0.37.0"
1919

2020
[dependencies.tokio]
2121
version = "1"

examples/apigatewaymanagement/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ http = "0.2.5"
1111

1212
[dependencies.aws-config]
1313
path = "../../sdk/aws-config"
14-
version = "0.6.0"
14+
version = "0.7.0"
1515

1616
[dependencies.aws-sdk-apigatewaymanagement]
1717
path = "../../sdk/apigatewaymanagement"
18-
version = "0.6.0"
18+
version = "0.7.0"
1919

2020
[dependencies.tokio]
2121
version = "1"

examples/applicationautoscaling/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ edition = "2018"
77
publish = false
88
[dependencies.aws-config]
99
path = "../../sdk/aws-config"
10-
version = "0.6.0"
10+
version = "0.7.0"
1111

1212
[dependencies.aws-sdk-applicationautoscaling]
1313
path = "../../sdk/applicationautoscaling"
14-
version = "0.6.0"
14+
version = "0.7.0"
1515

1616
[dependencies.tokio]
1717
version = "1"

examples/autoscaling/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ edition = "2018"
77
publish = false
88
[dependencies.aws-config]
99
path = "../../sdk/aws-config"
10-
version = "0.6.0"
10+
version = "0.7.0"
1111

1212
[dependencies.aws-sdk-autoscaling]
1313
path = "../../sdk/autoscaling"
14-
version = "0.6.0"
14+
version = "0.7.0"
1515

1616
[dependencies.tokio]
1717
version = "1"

examples/autoscalingplans/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ edition = "2018"
77
publish = false
88
[dependencies.aws-sdk-autoscalingplans]
99
path = "../../sdk/autoscalingplans"
10-
version = "0.6.0"
10+
version = "0.7.0"
1111

1212
[dependencies.aws-config]
1313
path = "../../sdk/aws-config"
14-
version = "0.6.0"
14+
version = "0.7.0"
1515

1616
[dependencies.aws-types]
1717
path = "../../sdk/aws-types"
18-
version = "0.6.0"
18+
version = "0.7.0"
1919

2020
[dependencies.tokio]
2121
version = "1"

examples/batch/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ edition = "2018"
77
publish = false
88
[dependencies.aws-config]
99
path = "../../sdk/aws-config"
10-
version = "0.6.0"
10+
version = "0.7.0"
1111

1212
[dependencies.aws-sdk-batch]
1313
path = "../../sdk/batch"
14-
version = "0.6.0"
14+
version = "0.7.0"
1515

1616
[dependencies.tokio]
1717
version = "1"

examples/ca-certs/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ rustls = "0.20.2"
1212

1313
[dependencies.aws-config]
1414
path = "../../sdk/aws-config"
15-
version = "0.6.0"
15+
version = "0.7.0"
1616

1717
[dependencies.aws-smithy-client]
1818
path = "../../sdk/aws-smithy-client"
19-
version = "0.36.0"
19+
version = "0.37.0"
2020

2121
[dependencies.aws-sdk-s3]
2222
default-features = false
2323
path = "../../sdk/s3"
24-
version = "0.6.0"
24+
version = "0.7.0"
2525

2626
[dependencies.tokio]
2727
version = "1"

0 commit comments

Comments
 (0)