Skip to content

Commit

Permalink
[autosync] Rename aws_types::config::Config to `sdk_config::SdkConf…
Browse files Browse the repository at this point in the history
…ig` (#1241)

* rename: aws_types::config::Config to sdk_config::SdkConfig
update: code affected by SdkConfig rename
update: CHANGELOG.next.toml

* update: reëxport SdkConfig from aws_types root module

* Update aws/rust-runtime/aws-config/src/lib.rs

* Update CHANGELOG.next.toml

Co-authored-by: Russell Cohen <[email protected]>

* add: deprecated config helper
update: use reexported SdkConfig in docs referencing it

* fix: bad doc link
fix: wrong deprecation version

* Revert "fix: bad doc link"

This reverts commit eaa1b68e3b5e7c15f655cd294135c40f9b52e178.

* fix: try new link style

* add: deprecation notice for `aws_types::config` module

Co-authored-by: Russell Cohen <[email protected]>
  • Loading branch information
2 people authored and jdisanti committed Mar 17, 2022
1 parent c2f48d7 commit 9134e4c
Show file tree
Hide file tree
Showing 599 changed files with 3,043 additions and 3,027 deletions.
2 changes: 1 addition & 1 deletion .smithyrs-githash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2fd7edbe07ce9722772d4e56c60daa922d82aea5
e6d09ea686c1be31b7df0c24d87bc370173fb7b0
4 changes: 2 additions & 2 deletions sdk/accessanalyzer/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2766,8 +2766,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/accessanalyzer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -311,8 +311,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -324,8 +324,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/account/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/account/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -298,8 +298,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -311,8 +311,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/acm/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/acm/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -298,8 +298,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -311,8 +311,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/acmpca/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2403,8 +2403,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/acmpca/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -298,8 +298,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -311,8 +311,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/alexaforbusiness/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8788,8 +8788,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/alexaforbusiness/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -311,8 +311,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -324,8 +324,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/amp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1571,8 +1571,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/amp/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -311,8 +311,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -324,8 +324,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/amplify/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4193,8 +4193,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/amplify/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -298,8 +298,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -311,8 +311,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/amplifybackend/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3147,8 +3147,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
14 changes: 7 additions & 7 deletions sdk/amplifybackend/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl Config {
pub fn app_name(&self) -> Option<&aws_types::app_name::AppName> {
self.app_name.as_ref()
}
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::config::Config).
pub fn new(config: &aws_types::config::Config) -> Self {
/// Creates a new [service config](crate::Config) from a [shared `config`](aws_types::sdk_config::SdkConfig).
pub fn new(config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(config).build()
}
/// The signature version 4 service signing name to use in the credential scope when signing requests.
Expand Down Expand Up @@ -298,8 +298,8 @@ impl Builder {
}
}

impl From<&aws_types::config::Config> for Builder {
fn from(input: &aws_types::config::Config) -> Self {
impl From<&aws_types::sdk_config::SdkConfig> for Builder {
fn from(input: &aws_types::sdk_config::SdkConfig) -> Self {
let mut builder = Builder::default();
builder = builder.region(input.region().cloned());
builder.set_retry_config(input.retry_config().cloned());
Expand All @@ -311,8 +311,8 @@ impl From<&aws_types::config::Config> for Builder {
}
}

impl From<&aws_types::config::Config> for Config {
fn from(config: &aws_types::config::Config) -> Self {
Builder::from(config).build()
impl From<&aws_types::sdk_config::SdkConfig> for Config {
fn from(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Builder::from(sdk_config).build()
}
}
4 changes: 2 additions & 2 deletions sdk/amplifyuibuilder/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,8 +1443,8 @@ impl Client {

/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(config: &aws_types::config::Config) -> Self {
Self::from_conf(config.into())
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}

/// Creates a new client from the service [`Config`](crate::Config).
Expand Down
Loading

0 comments on commit 9134e4c

Please sign in to comment.