266 266 | >,
|
267 267 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
268 268 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
269 269 | let _input = context
|
270 270 | .input()
|
271 271 | .downcast_ref::<GetBucketIntelligentTieringConfigurationInput>()
|
272 272 | .ok_or("failed to downcast to GetBucketIntelligentTieringConfigurationInput")?;
|
273 273 |
|
274 274 | let params = crate::config::endpoint::Params::builder()
|
275 275 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
276 276 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|
277 277 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|
278 278 | .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
|
279 279 | .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
|
280 280 | .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
|
281 281 | .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
|
282 282 | .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
|
283 283 | .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
|
284 284 | .set_use_s3_express_control_endpoint(Some(true))
|
285 285 | .set_bucket(Some(
|
286 286 | _input
|
287 287 | .bucket
|
288 288 | .clone()
|
289 289 | .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
|
290 290 | .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
|
291 291 | ))
|
292 292 | .build()
|
293 293 | .map_err(|err| {
|
294 294 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
295 295 | })?;
|
296 + |
|
296 297 | cfg.interceptor_state()
|
297 298 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
299 + |
|
298 300 | ::std::result::Result::Ok(())
|
299 301 | }
|
300 302 | }
|
301 303 |
|
302 304 | // The get_* functions below are generated from JMESPath expressions in the
|
303 305 | // operationContextParams trait. They target the operation's input shape.
|
304 306 |
|
305 307 | /// Error type for the `GetBucketIntelligentTieringConfigurationError` operation.
|
306 308 | #[non_exhaustive]
|
307 309 | #[derive(::std::fmt::Debug)]
|
308 310 | pub enum GetBucketIntelligentTieringConfigurationError {
|
309 311 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
310 312 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
311 313 | variable wildcard pattern and check `.code()`:
|
312 314 | \
|
313 315 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
314 316 | \
|
315 317 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetBucketIntelligentTieringConfigurationError) for what information is available for the error.")]
|
316 318 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
317 319 | }
|
318 320 | impl GetBucketIntelligentTieringConfigurationError {
|
319 321 | /// Creates the `GetBucketIntelligentTieringConfigurationError::Unhandled` variant from any error type.
|
320 322 | pub fn unhandled(
|
321 323 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
322 324 | ) -> Self {
|
323 325 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
324 326 | source: err.into(),
|
325 327 | meta: ::std::default::Default::default(),
|
326 328 | })
|
327 329 | }
|