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