247 247 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
248 248 | >,
|
249 249 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
250 250 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
251 251 | let _input = context
|
252 252 | .input()
|
253 253 | .downcast_ref::<DeleteObjectTaggingInput>()
|
254 254 | .ok_or("failed to downcast to DeleteObjectTaggingInput")?;
|
255 255 |
|
256 256 | let params = crate::config::endpoint::Params::builder()
|
257 257 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
258 258 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|
259 259 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|
260 260 | .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
|
261 261 | .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
|
262 262 | .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
|
263 263 | .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
|
264 264 | .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
|
265 265 | .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
|
266 266 | .set_bucket(Some(
|
267 267 | _input
|
268 268 | .bucket
|
269 269 | .clone()
|
270 270 | .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
|
271 271 | .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
|
272 272 | ))
|
273 273 | .build()
|
274 274 | .map_err(|err| {
|
275 275 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
276 276 | })?;
|
277 + |
|
277 278 | cfg.interceptor_state()
|
278 279 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
280 + |
|
279 281 | ::std::result::Result::Ok(())
|
280 282 | }
|
281 283 | }
|
282 284 |
|
283 285 | // The get_* functions below are generated from JMESPath expressions in the
|
284 286 | // operationContextParams trait. They target the operation's input shape.
|
285 287 |
|
286 288 | #[allow(unreachable_code, unused_variables)]
|
287 289 | #[cfg(test)]
|
288 290 | mod delete_object_tagging_test {
|
289 291 |
|
290 292 | /// S3 clients should escape special characters in Object Keys
|
291 293 | /// when the Object Key is used as a URI label binding.
|
292 294 | ///
|
293 295 | /// Test ID: S3EscapeObjectKeyInUriLabel
|
294 296 | #[::tokio::test]
|
295 297 | #[::tracing_test::traced_test]
|
296 298 | async fn s3_escape_object_key_in_uri_label_request() {
|
297 299 | let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
|
298 300 | let config_builder = crate::config::Config::builder()
|
299 301 | .with_test_defaults()
|
300 302 | .endpoint_url("https://s3.us-west-2.amazonaws.com");
|
301 303 |
|
302 304 | let mut config_builder = config_builder;
|
303 305 | config_builder.set_region(Some(crate::config::Region::new("us-east-1")));
|
304 306 |
|
305 307 | let config = config_builder.http_client(http_client).build();
|
306 308 | let client = crate::Client::from_conf(config);
|
307 309 | let result = client
|
308 310 | .delete_object_tagging()
|