@aws-sdk/client-resource-groups 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +52 -618
- package/dist-es/protocols/Aws_restJson1.js +44 -610
- package/package.json +3 -3
|
@@ -258,7 +258,7 @@ export const se_UpdateGroupQueryCommand = async (input, context) => {
|
|
|
258
258
|
};
|
|
259
259
|
export const de_CreateGroupCommand = async (output, context) => {
|
|
260
260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
261
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
262
262
|
}
|
|
263
263
|
const contents = map({
|
|
264
264
|
$metadata: deserializeMetadata(output),
|
|
@@ -273,40 +273,9 @@ export const de_CreateGroupCommand = async (output, context) => {
|
|
|
273
273
|
Object.assign(contents, doc);
|
|
274
274
|
return contents;
|
|
275
275
|
};
|
|
276
|
-
const de_CreateGroupCommandError = async (output, context) => {
|
|
277
|
-
const parsedOutput = {
|
|
278
|
-
...output,
|
|
279
|
-
body: await parseErrorBody(output.body, context),
|
|
280
|
-
};
|
|
281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
282
|
-
switch (errorCode) {
|
|
283
|
-
case "BadRequestException":
|
|
284
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
285
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
286
|
-
case "ForbiddenException":
|
|
287
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
288
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
289
|
-
case "InternalServerErrorException":
|
|
290
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
291
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
292
|
-
case "MethodNotAllowedException":
|
|
293
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
294
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
295
|
-
case "TooManyRequestsException":
|
|
296
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
297
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
298
|
-
default:
|
|
299
|
-
const parsedBody = parsedOutput.body;
|
|
300
|
-
return throwDefaultError({
|
|
301
|
-
output,
|
|
302
|
-
parsedBody,
|
|
303
|
-
errorCode,
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
276
|
export const de_DeleteGroupCommand = async (output, context) => {
|
|
308
277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
309
|
-
return
|
|
278
|
+
return de_CommandError(output, context);
|
|
310
279
|
}
|
|
311
280
|
const contents = map({
|
|
312
281
|
$metadata: deserializeMetadata(output),
|
|
@@ -318,43 +287,9 @@ export const de_DeleteGroupCommand = async (output, context) => {
|
|
|
318
287
|
Object.assign(contents, doc);
|
|
319
288
|
return contents;
|
|
320
289
|
};
|
|
321
|
-
const de_DeleteGroupCommandError = async (output, context) => {
|
|
322
|
-
const parsedOutput = {
|
|
323
|
-
...output,
|
|
324
|
-
body: await parseErrorBody(output.body, context),
|
|
325
|
-
};
|
|
326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
327
|
-
switch (errorCode) {
|
|
328
|
-
case "BadRequestException":
|
|
329
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
330
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
331
|
-
case "ForbiddenException":
|
|
332
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
333
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
334
|
-
case "InternalServerErrorException":
|
|
335
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
336
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
337
|
-
case "MethodNotAllowedException":
|
|
338
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
339
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
340
|
-
case "NotFoundException":
|
|
341
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
342
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
343
|
-
case "TooManyRequestsException":
|
|
344
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
345
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
346
|
-
default:
|
|
347
|
-
const parsedBody = parsedOutput.body;
|
|
348
|
-
return throwDefaultError({
|
|
349
|
-
output,
|
|
350
|
-
parsedBody,
|
|
351
|
-
errorCode,
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
290
|
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
356
291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
357
|
-
return
|
|
292
|
+
return de_CommandError(output, context);
|
|
358
293
|
}
|
|
359
294
|
const contents = map({
|
|
360
295
|
$metadata: deserializeMetadata(output),
|
|
@@ -366,40 +301,9 @@ export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
|
366
301
|
Object.assign(contents, doc);
|
|
367
302
|
return contents;
|
|
368
303
|
};
|
|
369
|
-
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
370
|
-
const parsedOutput = {
|
|
371
|
-
...output,
|
|
372
|
-
body: await parseErrorBody(output.body, context),
|
|
373
|
-
};
|
|
374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
375
|
-
switch (errorCode) {
|
|
376
|
-
case "BadRequestException":
|
|
377
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
378
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
379
|
-
case "ForbiddenException":
|
|
380
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
381
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
382
|
-
case "InternalServerErrorException":
|
|
383
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
384
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
385
|
-
case "MethodNotAllowedException":
|
|
386
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
387
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
388
|
-
case "TooManyRequestsException":
|
|
389
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
390
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
391
|
-
default:
|
|
392
|
-
const parsedBody = parsedOutput.body;
|
|
393
|
-
return throwDefaultError({
|
|
394
|
-
output,
|
|
395
|
-
parsedBody,
|
|
396
|
-
errorCode,
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
304
|
export const de_GetGroupCommand = async (output, context) => {
|
|
401
305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
402
|
-
return
|
|
306
|
+
return de_CommandError(output, context);
|
|
403
307
|
}
|
|
404
308
|
const contents = map({
|
|
405
309
|
$metadata: deserializeMetadata(output),
|
|
@@ -411,43 +315,9 @@ export const de_GetGroupCommand = async (output, context) => {
|
|
|
411
315
|
Object.assign(contents, doc);
|
|
412
316
|
return contents;
|
|
413
317
|
};
|
|
414
|
-
const de_GetGroupCommandError = async (output, context) => {
|
|
415
|
-
const parsedOutput = {
|
|
416
|
-
...output,
|
|
417
|
-
body: await parseErrorBody(output.body, context),
|
|
418
|
-
};
|
|
419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
|
-
switch (errorCode) {
|
|
421
|
-
case "BadRequestException":
|
|
422
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
423
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ForbiddenException":
|
|
425
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
426
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
427
|
-
case "InternalServerErrorException":
|
|
428
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
429
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
430
|
-
case "MethodNotAllowedException":
|
|
431
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
432
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
433
|
-
case "NotFoundException":
|
|
434
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
435
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
436
|
-
case "TooManyRequestsException":
|
|
437
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
438
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
439
|
-
default:
|
|
440
|
-
const parsedBody = parsedOutput.body;
|
|
441
|
-
return throwDefaultError({
|
|
442
|
-
output,
|
|
443
|
-
parsedBody,
|
|
444
|
-
errorCode,
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
318
|
export const de_GetGroupConfigurationCommand = async (output, context) => {
|
|
449
319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
-
return
|
|
320
|
+
return de_CommandError(output, context);
|
|
451
321
|
}
|
|
452
322
|
const contents = map({
|
|
453
323
|
$metadata: deserializeMetadata(output),
|
|
@@ -459,43 +329,9 @@ export const de_GetGroupConfigurationCommand = async (output, context) => {
|
|
|
459
329
|
Object.assign(contents, doc);
|
|
460
330
|
return contents;
|
|
461
331
|
};
|
|
462
|
-
const de_GetGroupConfigurationCommandError = async (output, context) => {
|
|
463
|
-
const parsedOutput = {
|
|
464
|
-
...output,
|
|
465
|
-
body: await parseErrorBody(output.body, context),
|
|
466
|
-
};
|
|
467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
468
|
-
switch (errorCode) {
|
|
469
|
-
case "BadRequestException":
|
|
470
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
471
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ForbiddenException":
|
|
473
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
474
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
475
|
-
case "InternalServerErrorException":
|
|
476
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
477
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
478
|
-
case "MethodNotAllowedException":
|
|
479
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
480
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
481
|
-
case "NotFoundException":
|
|
482
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
483
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
484
|
-
case "TooManyRequestsException":
|
|
485
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
486
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
487
|
-
default:
|
|
488
|
-
const parsedBody = parsedOutput.body;
|
|
489
|
-
return throwDefaultError({
|
|
490
|
-
output,
|
|
491
|
-
parsedBody,
|
|
492
|
-
errorCode,
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
332
|
export const de_GetGroupQueryCommand = async (output, context) => {
|
|
497
333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
498
|
-
return
|
|
334
|
+
return de_CommandError(output, context);
|
|
499
335
|
}
|
|
500
336
|
const contents = map({
|
|
501
337
|
$metadata: deserializeMetadata(output),
|
|
@@ -507,43 +343,9 @@ export const de_GetGroupQueryCommand = async (output, context) => {
|
|
|
507
343
|
Object.assign(contents, doc);
|
|
508
344
|
return contents;
|
|
509
345
|
};
|
|
510
|
-
const de_GetGroupQueryCommandError = async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await parseErrorBody(output.body, context),
|
|
514
|
-
};
|
|
515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "BadRequestException":
|
|
518
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
519
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
520
|
-
case "ForbiddenException":
|
|
521
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
522
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
523
|
-
case "InternalServerErrorException":
|
|
524
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
525
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
526
|
-
case "MethodNotAllowedException":
|
|
527
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
528
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
529
|
-
case "NotFoundException":
|
|
530
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
531
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
532
|
-
case "TooManyRequestsException":
|
|
533
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
534
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
535
|
-
default:
|
|
536
|
-
const parsedBody = parsedOutput.body;
|
|
537
|
-
return throwDefaultError({
|
|
538
|
-
output,
|
|
539
|
-
parsedBody,
|
|
540
|
-
errorCode,
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
346
|
export const de_GetTagsCommand = async (output, context) => {
|
|
545
347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
546
|
-
return
|
|
348
|
+
return de_CommandError(output, context);
|
|
547
349
|
}
|
|
548
350
|
const contents = map({
|
|
549
351
|
$metadata: deserializeMetadata(output),
|
|
@@ -556,43 +358,9 @@ export const de_GetTagsCommand = async (output, context) => {
|
|
|
556
358
|
Object.assign(contents, doc);
|
|
557
359
|
return contents;
|
|
558
360
|
};
|
|
559
|
-
const de_GetTagsCommandError = async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context),
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "BadRequestException":
|
|
567
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
568
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ForbiddenException":
|
|
570
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
571
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
572
|
-
case "InternalServerErrorException":
|
|
573
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
574
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
575
|
-
case "MethodNotAllowedException":
|
|
576
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
577
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
578
|
-
case "NotFoundException":
|
|
579
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
580
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
581
|
-
case "TooManyRequestsException":
|
|
582
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
583
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
584
|
-
default:
|
|
585
|
-
const parsedBody = parsedOutput.body;
|
|
586
|
-
return throwDefaultError({
|
|
587
|
-
output,
|
|
588
|
-
parsedBody,
|
|
589
|
-
errorCode,
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
361
|
export const de_GroupResourcesCommand = async (output, context) => {
|
|
594
362
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return
|
|
363
|
+
return de_CommandError(output, context);
|
|
596
364
|
}
|
|
597
365
|
const contents = map({
|
|
598
366
|
$metadata: deserializeMetadata(output),
|
|
@@ -606,43 +374,9 @@ export const de_GroupResourcesCommand = async (output, context) => {
|
|
|
606
374
|
Object.assign(contents, doc);
|
|
607
375
|
return contents;
|
|
608
376
|
};
|
|
609
|
-
const de_GroupResourcesCommandError = async (output, context) => {
|
|
610
|
-
const parsedOutput = {
|
|
611
|
-
...output,
|
|
612
|
-
body: await parseErrorBody(output.body, context),
|
|
613
|
-
};
|
|
614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
-
switch (errorCode) {
|
|
616
|
-
case "BadRequestException":
|
|
617
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
618
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
619
|
-
case "ForbiddenException":
|
|
620
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
621
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
622
|
-
case "InternalServerErrorException":
|
|
623
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
624
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
625
|
-
case "MethodNotAllowedException":
|
|
626
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
627
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
628
|
-
case "NotFoundException":
|
|
629
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
630
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
631
|
-
case "TooManyRequestsException":
|
|
632
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
633
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
634
|
-
default:
|
|
635
|
-
const parsedBody = parsedOutput.body;
|
|
636
|
-
return throwDefaultError({
|
|
637
|
-
output,
|
|
638
|
-
parsedBody,
|
|
639
|
-
errorCode,
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
377
|
export const de_ListGroupResourcesCommand = async (output, context) => {
|
|
644
378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
645
|
-
return
|
|
379
|
+
return de_CommandError(output, context);
|
|
646
380
|
}
|
|
647
381
|
const contents = map({
|
|
648
382
|
$metadata: deserializeMetadata(output),
|
|
@@ -651,99 +385,31 @@ export const de_ListGroupResourcesCommand = async (output, context) => {
|
|
|
651
385
|
const doc = take(data, {
|
|
652
386
|
NextToken: __expectString,
|
|
653
387
|
QueryErrors: _json,
|
|
654
|
-
ResourceIdentifiers: _json,
|
|
655
|
-
Resources: _json,
|
|
656
|
-
});
|
|
657
|
-
Object.assign(contents, doc);
|
|
658
|
-
return contents;
|
|
659
|
-
};
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
body: await parseErrorBody(output.body, context),
|
|
664
|
-
};
|
|
665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
|
-
switch (errorCode) {
|
|
667
|
-
case "BadRequestException":
|
|
668
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
669
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
670
|
-
case "ForbiddenException":
|
|
671
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
672
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
673
|
-
case "InternalServerErrorException":
|
|
674
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
675
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
676
|
-
case "MethodNotAllowedException":
|
|
677
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
678
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
679
|
-
case "NotFoundException":
|
|
680
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
681
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
682
|
-
case "TooManyRequestsException":
|
|
683
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
684
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
685
|
-
case "UnauthorizedException":
|
|
686
|
-
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
687
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
688
|
-
default:
|
|
689
|
-
const parsedBody = parsedOutput.body;
|
|
690
|
-
return throwDefaultError({
|
|
691
|
-
output,
|
|
692
|
-
parsedBody,
|
|
693
|
-
errorCode,
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
export const de_ListGroupsCommand = async (output, context) => {
|
|
698
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
|
-
return de_ListGroupsCommandError(output, context);
|
|
700
|
-
}
|
|
701
|
-
const contents = map({
|
|
702
|
-
$metadata: deserializeMetadata(output),
|
|
703
|
-
});
|
|
704
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
705
|
-
const doc = take(data, {
|
|
706
|
-
GroupIdentifiers: _json,
|
|
707
|
-
Groups: _json,
|
|
708
|
-
NextToken: __expectString,
|
|
709
|
-
});
|
|
710
|
-
Object.assign(contents, doc);
|
|
711
|
-
return contents;
|
|
712
|
-
};
|
|
713
|
-
const de_ListGroupsCommandError = async (output, context) => {
|
|
714
|
-
const parsedOutput = {
|
|
715
|
-
...output,
|
|
716
|
-
body: await parseErrorBody(output.body, context),
|
|
717
|
-
};
|
|
718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
|
-
switch (errorCode) {
|
|
720
|
-
case "BadRequestException":
|
|
721
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
722
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ForbiddenException":
|
|
724
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
725
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
726
|
-
case "InternalServerErrorException":
|
|
727
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
728
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
729
|
-
case "MethodNotAllowedException":
|
|
730
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
731
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
732
|
-
case "TooManyRequestsException":
|
|
733
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
734
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
735
|
-
default:
|
|
736
|
-
const parsedBody = parsedOutput.body;
|
|
737
|
-
return throwDefaultError({
|
|
738
|
-
output,
|
|
739
|
-
parsedBody,
|
|
740
|
-
errorCode,
|
|
741
|
-
});
|
|
388
|
+
ResourceIdentifiers: _json,
|
|
389
|
+
Resources: _json,
|
|
390
|
+
});
|
|
391
|
+
Object.assign(contents, doc);
|
|
392
|
+
return contents;
|
|
393
|
+
};
|
|
394
|
+
export const de_ListGroupsCommand = async (output, context) => {
|
|
395
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
+
return de_CommandError(output, context);
|
|
742
397
|
}
|
|
398
|
+
const contents = map({
|
|
399
|
+
$metadata: deserializeMetadata(output),
|
|
400
|
+
});
|
|
401
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
402
|
+
const doc = take(data, {
|
|
403
|
+
GroupIdentifiers: _json,
|
|
404
|
+
Groups: _json,
|
|
405
|
+
NextToken: __expectString,
|
|
406
|
+
});
|
|
407
|
+
Object.assign(contents, doc);
|
|
408
|
+
return contents;
|
|
743
409
|
};
|
|
744
410
|
export const de_PutGroupConfigurationCommand = async (output, context) => {
|
|
745
411
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
746
|
-
return
|
|
412
|
+
return de_CommandError(output, context);
|
|
747
413
|
}
|
|
748
414
|
const contents = map({
|
|
749
415
|
$metadata: deserializeMetadata(output),
|
|
@@ -751,43 +417,9 @@ export const de_PutGroupConfigurationCommand = async (output, context) => {
|
|
|
751
417
|
await collectBody(output.body, context);
|
|
752
418
|
return contents;
|
|
753
419
|
};
|
|
754
|
-
const de_PutGroupConfigurationCommandError = async (output, context) => {
|
|
755
|
-
const parsedOutput = {
|
|
756
|
-
...output,
|
|
757
|
-
body: await parseErrorBody(output.body, context),
|
|
758
|
-
};
|
|
759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
|
-
switch (errorCode) {
|
|
761
|
-
case "BadRequestException":
|
|
762
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
763
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ForbiddenException":
|
|
765
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
766
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
767
|
-
case "InternalServerErrorException":
|
|
768
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
769
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
770
|
-
case "MethodNotAllowedException":
|
|
771
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
772
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
773
|
-
case "NotFoundException":
|
|
774
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
775
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
776
|
-
case "TooManyRequestsException":
|
|
777
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
778
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
420
|
export const de_SearchResourcesCommand = async (output, context) => {
|
|
789
421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
791
423
|
}
|
|
792
424
|
const contents = map({
|
|
793
425
|
$metadata: deserializeMetadata(output),
|
|
@@ -801,43 +433,9 @@ export const de_SearchResourcesCommand = async (output, context) => {
|
|
|
801
433
|
Object.assign(contents, doc);
|
|
802
434
|
return contents;
|
|
803
435
|
};
|
|
804
|
-
const de_SearchResourcesCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "BadRequestException":
|
|
812
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
813
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ForbiddenException":
|
|
815
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
816
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
817
|
-
case "InternalServerErrorException":
|
|
818
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
819
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
820
|
-
case "MethodNotAllowedException":
|
|
821
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
822
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
823
|
-
case "TooManyRequestsException":
|
|
824
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
825
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
826
|
-
case "UnauthorizedException":
|
|
827
|
-
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
828
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
829
|
-
default:
|
|
830
|
-
const parsedBody = parsedOutput.body;
|
|
831
|
-
return throwDefaultError({
|
|
832
|
-
output,
|
|
833
|
-
parsedBody,
|
|
834
|
-
errorCode,
|
|
835
|
-
});
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
436
|
export const de_TagCommand = async (output, context) => {
|
|
839
437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
840
|
-
return
|
|
438
|
+
return de_CommandError(output, context);
|
|
841
439
|
}
|
|
842
440
|
const contents = map({
|
|
843
441
|
$metadata: deserializeMetadata(output),
|
|
@@ -850,43 +448,9 @@ export const de_TagCommand = async (output, context) => {
|
|
|
850
448
|
Object.assign(contents, doc);
|
|
851
449
|
return contents;
|
|
852
450
|
};
|
|
853
|
-
const de_TagCommandError = async (output, context) => {
|
|
854
|
-
const parsedOutput = {
|
|
855
|
-
...output,
|
|
856
|
-
body: await parseErrorBody(output.body, context),
|
|
857
|
-
};
|
|
858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
-
switch (errorCode) {
|
|
860
|
-
case "BadRequestException":
|
|
861
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
862
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ForbiddenException":
|
|
864
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
865
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
866
|
-
case "InternalServerErrorException":
|
|
867
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
868
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
869
|
-
case "MethodNotAllowedException":
|
|
870
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
871
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
872
|
-
case "NotFoundException":
|
|
873
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
874
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
875
|
-
case "TooManyRequestsException":
|
|
876
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
877
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
878
|
-
default:
|
|
879
|
-
const parsedBody = parsedOutput.body;
|
|
880
|
-
return throwDefaultError({
|
|
881
|
-
output,
|
|
882
|
-
parsedBody,
|
|
883
|
-
errorCode,
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
};
|
|
887
451
|
export const de_UngroupResourcesCommand = async (output, context) => {
|
|
888
452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
889
|
-
return
|
|
453
|
+
return de_CommandError(output, context);
|
|
890
454
|
}
|
|
891
455
|
const contents = map({
|
|
892
456
|
$metadata: deserializeMetadata(output),
|
|
@@ -900,43 +464,9 @@ export const de_UngroupResourcesCommand = async (output, context) => {
|
|
|
900
464
|
Object.assign(contents, doc);
|
|
901
465
|
return contents;
|
|
902
466
|
};
|
|
903
|
-
const de_UngroupResourcesCommandError = async (output, context) => {
|
|
904
|
-
const parsedOutput = {
|
|
905
|
-
...output,
|
|
906
|
-
body: await parseErrorBody(output.body, context),
|
|
907
|
-
};
|
|
908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
909
|
-
switch (errorCode) {
|
|
910
|
-
case "BadRequestException":
|
|
911
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
912
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ForbiddenException":
|
|
914
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
915
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
916
|
-
case "InternalServerErrorException":
|
|
917
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
918
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
919
|
-
case "MethodNotAllowedException":
|
|
920
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
921
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
922
|
-
case "NotFoundException":
|
|
923
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
924
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
925
|
-
case "TooManyRequestsException":
|
|
926
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
927
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
928
|
-
default:
|
|
929
|
-
const parsedBody = parsedOutput.body;
|
|
930
|
-
return throwDefaultError({
|
|
931
|
-
output,
|
|
932
|
-
parsedBody,
|
|
933
|
-
errorCode,
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
};
|
|
937
467
|
export const de_UntagCommand = async (output, context) => {
|
|
938
468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
939
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
940
470
|
}
|
|
941
471
|
const contents = map({
|
|
942
472
|
$metadata: deserializeMetadata(output),
|
|
@@ -949,43 +479,9 @@ export const de_UntagCommand = async (output, context) => {
|
|
|
949
479
|
Object.assign(contents, doc);
|
|
950
480
|
return contents;
|
|
951
481
|
};
|
|
952
|
-
const de_UntagCommandError = async (output, context) => {
|
|
953
|
-
const parsedOutput = {
|
|
954
|
-
...output,
|
|
955
|
-
body: await parseErrorBody(output.body, context),
|
|
956
|
-
};
|
|
957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
-
switch (errorCode) {
|
|
959
|
-
case "BadRequestException":
|
|
960
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
961
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ForbiddenException":
|
|
963
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
964
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
965
|
-
case "InternalServerErrorException":
|
|
966
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
967
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
968
|
-
case "MethodNotAllowedException":
|
|
969
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
970
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
971
|
-
case "NotFoundException":
|
|
972
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
973
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
974
|
-
case "TooManyRequestsException":
|
|
975
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
976
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
977
|
-
default:
|
|
978
|
-
const parsedBody = parsedOutput.body;
|
|
979
|
-
return throwDefaultError({
|
|
980
|
-
output,
|
|
981
|
-
parsedBody,
|
|
982
|
-
errorCode,
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
};
|
|
986
482
|
export const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
987
483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
-
return
|
|
484
|
+
return de_CommandError(output, context);
|
|
989
485
|
}
|
|
990
486
|
const contents = map({
|
|
991
487
|
$metadata: deserializeMetadata(output),
|
|
@@ -997,40 +493,9 @@ export const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
|
997
493
|
Object.assign(contents, doc);
|
|
998
494
|
return contents;
|
|
999
495
|
};
|
|
1000
|
-
const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
1001
|
-
const parsedOutput = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseErrorBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "BadRequestException":
|
|
1008
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1009
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ForbiddenException":
|
|
1011
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1012
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "InternalServerErrorException":
|
|
1014
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1015
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "MethodNotAllowedException":
|
|
1017
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1018
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "TooManyRequestsException":
|
|
1020
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1021
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1022
|
-
default:
|
|
1023
|
-
const parsedBody = parsedOutput.body;
|
|
1024
|
-
return throwDefaultError({
|
|
1025
|
-
output,
|
|
1026
|
-
parsedBody,
|
|
1027
|
-
errorCode,
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
496
|
export const de_UpdateGroupCommand = async (output, context) => {
|
|
1032
497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return
|
|
498
|
+
return de_CommandError(output, context);
|
|
1034
499
|
}
|
|
1035
500
|
const contents = map({
|
|
1036
501
|
$metadata: deserializeMetadata(output),
|
|
@@ -1042,43 +507,9 @@ export const de_UpdateGroupCommand = async (output, context) => {
|
|
|
1042
507
|
Object.assign(contents, doc);
|
|
1043
508
|
return contents;
|
|
1044
509
|
};
|
|
1045
|
-
const de_UpdateGroupCommandError = async (output, context) => {
|
|
1046
|
-
const parsedOutput = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseErrorBody(output.body, context),
|
|
1049
|
-
};
|
|
1050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
-
switch (errorCode) {
|
|
1052
|
-
case "BadRequestException":
|
|
1053
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1054
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ForbiddenException":
|
|
1056
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1057
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "InternalServerErrorException":
|
|
1059
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1060
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "MethodNotAllowedException":
|
|
1062
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1063
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "NotFoundException":
|
|
1065
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1066
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "TooManyRequestsException":
|
|
1068
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1069
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1070
|
-
default:
|
|
1071
|
-
const parsedBody = parsedOutput.body;
|
|
1072
|
-
return throwDefaultError({
|
|
1073
|
-
output,
|
|
1074
|
-
parsedBody,
|
|
1075
|
-
errorCode,
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
510
|
export const de_UpdateGroupQueryCommand = async (output, context) => {
|
|
1080
511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1081
|
-
return
|
|
512
|
+
return de_CommandError(output, context);
|
|
1082
513
|
}
|
|
1083
514
|
const contents = map({
|
|
1084
515
|
$metadata: deserializeMetadata(output),
|
|
@@ -1090,7 +521,7 @@ export const de_UpdateGroupQueryCommand = async (output, context) => {
|
|
|
1090
521
|
Object.assign(contents, doc);
|
|
1091
522
|
return contents;
|
|
1092
523
|
};
|
|
1093
|
-
const
|
|
524
|
+
const de_CommandError = async (output, context) => {
|
|
1094
525
|
const parsedOutput = {
|
|
1095
526
|
...output,
|
|
1096
527
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1109,12 +540,15 @@ const de_UpdateGroupQueryCommandError = async (output, context) => {
|
|
|
1109
540
|
case "MethodNotAllowedException":
|
|
1110
541
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1111
542
|
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "NotFoundException":
|
|
1113
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1114
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1115
543
|
case "TooManyRequestsException":
|
|
1116
544
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1117
545
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
546
|
+
case "NotFoundException":
|
|
547
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
548
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
549
|
+
case "UnauthorizedException":
|
|
550
|
+
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
551
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1118
552
|
default:
|
|
1119
553
|
const parsedBody = parsedOutput.body;
|
|
1120
554
|
return throwDefaultError({
|