@aws-sdk/client-compute-optimizer 3.141.0 → 3.142.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +90 -198
- package/dist-es/protocols/Aws_json1_0.js +145 -199
- package/package.json +6 -6
|
@@ -204,7 +204,6 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
204
204
|
...output,
|
|
205
205
|
body: await parseBody(output.body, context),
|
|
206
206
|
};
|
|
207
|
-
let response;
|
|
208
207
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
209
208
|
switch (errorCode) {
|
|
210
209
|
case "AccessDeniedException":
|
|
@@ -233,14 +232,12 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
233
232
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
234
233
|
default:
|
|
235
234
|
const parsedBody = parsedOutput.body;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
$metadata,
|
|
235
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
236
|
+
output,
|
|
237
|
+
parsedBody,
|
|
238
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
239
|
+
errorCode,
|
|
242
240
|
});
|
|
243
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
244
241
|
}
|
|
245
242
|
};
|
|
246
243
|
const deserializeAws_json1_0DescribeRecommendationExportJobsCommand = async (output, context) => {
|
|
@@ -262,7 +259,6 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
262
259
|
...output,
|
|
263
260
|
body: await parseBody(output.body, context),
|
|
264
261
|
};
|
|
265
|
-
let response;
|
|
266
262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
267
263
|
switch (errorCode) {
|
|
268
264
|
case "AccessDeniedException":
|
|
@@ -291,14 +287,12 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
291
287
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
292
288
|
default:
|
|
293
289
|
const parsedBody = parsedOutput.body;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
$metadata,
|
|
290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
291
|
+
output,
|
|
292
|
+
parsedBody,
|
|
293
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
294
|
+
errorCode,
|
|
300
295
|
});
|
|
301
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
302
296
|
}
|
|
303
297
|
};
|
|
304
298
|
const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
@@ -320,7 +314,6 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
320
314
|
...output,
|
|
321
315
|
body: await parseBody(output.body, context),
|
|
322
316
|
};
|
|
323
|
-
let response;
|
|
324
317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
325
318
|
switch (errorCode) {
|
|
326
319
|
case "AccessDeniedException":
|
|
@@ -349,14 +342,12 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
349
342
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
350
343
|
default:
|
|
351
344
|
const parsedBody = parsedOutput.body;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
$metadata,
|
|
345
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
346
|
+
output,
|
|
347
|
+
parsedBody,
|
|
348
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
349
|
+
errorCode,
|
|
358
350
|
});
|
|
359
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
360
351
|
}
|
|
361
352
|
};
|
|
362
353
|
const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
@@ -378,7 +369,6 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
378
369
|
...output,
|
|
379
370
|
body: await parseBody(output.body, context),
|
|
380
371
|
};
|
|
381
|
-
let response;
|
|
382
372
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
373
|
switch (errorCode) {
|
|
384
374
|
case "AccessDeniedException":
|
|
@@ -407,14 +397,12 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
407
397
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
408
398
|
default:
|
|
409
399
|
const parsedBody = parsedOutput.body;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
$metadata,
|
|
400
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
401
|
+
output,
|
|
402
|
+
parsedBody,
|
|
403
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
404
|
+
errorCode,
|
|
416
405
|
});
|
|
417
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
418
406
|
}
|
|
419
407
|
};
|
|
420
408
|
const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
@@ -436,7 +424,6 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
436
424
|
...output,
|
|
437
425
|
body: await parseBody(output.body, context),
|
|
438
426
|
};
|
|
439
|
-
let response;
|
|
440
427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
428
|
switch (errorCode) {
|
|
442
429
|
case "AccessDeniedException":
|
|
@@ -465,14 +452,12 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
465
452
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
466
453
|
default:
|
|
467
454
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
$metadata,
|
|
455
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
456
|
+
output,
|
|
457
|
+
parsedBody,
|
|
458
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
459
|
+
errorCode,
|
|
474
460
|
});
|
|
475
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
476
461
|
}
|
|
477
462
|
};
|
|
478
463
|
const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
@@ -494,7 +479,6 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
494
479
|
...output,
|
|
495
480
|
body: await parseBody(output.body, context),
|
|
496
481
|
};
|
|
497
|
-
let response;
|
|
498
482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
483
|
switch (errorCode) {
|
|
500
484
|
case "AccessDeniedException":
|
|
@@ -523,14 +507,12 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
523
507
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
524
508
|
default:
|
|
525
509
|
const parsedBody = parsedOutput.body;
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
$metadata,
|
|
510
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
511
|
+
output,
|
|
512
|
+
parsedBody,
|
|
513
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
514
|
+
errorCode,
|
|
532
515
|
});
|
|
533
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
534
516
|
}
|
|
535
517
|
};
|
|
536
518
|
const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
@@ -552,7 +534,6 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
552
534
|
...output,
|
|
553
535
|
body: await parseBody(output.body, context),
|
|
554
536
|
};
|
|
555
|
-
let response;
|
|
556
537
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
538
|
switch (errorCode) {
|
|
558
539
|
case "AccessDeniedException":
|
|
@@ -581,14 +562,12 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
581
562
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
582
563
|
default:
|
|
583
564
|
const parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
$metadata,
|
|
565
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
566
|
+
output,
|
|
567
|
+
parsedBody,
|
|
568
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
569
|
+
errorCode,
|
|
590
570
|
});
|
|
591
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
592
571
|
}
|
|
593
572
|
};
|
|
594
573
|
const deserializeAws_json1_0GetEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
@@ -610,7 +589,6 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
610
589
|
...output,
|
|
611
590
|
body: await parseBody(output.body, context),
|
|
612
591
|
};
|
|
613
|
-
let response;
|
|
614
592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
593
|
switch (errorCode) {
|
|
616
594
|
case "AccessDeniedException":
|
|
@@ -639,14 +617,12 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
639
617
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
640
618
|
default:
|
|
641
619
|
const parsedBody = parsedOutput.body;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
$metadata,
|
|
620
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
621
|
+
output,
|
|
622
|
+
parsedBody,
|
|
623
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
624
|
+
errorCode,
|
|
648
625
|
});
|
|
649
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
650
626
|
}
|
|
651
627
|
};
|
|
652
628
|
const deserializeAws_json1_0GetEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
@@ -668,7 +644,6 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
668
644
|
...output,
|
|
669
645
|
body: await parseBody(output.body, context),
|
|
670
646
|
};
|
|
671
|
-
let response;
|
|
672
647
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
648
|
switch (errorCode) {
|
|
674
649
|
case "AccessDeniedException":
|
|
@@ -697,14 +672,12 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
697
672
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
698
673
|
default:
|
|
699
674
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
$metadata,
|
|
675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
676
|
+
output,
|
|
677
|
+
parsedBody,
|
|
678
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
679
|
+
errorCode,
|
|
706
680
|
});
|
|
707
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
708
681
|
}
|
|
709
682
|
};
|
|
710
683
|
const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = async (output, context) => {
|
|
@@ -726,7 +699,6 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
726
699
|
...output,
|
|
727
700
|
body: await parseBody(output.body, context),
|
|
728
701
|
};
|
|
729
|
-
let response;
|
|
730
702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
703
|
switch (errorCode) {
|
|
732
704
|
case "AccessDeniedException":
|
|
@@ -755,14 +727,12 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
755
727
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
756
728
|
default:
|
|
757
729
|
const parsedBody = parsedOutput.body;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
$metadata,
|
|
730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
734
|
+
errorCode,
|
|
764
735
|
});
|
|
765
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
766
736
|
}
|
|
767
737
|
};
|
|
768
738
|
const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand = async (output, context) => {
|
|
@@ -784,7 +754,6 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
784
754
|
...output,
|
|
785
755
|
body: await parseBody(output.body, context),
|
|
786
756
|
};
|
|
787
|
-
let response;
|
|
788
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
758
|
switch (errorCode) {
|
|
790
759
|
case "AccessDeniedException":
|
|
@@ -813,14 +782,12 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
813
782
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
814
783
|
default:
|
|
815
784
|
const parsedBody = parsedOutput.body;
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
$metadata,
|
|
785
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
786
|
+
output,
|
|
787
|
+
parsedBody,
|
|
788
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
789
|
+
errorCode,
|
|
822
790
|
});
|
|
823
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
824
791
|
}
|
|
825
792
|
};
|
|
826
793
|
const deserializeAws_json1_0GetEnrollmentStatusCommand = async (output, context) => {
|
|
@@ -842,7 +809,6 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
842
809
|
...output,
|
|
843
810
|
body: await parseBody(output.body, context),
|
|
844
811
|
};
|
|
845
|
-
let response;
|
|
846
812
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
813
|
switch (errorCode) {
|
|
848
814
|
case "AccessDeniedException":
|
|
@@ -865,14 +831,12 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
865
831
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
866
832
|
default:
|
|
867
833
|
const parsedBody = parsedOutput.body;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
$metadata,
|
|
834
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
835
|
+
output,
|
|
836
|
+
parsedBody,
|
|
837
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
838
|
+
errorCode,
|
|
874
839
|
});
|
|
875
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
876
840
|
}
|
|
877
841
|
};
|
|
878
842
|
const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = async (output, context) => {
|
|
@@ -894,7 +858,6 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
894
858
|
...output,
|
|
895
859
|
body: await parseBody(output.body, context),
|
|
896
860
|
};
|
|
897
|
-
let response;
|
|
898
861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
862
|
switch (errorCode) {
|
|
900
863
|
case "AccessDeniedException":
|
|
@@ -917,14 +880,12 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
917
880
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
918
881
|
default:
|
|
919
882
|
const parsedBody = parsedOutput.body;
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
$metadata,
|
|
883
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
884
|
+
output,
|
|
885
|
+
parsedBody,
|
|
886
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
887
|
+
errorCode,
|
|
926
888
|
});
|
|
927
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
928
889
|
}
|
|
929
890
|
};
|
|
930
891
|
const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
@@ -946,7 +907,6 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
946
907
|
...output,
|
|
947
908
|
body: await parseBody(output.body, context),
|
|
948
909
|
};
|
|
949
|
-
let response;
|
|
950
910
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
911
|
switch (errorCode) {
|
|
952
912
|
case "AccessDeniedException":
|
|
@@ -975,14 +935,12 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
975
935
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
976
936
|
default:
|
|
977
937
|
const parsedBody = parsedOutput.body;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
$metadata,
|
|
938
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
939
|
+
output,
|
|
940
|
+
parsedBody,
|
|
941
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
942
|
+
errorCode,
|
|
984
943
|
});
|
|
985
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
986
944
|
}
|
|
987
945
|
};
|
|
988
946
|
const deserializeAws_json1_0GetRecommendationPreferencesCommand = async (output, context) => {
|
|
@@ -1004,7 +962,6 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1004
962
|
...output,
|
|
1005
963
|
body: await parseBody(output.body, context),
|
|
1006
964
|
};
|
|
1007
|
-
let response;
|
|
1008
965
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
966
|
switch (errorCode) {
|
|
1010
967
|
case "AccessDeniedException":
|
|
@@ -1033,14 +990,12 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1033
990
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1034
991
|
default:
|
|
1035
992
|
const parsedBody = parsedOutput.body;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
$metadata,
|
|
993
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
994
|
+
output,
|
|
995
|
+
parsedBody,
|
|
996
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
997
|
+
errorCode,
|
|
1042
998
|
});
|
|
1043
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1044
999
|
}
|
|
1045
1000
|
};
|
|
1046
1001
|
const deserializeAws_json1_0GetRecommendationSummariesCommand = async (output, context) => {
|
|
@@ -1062,7 +1017,6 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1062
1017
|
...output,
|
|
1063
1018
|
body: await parseBody(output.body, context),
|
|
1064
1019
|
};
|
|
1065
|
-
let response;
|
|
1066
1020
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1067
1021
|
switch (errorCode) {
|
|
1068
1022
|
case "AccessDeniedException":
|
|
@@ -1088,14 +1042,12 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1088
1042
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1089
1043
|
default:
|
|
1090
1044
|
const parsedBody = parsedOutput.body;
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
$metadata,
|
|
1045
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1046
|
+
output,
|
|
1047
|
+
parsedBody,
|
|
1048
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
1049
|
+
errorCode,
|
|
1097
1050
|
});
|
|
1098
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1099
1051
|
}
|
|
1100
1052
|
};
|
|
1101
1053
|
const deserializeAws_json1_0PutRecommendationPreferencesCommand = async (output, context) => {
|
|
@@ -1117,7 +1069,6 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1117
1069
|
...output,
|
|
1118
1070
|
body: await parseBody(output.body, context),
|
|
1119
1071
|
};
|
|
1120
|
-
let response;
|
|
1121
1072
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
1073
|
switch (errorCode) {
|
|
1123
1074
|
case "AccessDeniedException":
|
|
@@ -1146,14 +1097,12 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1146
1097
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1147
1098
|
default:
|
|
1148
1099
|
const parsedBody = parsedOutput.body;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
$metadata,
|
|
1100
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1101
|
+
output,
|
|
1102
|
+
parsedBody,
|
|
1103
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
1104
|
+
errorCode,
|
|
1155
1105
|
});
|
|
1156
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1157
1106
|
}
|
|
1158
1107
|
};
|
|
1159
1108
|
const deserializeAws_json1_0UpdateEnrollmentStatusCommand = async (output, context) => {
|
|
@@ -1175,7 +1124,6 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1175
1124
|
...output,
|
|
1176
1125
|
body: await parseBody(output.body, context),
|
|
1177
1126
|
};
|
|
1178
|
-
let response;
|
|
1179
1127
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
1128
|
switch (errorCode) {
|
|
1181
1129
|
case "AccessDeniedException":
|
|
@@ -1198,14 +1146,12 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1198
1146
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1199
1147
|
default:
|
|
1200
1148
|
const parsedBody = parsedOutput.body;
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
$metadata,
|
|
1149
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1150
|
+
output,
|
|
1151
|
+
parsedBody,
|
|
1152
|
+
exceptionCtor: ComputeOptimizerServiceException_1.ComputeOptimizerServiceException,
|
|
1153
|
+
errorCode,
|
|
1207
1154
|
});
|
|
1208
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1209
1155
|
}
|
|
1210
1156
|
};
|
|
1211
1157
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1293,9 +1239,6 @@ const serializeAws_json1_0AccountIds = (input, context) => {
|
|
|
1293
1239
|
return input
|
|
1294
1240
|
.filter((e) => e != null)
|
|
1295
1241
|
.map((entry) => {
|
|
1296
|
-
if (entry === null) {
|
|
1297
|
-
return null;
|
|
1298
|
-
}
|
|
1299
1242
|
return entry;
|
|
1300
1243
|
});
|
|
1301
1244
|
};
|
|
@@ -1303,9 +1246,6 @@ const serializeAws_json1_0AutoScalingGroupArns = (input, context) => {
|
|
|
1303
1246
|
return input
|
|
1304
1247
|
.filter((e) => e != null)
|
|
1305
1248
|
.map((entry) => {
|
|
1306
|
-
if (entry === null) {
|
|
1307
|
-
return null;
|
|
1308
|
-
}
|
|
1309
1249
|
return entry;
|
|
1310
1250
|
});
|
|
1311
1251
|
};
|
|
@@ -1313,9 +1253,6 @@ const serializeAws_json1_0CpuVendorArchitectures = (input, context) => {
|
|
|
1313
1253
|
return input
|
|
1314
1254
|
.filter((e) => e != null)
|
|
1315
1255
|
.map((entry) => {
|
|
1316
|
-
if (entry === null) {
|
|
1317
|
-
return null;
|
|
1318
|
-
}
|
|
1319
1256
|
return entry;
|
|
1320
1257
|
});
|
|
1321
1258
|
};
|
|
@@ -1346,9 +1283,6 @@ const serializeAws_json1_0EBSFilters = (input, context) => {
|
|
|
1346
1283
|
return input
|
|
1347
1284
|
.filter((e) => e != null)
|
|
1348
1285
|
.map((entry) => {
|
|
1349
|
-
if (entry === null) {
|
|
1350
|
-
return null;
|
|
1351
|
-
}
|
|
1352
1286
|
return serializeAws_json1_0EBSFilter(entry, context);
|
|
1353
1287
|
});
|
|
1354
1288
|
};
|
|
@@ -1362,9 +1296,6 @@ const serializeAws_json1_0EnrollmentFilters = (input, context) => {
|
|
|
1362
1296
|
return input
|
|
1363
1297
|
.filter((e) => e != null)
|
|
1364
1298
|
.map((entry) => {
|
|
1365
|
-
if (entry === null) {
|
|
1366
|
-
return null;
|
|
1367
|
-
}
|
|
1368
1299
|
return serializeAws_json1_0EnrollmentFilter(entry, context);
|
|
1369
1300
|
});
|
|
1370
1301
|
};
|
|
@@ -1372,9 +1303,6 @@ const serializeAws_json1_0ExportableAutoScalingGroupFields = (input, context) =>
|
|
|
1372
1303
|
return input
|
|
1373
1304
|
.filter((e) => e != null)
|
|
1374
1305
|
.map((entry) => {
|
|
1375
|
-
if (entry === null) {
|
|
1376
|
-
return null;
|
|
1377
|
-
}
|
|
1378
1306
|
return entry;
|
|
1379
1307
|
});
|
|
1380
1308
|
};
|
|
@@ -1382,9 +1310,6 @@ const serializeAws_json1_0ExportableInstanceFields = (input, context) => {
|
|
|
1382
1310
|
return input
|
|
1383
1311
|
.filter((e) => e != null)
|
|
1384
1312
|
.map((entry) => {
|
|
1385
|
-
if (entry === null) {
|
|
1386
|
-
return null;
|
|
1387
|
-
}
|
|
1388
1313
|
return entry;
|
|
1389
1314
|
});
|
|
1390
1315
|
};
|
|
@@ -1392,9 +1317,6 @@ const serializeAws_json1_0ExportableLambdaFunctionFields = (input, context) => {
|
|
|
1392
1317
|
return input
|
|
1393
1318
|
.filter((e) => e != null)
|
|
1394
1319
|
.map((entry) => {
|
|
1395
|
-
if (entry === null) {
|
|
1396
|
-
return null;
|
|
1397
|
-
}
|
|
1398
1320
|
return entry;
|
|
1399
1321
|
});
|
|
1400
1322
|
};
|
|
@@ -1402,9 +1324,6 @@ const serializeAws_json1_0ExportableVolumeFields = (input, context) => {
|
|
|
1402
1324
|
return input
|
|
1403
1325
|
.filter((e) => e != null)
|
|
1404
1326
|
.map((entry) => {
|
|
1405
|
-
if (entry === null) {
|
|
1406
|
-
return null;
|
|
1407
|
-
}
|
|
1408
1327
|
return entry;
|
|
1409
1328
|
});
|
|
1410
1329
|
};
|
|
@@ -1482,9 +1401,6 @@ const serializeAws_json1_0Filters = (input, context) => {
|
|
|
1482
1401
|
return input
|
|
1483
1402
|
.filter((e) => e != null)
|
|
1484
1403
|
.map((entry) => {
|
|
1485
|
-
if (entry === null) {
|
|
1486
|
-
return null;
|
|
1487
|
-
}
|
|
1488
1404
|
return serializeAws_json1_0Filter(entry, context);
|
|
1489
1405
|
});
|
|
1490
1406
|
};
|
|
@@ -1492,9 +1408,6 @@ const serializeAws_json1_0FilterValues = (input, context) => {
|
|
|
1492
1408
|
return input
|
|
1493
1409
|
.filter((e) => e != null)
|
|
1494
1410
|
.map((entry) => {
|
|
1495
|
-
if (entry === null) {
|
|
1496
|
-
return null;
|
|
1497
|
-
}
|
|
1498
1411
|
return entry;
|
|
1499
1412
|
});
|
|
1500
1413
|
};
|
|
@@ -1502,9 +1415,6 @@ const serializeAws_json1_0FunctionArns = (input, context) => {
|
|
|
1502
1415
|
return input
|
|
1503
1416
|
.filter((e) => e != null)
|
|
1504
1417
|
.map((entry) => {
|
|
1505
|
-
if (entry === null) {
|
|
1506
|
-
return null;
|
|
1507
|
-
}
|
|
1508
1418
|
return entry;
|
|
1509
1419
|
});
|
|
1510
1420
|
};
|
|
@@ -1600,9 +1510,6 @@ const serializeAws_json1_0InstanceArns = (input, context) => {
|
|
|
1600
1510
|
return input
|
|
1601
1511
|
.filter((e) => e != null)
|
|
1602
1512
|
.map((entry) => {
|
|
1603
|
-
if (entry === null) {
|
|
1604
|
-
return null;
|
|
1605
|
-
}
|
|
1606
1513
|
return entry;
|
|
1607
1514
|
});
|
|
1608
1515
|
};
|
|
@@ -1616,9 +1523,6 @@ const serializeAws_json1_0JobFilters = (input, context) => {
|
|
|
1616
1523
|
return input
|
|
1617
1524
|
.filter((e) => e != null)
|
|
1618
1525
|
.map((entry) => {
|
|
1619
|
-
if (entry === null) {
|
|
1620
|
-
return null;
|
|
1621
|
-
}
|
|
1622
1526
|
return serializeAws_json1_0JobFilter(entry, context);
|
|
1623
1527
|
});
|
|
1624
1528
|
};
|
|
@@ -1626,9 +1530,6 @@ const serializeAws_json1_0JobIds = (input, context) => {
|
|
|
1626
1530
|
return input
|
|
1627
1531
|
.filter((e) => e != null)
|
|
1628
1532
|
.map((entry) => {
|
|
1629
|
-
if (entry === null) {
|
|
1630
|
-
return null;
|
|
1631
|
-
}
|
|
1632
1533
|
return entry;
|
|
1633
1534
|
});
|
|
1634
1535
|
};
|
|
@@ -1642,9 +1543,6 @@ const serializeAws_json1_0LambdaFunctionRecommendationFilters = (input, context)
|
|
|
1642
1543
|
return input
|
|
1643
1544
|
.filter((e) => e != null)
|
|
1644
1545
|
.map((entry) => {
|
|
1645
|
-
if (entry === null) {
|
|
1646
|
-
return null;
|
|
1647
|
-
}
|
|
1648
1546
|
return serializeAws_json1_0LambdaFunctionRecommendationFilter(entry, context);
|
|
1649
1547
|
});
|
|
1650
1548
|
};
|
|
@@ -1662,9 +1560,6 @@ const serializeAws_json1_0RecommendationPreferenceNames = (input, context) => {
|
|
|
1662
1560
|
return input
|
|
1663
1561
|
.filter((e) => e != null)
|
|
1664
1562
|
.map((entry) => {
|
|
1665
|
-
if (entry === null) {
|
|
1666
|
-
return null;
|
|
1667
|
-
}
|
|
1668
1563
|
return entry;
|
|
1669
1564
|
});
|
|
1670
1565
|
};
|
|
@@ -1697,9 +1592,6 @@ const serializeAws_json1_0VolumeArns = (input, context) => {
|
|
|
1697
1592
|
return input
|
|
1698
1593
|
.filter((e) => e != null)
|
|
1699
1594
|
.map((entry) => {
|
|
1700
|
-
if (entry === null) {
|
|
1701
|
-
return null;
|
|
1702
|
-
}
|
|
1703
1595
|
return entry;
|
|
1704
1596
|
});
|
|
1705
1597
|
};
|