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