@aws-sdk/client-service-catalog-appregistry 3.504.0 → 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 +43 -645
- package/dist-es/protocols/Aws_restJson1.js +32 -634
- package/package.json +3 -3
|
@@ -303,7 +303,7 @@ export const se_UpdateAttributeGroupCommand = async (input, context) => {
|
|
|
303
303
|
};
|
|
304
304
|
export const de_AssociateAttributeGroupCommand = async (output, context) => {
|
|
305
305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
306
|
-
return
|
|
306
|
+
return de_CommandError(output, context);
|
|
307
307
|
}
|
|
308
308
|
const contents = map({
|
|
309
309
|
$metadata: deserializeMetadata(output),
|
|
@@ -316,40 +316,9 @@ export const de_AssociateAttributeGroupCommand = async (output, context) => {
|
|
|
316
316
|
Object.assign(contents, doc);
|
|
317
317
|
return contents;
|
|
318
318
|
};
|
|
319
|
-
const de_AssociateAttributeGroupCommandError = async (output, context) => {
|
|
320
|
-
const parsedOutput = {
|
|
321
|
-
...output,
|
|
322
|
-
body: await parseErrorBody(output.body, context),
|
|
323
|
-
};
|
|
324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
325
|
-
switch (errorCode) {
|
|
326
|
-
case "ConflictException":
|
|
327
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
328
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
329
|
-
case "InternalServerException":
|
|
330
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
331
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
332
|
-
case "ResourceNotFoundException":
|
|
333
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
334
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
335
|
-
case "ServiceQuotaExceededException":
|
|
336
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
337
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
338
|
-
case "ValidationException":
|
|
339
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
340
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
341
|
-
default:
|
|
342
|
-
const parsedBody = parsedOutput.body;
|
|
343
|
-
return throwDefaultError({
|
|
344
|
-
output,
|
|
345
|
-
parsedBody,
|
|
346
|
-
errorCode,
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
319
|
export const de_AssociateResourceCommand = async (output, context) => {
|
|
351
320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
352
|
-
return
|
|
321
|
+
return de_CommandError(output, context);
|
|
353
322
|
}
|
|
354
323
|
const contents = map({
|
|
355
324
|
$metadata: deserializeMetadata(output),
|
|
@@ -363,43 +332,9 @@ export const de_AssociateResourceCommand = async (output, context) => {
|
|
|
363
332
|
Object.assign(contents, doc);
|
|
364
333
|
return contents;
|
|
365
334
|
};
|
|
366
|
-
const de_AssociateResourceCommandError = async (output, context) => {
|
|
367
|
-
const parsedOutput = {
|
|
368
|
-
...output,
|
|
369
|
-
body: await parseErrorBody(output.body, context),
|
|
370
|
-
};
|
|
371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
|
-
switch (errorCode) {
|
|
373
|
-
case "ConflictException":
|
|
374
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
375
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
376
|
-
case "InternalServerException":
|
|
377
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
378
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
379
|
-
case "ResourceNotFoundException":
|
|
380
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
381
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
382
|
-
case "ServiceQuotaExceededException":
|
|
383
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
384
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
385
|
-
case "ThrottlingException":
|
|
386
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
388
|
-
case "ValidationException":
|
|
389
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
391
|
-
default:
|
|
392
|
-
const parsedBody = parsedOutput.body;
|
|
393
|
-
return throwDefaultError({
|
|
394
|
-
output,
|
|
395
|
-
parsedBody,
|
|
396
|
-
errorCode,
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
335
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
401
336
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
402
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
403
338
|
}
|
|
404
339
|
const contents = map({
|
|
405
340
|
$metadata: deserializeMetadata(output),
|
|
@@ -411,40 +346,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
411
346
|
Object.assign(contents, doc);
|
|
412
347
|
return contents;
|
|
413
348
|
};
|
|
414
|
-
const de_CreateApplicationCommandError = 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 "ConflictException":
|
|
422
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
423
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
424
|
-
case "InternalServerException":
|
|
425
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
426
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ServiceQuotaExceededException":
|
|
428
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
429
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
430
|
-
case "ThrottlingException":
|
|
431
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
432
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ValidationException":
|
|
434
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
436
|
-
default:
|
|
437
|
-
const parsedBody = parsedOutput.body;
|
|
438
|
-
return throwDefaultError({
|
|
439
|
-
output,
|
|
440
|
-
parsedBody,
|
|
441
|
-
errorCode,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
349
|
export const de_CreateAttributeGroupCommand = async (output, context) => {
|
|
446
350
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
447
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
448
352
|
}
|
|
449
353
|
const contents = map({
|
|
450
354
|
$metadata: deserializeMetadata(output),
|
|
@@ -456,37 +360,9 @@ export const de_CreateAttributeGroupCommand = async (output, context) => {
|
|
|
456
360
|
Object.assign(contents, doc);
|
|
457
361
|
return contents;
|
|
458
362
|
};
|
|
459
|
-
const de_CreateAttributeGroupCommandError = async (output, context) => {
|
|
460
|
-
const parsedOutput = {
|
|
461
|
-
...output,
|
|
462
|
-
body: await parseErrorBody(output.body, context),
|
|
463
|
-
};
|
|
464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
|
-
switch (errorCode) {
|
|
466
|
-
case "ConflictException":
|
|
467
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
468
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
469
|
-
case "InternalServerException":
|
|
470
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
471
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ServiceQuotaExceededException":
|
|
473
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
474
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ValidationException":
|
|
476
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
477
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
478
|
-
default:
|
|
479
|
-
const parsedBody = parsedOutput.body;
|
|
480
|
-
return throwDefaultError({
|
|
481
|
-
output,
|
|
482
|
-
parsedBody,
|
|
483
|
-
errorCode,
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
363
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
488
364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
489
|
-
return
|
|
365
|
+
return de_CommandError(output, context);
|
|
490
366
|
}
|
|
491
367
|
const contents = map({
|
|
492
368
|
$metadata: deserializeMetadata(output),
|
|
@@ -498,34 +374,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
498
374
|
Object.assign(contents, doc);
|
|
499
375
|
return contents;
|
|
500
376
|
};
|
|
501
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
502
|
-
const parsedOutput = {
|
|
503
|
-
...output,
|
|
504
|
-
body: await parseErrorBody(output.body, context),
|
|
505
|
-
};
|
|
506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
-
switch (errorCode) {
|
|
508
|
-
case "InternalServerException":
|
|
509
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
510
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
511
|
-
case "ResourceNotFoundException":
|
|
512
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
514
|
-
case "ValidationException":
|
|
515
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
516
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
517
|
-
default:
|
|
518
|
-
const parsedBody = parsedOutput.body;
|
|
519
|
-
return throwDefaultError({
|
|
520
|
-
output,
|
|
521
|
-
parsedBody,
|
|
522
|
-
errorCode,
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
377
|
export const de_DeleteAttributeGroupCommand = async (output, context) => {
|
|
527
378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
|
-
return
|
|
379
|
+
return de_CommandError(output, context);
|
|
529
380
|
}
|
|
530
381
|
const contents = map({
|
|
531
382
|
$metadata: deserializeMetadata(output),
|
|
@@ -537,34 +388,9 @@ export const de_DeleteAttributeGroupCommand = async (output, context) => {
|
|
|
537
388
|
Object.assign(contents, doc);
|
|
538
389
|
return contents;
|
|
539
390
|
};
|
|
540
|
-
const de_DeleteAttributeGroupCommandError = async (output, context) => {
|
|
541
|
-
const parsedOutput = {
|
|
542
|
-
...output,
|
|
543
|
-
body: await parseErrorBody(output.body, context),
|
|
544
|
-
};
|
|
545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
546
|
-
switch (errorCode) {
|
|
547
|
-
case "InternalServerException":
|
|
548
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
549
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ResourceNotFoundException":
|
|
551
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
553
|
-
case "ValidationException":
|
|
554
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
556
|
-
default:
|
|
557
|
-
const parsedBody = parsedOutput.body;
|
|
558
|
-
return throwDefaultError({
|
|
559
|
-
output,
|
|
560
|
-
parsedBody,
|
|
561
|
-
errorCode,
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
391
|
export const de_DisassociateAttributeGroupCommand = async (output, context) => {
|
|
566
392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
-
return
|
|
393
|
+
return de_CommandError(output, context);
|
|
568
394
|
}
|
|
569
395
|
const contents = map({
|
|
570
396
|
$metadata: deserializeMetadata(output),
|
|
@@ -577,34 +403,9 @@ export const de_DisassociateAttributeGroupCommand = async (output, context) => {
|
|
|
577
403
|
Object.assign(contents, doc);
|
|
578
404
|
return contents;
|
|
579
405
|
};
|
|
580
|
-
const de_DisassociateAttributeGroupCommandError = async (output, context) => {
|
|
581
|
-
const parsedOutput = {
|
|
582
|
-
...output,
|
|
583
|
-
body: await parseErrorBody(output.body, context),
|
|
584
|
-
};
|
|
585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
-
switch (errorCode) {
|
|
587
|
-
case "InternalServerException":
|
|
588
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
589
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ResourceNotFoundException":
|
|
591
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
592
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ValidationException":
|
|
594
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
595
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
596
|
-
default:
|
|
597
|
-
const parsedBody = parsedOutput.body;
|
|
598
|
-
return throwDefaultError({
|
|
599
|
-
output,
|
|
600
|
-
parsedBody,
|
|
601
|
-
errorCode,
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
406
|
export const de_DisassociateResourceCommand = async (output, context) => {
|
|
606
407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
608
409
|
}
|
|
609
410
|
const contents = map({
|
|
610
411
|
$metadata: deserializeMetadata(output),
|
|
@@ -617,37 +418,9 @@ export const de_DisassociateResourceCommand = async (output, context) => {
|
|
|
617
418
|
Object.assign(contents, doc);
|
|
618
419
|
return contents;
|
|
619
420
|
};
|
|
620
|
-
const de_DisassociateResourceCommandError = async (output, context) => {
|
|
621
|
-
const parsedOutput = {
|
|
622
|
-
...output,
|
|
623
|
-
body: await parseErrorBody(output.body, context),
|
|
624
|
-
};
|
|
625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
|
-
switch (errorCode) {
|
|
627
|
-
case "InternalServerException":
|
|
628
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
629
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ResourceNotFoundException":
|
|
631
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
632
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
633
|
-
case "ThrottlingException":
|
|
634
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
635
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
636
|
-
case "ValidationException":
|
|
637
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
638
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
639
|
-
default:
|
|
640
|
-
const parsedBody = parsedOutput.body;
|
|
641
|
-
return throwDefaultError({
|
|
642
|
-
output,
|
|
643
|
-
parsedBody,
|
|
644
|
-
errorCode,
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
421
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
649
422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
|
-
return
|
|
423
|
+
return de_CommandError(output, context);
|
|
651
424
|
}
|
|
652
425
|
const contents = map({
|
|
653
426
|
$metadata: deserializeMetadata(output),
|
|
@@ -668,37 +441,9 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
668
441
|
Object.assign(contents, doc);
|
|
669
442
|
return contents;
|
|
670
443
|
};
|
|
671
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context),
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "ConflictException":
|
|
679
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
680
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
681
|
-
case "InternalServerException":
|
|
682
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
683
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ResourceNotFoundException":
|
|
685
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ValidationException":
|
|
688
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
|
-
default:
|
|
691
|
-
const parsedBody = parsedOutput.body;
|
|
692
|
-
return throwDefaultError({
|
|
693
|
-
output,
|
|
694
|
-
parsedBody,
|
|
695
|
-
errorCode,
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
444
|
export const de_GetAssociatedResourceCommand = async (output, context) => {
|
|
700
445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
|
-
return
|
|
446
|
+
return de_CommandError(output, context);
|
|
702
447
|
}
|
|
703
448
|
const contents = map({
|
|
704
449
|
$metadata: deserializeMetadata(output),
|
|
@@ -712,34 +457,9 @@ export const de_GetAssociatedResourceCommand = async (output, context) => {
|
|
|
712
457
|
Object.assign(contents, doc);
|
|
713
458
|
return contents;
|
|
714
459
|
};
|
|
715
|
-
const de_GetAssociatedResourceCommandError = async (output, context) => {
|
|
716
|
-
const parsedOutput = {
|
|
717
|
-
...output,
|
|
718
|
-
body: await parseErrorBody(output.body, context),
|
|
719
|
-
};
|
|
720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
-
switch (errorCode) {
|
|
722
|
-
case "InternalServerException":
|
|
723
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
724
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ResourceNotFoundException":
|
|
726
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
727
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ValidationException":
|
|
729
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
return throwDefaultError({
|
|
734
|
-
output,
|
|
735
|
-
parsedBody,
|
|
736
|
-
errorCode,
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
460
|
export const de_GetAttributeGroupCommand = async (output, context) => {
|
|
741
461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
742
|
-
return
|
|
462
|
+
return de_CommandError(output, context);
|
|
743
463
|
}
|
|
744
464
|
const contents = map({
|
|
745
465
|
$metadata: deserializeMetadata(output),
|
|
@@ -759,37 +479,9 @@ export const de_GetAttributeGroupCommand = async (output, context) => {
|
|
|
759
479
|
Object.assign(contents, doc);
|
|
760
480
|
return contents;
|
|
761
481
|
};
|
|
762
|
-
const de_GetAttributeGroupCommandError = async (output, context) => {
|
|
763
|
-
const parsedOutput = {
|
|
764
|
-
...output,
|
|
765
|
-
body: await parseErrorBody(output.body, context),
|
|
766
|
-
};
|
|
767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
-
switch (errorCode) {
|
|
769
|
-
case "ConflictException":
|
|
770
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
771
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
772
|
-
case "InternalServerException":
|
|
773
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
774
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ResourceNotFoundException":
|
|
776
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
777
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ValidationException":
|
|
779
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
780
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
482
|
export const de_GetConfigurationCommand = async (output, context) => {
|
|
791
483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return
|
|
484
|
+
return de_CommandError(output, context);
|
|
793
485
|
}
|
|
794
486
|
const contents = map({
|
|
795
487
|
$metadata: deserializeMetadata(output),
|
|
@@ -801,28 +493,9 @@ export const de_GetConfigurationCommand = async (output, context) => {
|
|
|
801
493
|
Object.assign(contents, doc);
|
|
802
494
|
return contents;
|
|
803
495
|
};
|
|
804
|
-
const de_GetConfigurationCommandError = 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 "InternalServerException":
|
|
812
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
814
|
-
default:
|
|
815
|
-
const parsedBody = parsedOutput.body;
|
|
816
|
-
return throwDefaultError({
|
|
817
|
-
output,
|
|
818
|
-
parsedBody,
|
|
819
|
-
errorCode,
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
};
|
|
823
496
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
824
497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
825
|
-
return
|
|
498
|
+
return de_CommandError(output, context);
|
|
826
499
|
}
|
|
827
500
|
const contents = map({
|
|
828
501
|
$metadata: deserializeMetadata(output),
|
|
@@ -833,33 +506,11 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
833
506
|
nextToken: __expectString,
|
|
834
507
|
});
|
|
835
508
|
Object.assign(contents, doc);
|
|
836
|
-
return contents;
|
|
837
|
-
};
|
|
838
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
839
|
-
const parsedOutput = {
|
|
840
|
-
...output,
|
|
841
|
-
body: await parseErrorBody(output.body, context),
|
|
842
|
-
};
|
|
843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
-
switch (errorCode) {
|
|
845
|
-
case "InternalServerException":
|
|
846
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
848
|
-
case "ValidationException":
|
|
849
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
850
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
851
|
-
default:
|
|
852
|
-
const parsedBody = parsedOutput.body;
|
|
853
|
-
return throwDefaultError({
|
|
854
|
-
output,
|
|
855
|
-
parsedBody,
|
|
856
|
-
errorCode,
|
|
857
|
-
});
|
|
858
|
-
}
|
|
509
|
+
return contents;
|
|
859
510
|
};
|
|
860
511
|
export const de_ListAssociatedAttributeGroupsCommand = async (output, context) => {
|
|
861
512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
862
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
863
514
|
}
|
|
864
515
|
const contents = map({
|
|
865
516
|
$metadata: deserializeMetadata(output),
|
|
@@ -872,34 +523,9 @@ export const de_ListAssociatedAttributeGroupsCommand = async (output, context) =
|
|
|
872
523
|
Object.assign(contents, doc);
|
|
873
524
|
return contents;
|
|
874
525
|
};
|
|
875
|
-
const de_ListAssociatedAttributeGroupsCommandError = async (output, context) => {
|
|
876
|
-
const parsedOutput = {
|
|
877
|
-
...output,
|
|
878
|
-
body: await parseErrorBody(output.body, context),
|
|
879
|
-
};
|
|
880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
|
-
switch (errorCode) {
|
|
882
|
-
case "InternalServerException":
|
|
883
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
884
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ResourceNotFoundException":
|
|
886
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
887
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ValidationException":
|
|
889
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
890
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode,
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
526
|
export const de_ListAssociatedResourcesCommand = async (output, context) => {
|
|
901
527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
903
529
|
}
|
|
904
530
|
const contents = map({
|
|
905
531
|
$metadata: deserializeMetadata(output),
|
|
@@ -912,34 +538,9 @@ export const de_ListAssociatedResourcesCommand = async (output, context) => {
|
|
|
912
538
|
Object.assign(contents, doc);
|
|
913
539
|
return contents;
|
|
914
540
|
};
|
|
915
|
-
const de_ListAssociatedResourcesCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "InternalServerException":
|
|
923
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
924
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ResourceNotFoundException":
|
|
926
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
927
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ValidationException":
|
|
929
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
930
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode,
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
541
|
export const de_ListAttributeGroupsCommand = async (output, context) => {
|
|
941
542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
543
|
+
return de_CommandError(output, context);
|
|
943
544
|
}
|
|
944
545
|
const contents = map({
|
|
945
546
|
$metadata: deserializeMetadata(output),
|
|
@@ -952,31 +553,9 @@ export const de_ListAttributeGroupsCommand = async (output, context) => {
|
|
|
952
553
|
Object.assign(contents, doc);
|
|
953
554
|
return contents;
|
|
954
555
|
};
|
|
955
|
-
const de_ListAttributeGroupsCommandError = async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context),
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "InternalServerException":
|
|
963
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ValidationException":
|
|
966
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
967
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
968
|
-
default:
|
|
969
|
-
const parsedBody = parsedOutput.body;
|
|
970
|
-
return throwDefaultError({
|
|
971
|
-
output,
|
|
972
|
-
parsedBody,
|
|
973
|
-
errorCode,
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
};
|
|
977
556
|
export const de_ListAttributeGroupsForApplicationCommand = async (output, context) => {
|
|
978
557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
979
|
-
return
|
|
558
|
+
return de_CommandError(output, context);
|
|
980
559
|
}
|
|
981
560
|
const contents = map({
|
|
982
561
|
$metadata: deserializeMetadata(output),
|
|
@@ -989,34 +568,9 @@ export const de_ListAttributeGroupsForApplicationCommand = async (output, contex
|
|
|
989
568
|
Object.assign(contents, doc);
|
|
990
569
|
return contents;
|
|
991
570
|
};
|
|
992
|
-
const de_ListAttributeGroupsForApplicationCommandError = async (output, context) => {
|
|
993
|
-
const parsedOutput = {
|
|
994
|
-
...output,
|
|
995
|
-
body: await parseErrorBody(output.body, context),
|
|
996
|
-
};
|
|
997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
-
switch (errorCode) {
|
|
999
|
-
case "InternalServerException":
|
|
1000
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ValidationException":
|
|
1006
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1007
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
return throwDefaultError({
|
|
1011
|
-
output,
|
|
1012
|
-
parsedBody,
|
|
1013
|
-
errorCode,
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
};
|
|
1017
571
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1018
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
1020
574
|
}
|
|
1021
575
|
const contents = map({
|
|
1022
576
|
$metadata: deserializeMetadata(output),
|
|
@@ -1028,34 +582,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1028
582
|
Object.assign(contents, doc);
|
|
1029
583
|
return contents;
|
|
1030
584
|
};
|
|
1031
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1032
|
-
const parsedOutput = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseErrorBody(output.body, context),
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "InternalServerException":
|
|
1039
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1040
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ResourceNotFoundException":
|
|
1042
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1043
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ValidationException":
|
|
1045
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1046
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1047
|
-
default:
|
|
1048
|
-
const parsedBody = parsedOutput.body;
|
|
1049
|
-
return throwDefaultError({
|
|
1050
|
-
output,
|
|
1051
|
-
parsedBody,
|
|
1052
|
-
errorCode,
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
};
|
|
1056
585
|
export const de_PutConfigurationCommand = async (output, context) => {
|
|
1057
586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1058
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
1059
588
|
}
|
|
1060
589
|
const contents = map({
|
|
1061
590
|
$metadata: deserializeMetadata(output),
|
|
@@ -1063,34 +592,9 @@ export const de_PutConfigurationCommand = async (output, context) => {
|
|
|
1063
592
|
await collectBody(output.body, context);
|
|
1064
593
|
return contents;
|
|
1065
594
|
};
|
|
1066
|
-
const de_PutConfigurationCommandError = async (output, context) => {
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context),
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "ConflictException":
|
|
1074
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1075
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "InternalServerException":
|
|
1077
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1078
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ValidationException":
|
|
1080
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1081
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode,
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
595
|
export const de_SyncResourceCommand = async (output, context) => {
|
|
1092
596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1093
|
-
return
|
|
597
|
+
return de_CommandError(output, context);
|
|
1094
598
|
}
|
|
1095
599
|
const contents = map({
|
|
1096
600
|
$metadata: deserializeMetadata(output),
|
|
@@ -1104,40 +608,9 @@ export const de_SyncResourceCommand = async (output, context) => {
|
|
|
1104
608
|
Object.assign(contents, doc);
|
|
1105
609
|
return contents;
|
|
1106
610
|
};
|
|
1107
|
-
const de_SyncResourceCommandError = async (output, context) => {
|
|
1108
|
-
const parsedOutput = {
|
|
1109
|
-
...output,
|
|
1110
|
-
body: await parseErrorBody(output.body, context),
|
|
1111
|
-
};
|
|
1112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
-
switch (errorCode) {
|
|
1114
|
-
case "ConflictException":
|
|
1115
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1116
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "InternalServerException":
|
|
1118
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ResourceNotFoundException":
|
|
1121
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1122
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ThrottlingException":
|
|
1124
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1125
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ValidationException":
|
|
1127
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1128
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1129
|
-
default:
|
|
1130
|
-
const parsedBody = parsedOutput.body;
|
|
1131
|
-
return throwDefaultError({
|
|
1132
|
-
output,
|
|
1133
|
-
parsedBody,
|
|
1134
|
-
errorCode,
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
611
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1139
612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
1141
614
|
}
|
|
1142
615
|
const contents = map({
|
|
1143
616
|
$metadata: deserializeMetadata(output),
|
|
@@ -1145,34 +618,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1145
618
|
await collectBody(output.body, context);
|
|
1146
619
|
return contents;
|
|
1147
620
|
};
|
|
1148
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1149
|
-
const parsedOutput = {
|
|
1150
|
-
...output,
|
|
1151
|
-
body: await parseErrorBody(output.body, context),
|
|
1152
|
-
};
|
|
1153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
|
-
switch (errorCode) {
|
|
1155
|
-
case "InternalServerException":
|
|
1156
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1157
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ResourceNotFoundException":
|
|
1159
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1160
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ValidationException":
|
|
1162
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1164
|
-
default:
|
|
1165
|
-
const parsedBody = parsedOutput.body;
|
|
1166
|
-
return throwDefaultError({
|
|
1167
|
-
output,
|
|
1168
|
-
parsedBody,
|
|
1169
|
-
errorCode,
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
621
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1174
622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
-
return
|
|
623
|
+
return de_CommandError(output, context);
|
|
1176
624
|
}
|
|
1177
625
|
const contents = map({
|
|
1178
626
|
$metadata: deserializeMetadata(output),
|
|
@@ -1180,34 +628,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1180
628
|
await collectBody(output.body, context);
|
|
1181
629
|
return contents;
|
|
1182
630
|
};
|
|
1183
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1184
|
-
const parsedOutput = {
|
|
1185
|
-
...output,
|
|
1186
|
-
body: await parseErrorBody(output.body, context),
|
|
1187
|
-
};
|
|
1188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
|
-
switch (errorCode) {
|
|
1190
|
-
case "InternalServerException":
|
|
1191
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1192
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ResourceNotFoundException":
|
|
1194
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ValidationException":
|
|
1197
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1198
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1199
|
-
default:
|
|
1200
|
-
const parsedBody = parsedOutput.body;
|
|
1201
|
-
return throwDefaultError({
|
|
1202
|
-
output,
|
|
1203
|
-
parsedBody,
|
|
1204
|
-
errorCode,
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
631
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1209
632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1210
|
-
return
|
|
633
|
+
return de_CommandError(output, context);
|
|
1211
634
|
}
|
|
1212
635
|
const contents = map({
|
|
1213
636
|
$metadata: deserializeMetadata(output),
|
|
@@ -1219,40 +642,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1219
642
|
Object.assign(contents, doc);
|
|
1220
643
|
return contents;
|
|
1221
644
|
};
|
|
1222
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1223
|
-
const parsedOutput = {
|
|
1224
|
-
...output,
|
|
1225
|
-
body: await parseErrorBody(output.body, context),
|
|
1226
|
-
};
|
|
1227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
-
switch (errorCode) {
|
|
1229
|
-
case "ConflictException":
|
|
1230
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1231
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "InternalServerException":
|
|
1233
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1234
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ResourceNotFoundException":
|
|
1236
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1237
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ThrottlingException":
|
|
1239
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1240
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "ValidationException":
|
|
1242
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1243
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1244
|
-
default:
|
|
1245
|
-
const parsedBody = parsedOutput.body;
|
|
1246
|
-
return throwDefaultError({
|
|
1247
|
-
output,
|
|
1248
|
-
parsedBody,
|
|
1249
|
-
errorCode,
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
645
|
export const de_UpdateAttributeGroupCommand = async (output, context) => {
|
|
1254
646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1255
|
-
return
|
|
647
|
+
return de_CommandError(output, context);
|
|
1256
648
|
}
|
|
1257
649
|
const contents = map({
|
|
1258
650
|
$metadata: deserializeMetadata(output),
|
|
@@ -1264,7 +656,7 @@ export const de_UpdateAttributeGroupCommand = async (output, context) => {
|
|
|
1264
656
|
Object.assign(contents, doc);
|
|
1265
657
|
return contents;
|
|
1266
658
|
};
|
|
1267
|
-
const
|
|
659
|
+
const de_CommandError = async (output, context) => {
|
|
1268
660
|
const parsedOutput = {
|
|
1269
661
|
...output,
|
|
1270
662
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1280,9 +672,15 @@ const de_UpdateAttributeGroupCommandError = async (output, context) => {
|
|
|
1280
672
|
case "ResourceNotFoundException":
|
|
1281
673
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1282
674
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
675
|
+
case "ServiceQuotaExceededException":
|
|
676
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
677
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1283
678
|
case "ValidationException":
|
|
1284
679
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1285
680
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
|
+
case "ThrottlingException":
|
|
682
|
+
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
683
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1286
684
|
default:
|
|
1287
685
|
const parsedBody = parsedOutput.body;
|
|
1288
686
|
return throwDefaultError({
|