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