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