1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// All possible error types for this service.
#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
    /// <p>Thrown if there are parallel requests to modify a resource.</p>
    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
    /// <p>The provided developer user identifier is already registered with Cognito under a different identity ID.</p>
    DeveloperUserAlreadyRegisteredException(crate::types::error::DeveloperUserAlreadyRegisteredException),
    /// <p>An exception thrown when a dependent service such as Facebook or Twitter is not responding</p>
    ExternalServiceException(crate::types::error::ExternalServiceException),
    /// <p>Thrown when the service encounters an error during processing the request.</p>
    InternalErrorException(crate::types::error::InternalErrorException),
    /// <p>Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.</p>
    InvalidIdentityPoolConfigurationException(crate::types::error::InvalidIdentityPoolConfigurationException),
    /// <p>Thrown for missing or bad input parameter(s).</p>
    InvalidParameterException(crate::types::error::InvalidParameterException),
    /// <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
    LimitExceededException(crate::types::error::LimitExceededException),
    /// <p>Thrown when a user is not authorized to access the requested resource.</p>
    NotAuthorizedException(crate::types::error::NotAuthorizedException),
    /// <p>Thrown when a user tries to use a login which is already linked to another account.</p>
    ResourceConflictException(crate::types::error::ResourceConflictException),
    /// <p>Thrown when the requested resource (for example, a dataset or record) does not exist.</p>
    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
    /// <p>Thrown when a request is throttled.</p>
    TooManyRequestsException(crate::types::error::TooManyRequestsException),
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
    variable wildcard pattern and check `.code()`:
     \
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
     \
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
    Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Error::ConcurrentModificationException(inner) => inner.fmt(f),
            Error::DeveloperUserAlreadyRegisteredException(inner) => inner.fmt(f),
            Error::ExternalServiceException(inner) => inner.fmt(f),
            Error::InternalErrorException(inner) => inner.fmt(f),
            Error::InvalidIdentityPoolConfigurationException(inner) => inner.fmt(f),
            Error::InvalidParameterException(inner) => inner.fmt(f),
            Error::LimitExceededException(inner) => inner.fmt(f),
            Error::NotAuthorizedException(inner) => inner.fmt(f),
            Error::ResourceConflictException(inner) => inner.fmt(f),
            Error::ResourceNotFoundException(inner) => inner.fmt(f),
            Error::TooManyRequestsException(inner) => inner.fmt(f),
            Error::Unhandled(_) => {
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
                    write!(f, "unhandled error ({code})")
                } else {
                    f.write_str("unhandled error")
                }
            }
        }
    }
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
            source: value.into(),
            meta: ::std::default::Default::default(),
        })
    }
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
        match self {
            Self::ConcurrentModificationException(inner) => inner.meta(),
            Self::DeveloperUserAlreadyRegisteredException(inner) => inner.meta(),
            Self::ExternalServiceException(inner) => inner.meta(),
            Self::InternalErrorException(inner) => inner.meta(),
            Self::InvalidIdentityPoolConfigurationException(inner) => inner.meta(),
            Self::InvalidParameterException(inner) => inner.meta(),
            Self::LimitExceededException(inner) => inner.meta(),
            Self::NotAuthorizedException(inner) => inner.meta(),
            Self::ResourceConflictException(inner) => inner.meta(),
            Self::ResourceNotFoundException(inner) => inner.meta(),
            Self::TooManyRequestsException(inner) => inner.meta(),
            Self::Unhandled(inner) => &inner.meta,
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_identity_pool::CreateIdentityPoolError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_identity_pool::CreateIdentityPoolError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::create_identity_pool::CreateIdentityPoolError> for Error {
    fn from(err: crate::operation::create_identity_pool::CreateIdentityPoolError) -> Self {
        match err {
            crate::operation::create_identity_pool::CreateIdentityPoolError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::create_identity_pool::CreateIdentityPoolError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::create_identity_pool::CreateIdentityPoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
            crate::operation::create_identity_pool::CreateIdentityPoolError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::create_identity_pool::CreateIdentityPoolError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::create_identity_pool::CreateIdentityPoolError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::create_identity_pool::CreateIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identities::DeleteIdentitiesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identities::DeleteIdentitiesError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::delete_identities::DeleteIdentitiesError> for Error {
    fn from(err: crate::operation::delete_identities::DeleteIdentitiesError) -> Self {
        match err {
            crate::operation::delete_identities::DeleteIdentitiesError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::delete_identities::DeleteIdentitiesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::delete_identities::DeleteIdentitiesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::delete_identities::DeleteIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_pool::DeleteIdentityPoolError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_pool::DeleteIdentityPoolError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::delete_identity_pool::DeleteIdentityPoolError> for Error {
    fn from(err: crate::operation::delete_identity_pool::DeleteIdentityPoolError) -> Self {
        match err {
            crate::operation::delete_identity_pool::DeleteIdentityPoolError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::delete_identity_pool::DeleteIdentityPoolError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::delete_identity_pool::DeleteIdentityPoolError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::delete_identity_pool::DeleteIdentityPoolError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::delete_identity_pool::DeleteIdentityPoolError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::delete_identity_pool::DeleteIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity::DescribeIdentityError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity::DescribeIdentityError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::describe_identity::DescribeIdentityError> for Error {
    fn from(err: crate::operation::describe_identity::DescribeIdentityError) -> Self {
        match err {
            crate::operation::describe_identity::DescribeIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::describe_identity::DescribeIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::describe_identity::DescribeIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::describe_identity::DescribeIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::describe_identity::DescribeIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::describe_identity::DescribeIdentityError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_pool::DescribeIdentityPoolError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_identity_pool::DescribeIdentityPoolError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::describe_identity_pool::DescribeIdentityPoolError> for Error {
    fn from(err: crate::operation::describe_identity_pool::DescribeIdentityPoolError) -> Self {
        match err {
            crate::operation::describe_identity_pool::DescribeIdentityPoolError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::describe_identity_pool::DescribeIdentityPoolError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::describe_identity_pool::DescribeIdentityPoolError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::describe_identity_pool::DescribeIdentityPoolError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::describe_identity_pool::DescribeIdentityPoolError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::describe_identity_pool::DescribeIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError, R>,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError> for Error {
    fn from(err: crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError) -> Self {
        match err {
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::ExternalServiceException(inner) => {
                Error::ExternalServiceException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::InvalidIdentityPoolConfigurationException(inner) => {
                Error::InvalidIdentityPoolConfigurationException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id::GetIdError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id::GetIdError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::get_id::GetIdError> for Error {
    fn from(err: crate::operation::get_id::GetIdError) -> Self {
        match err {
            crate::operation::get_id::GetIdError::ExternalServiceException(inner) => Error::ExternalServiceException(inner),
            crate::operation::get_id::GetIdError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::get_id::GetIdError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::get_id::GetIdError::LimitExceededException(inner) => Error::LimitExceededException(inner),
            crate::operation::get_id::GetIdError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::get_id::GetIdError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
            crate::operation::get_id::GetIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::get_id::GetIdError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::get_id::GetIdError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError, R>,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError> for Error {
    fn from(err: crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError) -> Self {
        match err {
            crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_open_id_token::GetOpenIdTokenError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_open_id_token::GetOpenIdTokenError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::get_open_id_token::GetOpenIdTokenError> for Error {
    fn from(err: crate::operation::get_open_id_token::GetOpenIdTokenError) -> Self {
        match err {
            crate::operation::get_open_id_token::GetOpenIdTokenError::ExternalServiceException(inner) => Error::ExternalServiceException(inner),
            crate::operation::get_open_id_token::GetOpenIdTokenError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::get_open_id_token::GetOpenIdTokenError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::get_open_id_token::GetOpenIdTokenError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::get_open_id_token::GetOpenIdTokenError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
            crate::operation::get_open_id_token::GetOpenIdTokenError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::get_open_id_token::GetOpenIdTokenError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::get_open_id_token::GetOpenIdTokenError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R>
    From<
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError,
            R,
        >,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError> for Error {
    fn from(err: crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError) -> Self {
        match err {
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::DeveloperUserAlreadyRegisteredException(inner) => Error::DeveloperUserAlreadyRegisteredException(inner),
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R>
    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError,
            R,
        >,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError> for Error {
    fn from(err: crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError) -> Self {
        match err {
            crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identities::ListIdentitiesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identities::ListIdentitiesError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::list_identities::ListIdentitiesError> for Error {
    fn from(err: crate::operation::list_identities::ListIdentitiesError) -> Self {
        match err {
            crate::operation::list_identities::ListIdentitiesError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::list_identities::ListIdentitiesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::list_identities::ListIdentitiesError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::list_identities::ListIdentitiesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::list_identities::ListIdentitiesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::list_identities::ListIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_pools::ListIdentityPoolsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_pools::ListIdentityPoolsError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::list_identity_pools::ListIdentityPoolsError> for Error {
    fn from(err: crate::operation::list_identity_pools::ListIdentityPoolsError) -> Self {
        match err {
            crate::operation::list_identity_pools::ListIdentityPoolsError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::list_identity_pools::ListIdentityPoolsError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::list_identity_pools::ListIdentityPoolsError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::list_identity_pools::ListIdentityPoolsError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::list_identity_pools::ListIdentityPoolsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::list_identity_pools::ListIdentityPoolsError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
        match err {
            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lookup_developer_identity::LookupDeveloperIdentityError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::lookup_developer_identity::LookupDeveloperIdentityError, R>,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::lookup_developer_identity::LookupDeveloperIdentityError> for Error {
    fn from(err: crate::operation::lookup_developer_identity::LookupDeveloperIdentityError) -> Self {
        match err {
            crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError, R>,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError> for Error {
    fn from(err: crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError) -> Self {
        match err {
            crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError, R>,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError> for Error {
    fn from(err: crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError) -> Self {
        match err {
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::ConcurrentModificationException(inner) => {
                Error::ConcurrentModificationException(inner)
            }
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R>
    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError,
            R,
        >,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError> for Error {
    fn from(err: crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError) -> Self {
        match err {
            crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::tag_resource::TagResourceError> for Error {
    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
        match err {
            crate::operation::tag_resource::TagResourceError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::tag_resource::TagResourceError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError, R>,
    ) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError> for Error {
    fn from(err: crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError) -> Self {
        match err {
            crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::InternalErrorException(inner) => {
                Error::InternalErrorException(inner)
            }
            crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::NotAuthorizedException(inner) => {
                Error::NotAuthorizedException(inner)
            }
            crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlink_identity::UnlinkIdentityError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unlink_identity::UnlinkIdentityError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::unlink_identity::UnlinkIdentityError> for Error {
    fn from(err: crate::operation::unlink_identity::UnlinkIdentityError) -> Self {
        match err {
            crate::operation::unlink_identity::UnlinkIdentityError::ExternalServiceException(inner) => Error::ExternalServiceException(inner),
            crate::operation::unlink_identity::UnlinkIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::unlink_identity::UnlinkIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::unlink_identity::UnlinkIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::unlink_identity::UnlinkIdentityError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
            crate::operation::unlink_identity::UnlinkIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::unlink_identity::UnlinkIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::unlink_identity::UnlinkIdentityError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::untag_resource::UntagResourceError> for Error {
    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
        match err {
            crate::operation::untag_resource::UntagResourceError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
            crate::operation::untag_resource::UntagResourceError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
            crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_identity_pool::UpdateIdentityPoolError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_identity_pool::UpdateIdentityPoolError, R>) -> Self {
        match err {
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
                source: err.into(),
            }),
        }
    }
}
impl From<crate::operation::update_identity_pool::UpdateIdentityPoolError> for Error {
    fn from(err: crate::operation::update_identity_pool::UpdateIdentityPoolError) -> Self {
        match err {
            crate::operation::update_identity_pool::UpdateIdentityPoolError::ConcurrentModificationException(inner) => {
                Error::ConcurrentModificationException(inner)
            }
            crate::operation::update_identity_pool::UpdateIdentityPoolError::InternalErrorException(inner) => Error::InternalErrorException(inner),
            crate::operation::update_identity_pool::UpdateIdentityPoolError::InvalidParameterException(inner) => {
                Error::InvalidParameterException(inner)
            }
            crate::operation::update_identity_pool::UpdateIdentityPoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
            crate::operation::update_identity_pool::UpdateIdentityPoolError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
            crate::operation::update_identity_pool::UpdateIdentityPoolError::ResourceConflictException(inner) => {
                Error::ResourceConflictException(inner)
            }
            crate::operation::update_identity_pool::UpdateIdentityPoolError::ResourceNotFoundException(inner) => {
                Error::ResourceNotFoundException(inner)
            }
            crate::operation::update_identity_pool::UpdateIdentityPoolError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::update_identity_pool::UpdateIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl ::std::error::Error for Error {
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        match self {
            Error::ConcurrentModificationException(inner) => inner.source(),
            Error::DeveloperUserAlreadyRegisteredException(inner) => inner.source(),
            Error::ExternalServiceException(inner) => inner.source(),
            Error::InternalErrorException(inner) => inner.source(),
            Error::InvalidIdentityPoolConfigurationException(inner) => inner.source(),
            Error::InvalidParameterException(inner) => inner.source(),
            Error::LimitExceededException(inner) => inner.source(),
            Error::NotAuthorizedException(inner) => inner.source(),
            Error::ResourceConflictException(inner) => inner.source(),
            Error::ResourceNotFoundException(inner) => inner.source(),
            Error::TooManyRequestsException(inner) => inner.source(),
            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
        }
    }
}
impl ::aws_types::request_id::RequestId for Error {
    fn request_id(&self) -> Option<&str> {
        match self {
            Self::ConcurrentModificationException(e) => e.request_id(),
            Self::DeveloperUserAlreadyRegisteredException(e) => e.request_id(),
            Self::ExternalServiceException(e) => e.request_id(),
            Self::InternalErrorException(e) => e.request_id(),
            Self::InvalidIdentityPoolConfigurationException(e) => e.request_id(),
            Self::InvalidParameterException(e) => e.request_id(),
            Self::LimitExceededException(e) => e.request_id(),
            Self::NotAuthorizedException(e) => e.request_id(),
            Self::ResourceConflictException(e) => e.request_id(),
            Self::ResourceNotFoundException(e) => e.request_id(),
            Self::TooManyRequestsException(e) => e.request_id(),
            Self::Unhandled(e) => e.meta.request_id(),
        }
    }
}