262 262 | >,
|
263 263 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
264 264 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
265 265 | let _input = context
|
266 266 | .input()
|
267 267 | .downcast_ref::<ListObjectVersionsInput>()
|
268 268 | .ok_or("failed to downcast to ListObjectVersionsInput")?;
|
269 269 |
|
270 270 | let params = crate::config::endpoint::Params::builder()
|
271 271 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
272 272 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|
273 273 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|
274 274 | .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
|
275 275 | .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
|
276 276 | .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
|
277 277 | .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
|
278 278 | .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
|
279 279 | .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
|
280 280 | .set_bucket(Some(
|
281 281 | _input
|
282 282 | .bucket
|
283 283 | .clone()
|
284 284 | .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
|
285 285 | .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
|
286 286 | ))
|
287 287 | .set_prefix(_input.prefix.clone())
|
288 288 | .build()
|
289 289 | .map_err(|err| {
|
290 290 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
291 291 | })?;
|
292 + |
|
292 293 | cfg.interceptor_state()
|
293 294 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
295 + |
|
294 296 | ::std::result::Result::Ok(())
|
295 297 | }
|
296 298 | }
|
297 299 |
|
298 300 | // The get_* functions below are generated from JMESPath expressions in the
|
299 301 | // operationContextParams trait. They target the operation's input shape.
|
300 302 |
|
301 303 | #[allow(unreachable_code, unused_variables)]
|
302 304 | #[cfg(test)]
|
303 305 | mod list_object_versions_test {
|
304 306 |
|
305 307 | /// Verify that interleaving list elements (DeleteMarker and Version) from different lists works
|
306 308 | /// Test ID: OutOfOrderVersions
|
307 309 | #[::tokio::test]
|
308 310 | #[::tracing_test::traced_test]
|
309 311 | async fn out_of_order_versions_response() {
|
310 312 | let expected_output = crate::operation::list_object_versions::ListObjectVersionsOutput::builder()
|
311 313 | .set_name(::std::option::Option::Some("sdk-obj-versions-test".to_owned()))
|
312 314 | .set_prefix(::std::option::Option::Some("".to_owned()))
|
313 315 | .set_key_marker(::std::option::Option::Some("".to_owned()))
|
314 316 | .set_version_id_marker(::std::option::Option::Some("".to_owned()))
|
315 317 | .set_max_keys(::std::option::Option::Some(1000))
|
316 318 | .set_is_truncated(::std::option::Option::Some(false))
|
317 319 | .set_delete_markers(::std::option::Option::Some(vec![
|
318 320 | crate::types::DeleteMarkerEntry::builder()
|
319 321 | .set_key(::std::option::Option::Some("build.gradle.kts".to_owned()))
|
320 322 | .set_version_id(::std::option::Option::Some("null".to_owned()))
|
321 323 | .set_is_latest(::std::option::Option::Some(true))
|
322 324 | .set_last_modified(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
|
323 325 | 1234567890, 0_f64,
|