aws_sdk_s3/
error_meta.rs

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