AWS SDK
rev. 3fed2bff2e72a1f6de743a5a70a58e4ed237cbc3 (ignoring whitespace)
Files changed:
@@ -1189,1189 +1248,1251 @@
1189 1189 | self
|
1190 1190 | }
|
1191 1191 |
|
1192 1192 | /// Convenience method to set the latest behavior major version
|
1193 1193 | ///
|
1194 1194 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1195 1195 | pub fn behavior_version_latest(mut self) -> Self {
|
1196 1196 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1197 1197 | self
|
1198 1198 | }
|
1199 1199 | /// Adds a runtime plugin to the config.
|
1200 1200 | #[allow(unused)]
|
1201 1201 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1202 1202 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1203 1203 | self
|
1204 1204 | }
|
1205 1205 | /// Adds a runtime plugin to the config.
|
1206 1206 | #[allow(unused)]
|
1207 1207 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1208 1208 | self.runtime_plugins.push(plugin);
|
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 {
|
1229 1232 | self.apply_test_defaults();
|
1230 1233 | self
|
1231 1234 | }
|
1232 1235 | /// Builds a [`Config`].
|
1233 1236 | #[allow(unused_mut)]
|
1234 1237 | pub fn build(mut self) -> Config {
|
1235 1238 | let mut layer = self.config;
|
1236 1239 | if self.runtime_components.time_source().is_none() {
|
1237 1240 | self.runtime_components
|
1238 1241 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1239 1242 | }
|
1240 1243 | layer.store_put(crate::meta::API_METADATA.clone());
|
1241 1244 | layer.store_put(::aws_types::SigningName::from_static("polly"));
|
1242 1245 | layer
|
1243 1246 | .load::<::aws_types::region::Region>()
|
1244 1247 | .cloned()
|
1245 1248 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1246 1249 | Config {
|
1247 1250 | config: crate::config::Layer::from(layer.clone())
|
1248 1251 | .with_name("aws_sdk_polly::config::Config")
|
@@ -1189,1189 +1248,1251 @@
1189 1189 | self
|
1190 1190 | }
|
1191 1191 |
|
1192 1192 | /// Convenience method to set the latest behavior major version
|
1193 1193 | ///
|
1194 1194 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1195 1195 | pub fn behavior_version_latest(mut self) -> Self {
|
1196 1196 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1197 1197 | self
|
1198 1198 | }
|
1199 1199 | /// Adds a runtime plugin to the config.
|
1200 1200 | #[allow(unused)]
|
1201 1201 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1202 1202 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1203 1203 | self
|
1204 1204 | }
|
1205 1205 | /// Adds a runtime plugin to the config.
|
1206 1206 | #[allow(unused)]
|
1207 1207 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1208 1208 | self.runtime_plugins.push(plugin);
|
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 {
|
1229 1232 | self.apply_test_defaults();
|
1230 1233 | self
|
1231 1234 | }
|
1232 1235 | /// Builds a [`Config`].
|
1233 1236 | #[allow(unused_mut)]
|
1234 1237 | pub fn build(mut self) -> Config {
|
1235 1238 | let mut layer = self.config;
|
1236 1239 | if self.runtime_components.time_source().is_none() {
|
1237 1240 | self.runtime_components
|
1238 1241 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1239 1242 | }
|
1240 1243 | layer.store_put(crate::meta::API_METADATA.clone());
|
1241 1244 | layer.store_put(::aws_types::SigningName::from_static("qldb"));
|
1242 1245 | layer
|
1243 1246 | .load::<::aws_types::region::Region>()
|
1244 1247 | .cloned()
|
1245 1248 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1246 1249 | Config {
|
1247 1250 | config: crate::config::Layer::from(layer.clone())
|
1248 1251 | .with_name("aws_sdk_qldbsession::config::Config")
|
@@ -1189,1189 +1248,1251 @@
1189 1189 | self
|
1190 1190 | }
|
1191 1191 |
|
1192 1192 | /// Convenience method to set the latest behavior major version
|
1193 1193 | ///
|
1194 1194 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1195 1195 | pub fn behavior_version_latest(mut self) -> Self {
|
1196 1196 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1197 1197 | self
|
1198 1198 | }
|
1199 1199 | /// Adds a runtime plugin to the config.
|
1200 1200 | #[allow(unused)]
|
1201 1201 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1202 1202 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1203 1203 | self
|
1204 1204 | }
|
1205 1205 | /// Adds a runtime plugin to the config.
|
1206 1206 | #[allow(unused)]
|
1207 1207 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1208 1208 | self.runtime_plugins.push(plugin);
|
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 {
|
1229 1232 | self.apply_test_defaults();
|
1230 1233 | self
|
1231 1234 | }
|
1232 1235 | /// Builds a [`Config`].
|
1233 1236 | #[allow(unused_mut)]
|
1234 1237 | pub fn build(mut self) -> Config {
|
1235 1238 | let mut layer = self.config;
|
1236 1239 | if self.runtime_components.time_source().is_none() {
|
1237 1240 | self.runtime_components
|
1238 1241 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1239 1242 | }
|
1240 1243 | layer.store_put(crate::meta::API_METADATA.clone());
|
1241 1244 | layer.store_put(::aws_types::SigningName::from_static("route53"));
|
1242 1245 | layer
|
1243 1246 | .load::<::aws_types::region::Region>()
|
1244 1247 | .cloned()
|
1245 1248 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1246 1249 | Config {
|
1247 1250 | config: crate::config::Layer::from(layer.clone())
|
1248 1251 | .with_name("aws_sdk_route53::config::Config")
|
@@ -122,122 +182,182 @@
122 122 | features = ["behavior-version-latest"]
|
123 123 | version = "1.8.7"
|
124 124 |
|
125 125 | [dev-dependencies.aws-credential-types]
|
126 126 | path = "../aws-credential-types"
|
127 127 | features = ["test-util"]
|
128 128 | version = "1.2.7"
|
129 129 |
|
130 130 | [dev-dependencies.aws-runtime]
|
131 131 | path = "../aws-runtime"
|
132 132 | features = ["test-util"]
|
133 133 | version = "1.5.11"
|
134 134 |
|
135 135 | [dev-dependencies.aws-smithy-async]
|
136 136 | path = "../aws-smithy-async"
|
137 137 | features = ["test-util"]
|
138 138 | version = "1.2.5"
|
139 139 |
|
140 140 | [dev-dependencies.aws-smithy-eventstream]
|
141 141 | path = "../aws-smithy-eventstream"
|
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 |
|
163 163 | [dev-dependencies.aws-smithy-runtime-api]
|
164 164 | path = "../aws-smithy-runtime-api"
|
165 165 | features = ["test-util", "client", "http-02x"]
|
166 166 | version = "1.9.0"
|
167 167 |
|
168 168 | [dev-dependencies.aws-smithy-types]
|
169 169 | path = "../aws-smithy-types"
|
170 170 | features = ["test-util"]
|
171 171 | version = "1.3.2"
|
172 172 |
|
173 173 | [dev-dependencies.bytes-utils]
|
174 174 | version = "0.1.0"
|
175 175 |
|
176 176 | [dev-dependencies.futures-util]
|
177 177 | version = "0.3.25"
|
178 178 | features = ["alloc"]
|
179 179 | default-features = false
|
180 180 |
|
181 181 | [dev-dependencies.hdrhistogram]
|
182 182 | version = "7.5.2"
|
@@ -1319,1319 +1378,1381 @@
1319 1319 | self
|
1320 1320 | }
|
1321 1321 |
|
1322 1322 | /// Convenience method to set the latest behavior major version
|
1323 1323 | ///
|
1324 1324 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1325 1325 | pub fn behavior_version_latest(mut self) -> Self {
|
1326 1326 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1327 1327 | self
|
1328 1328 | }
|
1329 1329 | /// Adds a runtime plugin to the config.
|
1330 1330 | #[allow(unused)]
|
1331 1331 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1332 1332 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1333 1333 | self
|
1334 1334 | }
|
1335 1335 | /// Adds a runtime plugin to the config.
|
1336 1336 | #[allow(unused)]
|
1337 1337 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1338 1338 | self.runtime_plugins.push(plugin);
|
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 {
|
1359 1362 | self.apply_test_defaults();
|
1360 1363 | self
|
1361 1364 | }
|
1362 1365 | /// Builds a [`Config`].
|
1363 1366 | #[allow(unused_mut)]
|
1364 1367 | pub fn build(mut self) -> Config {
|
1365 1368 | let mut layer = self.config;
|
1366 1369 |
|
1367 1370 | if self.runtime_components.time_source().is_none() {
|
1368 1371 | self.runtime_components
|
1369 1372 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1370 1373 | }
|
1371 1374 | layer.store_put(crate::meta::API_METADATA.clone());
|
1372 1375 | layer.store_put(::aws_types::SigningName::from_static("s3"));
|
1373 1376 | layer
|
1374 1377 | .load::<::aws_types::region::Region>()
|
1375 1378 | .cloned()
|
1376 1379 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1377 1380 | Config {
|
1378 1381 | config: crate::config::Layer::from(layer.clone()).with_name("aws_sdk_s3::config::Config").freeze(),
|
@@ -1217,1217 +1276,1279 @@
1217 1217 | }
|
1218 1218 |
|
1219 1219 | /// Convenience method to set the latest behavior major version
|
1220 1220 | ///
|
1221 1221 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1222 1222 | pub fn behavior_version_latest(mut self) -> Self {
|
1223 1223 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1224 1224 | self
|
1225 1225 | }
|
1226 1226 | /// Adds a runtime plugin to the config.
|
1227 1227 | #[allow(unused)]
|
1228 1228 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1229 1229 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1230 1230 | self
|
1231 1231 | }
|
1232 1232 | /// Adds a runtime plugin to the config.
|
1233 1233 | #[allow(unused)]
|
1234 1234 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1235 1235 | self.runtime_plugins.push(plugin);
|
1236 1236 | self
|
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 {
|
1257 1260 | self.apply_test_defaults();
|
1258 1261 | self
|
1259 1262 | }
|
1260 1263 | /// Builds a [`Config`].
|
1261 1264 | #[allow(unused_mut)]
|
1262 1265 | pub fn build(mut self) -> Config {
|
1263 1266 | let mut layer = self.config;
|
1264 1267 | if self.runtime_components.time_source().is_none() {
|
1265 1268 | self.runtime_components
|
1266 1269 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1267 1270 | }
|
1268 1271 | layer.store_put(crate::meta::API_METADATA.clone());
|
1269 1272 | layer.store_put(::aws_types::SigningName::from_static("s3"));
|
1270 1273 | layer
|
1271 1274 | .load::<::aws_types::region::Region>()
|
1272 1275 | .cloned()
|
1273 1276 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1274 1277 | Config {
|
1275 1278 | config: crate::config::Layer::from(layer.clone())
|
1276 1279 | .with_name("aws_sdk_s3control::config::Config")
|
@@ -1189,1189 +1248,1251 @@
1189 1189 | self
|
1190 1190 | }
|
1191 1191 |
|
1192 1192 | /// Convenience method to set the latest behavior major version
|
1193 1193 | ///
|
1194 1194 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1195 1195 | pub fn behavior_version_latest(mut self) -> Self {
|
1196 1196 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1197 1197 | self
|
1198 1198 | }
|
1199 1199 | /// Adds a runtime plugin to the config.
|
1200 1200 | #[allow(unused)]
|
1201 1201 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1202 1202 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1203 1203 | self
|
1204 1204 | }
|
1205 1205 | /// Adds a runtime plugin to the config.
|
1206 1206 | #[allow(unused)]
|
1207 1207 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1208 1208 | self.runtime_plugins.push(plugin);
|
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 {
|
1229 1232 | self.apply_test_defaults();
|
1230 1233 | self
|
1231 1234 | }
|
1232 1235 | /// Builds a [`Config`].
|
1233 1236 | #[allow(unused_mut)]
|
1234 1237 | pub fn build(mut self) -> Config {
|
1235 1238 | let mut layer = self.config;
|
1236 1239 | if self.runtime_components.time_source().is_none() {
|
1237 1240 | self.runtime_components
|
1238 1241 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1239 1242 | }
|
1240 1243 | layer.store_put(crate::meta::API_METADATA.clone());
|
1241 1244 | layer.store_put(::aws_types::SigningName::from_static("awsssoportal"));
|
1242 1245 | layer
|
1243 1246 | .load::<::aws_types::region::Region>()
|
1244 1247 | .cloned()
|
1245 1248 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1246 1249 | Config {
|
1247 1250 | config: crate::config::Layer::from(layer.clone())
|
1248 1251 | .with_name("aws_sdk_sso::config::Config")
|
@@ -1189,1189 +1248,1251 @@
1189 1189 | self
|
1190 1190 | }
|
1191 1191 |
|
1192 1192 | /// Convenience method to set the latest behavior major version
|
1193 1193 | ///
|
1194 1194 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1195 1195 | pub fn behavior_version_latest(mut self) -> Self {
|
1196 1196 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1197 1197 | self
|
1198 1198 | }
|
1199 1199 | /// Adds a runtime plugin to the config.
|
1200 1200 | #[allow(unused)]
|
1201 1201 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1202 1202 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1203 1203 | self
|
1204 1204 | }
|
1205 1205 | /// Adds a runtime plugin to the config.
|
1206 1206 | #[allow(unused)]
|
1207 1207 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1208 1208 | self.runtime_plugins.push(plugin);
|
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 {
|
1229 1232 | self.apply_test_defaults();
|
1230 1233 | self
|
1231 1234 | }
|
1232 1235 | /// Builds a [`Config`].
|
1233 1236 | #[allow(unused_mut)]
|
1234 1237 | pub fn build(mut self) -> Config {
|
1235 1238 | let mut layer = self.config;
|
1236 1239 | if self.runtime_components.time_source().is_none() {
|
1237 1240 | self.runtime_components
|
1238 1241 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1239 1242 | }
|
1240 1243 | layer.store_put(crate::meta::API_METADATA.clone());
|
1241 1244 | layer.store_put(::aws_types::SigningName::from_static("sso-oauth"));
|
1242 1245 | layer
|
1243 1246 | .load::<::aws_types::region::Region>()
|
1244 1247 | .cloned()
|
1245 1248 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1246 1249 | Config {
|
1247 1250 | config: crate::config::Layer::from(layer.clone())
|
1248 1251 | .with_name("aws_sdk_ssooidc::config::Config")
|
@@ -1189,1189 +1248,1251 @@
1189 1189 | self
|
1190 1190 | }
|
1191 1191 |
|
1192 1192 | /// Convenience method to set the latest behavior major version
|
1193 1193 | ///
|
1194 1194 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1195 1195 | pub fn behavior_version_latest(mut self) -> Self {
|
1196 1196 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1197 1197 | self
|
1198 1198 | }
|
1199 1199 | /// Adds a runtime plugin to the config.
|
1200 1200 | #[allow(unused)]
|
1201 1201 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1202 1202 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1203 1203 | self
|
1204 1204 | }
|
1205 1205 | /// Adds a runtime plugin to the config.
|
1206 1206 | #[allow(unused)]
|
1207 1207 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1208 1208 | self.runtime_plugins.push(plugin);
|
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 {
|
1229 1232 | self.apply_test_defaults();
|
1230 1233 | self
|
1231 1234 | }
|
1232 1235 | /// Builds a [`Config`].
|
1233 1236 | #[allow(unused_mut)]
|
1234 1237 | pub fn build(mut self) -> Config {
|
1235 1238 | let mut layer = self.config;
|
1236 1239 | if self.runtime_components.time_source().is_none() {
|
1237 1240 | self.runtime_components
|
1238 1241 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1239 1242 | }
|
1240 1243 | layer.store_put(crate::meta::API_METADATA.clone());
|
1241 1244 | layer.store_put(::aws_types::SigningName::from_static("sts"));
|
1242 1245 | layer
|
1243 1246 | .load::<::aws_types::region::Region>()
|
1244 1247 | .cloned()
|
1245 1248 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1246 1249 | Config {
|
1247 1250 | config: crate::config::Layer::from(layer.clone())
|
1248 1251 | .with_name("aws_sdk_sts::config::Config")
|
@@ -1206,1206 +1265,1268 @@
1206 1206 | }
|
1207 1207 |
|
1208 1208 | /// Convenience method to set the latest behavior major version
|
1209 1209 | ///
|
1210 1210 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1211 1211 | pub fn behavior_version_latest(mut self) -> Self {
|
1212 1212 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1213 1213 | self
|
1214 1214 | }
|
1215 1215 | /// Adds a runtime plugin to the config.
|
1216 1216 | #[allow(unused)]
|
1217 1217 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1218 1218 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1219 1219 | self
|
1220 1220 | }
|
1221 1221 | /// Adds a runtime plugin to the config.
|
1222 1222 | #[allow(unused)]
|
1223 1223 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1224 1224 | self.runtime_plugins.push(plugin);
|
1225 1225 | self
|
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 {
|
1246 1249 | self.apply_test_defaults();
|
1247 1250 | self
|
1248 1251 | }
|
1249 1252 | /// Builds a [`Config`].
|
1250 1253 | #[allow(unused_mut)]
|
1251 1254 | pub fn build(mut self) -> Config {
|
1252 1255 | let mut layer = self.config;
|
1253 1256 | if self.runtime_components.time_source().is_none() {
|
1254 1257 | self.runtime_components
|
1255 1258 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1256 1259 | }
|
1257 1260 | layer.store_put(crate::meta::API_METADATA.clone());
|
1258 1261 | layer.store_put(::aws_types::SigningName::from_static("timestream"));
|
1259 1262 | layer
|
1260 1263 | .load::<::aws_types::region::Region>()
|
1261 1264 | .cloned()
|
1262 1265 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1263 1266 | Config {
|
1264 1267 | config: crate::config::Layer::from(layer.clone())
|
1265 1268 | .with_name("aws_sdk_timestreamquery::config::Config")
|
@@ -1206,1206 +1265,1268 @@
1206 1206 | }
|
1207 1207 |
|
1208 1208 | /// Convenience method to set the latest behavior major version
|
1209 1209 | ///
|
1210 1210 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1211 1211 | pub fn behavior_version_latest(mut self) -> Self {
|
1212 1212 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1213 1213 | self
|
1214 1214 | }
|
1215 1215 | /// Adds a runtime plugin to the config.
|
1216 1216 | #[allow(unused)]
|
1217 1217 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1218 1218 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1219 1219 | self
|
1220 1220 | }
|
1221 1221 | /// Adds a runtime plugin to the config.
|
1222 1222 | #[allow(unused)]
|
1223 1223 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1224 1224 | self.runtime_plugins.push(plugin);
|
1225 1225 | self
|
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 {
|
1246 1249 | self.apply_test_defaults();
|
1247 1250 | self
|
1248 1251 | }
|
1249 1252 | /// Builds a [`Config`].
|
1250 1253 | #[allow(unused_mut)]
|
1251 1254 | pub fn build(mut self) -> Config {
|
1252 1255 | let mut layer = self.config;
|
1253 1256 | if self.runtime_components.time_source().is_none() {
|
1254 1257 | self.runtime_components
|
1255 1258 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1256 1259 | }
|
1257 1260 | layer.store_put(crate::meta::API_METADATA.clone());
|
1258 1261 | layer.store_put(::aws_types::SigningName::from_static("timestream"));
|
1259 1262 | layer
|
1260 1263 | .load::<::aws_types::region::Region>()
|
1261 1264 | .cloned()
|
1262 1265 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1263 1266 | Config {
|
1264 1267 | config: crate::config::Layer::from(layer.clone())
|
1265 1268 | .with_name("aws_sdk_timestreamwrite::config::Config")
|
@@ -1189,1189 +1248,1251 @@
1189 1189 | self
|
1190 1190 | }
|
1191 1191 |
|
1192 1192 | /// Convenience method to set the latest behavior major version
|
1193 1193 | ///
|
1194 1194 | /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
|
1195 1195 | pub fn behavior_version_latest(mut self) -> Self {
|
1196 1196 | self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
|
1197 1197 | self
|
1198 1198 | }
|
1199 1199 | /// Adds a runtime plugin to the config.
|
1200 1200 | #[allow(unused)]
|
1201 1201 | pub(crate) fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
|
1202 1202 | self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
|
1203 1203 | self
|
1204 1204 | }
|
1205 1205 | /// Adds a runtime plugin to the config.
|
1206 1206 | #[allow(unused)]
|
1207 1207 | pub(crate) fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
|
1208 1208 | self.runtime_plugins.push(plugin);
|
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 {
|
1229 1232 | self.apply_test_defaults();
|
1230 1233 | self
|
1231 1234 | }
|
1232 1235 | /// Builds a [`Config`].
|
1233 1236 | #[allow(unused_mut)]
|
1234 1237 | pub fn build(mut self) -> Config {
|
1235 1238 | let mut layer = self.config;
|
1236 1239 | if self.runtime_components.time_source().is_none() {
|
1237 1240 | self.runtime_components
|
1238 1241 | .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
|
1239 1242 | }
|
1240 1243 | layer.store_put(crate::meta::API_METADATA.clone());
|
1241 1244 | layer.store_put(::aws_types::SigningName::from_static("transcribe"));
|
1242 1245 | layer
|
1243 1246 | .load::<::aws_types::region::Region>()
|
1244 1247 | .cloned()
|
1245 1248 | .map(|r| layer.store_put(::aws_types::region::SigningRegion::from(r)));
|
1246 1249 | Config {
|
1247 1250 | config: crate::config::Layer::from(layer.clone())
|
1248 1251 | .with_name("aws_sdk_transcribestreaming::config::Config")
|