AWS SDK

AWS SDK

rev. 94f0eaf10b3c815f4addb1b170a9f93d7a15c7b3

Files changed:

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/config.rs

@@ -1189,1189 +1248,1251 @@
 1209   1209   
        self
 1210   1210   
    }
 1211   1211   
    #[cfg(any(feature = "test-util", test))]
 1212   1212   
    #[allow(unused_mut)]
 1213   1213   
    /// Apply test defaults to the builder
 1214   1214   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1215   1215   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1216   1216   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1217   1217   
        )));
 1218   1218   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1219  +
        if self.config.load::<crate::config::Region>().is_none() {
        1220  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1221  +
        }
 1219   1222   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1220   1223   
            ::aws_credential_types::Credentials::for_tests(),
 1221   1224   
        )));
 1222   1225   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1223   1226   
        self
 1224   1227   
    }
 1225   1228   
    #[cfg(any(feature = "test-util", test))]
 1226   1229   
    #[allow(unused_mut)]
 1227   1230   
    /// Apply test defaults to the builder
 1228   1231   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/route53/src/config.rs

@@ -1189,1189 +1248,1251 @@
 1209   1209   
        self
 1210   1210   
    }
 1211   1211   
    #[cfg(any(feature = "test-util", test))]
 1212   1212   
    #[allow(unused_mut)]
 1213   1213   
    /// Apply test defaults to the builder
 1214   1214   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1215   1215   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1216   1216   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1217   1217   
        )));
 1218   1218   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1219  +
        if self.config.load::<crate::config::Region>().is_none() {
        1220  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1221  +
        }
 1219   1222   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1220   1223   
            ::aws_credential_types::Credentials::for_tests(),
 1221   1224   
        )));
 1222   1225   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1223   1226   
        self
 1224   1227   
    }
 1225   1228   
    #[cfg(any(feature = "test-util", test))]
 1226   1229   
    #[allow(unused_mut)]
 1227   1230   
    /// Apply test defaults to the builder
 1228   1231   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml

@@ -122,122 +182,182 @@
  142    142   
features = ["test-util"]
  143    143   
version = "0.60.11"
  144    144   
  145    145   
[dev-dependencies.aws-smithy-http-client]
  146    146   
path = "../aws-smithy-http-client"
  147    147   
features = ["test-util", "wire-mock", "rustls-ring"]
  148    148   
version = "1.1.2"
  149    149   
  150    150   
[dev-dependencies.aws-smithy-mocks]
  151    151   
path = "../aws-smithy-mocks"
  152         -
version = "0.1.2"
         152  +
version = "0.2.0"
  153    153   
  154    154   
[dev-dependencies.aws-smithy-protocol-test]
  155    155   
path = "../aws-smithy-protocol-test"
  156    156   
version = "0.63.4"
  157    157   
  158    158   
[dev-dependencies.aws-smithy-runtime]
  159    159   
path = "../aws-smithy-runtime"
  160    160   
features = ["test-util"]
  161    161   
version = "1.9.2"
  162    162   

tmp-codegen-diff/aws-sdk/sdk/s3/src/config.rs

@@ -1319,1319 +1378,1381 @@
 1339   1339   
        self
 1340   1340   
    }
 1341   1341   
    #[cfg(any(feature = "test-util", test))]
 1342   1342   
    #[allow(unused_mut)]
 1343   1343   
    /// Apply test defaults to the builder
 1344   1344   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1345   1345   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1346   1346   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1347   1347   
        )));
 1348   1348   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1349  +
        if self.config.load::<crate::config::Region>().is_none() {
        1350  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1351  +
        }
 1349   1352   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1350   1353   
            ::aws_credential_types::Credentials::for_tests(),
 1351   1354   
        )));
 1352   1355   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1353   1356   
        self
 1354   1357   
    }
 1355   1358   
    #[cfg(any(feature = "test-util", test))]
 1356   1359   
    #[allow(unused_mut)]
 1357   1360   
    /// Apply test defaults to the builder
 1358   1361   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/s3control/src/config.rs

@@ -1217,1217 +1276,1279 @@
 1237   1237   
    }
 1238   1238   
    #[cfg(any(feature = "test-util", test))]
 1239   1239   
    #[allow(unused_mut)]
 1240   1240   
    /// Apply test defaults to the builder
 1241   1241   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1242   1242   
        self.set_idempotency_token_provider(Some("00000000-0000-4000-8000-000000000000".into()));
 1243   1243   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1244   1244   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1245   1245   
        )));
 1246   1246   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1247  +
        if self.config.load::<crate::config::Region>().is_none() {
        1248  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1249  +
        }
 1247   1250   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1248   1251   
            ::aws_credential_types::Credentials::for_tests(),
 1249   1252   
        )));
 1250   1253   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1251   1254   
        self
 1252   1255   
    }
 1253   1256   
    #[cfg(any(feature = "test-util", test))]
 1254   1257   
    #[allow(unused_mut)]
 1255   1258   
    /// Apply test defaults to the builder
 1256   1259   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/sso/src/config.rs

@@ -1189,1189 +1248,1251 @@
 1209   1209   
        self
 1210   1210   
    }
 1211   1211   
    #[cfg(any(feature = "test-util", test))]
 1212   1212   
    #[allow(unused_mut)]
 1213   1213   
    /// Apply test defaults to the builder
 1214   1214   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1215   1215   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1216   1216   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1217   1217   
        )));
 1218   1218   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1219  +
        if self.config.load::<crate::config::Region>().is_none() {
        1220  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1221  +
        }
 1219   1222   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1220   1223   
            ::aws_credential_types::Credentials::for_tests(),
 1221   1224   
        )));
 1222   1225   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1223   1226   
        self
 1224   1227   
    }
 1225   1228   
    #[cfg(any(feature = "test-util", test))]
 1226   1229   
    #[allow(unused_mut)]
 1227   1230   
    /// Apply test defaults to the builder
 1228   1231   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/config.rs

@@ -1189,1189 +1248,1251 @@
 1209   1209   
        self
 1210   1210   
    }
 1211   1211   
    #[cfg(any(feature = "test-util", test))]
 1212   1212   
    #[allow(unused_mut)]
 1213   1213   
    /// Apply test defaults to the builder
 1214   1214   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1215   1215   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1216   1216   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1217   1217   
        )));
 1218   1218   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1219  +
        if self.config.load::<crate::config::Region>().is_none() {
        1220  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1221  +
        }
 1219   1222   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1220   1223   
            ::aws_credential_types::Credentials::for_tests(),
 1221   1224   
        )));
 1222   1225   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1223   1226   
        self
 1224   1227   
    }
 1225   1228   
    #[cfg(any(feature = "test-util", test))]
 1226   1229   
    #[allow(unused_mut)]
 1227   1230   
    /// Apply test defaults to the builder
 1228   1231   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/sts/src/config.rs

@@ -1189,1189 +1248,1251 @@
 1209   1209   
        self
 1210   1210   
    }
 1211   1211   
    #[cfg(any(feature = "test-util", test))]
 1212   1212   
    #[allow(unused_mut)]
 1213   1213   
    /// Apply test defaults to the builder
 1214   1214   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1215   1215   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1216   1216   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1217   1217   
        )));
 1218   1218   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1219  +
        if self.config.load::<crate::config::Region>().is_none() {
        1220  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1221  +
        }
 1219   1222   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1220   1223   
            ::aws_credential_types::Credentials::for_tests(),
 1221   1224   
        )));
 1222   1225   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1223   1226   
        self
 1224   1227   
    }
 1225   1228   
    #[cfg(any(feature = "test-util", test))]
 1226   1229   
    #[allow(unused_mut)]
 1227   1230   
    /// Apply test defaults to the builder
 1228   1231   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/config.rs

@@ -1206,1206 +1265,1268 @@
 1226   1226   
    }
 1227   1227   
    #[cfg(any(feature = "test-util", test))]
 1228   1228   
    #[allow(unused_mut)]
 1229   1229   
    /// Apply test defaults to the builder
 1230   1230   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1231   1231   
        self.set_idempotency_token_provider(Some("00000000-0000-4000-8000-000000000000".into()));
 1232   1232   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1233   1233   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1234   1234   
        )));
 1235   1235   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1236  +
        if self.config.load::<crate::config::Region>().is_none() {
        1237  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1238  +
        }
 1236   1239   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1237   1240   
            ::aws_credential_types::Credentials::for_tests(),
 1238   1241   
        )));
 1239   1242   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1240   1243   
        self
 1241   1244   
    }
 1242   1245   
    #[cfg(any(feature = "test-util", test))]
 1243   1246   
    #[allow(unused_mut)]
 1244   1247   
    /// Apply test defaults to the builder
 1245   1248   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/src/config.rs

@@ -1206,1206 +1265,1268 @@
 1226   1226   
    }
 1227   1227   
    #[cfg(any(feature = "test-util", test))]
 1228   1228   
    #[allow(unused_mut)]
 1229   1229   
    /// Apply test defaults to the builder
 1230   1230   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1231   1231   
        self.set_idempotency_token_provider(Some("00000000-0000-4000-8000-000000000000".into()));
 1232   1232   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1233   1233   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1234   1234   
        )));
 1235   1235   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1236  +
        if self.config.load::<crate::config::Region>().is_none() {
        1237  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1238  +
        }
 1236   1239   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1237   1240   
            ::aws_credential_types::Credentials::for_tests(),
 1238   1241   
        )));
 1239   1242   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1240   1243   
        self
 1241   1244   
    }
 1242   1245   
    #[cfg(any(feature = "test-util", test))]
 1243   1246   
    #[allow(unused_mut)]
 1244   1247   
    /// Apply test defaults to the builder
 1245   1248   
    pub fn with_test_defaults(mut self) -> Self {

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/src/config.rs

@@ -1189,1189 +1248,1251 @@
 1209   1209   
        self
 1210   1210   
    }
 1211   1211   
    #[cfg(any(feature = "test-util", test))]
 1212   1212   
    #[allow(unused_mut)]
 1213   1213   
    /// Apply test defaults to the builder
 1214   1214   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
 1215   1215   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
 1216   1216   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
 1217   1217   
        )));
 1218   1218   
        self.config.store_put(::aws_runtime::user_agent::AwsUserAgent::for_tests());
        1219  +
        if self.config.load::<crate::config::Region>().is_none() {
        1220  +
            self.set_region(::std::option::Option::Some(crate::config::Region::new("us-east-1")));
        1221  +
        }
 1219   1222   
        self.set_credentials_provider(Some(crate::config::SharedCredentialsProvider::new(
 1220   1223   
            ::aws_credential_types::Credentials::for_tests(),
 1221   1224   
        )));
 1222   1225   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
 1223   1226   
        self
 1224   1227   
    }
 1225   1228   
    #[cfg(any(feature = "test-util", test))]
 1226   1229   
    #[allow(unused_mut)]
 1227   1230   
    /// Apply test defaults to the builder
 1228   1231   
    pub fn with_test_defaults(mut self) -> Self {