1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct UpdateBucketMetadataAnnotationTableConfiguration;
6impl UpdateBucketMetadataAnnotationTableConfiguration {
7 pub fn new() -> Self {
9 Self
10 }
11 pub(crate) async fn orchestrate(
12 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13 input: crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationInput,
14 ) -> ::std::result::Result<
15 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError,
18 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19 >,
20 > {
21 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
22 ::aws_smithy_runtime_api::client::interceptors::context::Error,
23 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
24 >| {
25 err.map_service_error(|err| {
26 err.downcast::<crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError>().expect("correct error type")
27 })
28 };
29 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
30 .await
31 .map_err(map_err)?;
32 let output = context.finalize().map_err(map_err)?;
33 ::std::result::Result::Ok(output.downcast::<crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationOutput>().expect("correct output type"))
34 }
35
36 pub(crate) async fn orchestrate_with_stop_point(
37 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
38 input: crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationInput,
39 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
40 ) -> ::std::result::Result<
41 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
42 ::aws_smithy_runtime_api::client::result::SdkError<
43 ::aws_smithy_runtime_api::client::interceptors::context::Error,
44 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
45 >,
46 > {
47 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
48 use ::tracing::Instrument;
49 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point(
50 "S3",
51 "UpdateBucketMetadataAnnotationTableConfiguration",
52 input,
53 runtime_plugins,
54 stop_point,
55 )
56 .instrument(::tracing::debug_span!(
59 "S3.UpdateBucketMetadataAnnotationTableConfiguration",
60 "rpc.service" = "S3",
61 "rpc.method" = "UpdateBucketMetadataAnnotationTableConfiguration",
62 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
63 "rpc.system" = "aws-api",
64 ))
65 .await
66 }
67
68 pub(crate) fn operation_runtime_plugins(
69 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
70 client_config: &crate::config::Config,
71 config_override: ::std::option::Option<crate::config::Builder>,
72 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
73 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
74
75 if let ::std::option::Option::Some(config_override) = config_override {
76 for plugin in config_override.runtime_plugins.iter().cloned() {
77 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
78 }
79 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
80 config_override,
81 client_config.config.clone(),
82 &client_config.runtime_components,
83 ));
84 }
85 runtime_plugins
86 }
87}
88impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for UpdateBucketMetadataAnnotationTableConfiguration {
89 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
90 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdateBucketMetadataAnnotationTableConfiguration");
91
92 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
93 UpdateBucketMetadataAnnotationTableConfigurationRequestSerializer,
94 ));
95 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
96 UpdateBucketMetadataAnnotationTableConfigurationResponseDeserializer,
97 ));
98
99 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
100 crate::config::auth::Params::builder()
101 .operation_name("UpdateBucketMetadataAnnotationTableConfiguration")
102 .build()
103 .expect("required fields set"),
104 ));
105
106 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
107 "UpdateBucketMetadataAnnotationTableConfiguration",
108 "S3",
109 ));
110 cfg.store_put(crate::s3_express::checksum::provide_default_checksum_algorithm());
111 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
112 signing_options.double_uri_encode = false;
113 signing_options.content_sha256_header = true;
114 signing_options.normalize_uri_path = false;
115 signing_options.payload_override = None;
116
117 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
118 signing_options,
119 ..::std::default::Default::default()
120 });
121
122 ::std::option::Option::Some(cfg.freeze())
123 }
124
125 fn runtime_components(
126 &self,
127 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
128 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
129 #[allow(unused_mut)]
130 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("UpdateBucketMetadataAnnotationTableConfiguration")
131 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(UpdateBucketMetadataAnnotationTableConfigurationTelemetryInputCaptureInterceptor))
132.with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()))
133.with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(UpdateBucketMetadataAnnotationTableConfigurationEndpointParamsInterceptor))
134.with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(crate::http_request_checksum::RequestChecksumInterceptor::new(
135 |input: &::aws_smithy_runtime_api::client::interceptors::context::Input| {
136 let input: &crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationInput = input.downcast_ref().expect("correct type");
137 let checksum_algorithm = input.checksum_algorithm();
138 let checksum_algorithm = checksum_algorithm.map(|algorithm| algorithm.as_str());
139 (checksum_algorithm.map(|s| s.to_string()), true)
140 },
141 |request: &mut ::aws_smithy_runtime_api::http::Request, cfg: &::aws_smithy_types::config_bag::ConfigBag| {
142 let mut user_set_checksum_value = false;
144 let headers_to_check = request.headers().iter().filter_map(|(name, _val)| {
145 if name.starts_with("x-amz-checksum-") {
146 Some(name)
147 } else {
148 None
149 }
150 });
151 for algo_header in headers_to_check {
152 if request.headers().get(algo_header).is_some() {
153 user_set_checksum_value = true;
154 }
155 }
156
157 let user_set_checksum_algo = request.headers()
159 .get("x-amz-sdk-checksum-algorithm")
160 .is_some();
161
162 let request_checksum_calculation = cfg
164 .load::<::aws_smithy_types::checksum_config::RequestChecksumCalculation>()
165 .unwrap_or(&::aws_smithy_types::checksum_config::RequestChecksumCalculation::WhenSupported);
166
167 let http_checksum_required = true;
169
170 let is_presigned_req = cfg.load::<crate::presigning::PresigningMarker>().is_some();
171
172 match (
177 request_checksum_calculation,
178 http_checksum_required,
179 user_set_checksum_value,
180 user_set_checksum_algo,
181 is_presigned_req,
182 ) {
183 (_, _, _, _, true) => {}
184 (::aws_smithy_types::checksum_config::RequestChecksumCalculation::WhenSupported, _, false, false, _)
185 | (::aws_smithy_types::checksum_config::RequestChecksumCalculation::WhenRequired, true, false, false, _) => {
186 request.headers_mut().insert("x-amz-sdk-checksum-algorithm", "CRC32");
187 }
188 _ => {},
189 }
190
191 Ok(user_set_checksum_value)
194 }
195 )))
196 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError>::new())
197.with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError>::new())
198.with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError>::builder().transient_errors({
199 let mut transient_errors: Vec<&'static str> = ::aws_runtime::retries::classifiers::TRANSIENT_ERRORS.into();
200 transient_errors.push("InternalError");
201 ::std::borrow::Cow::Owned(transient_errors)
202 }).build())
203.with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError>::new());
204
205 ::std::borrow::Cow::Owned(rcb)
206 }
207}
208
209#[derive(Debug)]
210struct UpdateBucketMetadataAnnotationTableConfigurationTelemetryInputCaptureInterceptor;
211
212#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
213impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateBucketMetadataAnnotationTableConfigurationTelemetryInputCaptureInterceptor {
214 fn name(&self) -> &'static str {
215 "UpdateBucketMetadataAnnotationTableConfigurationTelemetryInputCaptureInterceptor"
216 }
217
218 fn read_before_execution(
219 &self,
220 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
221 '_,
222 ::aws_smithy_runtime_api::client::interceptors::context::Input,
223 ::aws_smithy_runtime_api::client::interceptors::context::Output,
224 ::aws_smithy_runtime_api::client::interceptors::context::Error,
225 >,
226 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
227 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
228 let ::std::option::Option::Some(requested) = cfg
230 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
231 .filter(|r| !r.is_empty())
232 else {
233 return ::std::result::Result::Ok(());
234 };
235
236 let ::std::option::Option::Some(input) = context.input().downcast_ref::<UpdateBucketMetadataAnnotationTableConfigurationInput>() else {
237 return ::std::result::Result::Ok(());
239 };
240
241 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
242 if requested.should_capture("Bucket") {
243 if let ::std::option::Option::Some(value) = input.bucket.as_deref() {
244 captured.insert("Bucket", value);
245 }
246 }
247 if requested.should_capture("ContentMD5") {
248 if let ::std::option::Option::Some(value) = input.content_md5.as_deref() {
249 captured.insert("ContentMD5", value);
250 }
251 }
252 if requested.should_capture("ExpectedBucketOwner") {
253 if let ::std::option::Option::Some(value) = input.expected_bucket_owner.as_deref() {
254 captured.insert("ExpectedBucketOwner", value);
255 }
256 }
257
258 cfg.interceptor_state().store_put(captured);
259 ::std::result::Result::Ok(())
260 }
261}
262#[derive(Debug)]
263struct UpdateBucketMetadataAnnotationTableConfigurationResponseDeserializer;
264impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateBucketMetadataAnnotationTableConfigurationResponseDeserializer {
265 fn deserialize_nonstreaming_with_config(
266 &self,
267 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
268 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
269 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
270 let (success, status) = (response.status().is_success(), response.status().as_u16());
271 let headers = response.headers();
272 let body = response.body().bytes().expect("body loaded");
273 #[allow(unused_mut)]
274 let mut force_error = false;
275 ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
276 if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
277 force_error = true;
278 }
279 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
280 let parse_result = if !success && status != 200 || force_error {
281 crate::protocol_serde::shape_update_bucket_metadata_annotation_table_configuration::de_update_bucket_metadata_annotation_table_configuration_http_error(status, headers, body, _cfg)
282 } else {
283 crate::protocol_serde::shape_update_bucket_metadata_annotation_table_configuration::de_update_bucket_metadata_annotation_table_configuration_http_response(status, headers, body, _cfg)
284 };
285 crate::protocol_serde::type_erase_result(parse_result)
286 }
287}
288#[derive(Debug)]
289struct UpdateBucketMetadataAnnotationTableConfigurationRequestSerializer;
290impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateBucketMetadataAnnotationTableConfigurationRequestSerializer {
291 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
292 fn serialize_input(
293 &self,
294 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
295 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
296 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
297 let input = input.downcast::<crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationInput>().expect("correct type");
298 let _header_serialization_settings = _cfg
299 .load::<crate::serialization_settings::HeaderSerializationSettings>()
300 .cloned()
301 .unwrap_or_default();
302 let mut request_builder = {
303 #[allow(clippy::uninlined_format_args)]
304 fn uri_base(
305 _input: &crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationInput,
306 output: &mut ::std::string::String,
307 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
308 use ::std::fmt::Write as _;
309 ::std::write!(output, "/").expect("formatting should succeed");
310 ::std::result::Result::Ok(())
311 }
312 fn uri_query(
313 _input: &crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationInput,
314 mut output: &mut ::std::string::String,
315 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
316 let mut query = ::aws_smithy_http::query::Writer::new(output);
317 query.push_v("metadataAnnotationTable");
318 ::std::result::Result::Ok(())
319 }
320 #[allow(clippy::unnecessary_wraps)]
321 fn update_http_builder(
322 input: &crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationInput,
323 builder: ::http_1x::request::Builder,
324 ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
325 let mut uri = ::std::string::String::new();
326 uri_base(input, &mut uri)?;
327 uri_query(input, &mut uri)?;
328 let builder = crate::protocol_serde::shape_update_bucket_metadata_annotation_table_configuration::ser_update_bucket_metadata_annotation_table_configuration_headers(input, builder)?;
329 ::std::result::Result::Ok(builder.method("PUT").uri(uri))
330 }
331 let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
332 builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
333 builder
334 };
335 let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_bucket_metadata_annotation_table_configuration_input::ser_annotation_table_configuration_http_payload(& input.annotation_table_configuration)?);
336 if let Some(content_length) = body.content_length() {
337 let content_length = content_length.to_string();
338 request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
339 }
340 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
341 }
342}
343#[derive(Debug)]
344struct UpdateBucketMetadataAnnotationTableConfigurationEndpointParamsInterceptor;
345
346#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
347impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateBucketMetadataAnnotationTableConfigurationEndpointParamsInterceptor {
348 fn name(&self) -> &'static str {
349 "UpdateBucketMetadataAnnotationTableConfigurationEndpointParamsInterceptor"
350 }
351
352 fn read_before_execution(
353 &self,
354 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
355 '_,
356 ::aws_smithy_runtime_api::client::interceptors::context::Input,
357 ::aws_smithy_runtime_api::client::interceptors::context::Output,
358 ::aws_smithy_runtime_api::client::interceptors::context::Error,
359 >,
360 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
361 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
362 let _input = context
363 .input()
364 .downcast_ref::<UpdateBucketMetadataAnnotationTableConfigurationInput>()
365 .ok_or("failed to downcast to UpdateBucketMetadataAnnotationTableConfigurationInput")?;
366
367 let params = crate::config::endpoint::Params::builder()
368 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
369 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
370 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
371 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
372 .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
373 .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
374 .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
375 .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
376 .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
377 .set_use_s3_express_control_endpoint(Some(true))
378 .set_bucket(Some(
379 _input
380 .bucket
381 .clone()
382 .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
383 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
384 ))
385 .build()
386 .map_err(|err| {
387 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
388 })?;
389 cfg.interceptor_state()
390 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
391 ::std::result::Result::Ok(())
392 }
393}
394
395#[non_exhaustive]
400#[derive(::std::fmt::Debug)]
401pub enum UpdateBucketMetadataAnnotationTableConfigurationError {
402 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
404 variable wildcard pattern and check `.code()`:
405 \
406 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
407 \
408 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateBucketMetadataAnnotationTableConfigurationError) for what information is available for the error.")]
409 Unhandled(crate::error::sealed_unhandled::Unhandled),
410}
411impl UpdateBucketMetadataAnnotationTableConfigurationError {
412 pub fn unhandled(
414 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
415 ) -> Self {
416 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
417 source: err.into(),
418 meta: ::std::default::Default::default(),
419 })
420 }
421
422 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
424 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
425 source: err.clone().into(),
426 meta: err,
427 })
428 }
429 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
434 match self {
435 Self::Unhandled(e) => &e.meta,
436 }
437 }
438}
439impl ::std::error::Error for UpdateBucketMetadataAnnotationTableConfigurationError {
440 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
441 match self {
442 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
443 }
444 }
445}
446impl ::std::fmt::Display for UpdateBucketMetadataAnnotationTableConfigurationError {
447 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
448 match self {
449 Self::Unhandled(_inner) => {
450 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
451 write!(f, "unhandled error ({code})")
452 } else {
453 f.write_str("unhandled error")
454 }
455 }
456 }
457 }
458}
459impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateBucketMetadataAnnotationTableConfigurationError {
460 fn code(&self) -> ::std::option::Option<&str> {
461 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
462 }
463 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
464 ::std::option::Option::None
465 }
466}
467impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateBucketMetadataAnnotationTableConfigurationError {
468 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
469 match self {
470 Self::Unhandled(_inner) => &_inner.meta,
471 }
472 }
473}
474impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateBucketMetadataAnnotationTableConfigurationError {
475 fn create_unhandled_error(
476 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
477 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
478 ) -> Self {
479 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
480 source,
481 meta: meta.unwrap_or_default(),
482 })
483 }
484}
485impl crate::s3_request_id::RequestIdExt
486 for crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError
487{
488 fn extended_request_id(&self) -> Option<&str> {
489 self.meta().extended_request_id()
490 }
491}
492impl ::aws_types::request_id::RequestId
493 for crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError
494{
495 fn request_id(&self) -> Option<&str> {
496 self.meta().request_id()
497 }
498}
499
500pub use crate::operation::update_bucket_metadata_annotation_table_configuration::_update_bucket_metadata_annotation_table_configuration_input::UpdateBucketMetadataAnnotationTableConfigurationInput;
501
502pub use crate::operation::update_bucket_metadata_annotation_table_configuration::_update_bucket_metadata_annotation_table_configuration_output::UpdateBucketMetadataAnnotationTableConfigurationOutput;
503
504mod _update_bucket_metadata_annotation_table_configuration_input;
505
506mod _update_bucket_metadata_annotation_table_configuration_output;
507
508pub mod builders;