aws_sdk_s3/
error_meta.rs

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