@aws-sdk/client-pi 3.504.0 → 3.509.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 +15 -315
- package/dist-es/protocols/Aws_json1_1.js +14 -314
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -378,7 +378,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
378
378
|
}, "se_UntagResourceCommand");
|
|
379
379
|
var de_CreatePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
380
380
|
if (output.statusCode >= 300) {
|
|
381
|
-
return
|
|
381
|
+
return de_CommandError(output, context);
|
|
382
382
|
}
|
|
383
383
|
const data = await parseBody(output.body, context);
|
|
384
384
|
let contents = {};
|
|
@@ -389,34 +389,9 @@ var de_CreatePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (ou
|
|
|
389
389
|
};
|
|
390
390
|
return response;
|
|
391
391
|
}, "de_CreatePerformanceAnalysisReportCommand");
|
|
392
|
-
var de_CreatePerformanceAnalysisReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
393
|
-
const parsedOutput = {
|
|
394
|
-
...output,
|
|
395
|
-
body: await parseErrorBody(output.body, context)
|
|
396
|
-
};
|
|
397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
|
-
switch (errorCode) {
|
|
399
|
-
case "InternalServiceError":
|
|
400
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
401
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
402
|
-
case "InvalidArgumentException":
|
|
403
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
404
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
405
|
-
case "NotAuthorizedException":
|
|
406
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
407
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
408
|
-
default:
|
|
409
|
-
const parsedBody = parsedOutput.body;
|
|
410
|
-
return throwDefaultError({
|
|
411
|
-
output,
|
|
412
|
-
parsedBody,
|
|
413
|
-
errorCode
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
}, "de_CreatePerformanceAnalysisReportCommandError");
|
|
417
392
|
var de_DeletePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
418
393
|
if (output.statusCode >= 300) {
|
|
419
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
420
395
|
}
|
|
421
396
|
const data = await parseBody(output.body, context);
|
|
422
397
|
let contents = {};
|
|
@@ -427,34 +402,9 @@ var de_DeletePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (ou
|
|
|
427
402
|
};
|
|
428
403
|
return response;
|
|
429
404
|
}, "de_DeletePerformanceAnalysisReportCommand");
|
|
430
|
-
var de_DeletePerformanceAnalysisReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
431
|
-
const parsedOutput = {
|
|
432
|
-
...output,
|
|
433
|
-
body: await parseErrorBody(output.body, context)
|
|
434
|
-
};
|
|
435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
436
|
-
switch (errorCode) {
|
|
437
|
-
case "InternalServiceError":
|
|
438
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
439
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
440
|
-
case "InvalidArgumentException":
|
|
441
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
442
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
443
|
-
case "NotAuthorizedException":
|
|
444
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
445
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
446
|
-
default:
|
|
447
|
-
const parsedBody = parsedOutput.body;
|
|
448
|
-
return throwDefaultError({
|
|
449
|
-
output,
|
|
450
|
-
parsedBody,
|
|
451
|
-
errorCode
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
}, "de_DeletePerformanceAnalysisReportCommandError");
|
|
455
405
|
var de_DescribeDimensionKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
456
406
|
if (output.statusCode >= 300) {
|
|
457
|
-
return
|
|
407
|
+
return de_CommandError(output, context);
|
|
458
408
|
}
|
|
459
409
|
const data = await parseBody(output.body, context);
|
|
460
410
|
let contents = {};
|
|
@@ -465,34 +415,9 @@ var de_DescribeDimensionKeysCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
465
415
|
};
|
|
466
416
|
return response;
|
|
467
417
|
}, "de_DescribeDimensionKeysCommand");
|
|
468
|
-
var de_DescribeDimensionKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
469
|
-
const parsedOutput = {
|
|
470
|
-
...output,
|
|
471
|
-
body: await parseErrorBody(output.body, context)
|
|
472
|
-
};
|
|
473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
-
switch (errorCode) {
|
|
475
|
-
case "InternalServiceError":
|
|
476
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
477
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
478
|
-
case "InvalidArgumentException":
|
|
479
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
480
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
481
|
-
case "NotAuthorizedException":
|
|
482
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
483
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
484
|
-
default:
|
|
485
|
-
const parsedBody = parsedOutput.body;
|
|
486
|
-
return throwDefaultError({
|
|
487
|
-
output,
|
|
488
|
-
parsedBody,
|
|
489
|
-
errorCode
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
}, "de_DescribeDimensionKeysCommandError");
|
|
493
418
|
var de_GetDimensionKeyDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
494
419
|
if (output.statusCode >= 300) {
|
|
495
|
-
return
|
|
420
|
+
return de_CommandError(output, context);
|
|
496
421
|
}
|
|
497
422
|
const data = await parseBody(output.body, context);
|
|
498
423
|
let contents = {};
|
|
@@ -503,34 +428,9 @@ var de_GetDimensionKeyDetailsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
503
428
|
};
|
|
504
429
|
return response;
|
|
505
430
|
}, "de_GetDimensionKeyDetailsCommand");
|
|
506
|
-
var de_GetDimensionKeyDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
507
|
-
const parsedOutput = {
|
|
508
|
-
...output,
|
|
509
|
-
body: await parseErrorBody(output.body, context)
|
|
510
|
-
};
|
|
511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
|
-
switch (errorCode) {
|
|
513
|
-
case "InternalServiceError":
|
|
514
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
515
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
516
|
-
case "InvalidArgumentException":
|
|
517
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
518
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
519
|
-
case "NotAuthorizedException":
|
|
520
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
521
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
522
|
-
default:
|
|
523
|
-
const parsedBody = parsedOutput.body;
|
|
524
|
-
return throwDefaultError({
|
|
525
|
-
output,
|
|
526
|
-
parsedBody,
|
|
527
|
-
errorCode
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
}, "de_GetDimensionKeyDetailsCommandError");
|
|
531
431
|
var de_GetPerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
532
432
|
if (output.statusCode >= 300) {
|
|
533
|
-
return
|
|
433
|
+
return de_CommandError(output, context);
|
|
534
434
|
}
|
|
535
435
|
const data = await parseBody(output.body, context);
|
|
536
436
|
let contents = {};
|
|
@@ -541,34 +441,9 @@ var de_GetPerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
541
441
|
};
|
|
542
442
|
return response;
|
|
543
443
|
}, "de_GetPerformanceAnalysisReportCommand");
|
|
544
|
-
var de_GetPerformanceAnalysisReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
545
|
-
const parsedOutput = {
|
|
546
|
-
...output,
|
|
547
|
-
body: await parseErrorBody(output.body, context)
|
|
548
|
-
};
|
|
549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
|
-
switch (errorCode) {
|
|
551
|
-
case "InternalServiceError":
|
|
552
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
553
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
554
|
-
case "InvalidArgumentException":
|
|
555
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
556
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
557
|
-
case "NotAuthorizedException":
|
|
558
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
559
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
560
|
-
default:
|
|
561
|
-
const parsedBody = parsedOutput.body;
|
|
562
|
-
return throwDefaultError({
|
|
563
|
-
output,
|
|
564
|
-
parsedBody,
|
|
565
|
-
errorCode
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
}, "de_GetPerformanceAnalysisReportCommandError");
|
|
569
444
|
var de_GetResourceMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
570
445
|
if (output.statusCode >= 300) {
|
|
571
|
-
return
|
|
446
|
+
return de_CommandError(output, context);
|
|
572
447
|
}
|
|
573
448
|
const data = await parseBody(output.body, context);
|
|
574
449
|
let contents = {};
|
|
@@ -579,34 +454,9 @@ var de_GetResourceMetadataCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
579
454
|
};
|
|
580
455
|
return response;
|
|
581
456
|
}, "de_GetResourceMetadataCommand");
|
|
582
|
-
var de_GetResourceMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
583
|
-
const parsedOutput = {
|
|
584
|
-
...output,
|
|
585
|
-
body: await parseErrorBody(output.body, context)
|
|
586
|
-
};
|
|
587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
-
switch (errorCode) {
|
|
589
|
-
case "InternalServiceError":
|
|
590
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
591
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
592
|
-
case "InvalidArgumentException":
|
|
593
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
594
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
595
|
-
case "NotAuthorizedException":
|
|
596
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
597
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
598
|
-
default:
|
|
599
|
-
const parsedBody = parsedOutput.body;
|
|
600
|
-
return throwDefaultError({
|
|
601
|
-
output,
|
|
602
|
-
parsedBody,
|
|
603
|
-
errorCode
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
}, "de_GetResourceMetadataCommandError");
|
|
607
457
|
var de_GetResourceMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
608
458
|
if (output.statusCode >= 300) {
|
|
609
|
-
return
|
|
459
|
+
return de_CommandError(output, context);
|
|
610
460
|
}
|
|
611
461
|
const data = await parseBody(output.body, context);
|
|
612
462
|
let contents = {};
|
|
@@ -617,34 +467,9 @@ var de_GetResourceMetricsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
617
467
|
};
|
|
618
468
|
return response;
|
|
619
469
|
}, "de_GetResourceMetricsCommand");
|
|
620
|
-
var de_GetResourceMetricsCommandError = /* @__PURE__ */ __name(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 "InternalServiceError":
|
|
628
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
629
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
630
|
-
case "InvalidArgumentException":
|
|
631
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
632
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
633
|
-
case "NotAuthorizedException":
|
|
634
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
635
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
636
|
-
default:
|
|
637
|
-
const parsedBody = parsedOutput.body;
|
|
638
|
-
return throwDefaultError({
|
|
639
|
-
output,
|
|
640
|
-
parsedBody,
|
|
641
|
-
errorCode
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
}, "de_GetResourceMetricsCommandError");
|
|
645
470
|
var de_ListAvailableResourceDimensionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
471
|
if (output.statusCode >= 300) {
|
|
647
|
-
return
|
|
472
|
+
return de_CommandError(output, context);
|
|
648
473
|
}
|
|
649
474
|
const data = await parseBody(output.body, context);
|
|
650
475
|
let contents = {};
|
|
@@ -655,34 +480,9 @@ var de_ListAvailableResourceDimensionsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
655
480
|
};
|
|
656
481
|
return response;
|
|
657
482
|
}, "de_ListAvailableResourceDimensionsCommand");
|
|
658
|
-
var de_ListAvailableResourceDimensionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
659
|
-
const parsedOutput = {
|
|
660
|
-
...output,
|
|
661
|
-
body: await parseErrorBody(output.body, context)
|
|
662
|
-
};
|
|
663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
-
switch (errorCode) {
|
|
665
|
-
case "InternalServiceError":
|
|
666
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
667
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
668
|
-
case "InvalidArgumentException":
|
|
669
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
670
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
671
|
-
case "NotAuthorizedException":
|
|
672
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
673
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
674
|
-
default:
|
|
675
|
-
const parsedBody = parsedOutput.body;
|
|
676
|
-
return throwDefaultError({
|
|
677
|
-
output,
|
|
678
|
-
parsedBody,
|
|
679
|
-
errorCode
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
}, "de_ListAvailableResourceDimensionsCommandError");
|
|
683
483
|
var de_ListAvailableResourceMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
684
484
|
if (output.statusCode >= 300) {
|
|
685
|
-
return
|
|
485
|
+
return de_CommandError(output, context);
|
|
686
486
|
}
|
|
687
487
|
const data = await parseBody(output.body, context);
|
|
688
488
|
let contents = {};
|
|
@@ -693,34 +493,9 @@ var de_ListAvailableResourceMetricsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
693
493
|
};
|
|
694
494
|
return response;
|
|
695
495
|
}, "de_ListAvailableResourceMetricsCommand");
|
|
696
|
-
var de_ListAvailableResourceMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
697
|
-
const parsedOutput = {
|
|
698
|
-
...output,
|
|
699
|
-
body: await parseErrorBody(output.body, context)
|
|
700
|
-
};
|
|
701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
-
switch (errorCode) {
|
|
703
|
-
case "InternalServiceError":
|
|
704
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
705
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
706
|
-
case "InvalidArgumentException":
|
|
707
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
708
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
709
|
-
case "NotAuthorizedException":
|
|
710
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
711
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
712
|
-
default:
|
|
713
|
-
const parsedBody = parsedOutput.body;
|
|
714
|
-
return throwDefaultError({
|
|
715
|
-
output,
|
|
716
|
-
parsedBody,
|
|
717
|
-
errorCode
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
}, "de_ListAvailableResourceMetricsCommandError");
|
|
721
496
|
var de_ListPerformanceAnalysisReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
497
|
if (output.statusCode >= 300) {
|
|
723
|
-
return
|
|
498
|
+
return de_CommandError(output, context);
|
|
724
499
|
}
|
|
725
500
|
const data = await parseBody(output.body, context);
|
|
726
501
|
let contents = {};
|
|
@@ -731,34 +506,9 @@ var de_ListPerformanceAnalysisReportsCommand = /* @__PURE__ */ __name(async (out
|
|
|
731
506
|
};
|
|
732
507
|
return response;
|
|
733
508
|
}, "de_ListPerformanceAnalysisReportsCommand");
|
|
734
|
-
var de_ListPerformanceAnalysisReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
|
-
const parsedOutput = {
|
|
736
|
-
...output,
|
|
737
|
-
body: await parseErrorBody(output.body, context)
|
|
738
|
-
};
|
|
739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
|
-
switch (errorCode) {
|
|
741
|
-
case "InternalServiceError":
|
|
742
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
743
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
744
|
-
case "InvalidArgumentException":
|
|
745
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
746
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
747
|
-
case "NotAuthorizedException":
|
|
748
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
749
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
750
|
-
default:
|
|
751
|
-
const parsedBody = parsedOutput.body;
|
|
752
|
-
return throwDefaultError({
|
|
753
|
-
output,
|
|
754
|
-
parsedBody,
|
|
755
|
-
errorCode
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
}, "de_ListPerformanceAnalysisReportsCommandError");
|
|
759
509
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
760
510
|
if (output.statusCode >= 300) {
|
|
761
|
-
return
|
|
511
|
+
return de_CommandError(output, context);
|
|
762
512
|
}
|
|
763
513
|
const data = await parseBody(output.body, context);
|
|
764
514
|
let contents = {};
|
|
@@ -769,34 +519,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
769
519
|
};
|
|
770
520
|
return response;
|
|
771
521
|
}, "de_ListTagsForResourceCommand");
|
|
772
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
773
|
-
const parsedOutput = {
|
|
774
|
-
...output,
|
|
775
|
-
body: await parseErrorBody(output.body, context)
|
|
776
|
-
};
|
|
777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
|
-
switch (errorCode) {
|
|
779
|
-
case "InternalServiceError":
|
|
780
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
781
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
782
|
-
case "InvalidArgumentException":
|
|
783
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
784
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
785
|
-
case "NotAuthorizedException":
|
|
786
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
787
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
}, "de_ListTagsForResourceCommandError");
|
|
797
522
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
798
523
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
524
|
+
return de_CommandError(output, context);
|
|
800
525
|
}
|
|
801
526
|
const data = await parseBody(output.body, context);
|
|
802
527
|
let contents = {};
|
|
@@ -807,34 +532,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
807
532
|
};
|
|
808
533
|
return response;
|
|
809
534
|
}, "de_TagResourceCommand");
|
|
810
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context)
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "InternalServiceError":
|
|
818
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
819
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
820
|
-
case "InvalidArgumentException":
|
|
821
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
822
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
823
|
-
case "NotAuthorizedException":
|
|
824
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
825
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
}, "de_TagResourceCommandError");
|
|
835
535
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
536
|
if (output.statusCode >= 300) {
|
|
837
|
-
return
|
|
537
|
+
return de_CommandError(output, context);
|
|
838
538
|
}
|
|
839
539
|
const data = await parseBody(output.body, context);
|
|
840
540
|
let contents = {};
|
|
@@ -845,7 +545,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
845
545
|
};
|
|
846
546
|
return response;
|
|
847
547
|
}, "de_UntagResourceCommand");
|
|
848
|
-
var
|
|
548
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
849
549
|
const parsedOutput = {
|
|
850
550
|
...output,
|
|
851
551
|
body: await parseErrorBody(output.body, context)
|
|
@@ -869,7 +569,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
869
569
|
errorCode
|
|
870
570
|
});
|
|
871
571
|
}
|
|
872
|
-
}, "
|
|
572
|
+
}, "de_CommandError");
|
|
873
573
|
var de_InternalServiceErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
874
574
|
const body = parsedOutput.body;
|
|
875
575
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -82,7 +82,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
82
82
|
};
|
|
83
83
|
export const de_CreatePerformanceAnalysisReportCommand = async (output, context) => {
|
|
84
84
|
if (output.statusCode >= 300) {
|
|
85
|
-
return
|
|
85
|
+
return de_CommandError(output, context);
|
|
86
86
|
}
|
|
87
87
|
const data = await parseBody(output.body, context);
|
|
88
88
|
let contents = {};
|
|
@@ -93,34 +93,9 @@ export const de_CreatePerformanceAnalysisReportCommand = async (output, context)
|
|
|
93
93
|
};
|
|
94
94
|
return response;
|
|
95
95
|
};
|
|
96
|
-
const de_CreatePerformanceAnalysisReportCommandError = async (output, context) => {
|
|
97
|
-
const parsedOutput = {
|
|
98
|
-
...output,
|
|
99
|
-
body: await parseErrorBody(output.body, context),
|
|
100
|
-
};
|
|
101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
102
|
-
switch (errorCode) {
|
|
103
|
-
case "InternalServiceError":
|
|
104
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
105
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
106
|
-
case "InvalidArgumentException":
|
|
107
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
108
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
109
|
-
case "NotAuthorizedException":
|
|
110
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
111
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
112
|
-
default:
|
|
113
|
-
const parsedBody = parsedOutput.body;
|
|
114
|
-
return throwDefaultError({
|
|
115
|
-
output,
|
|
116
|
-
parsedBody,
|
|
117
|
-
errorCode,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
96
|
export const de_DeletePerformanceAnalysisReportCommand = async (output, context) => {
|
|
122
97
|
if (output.statusCode >= 300) {
|
|
123
|
-
return
|
|
98
|
+
return de_CommandError(output, context);
|
|
124
99
|
}
|
|
125
100
|
const data = await parseBody(output.body, context);
|
|
126
101
|
let contents = {};
|
|
@@ -131,34 +106,9 @@ export const de_DeletePerformanceAnalysisReportCommand = async (output, context)
|
|
|
131
106
|
};
|
|
132
107
|
return response;
|
|
133
108
|
};
|
|
134
|
-
const de_DeletePerformanceAnalysisReportCommandError = async (output, context) => {
|
|
135
|
-
const parsedOutput = {
|
|
136
|
-
...output,
|
|
137
|
-
body: await parseErrorBody(output.body, context),
|
|
138
|
-
};
|
|
139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
140
|
-
switch (errorCode) {
|
|
141
|
-
case "InternalServiceError":
|
|
142
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
143
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
144
|
-
case "InvalidArgumentException":
|
|
145
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
146
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
147
|
-
case "NotAuthorizedException":
|
|
148
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
149
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
150
|
-
default:
|
|
151
|
-
const parsedBody = parsedOutput.body;
|
|
152
|
-
return throwDefaultError({
|
|
153
|
-
output,
|
|
154
|
-
parsedBody,
|
|
155
|
-
errorCode,
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
109
|
export const de_DescribeDimensionKeysCommand = async (output, context) => {
|
|
160
110
|
if (output.statusCode >= 300) {
|
|
161
|
-
return
|
|
111
|
+
return de_CommandError(output, context);
|
|
162
112
|
}
|
|
163
113
|
const data = await parseBody(output.body, context);
|
|
164
114
|
let contents = {};
|
|
@@ -169,34 +119,9 @@ export const de_DescribeDimensionKeysCommand = async (output, context) => {
|
|
|
169
119
|
};
|
|
170
120
|
return response;
|
|
171
121
|
};
|
|
172
|
-
const de_DescribeDimensionKeysCommandError = async (output, context) => {
|
|
173
|
-
const parsedOutput = {
|
|
174
|
-
...output,
|
|
175
|
-
body: await parseErrorBody(output.body, context),
|
|
176
|
-
};
|
|
177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
178
|
-
switch (errorCode) {
|
|
179
|
-
case "InternalServiceError":
|
|
180
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
181
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
182
|
-
case "InvalidArgumentException":
|
|
183
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
184
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
185
|
-
case "NotAuthorizedException":
|
|
186
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
187
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
188
|
-
default:
|
|
189
|
-
const parsedBody = parsedOutput.body;
|
|
190
|
-
return throwDefaultError({
|
|
191
|
-
output,
|
|
192
|
-
parsedBody,
|
|
193
|
-
errorCode,
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
122
|
export const de_GetDimensionKeyDetailsCommand = async (output, context) => {
|
|
198
123
|
if (output.statusCode >= 300) {
|
|
199
|
-
return
|
|
124
|
+
return de_CommandError(output, context);
|
|
200
125
|
}
|
|
201
126
|
const data = await parseBody(output.body, context);
|
|
202
127
|
let contents = {};
|
|
@@ -207,34 +132,9 @@ export const de_GetDimensionKeyDetailsCommand = async (output, context) => {
|
|
|
207
132
|
};
|
|
208
133
|
return response;
|
|
209
134
|
};
|
|
210
|
-
const de_GetDimensionKeyDetailsCommandError = async (output, context) => {
|
|
211
|
-
const parsedOutput = {
|
|
212
|
-
...output,
|
|
213
|
-
body: await parseErrorBody(output.body, context),
|
|
214
|
-
};
|
|
215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
216
|
-
switch (errorCode) {
|
|
217
|
-
case "InternalServiceError":
|
|
218
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
219
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
220
|
-
case "InvalidArgumentException":
|
|
221
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
222
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
223
|
-
case "NotAuthorizedException":
|
|
224
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
225
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
226
|
-
default:
|
|
227
|
-
const parsedBody = parsedOutput.body;
|
|
228
|
-
return throwDefaultError({
|
|
229
|
-
output,
|
|
230
|
-
parsedBody,
|
|
231
|
-
errorCode,
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
135
|
export const de_GetPerformanceAnalysisReportCommand = async (output, context) => {
|
|
236
136
|
if (output.statusCode >= 300) {
|
|
237
|
-
return
|
|
137
|
+
return de_CommandError(output, context);
|
|
238
138
|
}
|
|
239
139
|
const data = await parseBody(output.body, context);
|
|
240
140
|
let contents = {};
|
|
@@ -245,34 +145,9 @@ export const de_GetPerformanceAnalysisReportCommand = async (output, context) =>
|
|
|
245
145
|
};
|
|
246
146
|
return response;
|
|
247
147
|
};
|
|
248
|
-
const de_GetPerformanceAnalysisReportCommandError = async (output, context) => {
|
|
249
|
-
const parsedOutput = {
|
|
250
|
-
...output,
|
|
251
|
-
body: await parseErrorBody(output.body, context),
|
|
252
|
-
};
|
|
253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
254
|
-
switch (errorCode) {
|
|
255
|
-
case "InternalServiceError":
|
|
256
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
257
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
258
|
-
case "InvalidArgumentException":
|
|
259
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
260
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
261
|
-
case "NotAuthorizedException":
|
|
262
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
263
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
264
|
-
default:
|
|
265
|
-
const parsedBody = parsedOutput.body;
|
|
266
|
-
return throwDefaultError({
|
|
267
|
-
output,
|
|
268
|
-
parsedBody,
|
|
269
|
-
errorCode,
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
148
|
export const de_GetResourceMetadataCommand = async (output, context) => {
|
|
274
149
|
if (output.statusCode >= 300) {
|
|
275
|
-
return
|
|
150
|
+
return de_CommandError(output, context);
|
|
276
151
|
}
|
|
277
152
|
const data = await parseBody(output.body, context);
|
|
278
153
|
let contents = {};
|
|
@@ -283,34 +158,9 @@ export const de_GetResourceMetadataCommand = async (output, context) => {
|
|
|
283
158
|
};
|
|
284
159
|
return response;
|
|
285
160
|
};
|
|
286
|
-
const de_GetResourceMetadataCommandError = async (output, context) => {
|
|
287
|
-
const parsedOutput = {
|
|
288
|
-
...output,
|
|
289
|
-
body: await parseErrorBody(output.body, context),
|
|
290
|
-
};
|
|
291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
|
-
switch (errorCode) {
|
|
293
|
-
case "InternalServiceError":
|
|
294
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
295
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
296
|
-
case "InvalidArgumentException":
|
|
297
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
298
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
299
|
-
case "NotAuthorizedException":
|
|
300
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
301
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
302
|
-
default:
|
|
303
|
-
const parsedBody = parsedOutput.body;
|
|
304
|
-
return throwDefaultError({
|
|
305
|
-
output,
|
|
306
|
-
parsedBody,
|
|
307
|
-
errorCode,
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
161
|
export const de_GetResourceMetricsCommand = async (output, context) => {
|
|
312
162
|
if (output.statusCode >= 300) {
|
|
313
|
-
return
|
|
163
|
+
return de_CommandError(output, context);
|
|
314
164
|
}
|
|
315
165
|
const data = await parseBody(output.body, context);
|
|
316
166
|
let contents = {};
|
|
@@ -321,34 +171,9 @@ export const de_GetResourceMetricsCommand = async (output, context) => {
|
|
|
321
171
|
};
|
|
322
172
|
return response;
|
|
323
173
|
};
|
|
324
|
-
const de_GetResourceMetricsCommandError = async (output, context) => {
|
|
325
|
-
const parsedOutput = {
|
|
326
|
-
...output,
|
|
327
|
-
body: await parseErrorBody(output.body, context),
|
|
328
|
-
};
|
|
329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
|
-
switch (errorCode) {
|
|
331
|
-
case "InternalServiceError":
|
|
332
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
333
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
334
|
-
case "InvalidArgumentException":
|
|
335
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
336
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
337
|
-
case "NotAuthorizedException":
|
|
338
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
339
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
340
|
-
default:
|
|
341
|
-
const parsedBody = parsedOutput.body;
|
|
342
|
-
return throwDefaultError({
|
|
343
|
-
output,
|
|
344
|
-
parsedBody,
|
|
345
|
-
errorCode,
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
174
|
export const de_ListAvailableResourceDimensionsCommand = async (output, context) => {
|
|
350
175
|
if (output.statusCode >= 300) {
|
|
351
|
-
return
|
|
176
|
+
return de_CommandError(output, context);
|
|
352
177
|
}
|
|
353
178
|
const data = await parseBody(output.body, context);
|
|
354
179
|
let contents = {};
|
|
@@ -359,34 +184,9 @@ export const de_ListAvailableResourceDimensionsCommand = async (output, context)
|
|
|
359
184
|
};
|
|
360
185
|
return response;
|
|
361
186
|
};
|
|
362
|
-
const de_ListAvailableResourceDimensionsCommandError = async (output, context) => {
|
|
363
|
-
const parsedOutput = {
|
|
364
|
-
...output,
|
|
365
|
-
body: await parseErrorBody(output.body, context),
|
|
366
|
-
};
|
|
367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
368
|
-
switch (errorCode) {
|
|
369
|
-
case "InternalServiceError":
|
|
370
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
371
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
372
|
-
case "InvalidArgumentException":
|
|
373
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
374
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
375
|
-
case "NotAuthorizedException":
|
|
376
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
377
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
378
|
-
default:
|
|
379
|
-
const parsedBody = parsedOutput.body;
|
|
380
|
-
return throwDefaultError({
|
|
381
|
-
output,
|
|
382
|
-
parsedBody,
|
|
383
|
-
errorCode,
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
187
|
export const de_ListAvailableResourceMetricsCommand = async (output, context) => {
|
|
388
188
|
if (output.statusCode >= 300) {
|
|
389
|
-
return
|
|
189
|
+
return de_CommandError(output, context);
|
|
390
190
|
}
|
|
391
191
|
const data = await parseBody(output.body, context);
|
|
392
192
|
let contents = {};
|
|
@@ -397,34 +197,9 @@ export const de_ListAvailableResourceMetricsCommand = async (output, context) =>
|
|
|
397
197
|
};
|
|
398
198
|
return response;
|
|
399
199
|
};
|
|
400
|
-
const de_ListAvailableResourceMetricsCommandError = async (output, context) => {
|
|
401
|
-
const parsedOutput = {
|
|
402
|
-
...output,
|
|
403
|
-
body: await parseErrorBody(output.body, context),
|
|
404
|
-
};
|
|
405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
406
|
-
switch (errorCode) {
|
|
407
|
-
case "InternalServiceError":
|
|
408
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
409
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
410
|
-
case "InvalidArgumentException":
|
|
411
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
412
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
413
|
-
case "NotAuthorizedException":
|
|
414
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
415
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
416
|
-
default:
|
|
417
|
-
const parsedBody = parsedOutput.body;
|
|
418
|
-
return throwDefaultError({
|
|
419
|
-
output,
|
|
420
|
-
parsedBody,
|
|
421
|
-
errorCode,
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
200
|
export const de_ListPerformanceAnalysisReportsCommand = async (output, context) => {
|
|
426
201
|
if (output.statusCode >= 300) {
|
|
427
|
-
return
|
|
202
|
+
return de_CommandError(output, context);
|
|
428
203
|
}
|
|
429
204
|
const data = await parseBody(output.body, context);
|
|
430
205
|
let contents = {};
|
|
@@ -435,34 +210,9 @@ export const de_ListPerformanceAnalysisReportsCommand = async (output, context)
|
|
|
435
210
|
};
|
|
436
211
|
return response;
|
|
437
212
|
};
|
|
438
|
-
const de_ListPerformanceAnalysisReportsCommandError = async (output, context) => {
|
|
439
|
-
const parsedOutput = {
|
|
440
|
-
...output,
|
|
441
|
-
body: await parseErrorBody(output.body, context),
|
|
442
|
-
};
|
|
443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
|
-
switch (errorCode) {
|
|
445
|
-
case "InternalServiceError":
|
|
446
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
447
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
448
|
-
case "InvalidArgumentException":
|
|
449
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
450
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
451
|
-
case "NotAuthorizedException":
|
|
452
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
453
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
454
|
-
default:
|
|
455
|
-
const parsedBody = parsedOutput.body;
|
|
456
|
-
return throwDefaultError({
|
|
457
|
-
output,
|
|
458
|
-
parsedBody,
|
|
459
|
-
errorCode,
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
213
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
464
214
|
if (output.statusCode >= 300) {
|
|
465
|
-
return
|
|
215
|
+
return de_CommandError(output, context);
|
|
466
216
|
}
|
|
467
217
|
const data = await parseBody(output.body, context);
|
|
468
218
|
let contents = {};
|
|
@@ -473,34 +223,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
473
223
|
};
|
|
474
224
|
return response;
|
|
475
225
|
};
|
|
476
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
477
|
-
const parsedOutput = {
|
|
478
|
-
...output,
|
|
479
|
-
body: await parseErrorBody(output.body, context),
|
|
480
|
-
};
|
|
481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
-
switch (errorCode) {
|
|
483
|
-
case "InternalServiceError":
|
|
484
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
485
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
486
|
-
case "InvalidArgumentException":
|
|
487
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
488
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
489
|
-
case "NotAuthorizedException":
|
|
490
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
491
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode,
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
226
|
export const de_TagResourceCommand = async (output, context) => {
|
|
502
227
|
if (output.statusCode >= 300) {
|
|
503
|
-
return
|
|
228
|
+
return de_CommandError(output, context);
|
|
504
229
|
}
|
|
505
230
|
const data = await parseBody(output.body, context);
|
|
506
231
|
let contents = {};
|
|
@@ -511,34 +236,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
511
236
|
};
|
|
512
237
|
return response;
|
|
513
238
|
};
|
|
514
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
515
|
-
const parsedOutput = {
|
|
516
|
-
...output,
|
|
517
|
-
body: await parseErrorBody(output.body, context),
|
|
518
|
-
};
|
|
519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
-
switch (errorCode) {
|
|
521
|
-
case "InternalServiceError":
|
|
522
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
523
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
524
|
-
case "InvalidArgumentException":
|
|
525
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
526
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
527
|
-
case "NotAuthorizedException":
|
|
528
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
529
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
530
|
-
default:
|
|
531
|
-
const parsedBody = parsedOutput.body;
|
|
532
|
-
return throwDefaultError({
|
|
533
|
-
output,
|
|
534
|
-
parsedBody,
|
|
535
|
-
errorCode,
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
239
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
540
240
|
if (output.statusCode >= 300) {
|
|
541
|
-
return
|
|
241
|
+
return de_CommandError(output, context);
|
|
542
242
|
}
|
|
543
243
|
const data = await parseBody(output.body, context);
|
|
544
244
|
let contents = {};
|
|
@@ -549,7 +249,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
549
249
|
};
|
|
550
250
|
return response;
|
|
551
251
|
};
|
|
552
|
-
const
|
|
252
|
+
const de_CommandError = async (output, context) => {
|
|
553
253
|
const parsedOutput = {
|
|
554
254
|
...output,
|
|
555
255
|
body: await parseErrorBody(output.body, context),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pi",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pi Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-pi",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|