Skip to main content

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