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
// 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>The request includes one or more parameters that violate validation rules.</p>
    BadRequestException(crate::types::error::BadRequestException),
    /// <p>The caller isn't authorized to make the request. Check permissions.</p>
    ForbiddenException(crate::types::error::ForbiddenException),
    /// <p>An internal error occurred while processing the request. Try again later.</p>
    InternalServerErrorException(crate::types::error::InternalServerErrorException),
    /// <p>The request uses an HTTP method that isn't allowed for the specified resource.</p>
    MethodNotAllowedException(crate::types::error::MethodNotAllowedException),
    /// <p>One or more of the specified resources don't exist.</p>
    NotFoundException(crate::types::error::NotFoundException),
    /// <p>You've exceeded throttling limits by making too many requests in a period of time.</p>
    TooManyRequestsException(crate::types::error::TooManyRequestsException),
    /// <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
    UnauthorizedException(crate::types::error::UnauthorizedException),
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
    Unhandled(::aws_smithy_types::error::Unhandled),
}
impl ::std::fmt::Display for Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Error::BadRequestException(inner) => inner.fmt(f),
            Error::ForbiddenException(inner) => inner.fmt(f),
            Error::InternalServerErrorException(inner) => inner.fmt(f),
            Error::MethodNotAllowedException(inner) => inner.fmt(f),
            Error::NotFoundException(inner) => inner.fmt(f),
            Error::TooManyRequestsException(inner) => inner.fmt(f),
            Error::UnauthorizedException(inner) => inner.fmt(f),
            Error::Unhandled(inner) => inner.fmt(f),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::create_group::CreateGroupError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::create_group::CreateGroupError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::create_group::CreateGroupError> for Error {
    fn from(err: crate::operation::create_group::CreateGroupError) -> Self {
        match err {
            crate::operation::create_group::CreateGroupError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::create_group::CreateGroupError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::create_group::CreateGroupError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::create_group::CreateGroupError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::create_group::CreateGroupError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::create_group::CreateGroupError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::delete_group::DeleteGroupError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::delete_group::DeleteGroupError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::delete_group::DeleteGroupError> for Error {
    fn from(err: crate::operation::delete_group::DeleteGroupError) -> Self {
        match err {
            crate::operation::delete_group::DeleteGroupError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::delete_group::DeleteGroupError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::delete_group::DeleteGroupError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::delete_group::DeleteGroupError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::delete_group::DeleteGroupError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::delete_group::DeleteGroupError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::delete_group::DeleteGroupError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::get_account_settings::GetAccountSettingsError> for Error {
    fn from(err: crate::operation::get_account_settings::GetAccountSettingsError) -> Self {
        match err {
            crate::operation::get_account_settings::GetAccountSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::get_account_settings::GetAccountSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::get_account_settings::GetAccountSettingsError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::get_account_settings::GetAccountSettingsError::MethodNotAllowedException(inner) => {
                Error::MethodNotAllowedException(inner)
            }
            crate::operation::get_account_settings::GetAccountSettingsError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::get_account_settings::GetAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::get_group::GetGroupError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::get_group::GetGroupError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::get_group::GetGroupError> for Error {
    fn from(err: crate::operation::get_group::GetGroupError) -> Self {
        match err {
            crate::operation::get_group::GetGroupError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::get_group::GetGroupError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::get_group::GetGroupError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::get_group::GetGroupError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::get_group::GetGroupError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::get_group::GetGroupError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::get_group::GetGroupError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::get_group_configuration::GetGroupConfigurationError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::get_group_configuration::GetGroupConfigurationError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::get_group_configuration::GetGroupConfigurationError> for Error {
    fn from(err: crate::operation::get_group_configuration::GetGroupConfigurationError) -> Self {
        match err {
            crate::operation::get_group_configuration::GetGroupConfigurationError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::get_group_configuration::GetGroupConfigurationError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::get_group_configuration::GetGroupConfigurationError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::get_group_configuration::GetGroupConfigurationError::MethodNotAllowedException(inner) => {
                Error::MethodNotAllowedException(inner)
            }
            crate::operation::get_group_configuration::GetGroupConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::get_group_configuration::GetGroupConfigurationError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::get_group_configuration::GetGroupConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::get_group_query::GetGroupQueryError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::get_group_query::GetGroupQueryError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::get_group_query::GetGroupQueryError> for Error {
    fn from(err: crate::operation::get_group_query::GetGroupQueryError) -> Self {
        match err {
            crate::operation::get_group_query::GetGroupQueryError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::get_group_query::GetGroupQueryError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::get_group_query::GetGroupQueryError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::get_group_query::GetGroupQueryError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::get_group_query::GetGroupQueryError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::get_group_query::GetGroupQueryError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::get_group_query::GetGroupQueryError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::get_tags::GetTagsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::get_tags::GetTagsError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::get_tags::GetTagsError> for Error {
    fn from(err: crate::operation::get_tags::GetTagsError) -> Self {
        match err {
            crate::operation::get_tags::GetTagsError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::get_tags::GetTagsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::get_tags::GetTagsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::get_tags::GetTagsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::get_tags::GetTagsError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::get_tags::GetTagsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::get_tags::GetTagsError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::group_resources::GroupResourcesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::group_resources::GroupResourcesError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::group_resources::GroupResourcesError> for Error {
    fn from(err: crate::operation::group_resources::GroupResourcesError) -> Self {
        match err {
            crate::operation::group_resources::GroupResourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::group_resources::GroupResourcesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::group_resources::GroupResourcesError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::group_resources::GroupResourcesError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::group_resources::GroupResourcesError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::group_resources::GroupResourcesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::group_resources::GroupResourcesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_group_resources::ListGroupResourcesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_group_resources::ListGroupResourcesError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::list_group_resources::ListGroupResourcesError> for Error {
    fn from(err: crate::operation::list_group_resources::ListGroupResourcesError) -> Self {
        match err {
            crate::operation::list_group_resources::ListGroupResourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::list_group_resources::ListGroupResourcesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::list_group_resources::ListGroupResourcesError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::list_group_resources::ListGroupResourcesError::MethodNotAllowedException(inner) => {
                Error::MethodNotAllowedException(inner)
            }
            crate::operation::list_group_resources::ListGroupResourcesError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::list_group_resources::ListGroupResourcesError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::list_group_resources::ListGroupResourcesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
            crate::operation::list_group_resources::ListGroupResourcesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_groups::ListGroupsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_groups::ListGroupsError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::list_groups::ListGroupsError> for Error {
    fn from(err: crate::operation::list_groups::ListGroupsError) -> Self {
        match err {
            crate::operation::list_groups::ListGroupsError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::list_groups::ListGroupsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::list_groups::ListGroupsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::list_groups::ListGroupsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::list_groups::ListGroupsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::list_groups::ListGroupsError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::put_group_configuration::PutGroupConfigurationError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::put_group_configuration::PutGroupConfigurationError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::put_group_configuration::PutGroupConfigurationError> for Error {
    fn from(err: crate::operation::put_group_configuration::PutGroupConfigurationError) -> Self {
        match err {
            crate::operation::put_group_configuration::PutGroupConfigurationError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::put_group_configuration::PutGroupConfigurationError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::put_group_configuration::PutGroupConfigurationError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::put_group_configuration::PutGroupConfigurationError::MethodNotAllowedException(inner) => {
                Error::MethodNotAllowedException(inner)
            }
            crate::operation::put_group_configuration::PutGroupConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::put_group_configuration::PutGroupConfigurationError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::put_group_configuration::PutGroupConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::search_resources::SearchResourcesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::search_resources::SearchResourcesError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::search_resources::SearchResourcesError> for Error {
    fn from(err: crate::operation::search_resources::SearchResourcesError) -> Self {
        match err {
            crate::operation::search_resources::SearchResourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::search_resources::SearchResourcesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::search_resources::SearchResourcesError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::search_resources::SearchResourcesError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::search_resources::SearchResourcesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::search_resources::SearchResourcesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
            crate::operation::search_resources::SearchResourcesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::tag::TagError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::tag::TagError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::tag::TagError> for Error {
    fn from(err: crate::operation::tag::TagError) -> Self {
        match err {
            crate::operation::tag::TagError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::tag::TagError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::tag::TagError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::tag::TagError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::tag::TagError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::tag::TagError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::tag::TagError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::ungroup_resources::UngroupResourcesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::ungroup_resources::UngroupResourcesError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::ungroup_resources::UngroupResourcesError> for Error {
    fn from(err: crate::operation::ungroup_resources::UngroupResourcesError) -> Self {
        match err {
            crate::operation::ungroup_resources::UngroupResourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::ungroup_resources::UngroupResourcesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::ungroup_resources::UngroupResourcesError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::ungroup_resources::UngroupResourcesError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::ungroup_resources::UngroupResourcesError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::ungroup_resources::UngroupResourcesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::ungroup_resources::UngroupResourcesError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::untag::UntagError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::untag::UntagError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::untag::UntagError> for Error {
    fn from(err: crate::operation::untag::UntagError) -> Self {
        match err {
            crate::operation::untag::UntagError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::untag::UntagError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::untag::UntagError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::untag::UntagError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::untag::UntagError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::untag::UntagError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::untag::UntagError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::update_account_settings::UpdateAccountSettingsError> for Error {
    fn from(err: crate::operation::update_account_settings::UpdateAccountSettingsError) -> Self {
        match err {
            crate::operation::update_account_settings::UpdateAccountSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::update_account_settings::UpdateAccountSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::update_account_settings::UpdateAccountSettingsError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::update_account_settings::UpdateAccountSettingsError::MethodNotAllowedException(inner) => {
                Error::MethodNotAllowedException(inner)
            }
            crate::operation::update_account_settings::UpdateAccountSettingsError::TooManyRequestsException(inner) => {
                Error::TooManyRequestsException(inner)
            }
            crate::operation::update_account_settings::UpdateAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_group::UpdateGroupError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::update_group::UpdateGroupError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::update_group::UpdateGroupError> for Error {
    fn from(err: crate::operation::update_group::UpdateGroupError) -> Self {
        match err {
            crate::operation::update_group::UpdateGroupError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::update_group::UpdateGroupError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::update_group::UpdateGroupError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
            crate::operation::update_group::UpdateGroupError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::update_group::UpdateGroupError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::update_group::UpdateGroupError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::update_group::UpdateGroupError::Unhandled(inner) => Error::Unhandled(inner),
        }
    }
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_group_query::UpdateGroupQueryError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::update_group_query::UpdateGroupQueryError, R>) -> Self {
        match err {
            ::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
            _ => Error::Unhandled(
                ::aws_smithy_types::error::Unhandled::builder()
                    .meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
                    .source(err)
                    .build(),
            ),
        }
    }
}
impl From<crate::operation::update_group_query::UpdateGroupQueryError> for Error {
    fn from(err: crate::operation::update_group_query::UpdateGroupQueryError) -> Self {
        match err {
            crate::operation::update_group_query::UpdateGroupQueryError::BadRequestException(inner) => Error::BadRequestException(inner),
            crate::operation::update_group_query::UpdateGroupQueryError::ForbiddenException(inner) => Error::ForbiddenException(inner),
            crate::operation::update_group_query::UpdateGroupQueryError::InternalServerErrorException(inner) => {
                Error::InternalServerErrorException(inner)
            }
            crate::operation::update_group_query::UpdateGroupQueryError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
            crate::operation::update_group_query::UpdateGroupQueryError::NotFoundException(inner) => Error::NotFoundException(inner),
            crate::operation::update_group_query::UpdateGroupQueryError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
            crate::operation::update_group_query::UpdateGroupQueryError::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::BadRequestException(inner) => inner.source(),
            Error::ForbiddenException(inner) => inner.source(),
            Error::InternalServerErrorException(inner) => inner.source(),
            Error::MethodNotAllowedException(inner) => inner.source(),
            Error::NotFoundException(inner) => inner.source(),
            Error::TooManyRequestsException(inner) => inner.source(),
            Error::UnauthorizedException(inner) => inner.source(),
            Error::Unhandled(inner) => inner.source(),
        }
    }
}
impl ::aws_http::request_id::RequestId for Error {
    fn request_id(&self) -> Option<&str> {
        match self {
            Self::BadRequestException(e) => e.request_id(),
            Self::ForbiddenException(e) => e.request_id(),
            Self::InternalServerErrorException(e) => e.request_id(),
            Self::MethodNotAllowedException(e) => e.request_id(),
            Self::NotFoundException(e) => e.request_id(),
            Self::TooManyRequestsException(e) => e.request_id(),
            Self::UnauthorizedException(e) => e.request_id(),
            Self::Unhandled(e) => e.request_id(),
        }
    }
}