1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 BucketAlreadyExists(crate::types::error::BucketAlreadyExists),
8 BucketAlreadyOwnedByYou(crate::types::error::BucketAlreadyOwnedByYou),
10 InvalidObjectState(crate::types::error::InvalidObjectState),
13 NoSuchBucket(crate::types::error::NoSuchBucket),
15 NoSuchKey(crate::types::error::NoSuchKey),
17 NoSuchUpload(crate::types::error::NoSuchUpload),
19 NotFound(crate::types::error::NotFound),
21 ObjectAlreadyInActiveTierError(crate::types::error::ObjectAlreadyInActiveTierError),
23 ObjectNotInActiveTierError(crate::types::error::ObjectNotInActiveTierError),
25 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
27 variable wildcard pattern and check `.code()`:
28 \
29 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
30 \
31 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
32 Unhandled(crate::error::sealed_unhandled::Unhandled),
33}
34impl ::std::fmt::Display for Error {
35 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36 match self {
37 Error::BucketAlreadyExists(inner) => inner.fmt(f),
38 Error::BucketAlreadyOwnedByYou(inner) => inner.fmt(f),
39 Error::InvalidObjectState(inner) => inner.fmt(f),
40 Error::NoSuchBucket(inner) => inner.fmt(f),
41 Error::NoSuchKey(inner) => inner.fmt(f),
42 Error::NoSuchUpload(inner) => inner.fmt(f),
43 Error::NotFound(inner) => inner.fmt(f),
44 Error::ObjectAlreadyInActiveTierError(inner) => inner.fmt(f),
45 Error::ObjectNotInActiveTierError(inner) => inner.fmt(f),
46 Error::Unhandled(_) => {
47 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
48 write!(f, "unhandled error ({code})")
49 } else {
50 f.write_str("unhandled error")
51 }
52 }
53 }
54 }
55}
56impl From<::aws_smithy_types::error::operation::BuildError> for Error {
57 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
58 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
59 source: value.into(),
60 meta: ::std::default::Default::default(),
61 })
62 }
63}
64impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
65 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
66 match self {
67 Self::BucketAlreadyExists(inner) => inner.meta(),
68 Self::BucketAlreadyOwnedByYou(inner) => inner.meta(),
69 Self::InvalidObjectState(inner) => inner.meta(),
70 Self::NoSuchBucket(inner) => inner.meta(),
71 Self::NoSuchKey(inner) => inner.meta(),
72 Self::NoSuchUpload(inner) => inner.meta(),
73 Self::NotFound(inner) => inner.meta(),
74 Self::ObjectAlreadyInActiveTierError(inner) => inner.meta(),
75 Self::ObjectNotInActiveTierError(inner) => inner.meta(),
76 Self::Unhandled(inner) => &inner.meta,
77 }
78 }
79}
80impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::abort_multipart_upload::AbortMultipartUploadError, R>> for Error
81where
82 R: Send + Sync + std::fmt::Debug + 'static,
83{
84 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::abort_multipart_upload::AbortMultipartUploadError, R>) -> Self {
85 match err {
86 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
87 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
88 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
89 source: err.into(),
90 }),
91 }
92 }
93}
94impl From<crate::operation::abort_multipart_upload::AbortMultipartUploadError> for Error {
95 fn from(err: crate::operation::abort_multipart_upload::AbortMultipartUploadError) -> Self {
96 match err {
97 crate::operation::abort_multipart_upload::AbortMultipartUploadError::NoSuchUpload(inner) => Error::NoSuchUpload(inner),
98 crate::operation::abort_multipart_upload::AbortMultipartUploadError::Unhandled(inner) => Error::Unhandled(inner),
99 }
100 }
101}
102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_multipart_upload::CompleteMultipartUploadError, R>>
103 for Error
104where
105 R: Send + Sync + std::fmt::Debug + 'static,
106{
107 fn from(
108 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_multipart_upload::CompleteMultipartUploadError, R>,
109 ) -> Self {
110 match err {
111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
114 source: err.into(),
115 }),
116 }
117 }
118}
119impl From<crate::operation::complete_multipart_upload::CompleteMultipartUploadError> for Error {
120 fn from(err: crate::operation::complete_multipart_upload::CompleteMultipartUploadError) -> Self {
121 match err {
122 crate::operation::complete_multipart_upload::CompleteMultipartUploadError::Unhandled(inner) => Error::Unhandled(inner),
123 }
124 }
125}
126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_object::CopyObjectError, R>> for Error
127where
128 R: Send + Sync + std::fmt::Debug + 'static,
129{
130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_object::CopyObjectError, R>) -> Self {
131 match err {
132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
135 source: err.into(),
136 }),
137 }
138 }
139}
140impl From<crate::operation::copy_object::CopyObjectError> for Error {
141 fn from(err: crate::operation::copy_object::CopyObjectError) -> Self {
142 match err {
143 crate::operation::copy_object::CopyObjectError::ObjectNotInActiveTierError(inner) => Error::ObjectNotInActiveTierError(inner),
144 crate::operation::copy_object::CopyObjectError::Unhandled(inner) => Error::Unhandled(inner),
145 }
146 }
147}
148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bucket::CreateBucketError, R>> for Error
149where
150 R: Send + Sync + std::fmt::Debug + 'static,
151{
152 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bucket::CreateBucketError, R>) -> Self {
153 match err {
154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
157 source: err.into(),
158 }),
159 }
160 }
161}
162impl From<crate::operation::create_bucket::CreateBucketError> for Error {
163 fn from(err: crate::operation::create_bucket::CreateBucketError) -> Self {
164 match err {
165 crate::operation::create_bucket::CreateBucketError::BucketAlreadyExists(inner) => Error::BucketAlreadyExists(inner),
166 crate::operation::create_bucket::CreateBucketError::BucketAlreadyOwnedByYou(inner) => Error::BucketAlreadyOwnedByYou(inner),
167 crate::operation::create_bucket::CreateBucketError::Unhandled(inner) => Error::Unhandled(inner),
168 }
169 }
170}
171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_multipart_upload::CreateMultipartUploadError, R>> for Error
172where
173 R: Send + Sync + std::fmt::Debug + 'static,
174{
175 fn from(
176 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_multipart_upload::CreateMultipartUploadError, R>,
177 ) -> Self {
178 match err {
179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
182 source: err.into(),
183 }),
184 }
185 }
186}
187impl From<crate::operation::create_multipart_upload::CreateMultipartUploadError> for Error {
188 fn from(err: crate::operation::create_multipart_upload::CreateMultipartUploadError) -> Self {
189 match err {
190 crate::operation::create_multipart_upload::CreateMultipartUploadError::Unhandled(inner) => Error::Unhandled(inner),
191 }
192 }
193}
194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_session::CreateSessionError, R>> for Error
195where
196 R: Send + Sync + std::fmt::Debug + 'static,
197{
198 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_session::CreateSessionError, R>) -> Self {
199 match err {
200 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
201 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
202 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
203 source: err.into(),
204 }),
205 }
206 }
207}
208impl From<crate::operation::create_session::CreateSessionError> for Error {
209 fn from(err: crate::operation::create_session::CreateSessionError) -> Self {
210 match err {
211 crate::operation::create_session::CreateSessionError::NoSuchBucket(inner) => Error::NoSuchBucket(inner),
212 crate::operation::create_session::CreateSessionError::Unhandled(inner) => Error::Unhandled(inner),
213 }
214 }
215}
216impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket::DeleteBucketError, R>> for Error
217where
218 R: Send + Sync + std::fmt::Debug + 'static,
219{
220 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket::DeleteBucketError, R>) -> Self {
221 match err {
222 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
223 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
224 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
225 source: err.into(),
226 }),
227 }
228 }
229}
230impl From<crate::operation::delete_bucket::DeleteBucketError> for Error {
231 fn from(err: crate::operation::delete_bucket::DeleteBucketError) -> Self {
232 match err {
233 crate::operation::delete_bucket::DeleteBucketError::Unhandled(inner) => Error::Unhandled(inner),
234 }
235 }
236}
237impl<R>
238 From<
239 ::aws_smithy_runtime_api::client::result::SdkError<
240 crate::operation::delete_bucket_analytics_configuration::DeleteBucketAnalyticsConfigurationError,
241 R,
242 >,
243 > for Error
244where
245 R: Send + Sync + std::fmt::Debug + 'static,
246{
247 fn from(
248 err: ::aws_smithy_runtime_api::client::result::SdkError<
249 crate::operation::delete_bucket_analytics_configuration::DeleteBucketAnalyticsConfigurationError,
250 R,
251 >,
252 ) -> Self {
253 match err {
254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257 source: err.into(),
258 }),
259 }
260 }
261}
262impl From<crate::operation::delete_bucket_analytics_configuration::DeleteBucketAnalyticsConfigurationError> for Error {
263 fn from(err: crate::operation::delete_bucket_analytics_configuration::DeleteBucketAnalyticsConfigurationError) -> Self {
264 match err {
265 crate::operation::delete_bucket_analytics_configuration::DeleteBucketAnalyticsConfigurationError::Unhandled(inner) => {
266 Error::Unhandled(inner)
267 }
268 }
269 }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_cors::DeleteBucketCorsError, R>> for Error
272where
273 R: Send + Sync + std::fmt::Debug + 'static,
274{
275 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_cors::DeleteBucketCorsError, R>) -> Self {
276 match err {
277 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
278 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
279 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
280 source: err.into(),
281 }),
282 }
283 }
284}
285impl From<crate::operation::delete_bucket_cors::DeleteBucketCorsError> for Error {
286 fn from(err: crate::operation::delete_bucket_cors::DeleteBucketCorsError) -> Self {
287 match err {
288 crate::operation::delete_bucket_cors::DeleteBucketCorsError::Unhandled(inner) => Error::Unhandled(inner),
289 }
290 }
291}
292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_encryption::DeleteBucketEncryptionError, R>> for Error
293where
294 R: Send + Sync + std::fmt::Debug + 'static,
295{
296 fn from(
297 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_encryption::DeleteBucketEncryptionError, R>,
298 ) -> Self {
299 match err {
300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
303 source: err.into(),
304 }),
305 }
306 }
307}
308impl From<crate::operation::delete_bucket_encryption::DeleteBucketEncryptionError> for Error {
309 fn from(err: crate::operation::delete_bucket_encryption::DeleteBucketEncryptionError) -> Self {
310 match err {
311 crate::operation::delete_bucket_encryption::DeleteBucketEncryptionError::Unhandled(inner) => Error::Unhandled(inner),
312 }
313 }
314}
315impl<R>
316 From<
317 ::aws_smithy_runtime_api::client::result::SdkError<
318 crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationError,
319 R,
320 >,
321 > for Error
322where
323 R: Send + Sync + std::fmt::Debug + 'static,
324{
325 fn from(
326 err: ::aws_smithy_runtime_api::client::result::SdkError<
327 crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationError,
328 R,
329 >,
330 ) -> Self {
331 match err {
332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335 source: err.into(),
336 }),
337 }
338 }
339}
340impl From<crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationError> for Error {
341 fn from(err: crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationError) -> Self {
342 match err {
343 crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationError::Unhandled(inner) => {
344 Error::Unhandled(inner)
345 }
346 }
347 }
348}
349impl<R>
350 From<
351 ::aws_smithy_runtime_api::client::result::SdkError<
352 crate::operation::delete_bucket_inventory_configuration::DeleteBucketInventoryConfigurationError,
353 R,
354 >,
355 > for Error
356where
357 R: Send + Sync + std::fmt::Debug + 'static,
358{
359 fn from(
360 err: ::aws_smithy_runtime_api::client::result::SdkError<
361 crate::operation::delete_bucket_inventory_configuration::DeleteBucketInventoryConfigurationError,
362 R,
363 >,
364 ) -> Self {
365 match err {
366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
369 source: err.into(),
370 }),
371 }
372 }
373}
374impl From<crate::operation::delete_bucket_inventory_configuration::DeleteBucketInventoryConfigurationError> for Error {
375 fn from(err: crate::operation::delete_bucket_inventory_configuration::DeleteBucketInventoryConfigurationError) -> Self {
376 match err {
377 crate::operation::delete_bucket_inventory_configuration::DeleteBucketInventoryConfigurationError::Unhandled(inner) => {
378 Error::Unhandled(inner)
379 }
380 }
381 }
382}
383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_lifecycle::DeleteBucketLifecycleError, R>> for Error
384where
385 R: Send + Sync + std::fmt::Debug + 'static,
386{
387 fn from(
388 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_lifecycle::DeleteBucketLifecycleError, R>,
389 ) -> Self {
390 match err {
391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394 source: err.into(),
395 }),
396 }
397 }
398}
399impl From<crate::operation::delete_bucket_lifecycle::DeleteBucketLifecycleError> for Error {
400 fn from(err: crate::operation::delete_bucket_lifecycle::DeleteBucketLifecycleError) -> Self {
401 match err {
402 crate::operation::delete_bucket_lifecycle::DeleteBucketLifecycleError::Unhandled(inner) => Error::Unhandled(inner),
403 }
404 }
405}
406impl<R>
407 From<
408 ::aws_smithy_runtime_api::client::result::SdkError<
409 crate::operation::delete_bucket_metrics_configuration::DeleteBucketMetricsConfigurationError,
410 R,
411 >,
412 > for Error
413where
414 R: Send + Sync + std::fmt::Debug + 'static,
415{
416 fn from(
417 err: ::aws_smithy_runtime_api::client::result::SdkError<
418 crate::operation::delete_bucket_metrics_configuration::DeleteBucketMetricsConfigurationError,
419 R,
420 >,
421 ) -> Self {
422 match err {
423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
426 source: err.into(),
427 }),
428 }
429 }
430}
431impl From<crate::operation::delete_bucket_metrics_configuration::DeleteBucketMetricsConfigurationError> for Error {
432 fn from(err: crate::operation::delete_bucket_metrics_configuration::DeleteBucketMetricsConfigurationError) -> Self {
433 match err {
434 crate::operation::delete_bucket_metrics_configuration::DeleteBucketMetricsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
435 }
436 }
437}
438impl<R>
439 From<
440 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_ownership_controls::DeleteBucketOwnershipControlsError, R>,
441 > for Error
442where
443 R: Send + Sync + std::fmt::Debug + 'static,
444{
445 fn from(
446 err: ::aws_smithy_runtime_api::client::result::SdkError<
447 crate::operation::delete_bucket_ownership_controls::DeleteBucketOwnershipControlsError,
448 R,
449 >,
450 ) -> Self {
451 match err {
452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455 source: err.into(),
456 }),
457 }
458 }
459}
460impl From<crate::operation::delete_bucket_ownership_controls::DeleteBucketOwnershipControlsError> for Error {
461 fn from(err: crate::operation::delete_bucket_ownership_controls::DeleteBucketOwnershipControlsError) -> Self {
462 match err {
463 crate::operation::delete_bucket_ownership_controls::DeleteBucketOwnershipControlsError::Unhandled(inner) => Error::Unhandled(inner),
464 }
465 }
466}
467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_policy::DeleteBucketPolicyError, R>> for Error
468where
469 R: Send + Sync + std::fmt::Debug + 'static,
470{
471 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_policy::DeleteBucketPolicyError, R>) -> Self {
472 match err {
473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
476 source: err.into(),
477 }),
478 }
479 }
480}
481impl From<crate::operation::delete_bucket_policy::DeleteBucketPolicyError> for Error {
482 fn from(err: crate::operation::delete_bucket_policy::DeleteBucketPolicyError) -> Self {
483 match err {
484 crate::operation::delete_bucket_policy::DeleteBucketPolicyError::Unhandled(inner) => Error::Unhandled(inner),
485 }
486 }
487}
488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_replication::DeleteBucketReplicationError, R>>
489 for Error
490where
491 R: Send + Sync + std::fmt::Debug + 'static,
492{
493 fn from(
494 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_replication::DeleteBucketReplicationError, R>,
495 ) -> Self {
496 match err {
497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
500 source: err.into(),
501 }),
502 }
503 }
504}
505impl From<crate::operation::delete_bucket_replication::DeleteBucketReplicationError> for Error {
506 fn from(err: crate::operation::delete_bucket_replication::DeleteBucketReplicationError) -> Self {
507 match err {
508 crate::operation::delete_bucket_replication::DeleteBucketReplicationError::Unhandled(inner) => Error::Unhandled(inner),
509 }
510 }
511}
512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_tagging::DeleteBucketTaggingError, R>> for Error
513where
514 R: Send + Sync + std::fmt::Debug + 'static,
515{
516 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_tagging::DeleteBucketTaggingError, R>) -> Self {
517 match err {
518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
521 source: err.into(),
522 }),
523 }
524 }
525}
526impl From<crate::operation::delete_bucket_tagging::DeleteBucketTaggingError> for Error {
527 fn from(err: crate::operation::delete_bucket_tagging::DeleteBucketTaggingError) -> Self {
528 match err {
529 crate::operation::delete_bucket_tagging::DeleteBucketTaggingError::Unhandled(inner) => Error::Unhandled(inner),
530 }
531 }
532}
533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_website::DeleteBucketWebsiteError, R>> for Error
534where
535 R: Send + Sync + std::fmt::Debug + 'static,
536{
537 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bucket_website::DeleteBucketWebsiteError, R>) -> Self {
538 match err {
539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
542 source: err.into(),
543 }),
544 }
545 }
546}
547impl From<crate::operation::delete_bucket_website::DeleteBucketWebsiteError> for Error {
548 fn from(err: crate::operation::delete_bucket_website::DeleteBucketWebsiteError) -> Self {
549 match err {
550 crate::operation::delete_bucket_website::DeleteBucketWebsiteError::Unhandled(inner) => Error::Unhandled(inner),
551 }
552 }
553}
554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_object::DeleteObjectError, R>> for Error
555where
556 R: Send + Sync + std::fmt::Debug + 'static,
557{
558 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_object::DeleteObjectError, R>) -> Self {
559 match err {
560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
563 source: err.into(),
564 }),
565 }
566 }
567}
568impl From<crate::operation::delete_object::DeleteObjectError> for Error {
569 fn from(err: crate::operation::delete_object::DeleteObjectError) -> Self {
570 match err {
571 crate::operation::delete_object::DeleteObjectError::Unhandled(inner) => Error::Unhandled(inner),
572 }
573 }
574}
575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_objects::DeleteObjectsError, R>> for Error
576where
577 R: Send + Sync + std::fmt::Debug + 'static,
578{
579 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_objects::DeleteObjectsError, R>) -> Self {
580 match err {
581 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
582 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
583 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
584 source: err.into(),
585 }),
586 }
587 }
588}
589impl From<crate::operation::delete_objects::DeleteObjectsError> for Error {
590 fn from(err: crate::operation::delete_objects::DeleteObjectsError) -> Self {
591 match err {
592 crate::operation::delete_objects::DeleteObjectsError::Unhandled(inner) => Error::Unhandled(inner),
593 }
594 }
595}
596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_object_tagging::DeleteObjectTaggingError, R>> for Error
597where
598 R: Send + Sync + std::fmt::Debug + 'static,
599{
600 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_object_tagging::DeleteObjectTaggingError, R>) -> Self {
601 match err {
602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
605 source: err.into(),
606 }),
607 }
608 }
609}
610impl From<crate::operation::delete_object_tagging::DeleteObjectTaggingError> for Error {
611 fn from(err: crate::operation::delete_object_tagging::DeleteObjectTaggingError) -> Self {
612 match err {
613 crate::operation::delete_object_tagging::DeleteObjectTaggingError::Unhandled(inner) => Error::Unhandled(inner),
614 }
615 }
616}
617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_access_block::DeletePublicAccessBlockError, R>>
618 for Error
619where
620 R: Send + Sync + std::fmt::Debug + 'static,
621{
622 fn from(
623 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_public_access_block::DeletePublicAccessBlockError, R>,
624 ) -> Self {
625 match err {
626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
629 source: err.into(),
630 }),
631 }
632 }
633}
634impl From<crate::operation::delete_public_access_block::DeletePublicAccessBlockError> for Error {
635 fn from(err: crate::operation::delete_public_access_block::DeletePublicAccessBlockError) -> Self {
636 match err {
637 crate::operation::delete_public_access_block::DeletePublicAccessBlockError::Unhandled(inner) => Error::Unhandled(inner),
638 }
639 }
640}
641impl<R>
642 From<
643 ::aws_smithy_runtime_api::client::result::SdkError<
644 crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationError,
645 R,
646 >,
647 > for Error
648where
649 R: Send + Sync + std::fmt::Debug + 'static,
650{
651 fn from(
652 err: ::aws_smithy_runtime_api::client::result::SdkError<
653 crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationError,
654 R,
655 >,
656 ) -> Self {
657 match err {
658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
661 source: err.into(),
662 }),
663 }
664 }
665}
666impl From<crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationError> for Error {
667 fn from(err: crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationError) -> Self {
668 match err {
669 crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
670 }
671 }
672}
673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_acl::GetBucketAclError, R>> for Error
674where
675 R: Send + Sync + std::fmt::Debug + 'static,
676{
677 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_acl::GetBucketAclError, R>) -> Self {
678 match err {
679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
682 source: err.into(),
683 }),
684 }
685 }
686}
687impl From<crate::operation::get_bucket_acl::GetBucketAclError> for Error {
688 fn from(err: crate::operation::get_bucket_acl::GetBucketAclError) -> Self {
689 match err {
690 crate::operation::get_bucket_acl::GetBucketAclError::Unhandled(inner) => Error::Unhandled(inner),
691 }
692 }
693}
694impl<R>
695 From<
696 ::aws_smithy_runtime_api::client::result::SdkError<
697 crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationError,
698 R,
699 >,
700 > for Error
701where
702 R: Send + Sync + std::fmt::Debug + 'static,
703{
704 fn from(
705 err: ::aws_smithy_runtime_api::client::result::SdkError<
706 crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationError,
707 R,
708 >,
709 ) -> Self {
710 match err {
711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
714 source: err.into(),
715 }),
716 }
717 }
718}
719impl From<crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationError> for Error {
720 fn from(err: crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationError) -> Self {
721 match err {
722 crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
723 }
724 }
725}
726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_cors::GetBucketCorsError, R>> for Error
727where
728 R: Send + Sync + std::fmt::Debug + 'static,
729{
730 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_cors::GetBucketCorsError, R>) -> Self {
731 match err {
732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
735 source: err.into(),
736 }),
737 }
738 }
739}
740impl From<crate::operation::get_bucket_cors::GetBucketCorsError> for Error {
741 fn from(err: crate::operation::get_bucket_cors::GetBucketCorsError) -> Self {
742 match err {
743 crate::operation::get_bucket_cors::GetBucketCorsError::Unhandled(inner) => Error::Unhandled(inner),
744 }
745 }
746}
747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_encryption::GetBucketEncryptionError, R>> for Error
748where
749 R: Send + Sync + std::fmt::Debug + 'static,
750{
751 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_encryption::GetBucketEncryptionError, R>) -> Self {
752 match err {
753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
756 source: err.into(),
757 }),
758 }
759 }
760}
761impl From<crate::operation::get_bucket_encryption::GetBucketEncryptionError> for Error {
762 fn from(err: crate::operation::get_bucket_encryption::GetBucketEncryptionError) -> Self {
763 match err {
764 crate::operation::get_bucket_encryption::GetBucketEncryptionError::Unhandled(inner) => Error::Unhandled(inner),
765 }
766 }
767}
768impl<R>
769 From<
770 ::aws_smithy_runtime_api::client::result::SdkError<
771 crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationError,
772 R,
773 >,
774 > for Error
775where
776 R: Send + Sync + std::fmt::Debug + 'static,
777{
778 fn from(
779 err: ::aws_smithy_runtime_api::client::result::SdkError<
780 crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationError,
781 R,
782 >,
783 ) -> Self {
784 match err {
785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
788 source: err.into(),
789 }),
790 }
791 }
792}
793impl From<crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationError> for Error {
794 fn from(err: crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationError) -> Self {
795 match err {
796 crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationError::Unhandled(inner) => {
797 Error::Unhandled(inner)
798 }
799 }
800 }
801}
802impl<R>
803 From<
804 ::aws_smithy_runtime_api::client::result::SdkError<
805 crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationError,
806 R,
807 >,
808 > for Error
809where
810 R: Send + Sync + std::fmt::Debug + 'static,
811{
812 fn from(
813 err: ::aws_smithy_runtime_api::client::result::SdkError<
814 crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationError,
815 R,
816 >,
817 ) -> Self {
818 match err {
819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
822 source: err.into(),
823 }),
824 }
825 }
826}
827impl From<crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationError> for Error {
828 fn from(err: crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationError) -> Self {
829 match err {
830 crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
831 }
832 }
833}
834impl<R>
835 From<
836 ::aws_smithy_runtime_api::client::result::SdkError<
837 crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationError,
838 R,
839 >,
840 > for Error
841where
842 R: Send + Sync + std::fmt::Debug + 'static,
843{
844 fn from(
845 err: ::aws_smithy_runtime_api::client::result::SdkError<
846 crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationError,
847 R,
848 >,
849 ) -> Self {
850 match err {
851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854 source: err.into(),
855 }),
856 }
857 }
858}
859impl From<crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationError> for Error {
860 fn from(err: crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationError) -> Self {
861 match err {
862 crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
863 }
864 }
865}
866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_location::GetBucketLocationError, R>> for Error
867where
868 R: Send + Sync + std::fmt::Debug + 'static,
869{
870 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_location::GetBucketLocationError, R>) -> Self {
871 match err {
872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
875 source: err.into(),
876 }),
877 }
878 }
879}
880impl From<crate::operation::get_bucket_location::GetBucketLocationError> for Error {
881 fn from(err: crate::operation::get_bucket_location::GetBucketLocationError) -> Self {
882 match err {
883 crate::operation::get_bucket_location::GetBucketLocationError::Unhandled(inner) => Error::Unhandled(inner),
884 }
885 }
886}
887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_logging::GetBucketLoggingError, R>> for Error
888where
889 R: Send + Sync + std::fmt::Debug + 'static,
890{
891 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_logging::GetBucketLoggingError, R>) -> Self {
892 match err {
893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
896 source: err.into(),
897 }),
898 }
899 }
900}
901impl From<crate::operation::get_bucket_logging::GetBucketLoggingError> for Error {
902 fn from(err: crate::operation::get_bucket_logging::GetBucketLoggingError) -> Self {
903 match err {
904 crate::operation::get_bucket_logging::GetBucketLoggingError::Unhandled(inner) => Error::Unhandled(inner),
905 }
906 }
907}
908impl<R>
909 From<
910 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationError, R>,
911 > for Error
912where
913 R: Send + Sync + std::fmt::Debug + 'static,
914{
915 fn from(
916 err: ::aws_smithy_runtime_api::client::result::SdkError<
917 crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationError,
918 R,
919 >,
920 ) -> Self {
921 match err {
922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
925 source: err.into(),
926 }),
927 }
928 }
929}
930impl From<crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationError> for Error {
931 fn from(err: crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationError) -> Self {
932 match err {
933 crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
934 }
935 }
936}
937impl<R>
938 From<
939 ::aws_smithy_runtime_api::client::result::SdkError<
940 crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationError,
941 R,
942 >,
943 > for Error
944where
945 R: Send + Sync + std::fmt::Debug + 'static,
946{
947 fn from(
948 err: ::aws_smithy_runtime_api::client::result::SdkError<
949 crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationError,
950 R,
951 >,
952 ) -> Self {
953 match err {
954 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
955 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
956 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
957 source: err.into(),
958 }),
959 }
960 }
961}
962impl From<crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationError> for Error {
963 fn from(err: crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationError) -> Self {
964 match err {
965 crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationError::Unhandled(inner) => {
966 Error::Unhandled(inner)
967 }
968 }
969 }
970}
971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsError, R>>
972 for Error
973where
974 R: Send + Sync + std::fmt::Debug + 'static,
975{
976 fn from(
977 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsError, R>,
978 ) -> Self {
979 match err {
980 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
981 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
982 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
983 source: err.into(),
984 }),
985 }
986 }
987}
988impl From<crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsError> for Error {
989 fn from(err: crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsError) -> Self {
990 match err {
991 crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsError::Unhandled(inner) => Error::Unhandled(inner),
992 }
993 }
994}
995impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_policy::GetBucketPolicyError, R>> for Error
996where
997 R: Send + Sync + std::fmt::Debug + 'static,
998{
999 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_policy::GetBucketPolicyError, R>) -> Self {
1000 match err {
1001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1004 source: err.into(),
1005 }),
1006 }
1007 }
1008}
1009impl From<crate::operation::get_bucket_policy::GetBucketPolicyError> for Error {
1010 fn from(err: crate::operation::get_bucket_policy::GetBucketPolicyError) -> Self {
1011 match err {
1012 crate::operation::get_bucket_policy::GetBucketPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1013 }
1014 }
1015}
1016impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_policy_status::GetBucketPolicyStatusError, R>> for Error
1017where
1018 R: Send + Sync + std::fmt::Debug + 'static,
1019{
1020 fn from(
1021 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_policy_status::GetBucketPolicyStatusError, R>,
1022 ) -> Self {
1023 match err {
1024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1027 source: err.into(),
1028 }),
1029 }
1030 }
1031}
1032impl From<crate::operation::get_bucket_policy_status::GetBucketPolicyStatusError> for Error {
1033 fn from(err: crate::operation::get_bucket_policy_status::GetBucketPolicyStatusError) -> Self {
1034 match err {
1035 crate::operation::get_bucket_policy_status::GetBucketPolicyStatusError::Unhandled(inner) => Error::Unhandled(inner),
1036 }
1037 }
1038}
1039impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_replication::GetBucketReplicationError, R>> for Error
1040where
1041 R: Send + Sync + std::fmt::Debug + 'static,
1042{
1043 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_replication::GetBucketReplicationError, R>) -> Self {
1044 match err {
1045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1048 source: err.into(),
1049 }),
1050 }
1051 }
1052}
1053impl From<crate::operation::get_bucket_replication::GetBucketReplicationError> for Error {
1054 fn from(err: crate::operation::get_bucket_replication::GetBucketReplicationError) -> Self {
1055 match err {
1056 crate::operation::get_bucket_replication::GetBucketReplicationError::Unhandled(inner) => Error::Unhandled(inner),
1057 }
1058 }
1059}
1060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_request_payment::GetBucketRequestPaymentError, R>>
1061 for Error
1062where
1063 R: Send + Sync + std::fmt::Debug + 'static,
1064{
1065 fn from(
1066 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_request_payment::GetBucketRequestPaymentError, R>,
1067 ) -> Self {
1068 match err {
1069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1072 source: err.into(),
1073 }),
1074 }
1075 }
1076}
1077impl From<crate::operation::get_bucket_request_payment::GetBucketRequestPaymentError> for Error {
1078 fn from(err: crate::operation::get_bucket_request_payment::GetBucketRequestPaymentError) -> Self {
1079 match err {
1080 crate::operation::get_bucket_request_payment::GetBucketRequestPaymentError::Unhandled(inner) => Error::Unhandled(inner),
1081 }
1082 }
1083}
1084impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_tagging::GetBucketTaggingError, R>> for Error
1085where
1086 R: Send + Sync + std::fmt::Debug + 'static,
1087{
1088 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_tagging::GetBucketTaggingError, R>) -> Self {
1089 match err {
1090 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1091 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1092 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1093 source: err.into(),
1094 }),
1095 }
1096 }
1097}
1098impl From<crate::operation::get_bucket_tagging::GetBucketTaggingError> for Error {
1099 fn from(err: crate::operation::get_bucket_tagging::GetBucketTaggingError) -> Self {
1100 match err {
1101 crate::operation::get_bucket_tagging::GetBucketTaggingError::Unhandled(inner) => Error::Unhandled(inner),
1102 }
1103 }
1104}
1105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_versioning::GetBucketVersioningError, R>> for Error
1106where
1107 R: Send + Sync + std::fmt::Debug + 'static,
1108{
1109 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_versioning::GetBucketVersioningError, R>) -> Self {
1110 match err {
1111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114 source: err.into(),
1115 }),
1116 }
1117 }
1118}
1119impl From<crate::operation::get_bucket_versioning::GetBucketVersioningError> for Error {
1120 fn from(err: crate::operation::get_bucket_versioning::GetBucketVersioningError) -> Self {
1121 match err {
1122 crate::operation::get_bucket_versioning::GetBucketVersioningError::Unhandled(inner) => Error::Unhandled(inner),
1123 }
1124 }
1125}
1126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_website::GetBucketWebsiteError, R>> for Error
1127where
1128 R: Send + Sync + std::fmt::Debug + 'static,
1129{
1130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_website::GetBucketWebsiteError, R>) -> Self {
1131 match err {
1132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1135 source: err.into(),
1136 }),
1137 }
1138 }
1139}
1140impl From<crate::operation::get_bucket_website::GetBucketWebsiteError> for Error {
1141 fn from(err: crate::operation::get_bucket_website::GetBucketWebsiteError) -> Self {
1142 match err {
1143 crate::operation::get_bucket_website::GetBucketWebsiteError::Unhandled(inner) => Error::Unhandled(inner),
1144 }
1145 }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object::GetObjectError, R>> for Error
1148where
1149 R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object::GetObjectError, R>) -> Self {
1152 match err {
1153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156 source: err.into(),
1157 }),
1158 }
1159 }
1160}
1161impl From<crate::operation::get_object::GetObjectError> for Error {
1162 fn from(err: crate::operation::get_object::GetObjectError) -> Self {
1163 match err {
1164 crate::operation::get_object::GetObjectError::InvalidObjectState(inner) => Error::InvalidObjectState(inner),
1165 crate::operation::get_object::GetObjectError::NoSuchKey(inner) => Error::NoSuchKey(inner),
1166 crate::operation::get_object::GetObjectError::Unhandled(inner) => Error::Unhandled(inner),
1167 }
1168 }
1169}
1170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_acl::GetObjectAclError, R>> for Error
1171where
1172 R: Send + Sync + std::fmt::Debug + 'static,
1173{
1174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_acl::GetObjectAclError, R>) -> Self {
1175 match err {
1176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1179 source: err.into(),
1180 }),
1181 }
1182 }
1183}
1184impl From<crate::operation::get_object_acl::GetObjectAclError> for Error {
1185 fn from(err: crate::operation::get_object_acl::GetObjectAclError) -> Self {
1186 match err {
1187 crate::operation::get_object_acl::GetObjectAclError::NoSuchKey(inner) => Error::NoSuchKey(inner),
1188 crate::operation::get_object_acl::GetObjectAclError::Unhandled(inner) => Error::Unhandled(inner),
1189 }
1190 }
1191}
1192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_attributes::GetObjectAttributesError, R>> for Error
1193where
1194 R: Send + Sync + std::fmt::Debug + 'static,
1195{
1196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_attributes::GetObjectAttributesError, R>) -> Self {
1197 match err {
1198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1201 source: err.into(),
1202 }),
1203 }
1204 }
1205}
1206impl From<crate::operation::get_object_attributes::GetObjectAttributesError> for Error {
1207 fn from(err: crate::operation::get_object_attributes::GetObjectAttributesError) -> Self {
1208 match err {
1209 crate::operation::get_object_attributes::GetObjectAttributesError::NoSuchKey(inner) => Error::NoSuchKey(inner),
1210 crate::operation::get_object_attributes::GetObjectAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1211 }
1212 }
1213}
1214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_legal_hold::GetObjectLegalHoldError, R>> for Error
1215where
1216 R: Send + Sync + std::fmt::Debug + 'static,
1217{
1218 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_legal_hold::GetObjectLegalHoldError, R>) -> Self {
1219 match err {
1220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1223 source: err.into(),
1224 }),
1225 }
1226 }
1227}
1228impl From<crate::operation::get_object_legal_hold::GetObjectLegalHoldError> for Error {
1229 fn from(err: crate::operation::get_object_legal_hold::GetObjectLegalHoldError) -> Self {
1230 match err {
1231 crate::operation::get_object_legal_hold::GetObjectLegalHoldError::Unhandled(inner) => Error::Unhandled(inner),
1232 }
1233 }
1234}
1235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_lock_configuration::GetObjectLockConfigurationError, R>>
1236 for Error
1237where
1238 R: Send + Sync + std::fmt::Debug + 'static,
1239{
1240 fn from(
1241 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_lock_configuration::GetObjectLockConfigurationError, R>,
1242 ) -> Self {
1243 match err {
1244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1247 source: err.into(),
1248 }),
1249 }
1250 }
1251}
1252impl From<crate::operation::get_object_lock_configuration::GetObjectLockConfigurationError> for Error {
1253 fn from(err: crate::operation::get_object_lock_configuration::GetObjectLockConfigurationError) -> Self {
1254 match err {
1255 crate::operation::get_object_lock_configuration::GetObjectLockConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1256 }
1257 }
1258}
1259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_retention::GetObjectRetentionError, R>> for Error
1260where
1261 R: Send + Sync + std::fmt::Debug + 'static,
1262{
1263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_retention::GetObjectRetentionError, R>) -> Self {
1264 match err {
1265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1268 source: err.into(),
1269 }),
1270 }
1271 }
1272}
1273impl From<crate::operation::get_object_retention::GetObjectRetentionError> for Error {
1274 fn from(err: crate::operation::get_object_retention::GetObjectRetentionError) -> Self {
1275 match err {
1276 crate::operation::get_object_retention::GetObjectRetentionError::Unhandled(inner) => Error::Unhandled(inner),
1277 }
1278 }
1279}
1280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_tagging::GetObjectTaggingError, R>> for Error
1281where
1282 R: Send + Sync + std::fmt::Debug + 'static,
1283{
1284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_tagging::GetObjectTaggingError, R>) -> Self {
1285 match err {
1286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1289 source: err.into(),
1290 }),
1291 }
1292 }
1293}
1294impl From<crate::operation::get_object_tagging::GetObjectTaggingError> for Error {
1295 fn from(err: crate::operation::get_object_tagging::GetObjectTaggingError) -> Self {
1296 match err {
1297 crate::operation::get_object_tagging::GetObjectTaggingError::Unhandled(inner) => Error::Unhandled(inner),
1298 }
1299 }
1300}
1301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_torrent::GetObjectTorrentError, R>> for Error
1302where
1303 R: Send + Sync + std::fmt::Debug + 'static,
1304{
1305 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_object_torrent::GetObjectTorrentError, R>) -> Self {
1306 match err {
1307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1310 source: err.into(),
1311 }),
1312 }
1313 }
1314}
1315impl From<crate::operation::get_object_torrent::GetObjectTorrentError> for Error {
1316 fn from(err: crate::operation::get_object_torrent::GetObjectTorrentError) -> Self {
1317 match err {
1318 crate::operation::get_object_torrent::GetObjectTorrentError::Unhandled(inner) => Error::Unhandled(inner),
1319 }
1320 }
1321}
1322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_access_block::GetPublicAccessBlockError, R>> for Error
1323where
1324 R: Send + Sync + std::fmt::Debug + 'static,
1325{
1326 fn from(
1327 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_access_block::GetPublicAccessBlockError, R>,
1328 ) -> Self {
1329 match err {
1330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1333 source: err.into(),
1334 }),
1335 }
1336 }
1337}
1338impl From<crate::operation::get_public_access_block::GetPublicAccessBlockError> for Error {
1339 fn from(err: crate::operation::get_public_access_block::GetPublicAccessBlockError) -> Self {
1340 match err {
1341 crate::operation::get_public_access_block::GetPublicAccessBlockError::Unhandled(inner) => Error::Unhandled(inner),
1342 }
1343 }
1344}
1345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::head_bucket::HeadBucketError, R>> for Error
1346where
1347 R: Send + Sync + std::fmt::Debug + 'static,
1348{
1349 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::head_bucket::HeadBucketError, R>) -> Self {
1350 match err {
1351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1354 source: err.into(),
1355 }),
1356 }
1357 }
1358}
1359impl From<crate::operation::head_bucket::HeadBucketError> for Error {
1360 fn from(err: crate::operation::head_bucket::HeadBucketError) -> Self {
1361 match err {
1362 crate::operation::head_bucket::HeadBucketError::NotFound(inner) => Error::NotFound(inner),
1363 crate::operation::head_bucket::HeadBucketError::Unhandled(inner) => Error::Unhandled(inner),
1364 }
1365 }
1366}
1367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::head_object::HeadObjectError, R>> for Error
1368where
1369 R: Send + Sync + std::fmt::Debug + 'static,
1370{
1371 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::head_object::HeadObjectError, R>) -> Self {
1372 match err {
1373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1376 source: err.into(),
1377 }),
1378 }
1379 }
1380}
1381impl From<crate::operation::head_object::HeadObjectError> for Error {
1382 fn from(err: crate::operation::head_object::HeadObjectError) -> Self {
1383 match err {
1384 crate::operation::head_object::HeadObjectError::NotFound(inner) => Error::NotFound(inner),
1385 crate::operation::head_object::HeadObjectError::Unhandled(inner) => Error::Unhandled(inner),
1386 }
1387 }
1388}
1389impl<R>
1390 From<
1391 ::aws_smithy_runtime_api::client::result::SdkError<
1392 crate::operation::list_bucket_analytics_configurations::ListBucketAnalyticsConfigurationsError,
1393 R,
1394 >,
1395 > for Error
1396where
1397 R: Send + Sync + std::fmt::Debug + 'static,
1398{
1399 fn from(
1400 err: ::aws_smithy_runtime_api::client::result::SdkError<
1401 crate::operation::list_bucket_analytics_configurations::ListBucketAnalyticsConfigurationsError,
1402 R,
1403 >,
1404 ) -> Self {
1405 match err {
1406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1409 source: err.into(),
1410 }),
1411 }
1412 }
1413}
1414impl From<crate::operation::list_bucket_analytics_configurations::ListBucketAnalyticsConfigurationsError> for Error {
1415 fn from(err: crate::operation::list_bucket_analytics_configurations::ListBucketAnalyticsConfigurationsError) -> Self {
1416 match err {
1417 crate::operation::list_bucket_analytics_configurations::ListBucketAnalyticsConfigurationsError::Unhandled(inner) => {
1418 Error::Unhandled(inner)
1419 }
1420 }
1421 }
1422}
1423impl<R>
1424 From<
1425 ::aws_smithy_runtime_api::client::result::SdkError<
1426 crate::operation::list_bucket_intelligent_tiering_configurations::ListBucketIntelligentTieringConfigurationsError,
1427 R,
1428 >,
1429 > for Error
1430where
1431 R: Send + Sync + std::fmt::Debug + 'static,
1432{
1433 fn from(
1434 err: ::aws_smithy_runtime_api::client::result::SdkError<
1435 crate::operation::list_bucket_intelligent_tiering_configurations::ListBucketIntelligentTieringConfigurationsError,
1436 R,
1437 >,
1438 ) -> Self {
1439 match err {
1440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1443 source: err.into(),
1444 }),
1445 }
1446 }
1447}
1448impl From<crate::operation::list_bucket_intelligent_tiering_configurations::ListBucketIntelligentTieringConfigurationsError> for Error {
1449 fn from(err: crate::operation::list_bucket_intelligent_tiering_configurations::ListBucketIntelligentTieringConfigurationsError) -> Self {
1450 match err {
1451 crate::operation::list_bucket_intelligent_tiering_configurations::ListBucketIntelligentTieringConfigurationsError::Unhandled(inner) => {
1452 Error::Unhandled(inner)
1453 }
1454 }
1455 }
1456}
1457impl<R>
1458 From<
1459 ::aws_smithy_runtime_api::client::result::SdkError<
1460 crate::operation::list_bucket_inventory_configurations::ListBucketInventoryConfigurationsError,
1461 R,
1462 >,
1463 > for Error
1464where
1465 R: Send + Sync + std::fmt::Debug + 'static,
1466{
1467 fn from(
1468 err: ::aws_smithy_runtime_api::client::result::SdkError<
1469 crate::operation::list_bucket_inventory_configurations::ListBucketInventoryConfigurationsError,
1470 R,
1471 >,
1472 ) -> Self {
1473 match err {
1474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1477 source: err.into(),
1478 }),
1479 }
1480 }
1481}
1482impl From<crate::operation::list_bucket_inventory_configurations::ListBucketInventoryConfigurationsError> for Error {
1483 fn from(err: crate::operation::list_bucket_inventory_configurations::ListBucketInventoryConfigurationsError) -> Self {
1484 match err {
1485 crate::operation::list_bucket_inventory_configurations::ListBucketInventoryConfigurationsError::Unhandled(inner) => {
1486 Error::Unhandled(inner)
1487 }
1488 }
1489 }
1490}
1491impl<R>
1492 From<
1493 ::aws_smithy_runtime_api::client::result::SdkError<
1494 crate::operation::list_bucket_metrics_configurations::ListBucketMetricsConfigurationsError,
1495 R,
1496 >,
1497 > for Error
1498where
1499 R: Send + Sync + std::fmt::Debug + 'static,
1500{
1501 fn from(
1502 err: ::aws_smithy_runtime_api::client::result::SdkError<
1503 crate::operation::list_bucket_metrics_configurations::ListBucketMetricsConfigurationsError,
1504 R,
1505 >,
1506 ) -> Self {
1507 match err {
1508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1511 source: err.into(),
1512 }),
1513 }
1514 }
1515}
1516impl From<crate::operation::list_bucket_metrics_configurations::ListBucketMetricsConfigurationsError> for Error {
1517 fn from(err: crate::operation::list_bucket_metrics_configurations::ListBucketMetricsConfigurationsError) -> Self {
1518 match err {
1519 crate::operation::list_bucket_metrics_configurations::ListBucketMetricsConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1520 }
1521 }
1522}
1523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_buckets::ListBucketsError, R>> for Error
1524where
1525 R: Send + Sync + std::fmt::Debug + 'static,
1526{
1527 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_buckets::ListBucketsError, R>) -> Self {
1528 match err {
1529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1532 source: err.into(),
1533 }),
1534 }
1535 }
1536}
1537impl From<crate::operation::list_buckets::ListBucketsError> for Error {
1538 fn from(err: crate::operation::list_buckets::ListBucketsError) -> Self {
1539 match err {
1540 crate::operation::list_buckets::ListBucketsError::Unhandled(inner) => Error::Unhandled(inner),
1541 }
1542 }
1543}
1544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_directory_buckets::ListDirectoryBucketsError, R>> for Error
1545where
1546 R: Send + Sync + std::fmt::Debug + 'static,
1547{
1548 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_directory_buckets::ListDirectoryBucketsError, R>) -> Self {
1549 match err {
1550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1553 source: err.into(),
1554 }),
1555 }
1556 }
1557}
1558impl From<crate::operation::list_directory_buckets::ListDirectoryBucketsError> for Error {
1559 fn from(err: crate::operation::list_directory_buckets::ListDirectoryBucketsError) -> Self {
1560 match err {
1561 crate::operation::list_directory_buckets::ListDirectoryBucketsError::Unhandled(inner) => Error::Unhandled(inner),
1562 }
1563 }
1564}
1565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_multipart_uploads::ListMultipartUploadsError, R>> for Error
1566where
1567 R: Send + Sync + std::fmt::Debug + 'static,
1568{
1569 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_multipart_uploads::ListMultipartUploadsError, R>) -> Self {
1570 match err {
1571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1574 source: err.into(),
1575 }),
1576 }
1577 }
1578}
1579impl From<crate::operation::list_multipart_uploads::ListMultipartUploadsError> for Error {
1580 fn from(err: crate::operation::list_multipart_uploads::ListMultipartUploadsError) -> Self {
1581 match err {
1582 crate::operation::list_multipart_uploads::ListMultipartUploadsError::Unhandled(inner) => Error::Unhandled(inner),
1583 }
1584 }
1585}
1586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_objects::ListObjectsError, R>> for Error
1587where
1588 R: Send + Sync + std::fmt::Debug + 'static,
1589{
1590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_objects::ListObjectsError, R>) -> Self {
1591 match err {
1592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1595 source: err.into(),
1596 }),
1597 }
1598 }
1599}
1600impl From<crate::operation::list_objects::ListObjectsError> for Error {
1601 fn from(err: crate::operation::list_objects::ListObjectsError) -> Self {
1602 match err {
1603 crate::operation::list_objects::ListObjectsError::NoSuchBucket(inner) => Error::NoSuchBucket(inner),
1604 crate::operation::list_objects::ListObjectsError::Unhandled(inner) => Error::Unhandled(inner),
1605 }
1606 }
1607}
1608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_objects_v2::ListObjectsV2Error, R>> for Error
1609where
1610 R: Send + Sync + std::fmt::Debug + 'static,
1611{
1612 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_objects_v2::ListObjectsV2Error, R>) -> Self {
1613 match err {
1614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1617 source: err.into(),
1618 }),
1619 }
1620 }
1621}
1622impl From<crate::operation::list_objects_v2::ListObjectsV2Error> for Error {
1623 fn from(err: crate::operation::list_objects_v2::ListObjectsV2Error) -> Self {
1624 match err {
1625 crate::operation::list_objects_v2::ListObjectsV2Error::NoSuchBucket(inner) => Error::NoSuchBucket(inner),
1626 crate::operation::list_objects_v2::ListObjectsV2Error::Unhandled(inner) => Error::Unhandled(inner),
1627 }
1628 }
1629}
1630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_object_versions::ListObjectVersionsError, R>> for Error
1631where
1632 R: Send + Sync + std::fmt::Debug + 'static,
1633{
1634 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_object_versions::ListObjectVersionsError, R>) -> Self {
1635 match err {
1636 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1637 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1638 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1639 source: err.into(),
1640 }),
1641 }
1642 }
1643}
1644impl From<crate::operation::list_object_versions::ListObjectVersionsError> for Error {
1645 fn from(err: crate::operation::list_object_versions::ListObjectVersionsError) -> Self {
1646 match err {
1647 crate::operation::list_object_versions::ListObjectVersionsError::Unhandled(inner) => Error::Unhandled(inner),
1648 }
1649 }
1650}
1651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_parts::ListPartsError, R>> for Error
1652where
1653 R: Send + Sync + std::fmt::Debug + 'static,
1654{
1655 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_parts::ListPartsError, R>) -> Self {
1656 match err {
1657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1660 source: err.into(),
1661 }),
1662 }
1663 }
1664}
1665impl From<crate::operation::list_parts::ListPartsError> for Error {
1666 fn from(err: crate::operation::list_parts::ListPartsError) -> Self {
1667 match err {
1668 crate::operation::list_parts::ListPartsError::Unhandled(inner) => Error::Unhandled(inner),
1669 }
1670 }
1671}
1672impl<R>
1673 From<
1674 ::aws_smithy_runtime_api::client::result::SdkError<
1675 crate::operation::put_bucket_accelerate_configuration::PutBucketAccelerateConfigurationError,
1676 R,
1677 >,
1678 > for Error
1679where
1680 R: Send + Sync + std::fmt::Debug + 'static,
1681{
1682 fn from(
1683 err: ::aws_smithy_runtime_api::client::result::SdkError<
1684 crate::operation::put_bucket_accelerate_configuration::PutBucketAccelerateConfigurationError,
1685 R,
1686 >,
1687 ) -> Self {
1688 match err {
1689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1692 source: err.into(),
1693 }),
1694 }
1695 }
1696}
1697impl From<crate::operation::put_bucket_accelerate_configuration::PutBucketAccelerateConfigurationError> for Error {
1698 fn from(err: crate::operation::put_bucket_accelerate_configuration::PutBucketAccelerateConfigurationError) -> Self {
1699 match err {
1700 crate::operation::put_bucket_accelerate_configuration::PutBucketAccelerateConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1701 }
1702 }
1703}
1704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_acl::PutBucketAclError, R>> for Error
1705where
1706 R: Send + Sync + std::fmt::Debug + 'static,
1707{
1708 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_acl::PutBucketAclError, R>) -> Self {
1709 match err {
1710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1713 source: err.into(),
1714 }),
1715 }
1716 }
1717}
1718impl From<crate::operation::put_bucket_acl::PutBucketAclError> for Error {
1719 fn from(err: crate::operation::put_bucket_acl::PutBucketAclError) -> Self {
1720 match err {
1721 crate::operation::put_bucket_acl::PutBucketAclError::Unhandled(inner) => Error::Unhandled(inner),
1722 }
1723 }
1724}
1725impl<R>
1726 From<
1727 ::aws_smithy_runtime_api::client::result::SdkError<
1728 crate::operation::put_bucket_analytics_configuration::PutBucketAnalyticsConfigurationError,
1729 R,
1730 >,
1731 > for Error
1732where
1733 R: Send + Sync + std::fmt::Debug + 'static,
1734{
1735 fn from(
1736 err: ::aws_smithy_runtime_api::client::result::SdkError<
1737 crate::operation::put_bucket_analytics_configuration::PutBucketAnalyticsConfigurationError,
1738 R,
1739 >,
1740 ) -> Self {
1741 match err {
1742 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1743 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1744 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1745 source: err.into(),
1746 }),
1747 }
1748 }
1749}
1750impl From<crate::operation::put_bucket_analytics_configuration::PutBucketAnalyticsConfigurationError> for Error {
1751 fn from(err: crate::operation::put_bucket_analytics_configuration::PutBucketAnalyticsConfigurationError) -> Self {
1752 match err {
1753 crate::operation::put_bucket_analytics_configuration::PutBucketAnalyticsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1754 }
1755 }
1756}
1757impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_cors::PutBucketCorsError, R>> for Error
1758where
1759 R: Send + Sync + std::fmt::Debug + 'static,
1760{
1761 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_cors::PutBucketCorsError, R>) -> Self {
1762 match err {
1763 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1764 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1765 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1766 source: err.into(),
1767 }),
1768 }
1769 }
1770}
1771impl From<crate::operation::put_bucket_cors::PutBucketCorsError> for Error {
1772 fn from(err: crate::operation::put_bucket_cors::PutBucketCorsError) -> Self {
1773 match err {
1774 crate::operation::put_bucket_cors::PutBucketCorsError::Unhandled(inner) => Error::Unhandled(inner),
1775 }
1776 }
1777}
1778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_encryption::PutBucketEncryptionError, R>> for Error
1779where
1780 R: Send + Sync + std::fmt::Debug + 'static,
1781{
1782 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_encryption::PutBucketEncryptionError, R>) -> Self {
1783 match err {
1784 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1785 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1786 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1787 source: err.into(),
1788 }),
1789 }
1790 }
1791}
1792impl From<crate::operation::put_bucket_encryption::PutBucketEncryptionError> for Error {
1793 fn from(err: crate::operation::put_bucket_encryption::PutBucketEncryptionError) -> Self {
1794 match err {
1795 crate::operation::put_bucket_encryption::PutBucketEncryptionError::Unhandled(inner) => Error::Unhandled(inner),
1796 }
1797 }
1798}
1799impl<R>
1800 From<
1801 ::aws_smithy_runtime_api::client::result::SdkError<
1802 crate::operation::put_bucket_intelligent_tiering_configuration::PutBucketIntelligentTieringConfigurationError,
1803 R,
1804 >,
1805 > for Error
1806where
1807 R: Send + Sync + std::fmt::Debug + 'static,
1808{
1809 fn from(
1810 err: ::aws_smithy_runtime_api::client::result::SdkError<
1811 crate::operation::put_bucket_intelligent_tiering_configuration::PutBucketIntelligentTieringConfigurationError,
1812 R,
1813 >,
1814 ) -> Self {
1815 match err {
1816 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1817 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1818 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1819 source: err.into(),
1820 }),
1821 }
1822 }
1823}
1824impl From<crate::operation::put_bucket_intelligent_tiering_configuration::PutBucketIntelligentTieringConfigurationError> for Error {
1825 fn from(err: crate::operation::put_bucket_intelligent_tiering_configuration::PutBucketIntelligentTieringConfigurationError) -> Self {
1826 match err {
1827 crate::operation::put_bucket_intelligent_tiering_configuration::PutBucketIntelligentTieringConfigurationError::Unhandled(inner) => {
1828 Error::Unhandled(inner)
1829 }
1830 }
1831 }
1832}
1833impl<R>
1834 From<
1835 ::aws_smithy_runtime_api::client::result::SdkError<
1836 crate::operation::put_bucket_inventory_configuration::PutBucketInventoryConfigurationError,
1837 R,
1838 >,
1839 > for Error
1840where
1841 R: Send + Sync + std::fmt::Debug + 'static,
1842{
1843 fn from(
1844 err: ::aws_smithy_runtime_api::client::result::SdkError<
1845 crate::operation::put_bucket_inventory_configuration::PutBucketInventoryConfigurationError,
1846 R,
1847 >,
1848 ) -> Self {
1849 match err {
1850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1853 source: err.into(),
1854 }),
1855 }
1856 }
1857}
1858impl From<crate::operation::put_bucket_inventory_configuration::PutBucketInventoryConfigurationError> for Error {
1859 fn from(err: crate::operation::put_bucket_inventory_configuration::PutBucketInventoryConfigurationError) -> Self {
1860 match err {
1861 crate::operation::put_bucket_inventory_configuration::PutBucketInventoryConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1862 }
1863 }
1864}
1865impl<R>
1866 From<
1867 ::aws_smithy_runtime_api::client::result::SdkError<
1868 crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError,
1869 R,
1870 >,
1871 > for Error
1872where
1873 R: Send + Sync + std::fmt::Debug + 'static,
1874{
1875 fn from(
1876 err: ::aws_smithy_runtime_api::client::result::SdkError<
1877 crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError,
1878 R,
1879 >,
1880 ) -> Self {
1881 match err {
1882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1885 source: err.into(),
1886 }),
1887 }
1888 }
1889}
1890impl From<crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError> for Error {
1891 fn from(err: crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError) -> Self {
1892 match err {
1893 crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1894 }
1895 }
1896}
1897impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_logging::PutBucketLoggingError, R>> for Error
1898where
1899 R: Send + Sync + std::fmt::Debug + 'static,
1900{
1901 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_logging::PutBucketLoggingError, R>) -> Self {
1902 match err {
1903 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1904 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1905 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1906 source: err.into(),
1907 }),
1908 }
1909 }
1910}
1911impl From<crate::operation::put_bucket_logging::PutBucketLoggingError> for Error {
1912 fn from(err: crate::operation::put_bucket_logging::PutBucketLoggingError) -> Self {
1913 match err {
1914 crate::operation::put_bucket_logging::PutBucketLoggingError::Unhandled(inner) => Error::Unhandled(inner),
1915 }
1916 }
1917}
1918impl<R>
1919 From<
1920 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_metrics_configuration::PutBucketMetricsConfigurationError, R>,
1921 > for Error
1922where
1923 R: Send + Sync + std::fmt::Debug + 'static,
1924{
1925 fn from(
1926 err: ::aws_smithy_runtime_api::client::result::SdkError<
1927 crate::operation::put_bucket_metrics_configuration::PutBucketMetricsConfigurationError,
1928 R,
1929 >,
1930 ) -> Self {
1931 match err {
1932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1935 source: err.into(),
1936 }),
1937 }
1938 }
1939}
1940impl From<crate::operation::put_bucket_metrics_configuration::PutBucketMetricsConfigurationError> for Error {
1941 fn from(err: crate::operation::put_bucket_metrics_configuration::PutBucketMetricsConfigurationError) -> Self {
1942 match err {
1943 crate::operation::put_bucket_metrics_configuration::PutBucketMetricsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1944 }
1945 }
1946}
1947impl<R>
1948 From<
1949 ::aws_smithy_runtime_api::client::result::SdkError<
1950 crate::operation::put_bucket_notification_configuration::PutBucketNotificationConfigurationError,
1951 R,
1952 >,
1953 > for Error
1954where
1955 R: Send + Sync + std::fmt::Debug + 'static,
1956{
1957 fn from(
1958 err: ::aws_smithy_runtime_api::client::result::SdkError<
1959 crate::operation::put_bucket_notification_configuration::PutBucketNotificationConfigurationError,
1960 R,
1961 >,
1962 ) -> Self {
1963 match err {
1964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1967 source: err.into(),
1968 }),
1969 }
1970 }
1971}
1972impl From<crate::operation::put_bucket_notification_configuration::PutBucketNotificationConfigurationError> for Error {
1973 fn from(err: crate::operation::put_bucket_notification_configuration::PutBucketNotificationConfigurationError) -> Self {
1974 match err {
1975 crate::operation::put_bucket_notification_configuration::PutBucketNotificationConfigurationError::Unhandled(inner) => {
1976 Error::Unhandled(inner)
1977 }
1978 }
1979 }
1980}
1981impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_ownership_controls::PutBucketOwnershipControlsError, R>>
1982 for Error
1983where
1984 R: Send + Sync + std::fmt::Debug + 'static,
1985{
1986 fn from(
1987 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_ownership_controls::PutBucketOwnershipControlsError, R>,
1988 ) -> Self {
1989 match err {
1990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1993 source: err.into(),
1994 }),
1995 }
1996 }
1997}
1998impl From<crate::operation::put_bucket_ownership_controls::PutBucketOwnershipControlsError> for Error {
1999 fn from(err: crate::operation::put_bucket_ownership_controls::PutBucketOwnershipControlsError) -> Self {
2000 match err {
2001 crate::operation::put_bucket_ownership_controls::PutBucketOwnershipControlsError::Unhandled(inner) => Error::Unhandled(inner),
2002 }
2003 }
2004}
2005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_policy::PutBucketPolicyError, R>> for Error
2006where
2007 R: Send + Sync + std::fmt::Debug + 'static,
2008{
2009 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_policy::PutBucketPolicyError, R>) -> Self {
2010 match err {
2011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2014 source: err.into(),
2015 }),
2016 }
2017 }
2018}
2019impl From<crate::operation::put_bucket_policy::PutBucketPolicyError> for Error {
2020 fn from(err: crate::operation::put_bucket_policy::PutBucketPolicyError) -> Self {
2021 match err {
2022 crate::operation::put_bucket_policy::PutBucketPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2023 }
2024 }
2025}
2026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_replication::PutBucketReplicationError, R>> for Error
2027where
2028 R: Send + Sync + std::fmt::Debug + 'static,
2029{
2030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_replication::PutBucketReplicationError, R>) -> Self {
2031 match err {
2032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2035 source: err.into(),
2036 }),
2037 }
2038 }
2039}
2040impl From<crate::operation::put_bucket_replication::PutBucketReplicationError> for Error {
2041 fn from(err: crate::operation::put_bucket_replication::PutBucketReplicationError) -> Self {
2042 match err {
2043 crate::operation::put_bucket_replication::PutBucketReplicationError::Unhandled(inner) => Error::Unhandled(inner),
2044 }
2045 }
2046}
2047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_request_payment::PutBucketRequestPaymentError, R>>
2048 for Error
2049where
2050 R: Send + Sync + std::fmt::Debug + 'static,
2051{
2052 fn from(
2053 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_request_payment::PutBucketRequestPaymentError, R>,
2054 ) -> Self {
2055 match err {
2056 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2057 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2058 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2059 source: err.into(),
2060 }),
2061 }
2062 }
2063}
2064impl From<crate::operation::put_bucket_request_payment::PutBucketRequestPaymentError> for Error {
2065 fn from(err: crate::operation::put_bucket_request_payment::PutBucketRequestPaymentError) -> Self {
2066 match err {
2067 crate::operation::put_bucket_request_payment::PutBucketRequestPaymentError::Unhandled(inner) => Error::Unhandled(inner),
2068 }
2069 }
2070}
2071impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_tagging::PutBucketTaggingError, R>> for Error
2072where
2073 R: Send + Sync + std::fmt::Debug + 'static,
2074{
2075 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_tagging::PutBucketTaggingError, R>) -> Self {
2076 match err {
2077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2080 source: err.into(),
2081 }),
2082 }
2083 }
2084}
2085impl From<crate::operation::put_bucket_tagging::PutBucketTaggingError> for Error {
2086 fn from(err: crate::operation::put_bucket_tagging::PutBucketTaggingError) -> Self {
2087 match err {
2088 crate::operation::put_bucket_tagging::PutBucketTaggingError::Unhandled(inner) => Error::Unhandled(inner),
2089 }
2090 }
2091}
2092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_versioning::PutBucketVersioningError, R>> for Error
2093where
2094 R: Send + Sync + std::fmt::Debug + 'static,
2095{
2096 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_versioning::PutBucketVersioningError, R>) -> Self {
2097 match err {
2098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2101 source: err.into(),
2102 }),
2103 }
2104 }
2105}
2106impl From<crate::operation::put_bucket_versioning::PutBucketVersioningError> for Error {
2107 fn from(err: crate::operation::put_bucket_versioning::PutBucketVersioningError) -> Self {
2108 match err {
2109 crate::operation::put_bucket_versioning::PutBucketVersioningError::Unhandled(inner) => Error::Unhandled(inner),
2110 }
2111 }
2112}
2113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_website::PutBucketWebsiteError, R>> for Error
2114where
2115 R: Send + Sync + std::fmt::Debug + 'static,
2116{
2117 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bucket_website::PutBucketWebsiteError, R>) -> Self {
2118 match err {
2119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2122 source: err.into(),
2123 }),
2124 }
2125 }
2126}
2127impl From<crate::operation::put_bucket_website::PutBucketWebsiteError> for Error {
2128 fn from(err: crate::operation::put_bucket_website::PutBucketWebsiteError) -> Self {
2129 match err {
2130 crate::operation::put_bucket_website::PutBucketWebsiteError::Unhandled(inner) => Error::Unhandled(inner),
2131 }
2132 }
2133}
2134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object::PutObjectError, R>> for Error
2135where
2136 R: Send + Sync + std::fmt::Debug + 'static,
2137{
2138 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object::PutObjectError, R>) -> Self {
2139 match err {
2140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2143 source: err.into(),
2144 }),
2145 }
2146 }
2147}
2148impl From<crate::operation::put_object::PutObjectError> for Error {
2149 fn from(err: crate::operation::put_object::PutObjectError) -> Self {
2150 match err {
2151 crate::operation::put_object::PutObjectError::Unhandled(inner) => Error::Unhandled(inner),
2152 }
2153 }
2154}
2155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_acl::PutObjectAclError, R>> for Error
2156where
2157 R: Send + Sync + std::fmt::Debug + 'static,
2158{
2159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_acl::PutObjectAclError, R>) -> Self {
2160 match err {
2161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2164 source: err.into(),
2165 }),
2166 }
2167 }
2168}
2169impl From<crate::operation::put_object_acl::PutObjectAclError> for Error {
2170 fn from(err: crate::operation::put_object_acl::PutObjectAclError) -> Self {
2171 match err {
2172 crate::operation::put_object_acl::PutObjectAclError::NoSuchKey(inner) => Error::NoSuchKey(inner),
2173 crate::operation::put_object_acl::PutObjectAclError::Unhandled(inner) => Error::Unhandled(inner),
2174 }
2175 }
2176}
2177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_legal_hold::PutObjectLegalHoldError, R>> for Error
2178where
2179 R: Send + Sync + std::fmt::Debug + 'static,
2180{
2181 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_legal_hold::PutObjectLegalHoldError, R>) -> Self {
2182 match err {
2183 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2184 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2185 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2186 source: err.into(),
2187 }),
2188 }
2189 }
2190}
2191impl From<crate::operation::put_object_legal_hold::PutObjectLegalHoldError> for Error {
2192 fn from(err: crate::operation::put_object_legal_hold::PutObjectLegalHoldError) -> Self {
2193 match err {
2194 crate::operation::put_object_legal_hold::PutObjectLegalHoldError::Unhandled(inner) => Error::Unhandled(inner),
2195 }
2196 }
2197}
2198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_lock_configuration::PutObjectLockConfigurationError, R>>
2199 for Error
2200where
2201 R: Send + Sync + std::fmt::Debug + 'static,
2202{
2203 fn from(
2204 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_lock_configuration::PutObjectLockConfigurationError, R>,
2205 ) -> Self {
2206 match err {
2207 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2208 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2209 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2210 source: err.into(),
2211 }),
2212 }
2213 }
2214}
2215impl From<crate::operation::put_object_lock_configuration::PutObjectLockConfigurationError> for Error {
2216 fn from(err: crate::operation::put_object_lock_configuration::PutObjectLockConfigurationError) -> Self {
2217 match err {
2218 crate::operation::put_object_lock_configuration::PutObjectLockConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2219 }
2220 }
2221}
2222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_retention::PutObjectRetentionError, R>> for Error
2223where
2224 R: Send + Sync + std::fmt::Debug + 'static,
2225{
2226 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_retention::PutObjectRetentionError, R>) -> Self {
2227 match err {
2228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2231 source: err.into(),
2232 }),
2233 }
2234 }
2235}
2236impl From<crate::operation::put_object_retention::PutObjectRetentionError> for Error {
2237 fn from(err: crate::operation::put_object_retention::PutObjectRetentionError) -> Self {
2238 match err {
2239 crate::operation::put_object_retention::PutObjectRetentionError::Unhandled(inner) => Error::Unhandled(inner),
2240 }
2241 }
2242}
2243impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_tagging::PutObjectTaggingError, R>> for Error
2244where
2245 R: Send + Sync + std::fmt::Debug + 'static,
2246{
2247 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_object_tagging::PutObjectTaggingError, R>) -> Self {
2248 match err {
2249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2252 source: err.into(),
2253 }),
2254 }
2255 }
2256}
2257impl From<crate::operation::put_object_tagging::PutObjectTaggingError> for Error {
2258 fn from(err: crate::operation::put_object_tagging::PutObjectTaggingError) -> Self {
2259 match err {
2260 crate::operation::put_object_tagging::PutObjectTaggingError::Unhandled(inner) => Error::Unhandled(inner),
2261 }
2262 }
2263}
2264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_public_access_block::PutPublicAccessBlockError, R>> for Error
2265where
2266 R: Send + Sync + std::fmt::Debug + 'static,
2267{
2268 fn from(
2269 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_public_access_block::PutPublicAccessBlockError, R>,
2270 ) -> Self {
2271 match err {
2272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2275 source: err.into(),
2276 }),
2277 }
2278 }
2279}
2280impl From<crate::operation::put_public_access_block::PutPublicAccessBlockError> for Error {
2281 fn from(err: crate::operation::put_public_access_block::PutPublicAccessBlockError) -> Self {
2282 match err {
2283 crate::operation::put_public_access_block::PutPublicAccessBlockError::Unhandled(inner) => Error::Unhandled(inner),
2284 }
2285 }
2286}
2287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_object::RestoreObjectError, R>> for Error
2288where
2289 R: Send + Sync + std::fmt::Debug + 'static,
2290{
2291 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_object::RestoreObjectError, R>) -> Self {
2292 match err {
2293 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2294 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2295 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2296 source: err.into(),
2297 }),
2298 }
2299 }
2300}
2301impl From<crate::operation::restore_object::RestoreObjectError> for Error {
2302 fn from(err: crate::operation::restore_object::RestoreObjectError) -> Self {
2303 match err {
2304 crate::operation::restore_object::RestoreObjectError::ObjectAlreadyInActiveTierError(inner) => {
2305 Error::ObjectAlreadyInActiveTierError(inner)
2306 }
2307 crate::operation::restore_object::RestoreObjectError::Unhandled(inner) => Error::Unhandled(inner),
2308 }
2309 }
2310}
2311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::select_object_content::SelectObjectContentError, R>> for Error
2312where
2313 R: Send + Sync + std::fmt::Debug + 'static,
2314{
2315 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::select_object_content::SelectObjectContentError, R>) -> Self {
2316 match err {
2317 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2318 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2319 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2320 source: err.into(),
2321 }),
2322 }
2323 }
2324}
2325impl From<crate::operation::select_object_content::SelectObjectContentError> for Error {
2326 fn from(err: crate::operation::select_object_content::SelectObjectContentError) -> Self {
2327 match err {
2328 crate::operation::select_object_content::SelectObjectContentError::Unhandled(inner) => Error::Unhandled(inner),
2329 }
2330 }
2331}
2332impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_part::UploadPartError, R>> for Error
2333where
2334 R: Send + Sync + std::fmt::Debug + 'static,
2335{
2336 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_part::UploadPartError, R>) -> Self {
2337 match err {
2338 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2339 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2340 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2341 source: err.into(),
2342 }),
2343 }
2344 }
2345}
2346impl From<crate::operation::upload_part::UploadPartError> for Error {
2347 fn from(err: crate::operation::upload_part::UploadPartError) -> Self {
2348 match err {
2349 crate::operation::upload_part::UploadPartError::Unhandled(inner) => Error::Unhandled(inner),
2350 }
2351 }
2352}
2353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_part_copy::UploadPartCopyError, R>> for Error
2354where
2355 R: Send + Sync + std::fmt::Debug + 'static,
2356{
2357 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_part_copy::UploadPartCopyError, R>) -> Self {
2358 match err {
2359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2362 source: err.into(),
2363 }),
2364 }
2365 }
2366}
2367impl From<crate::operation::upload_part_copy::UploadPartCopyError> for Error {
2368 fn from(err: crate::operation::upload_part_copy::UploadPartCopyError) -> Self {
2369 match err {
2370 crate::operation::upload_part_copy::UploadPartCopyError::Unhandled(inner) => Error::Unhandled(inner),
2371 }
2372 }
2373}
2374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::write_get_object_response::WriteGetObjectResponseError, R>>
2375 for Error
2376where
2377 R: Send + Sync + std::fmt::Debug + 'static,
2378{
2379 fn from(
2380 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::write_get_object_response::WriteGetObjectResponseError, R>,
2381 ) -> Self {
2382 match err {
2383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2386 source: err.into(),
2387 }),
2388 }
2389 }
2390}
2391impl From<crate::operation::write_get_object_response::WriteGetObjectResponseError> for Error {
2392 fn from(err: crate::operation::write_get_object_response::WriteGetObjectResponseError) -> Self {
2393 match err {
2394 crate::operation::write_get_object_response::WriteGetObjectResponseError::Unhandled(inner) => Error::Unhandled(inner),
2395 }
2396 }
2397}
2398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::SelectObjectContentEventStreamError, R>> for Error
2399where
2400 R: Send + Sync + std::fmt::Debug + 'static,
2401{
2402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::SelectObjectContentEventStreamError, R>) -> Self {
2403 match err {
2404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2407 source: err.into(),
2408 }),
2409 }
2410 }
2411}
2412impl From<crate::types::error::SelectObjectContentEventStreamError> for Error {
2413 fn from(err: crate::types::error::SelectObjectContentEventStreamError) -> Self {
2414 match err {
2415 crate::types::error::SelectObjectContentEventStreamError::Unhandled(inner) => Error::Unhandled(inner),
2416 }
2417 }
2418}
2419impl ::std::error::Error for Error {
2420 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2421 match self {
2422 Error::BucketAlreadyExists(inner) => inner.source(),
2423 Error::BucketAlreadyOwnedByYou(inner) => inner.source(),
2424 Error::InvalidObjectState(inner) => inner.source(),
2425 Error::NoSuchBucket(inner) => inner.source(),
2426 Error::NoSuchKey(inner) => inner.source(),
2427 Error::NoSuchUpload(inner) => inner.source(),
2428 Error::NotFound(inner) => inner.source(),
2429 Error::ObjectAlreadyInActiveTierError(inner) => inner.source(),
2430 Error::ObjectNotInActiveTierError(inner) => inner.source(),
2431 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2432 }
2433 }
2434}
2435impl crate::s3_request_id::RequestIdExt for Error {
2436 fn extended_request_id(&self) -> Option<&str> {
2437 match self {
2438 Self::BucketAlreadyExists(e) => e.extended_request_id(),
2439 Self::BucketAlreadyOwnedByYou(e) => e.extended_request_id(),
2440 Self::InvalidObjectState(e) => e.extended_request_id(),
2441 Self::NoSuchBucket(e) => e.extended_request_id(),
2442 Self::NoSuchKey(e) => e.extended_request_id(),
2443 Self::NoSuchUpload(e) => e.extended_request_id(),
2444 Self::NotFound(e) => e.extended_request_id(),
2445 Self::ObjectAlreadyInActiveTierError(e) => e.extended_request_id(),
2446 Self::ObjectNotInActiveTierError(e) => e.extended_request_id(),
2447 Self::Unhandled(e) => e.meta.extended_request_id(),
2448 }
2449 }
2450}
2451impl ::aws_types::request_id::RequestId for Error {
2452 fn request_id(&self) -> Option<&str> {
2453 match self {
2454 Self::BucketAlreadyExists(e) => e.request_id(),
2455 Self::BucketAlreadyOwnedByYou(e) => e.request_id(),
2456 Self::InvalidObjectState(e) => e.request_id(),
2457 Self::NoSuchBucket(e) => e.request_id(),
2458 Self::NoSuchKey(e) => e.request_id(),
2459 Self::NoSuchUpload(e) => e.request_id(),
2460 Self::NotFound(e) => e.request_id(),
2461 Self::ObjectAlreadyInActiveTierError(e) => e.request_id(),
2462 Self::ObjectNotInActiveTierError(e) => e.request_id(),
2463 Self::Unhandled(e) => e.meta.request_id(),
2464 }
2465 }
2466}