@aws-sdk/client-compute-optimizer 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +246 -311
- package/dist-es/protocols/Aws_json1_0.js +190 -255
- package/package.json +26 -26
|
@@ -205,8 +205,7 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
205
205
|
body: await parseBody(output.body, context),
|
|
206
206
|
};
|
|
207
207
|
let response;
|
|
208
|
-
|
|
209
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
210
209
|
switch (errorCode) {
|
|
211
210
|
case "AccessDeniedException":
|
|
212
211
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -234,10 +233,12 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
234
233
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
235
234
|
default:
|
|
236
235
|
const parsedBody = parsedOutput.body;
|
|
236
|
+
const $metadata = deserializeMetadata(output);
|
|
237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
237
238
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
239
240
|
$fault: "client",
|
|
240
|
-
$metadata
|
|
241
|
+
$metadata,
|
|
241
242
|
});
|
|
242
243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
243
244
|
}
|
|
@@ -262,8 +263,7 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
262
263
|
body: await parseBody(output.body, context),
|
|
263
264
|
};
|
|
264
265
|
let response;
|
|
265
|
-
|
|
266
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
267
267
|
switch (errorCode) {
|
|
268
268
|
case "AccessDeniedException":
|
|
269
269
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -291,10 +291,12 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
291
291
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
292
292
|
default:
|
|
293
293
|
const parsedBody = parsedOutput.body;
|
|
294
|
+
const $metadata = deserializeMetadata(output);
|
|
295
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
294
296
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
295
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
296
298
|
$fault: "client",
|
|
297
|
-
$metadata
|
|
299
|
+
$metadata,
|
|
298
300
|
});
|
|
299
301
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
300
302
|
}
|
|
@@ -319,8 +321,7 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
319
321
|
body: await parseBody(output.body, context),
|
|
320
322
|
};
|
|
321
323
|
let response;
|
|
322
|
-
|
|
323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
325
|
switch (errorCode) {
|
|
325
326
|
case "AccessDeniedException":
|
|
326
327
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -348,10 +349,12 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
348
349
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
349
350
|
default:
|
|
350
351
|
const parsedBody = parsedOutput.body;
|
|
352
|
+
const $metadata = deserializeMetadata(output);
|
|
353
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
351
354
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
352
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
355
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
353
356
|
$fault: "client",
|
|
354
|
-
$metadata
|
|
357
|
+
$metadata,
|
|
355
358
|
});
|
|
356
359
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
357
360
|
}
|
|
@@ -376,8 +379,7 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
376
379
|
body: await parseBody(output.body, context),
|
|
377
380
|
};
|
|
378
381
|
let response;
|
|
379
|
-
|
|
380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
383
|
switch (errorCode) {
|
|
382
384
|
case "AccessDeniedException":
|
|
383
385
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -405,10 +407,12 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
405
407
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
406
408
|
default:
|
|
407
409
|
const parsedBody = parsedOutput.body;
|
|
410
|
+
const $metadata = deserializeMetadata(output);
|
|
411
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
408
412
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
413
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
410
414
|
$fault: "client",
|
|
411
|
-
$metadata
|
|
415
|
+
$metadata,
|
|
412
416
|
});
|
|
413
417
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
414
418
|
}
|
|
@@ -433,8 +437,7 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
433
437
|
body: await parseBody(output.body, context),
|
|
434
438
|
};
|
|
435
439
|
let response;
|
|
436
|
-
|
|
437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
441
|
switch (errorCode) {
|
|
439
442
|
case "AccessDeniedException":
|
|
440
443
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -462,10 +465,12 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
462
465
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
463
466
|
default:
|
|
464
467
|
const parsedBody = parsedOutput.body;
|
|
468
|
+
const $metadata = deserializeMetadata(output);
|
|
469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
465
470
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
467
472
|
$fault: "client",
|
|
468
|
-
$metadata
|
|
473
|
+
$metadata,
|
|
469
474
|
});
|
|
470
475
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
471
476
|
}
|
|
@@ -490,8 +495,7 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
490
495
|
body: await parseBody(output.body, context),
|
|
491
496
|
};
|
|
492
497
|
let response;
|
|
493
|
-
|
|
494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
499
|
switch (errorCode) {
|
|
496
500
|
case "AccessDeniedException":
|
|
497
501
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -519,10 +523,12 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
519
523
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
520
524
|
default:
|
|
521
525
|
const parsedBody = parsedOutput.body;
|
|
526
|
+
const $metadata = deserializeMetadata(output);
|
|
527
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
522
528
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
529
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
524
530
|
$fault: "client",
|
|
525
|
-
$metadata
|
|
531
|
+
$metadata,
|
|
526
532
|
});
|
|
527
533
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
528
534
|
}
|
|
@@ -547,8 +553,7 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
547
553
|
body: await parseBody(output.body, context),
|
|
548
554
|
};
|
|
549
555
|
let response;
|
|
550
|
-
|
|
551
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
557
|
switch (errorCode) {
|
|
553
558
|
case "AccessDeniedException":
|
|
554
559
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -576,10 +581,12 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
576
581
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
577
582
|
default:
|
|
578
583
|
const parsedBody = parsedOutput.body;
|
|
584
|
+
const $metadata = deserializeMetadata(output);
|
|
585
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
579
586
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
580
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
587
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
581
588
|
$fault: "client",
|
|
582
|
-
$metadata
|
|
589
|
+
$metadata,
|
|
583
590
|
});
|
|
584
591
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
585
592
|
}
|
|
@@ -604,8 +611,7 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
604
611
|
body: await parseBody(output.body, context),
|
|
605
612
|
};
|
|
606
613
|
let response;
|
|
607
|
-
|
|
608
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
615
|
switch (errorCode) {
|
|
610
616
|
case "AccessDeniedException":
|
|
611
617
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -633,10 +639,12 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
633
639
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
634
640
|
default:
|
|
635
641
|
const parsedBody = parsedOutput.body;
|
|
642
|
+
const $metadata = deserializeMetadata(output);
|
|
643
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
636
644
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
645
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
638
646
|
$fault: "client",
|
|
639
|
-
$metadata
|
|
647
|
+
$metadata,
|
|
640
648
|
});
|
|
641
649
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
642
650
|
}
|
|
@@ -661,8 +669,7 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
661
669
|
body: await parseBody(output.body, context),
|
|
662
670
|
};
|
|
663
671
|
let response;
|
|
664
|
-
|
|
665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
673
|
switch (errorCode) {
|
|
667
674
|
case "AccessDeniedException":
|
|
668
675
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -690,10 +697,12 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
690
697
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
691
698
|
default:
|
|
692
699
|
const parsedBody = parsedOutput.body;
|
|
700
|
+
const $metadata = deserializeMetadata(output);
|
|
701
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
693
702
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
695
704
|
$fault: "client",
|
|
696
|
-
$metadata
|
|
705
|
+
$metadata,
|
|
697
706
|
});
|
|
698
707
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
699
708
|
}
|
|
@@ -718,8 +727,7 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
718
727
|
body: await parseBody(output.body, context),
|
|
719
728
|
};
|
|
720
729
|
let response;
|
|
721
|
-
|
|
722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
731
|
switch (errorCode) {
|
|
724
732
|
case "AccessDeniedException":
|
|
725
733
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -747,10 +755,12 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
747
755
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
748
756
|
default:
|
|
749
757
|
const parsedBody = parsedOutput.body;
|
|
758
|
+
const $metadata = deserializeMetadata(output);
|
|
759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
750
760
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
751
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
752
762
|
$fault: "client",
|
|
753
|
-
$metadata
|
|
763
|
+
$metadata,
|
|
754
764
|
});
|
|
755
765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
756
766
|
}
|
|
@@ -775,8 +785,7 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
775
785
|
body: await parseBody(output.body, context),
|
|
776
786
|
};
|
|
777
787
|
let response;
|
|
778
|
-
|
|
779
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
789
|
switch (errorCode) {
|
|
781
790
|
case "AccessDeniedException":
|
|
782
791
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -804,10 +813,12 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
804
813
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
805
814
|
default:
|
|
806
815
|
const parsedBody = parsedOutput.body;
|
|
816
|
+
const $metadata = deserializeMetadata(output);
|
|
817
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
807
818
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
808
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
819
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
809
820
|
$fault: "client",
|
|
810
|
-
$metadata
|
|
821
|
+
$metadata,
|
|
811
822
|
});
|
|
812
823
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
813
824
|
}
|
|
@@ -832,8 +843,7 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
832
843
|
body: await parseBody(output.body, context),
|
|
833
844
|
};
|
|
834
845
|
let response;
|
|
835
|
-
|
|
836
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
847
|
switch (errorCode) {
|
|
838
848
|
case "AccessDeniedException":
|
|
839
849
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -855,10 +865,12 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
855
865
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
856
866
|
default:
|
|
857
867
|
const parsedBody = parsedOutput.body;
|
|
868
|
+
const $metadata = deserializeMetadata(output);
|
|
869
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
858
870
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
871
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
860
872
|
$fault: "client",
|
|
861
|
-
$metadata
|
|
873
|
+
$metadata,
|
|
862
874
|
});
|
|
863
875
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
864
876
|
}
|
|
@@ -883,8 +895,7 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
883
895
|
body: await parseBody(output.body, context),
|
|
884
896
|
};
|
|
885
897
|
let response;
|
|
886
|
-
|
|
887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
899
|
switch (errorCode) {
|
|
889
900
|
case "AccessDeniedException":
|
|
890
901
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -906,10 +917,12 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
906
917
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
907
918
|
default:
|
|
908
919
|
const parsedBody = parsedOutput.body;
|
|
920
|
+
const $metadata = deserializeMetadata(output);
|
|
921
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
909
922
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
910
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
911
924
|
$fault: "client",
|
|
912
|
-
$metadata
|
|
925
|
+
$metadata,
|
|
913
926
|
});
|
|
914
927
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
915
928
|
}
|
|
@@ -934,8 +947,7 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
934
947
|
body: await parseBody(output.body, context),
|
|
935
948
|
};
|
|
936
949
|
let response;
|
|
937
|
-
|
|
938
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
951
|
switch (errorCode) {
|
|
940
952
|
case "AccessDeniedException":
|
|
941
953
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -963,10 +975,12 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
963
975
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
964
976
|
default:
|
|
965
977
|
const parsedBody = parsedOutput.body;
|
|
978
|
+
const $metadata = deserializeMetadata(output);
|
|
979
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
966
980
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
967
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
981
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
968
982
|
$fault: "client",
|
|
969
|
-
$metadata
|
|
983
|
+
$metadata,
|
|
970
984
|
});
|
|
971
985
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
972
986
|
}
|
|
@@ -991,8 +1005,7 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
991
1005
|
body: await parseBody(output.body, context),
|
|
992
1006
|
};
|
|
993
1007
|
let response;
|
|
994
|
-
|
|
995
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
1009
|
switch (errorCode) {
|
|
997
1010
|
case "AccessDeniedException":
|
|
998
1011
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -1020,10 +1033,12 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1020
1033
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1021
1034
|
default:
|
|
1022
1035
|
const parsedBody = parsedOutput.body;
|
|
1036
|
+
const $metadata = deserializeMetadata(output);
|
|
1037
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1023
1038
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1024
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1039
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1025
1040
|
$fault: "client",
|
|
1026
|
-
$metadata
|
|
1041
|
+
$metadata,
|
|
1027
1042
|
});
|
|
1028
1043
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1029
1044
|
}
|
|
@@ -1048,8 +1063,7 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1048
1063
|
body: await parseBody(output.body, context),
|
|
1049
1064
|
};
|
|
1050
1065
|
let response;
|
|
1051
|
-
|
|
1052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
1067
|
switch (errorCode) {
|
|
1054
1068
|
case "AccessDeniedException":
|
|
1055
1069
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -1074,10 +1088,12 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1074
1088
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1075
1089
|
default:
|
|
1076
1090
|
const parsedBody = parsedOutput.body;
|
|
1091
|
+
const $metadata = deserializeMetadata(output);
|
|
1092
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1077
1093
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1078
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1094
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1079
1095
|
$fault: "client",
|
|
1080
|
-
$metadata
|
|
1096
|
+
$metadata,
|
|
1081
1097
|
});
|
|
1082
1098
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1083
1099
|
}
|
|
@@ -1102,8 +1118,7 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1102
1118
|
body: await parseBody(output.body, context),
|
|
1103
1119
|
};
|
|
1104
1120
|
let response;
|
|
1105
|
-
|
|
1106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1122
|
switch (errorCode) {
|
|
1108
1123
|
case "AccessDeniedException":
|
|
1109
1124
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -1131,10 +1146,12 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1131
1146
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1132
1147
|
default:
|
|
1133
1148
|
const parsedBody = parsedOutput.body;
|
|
1149
|
+
const $metadata = deserializeMetadata(output);
|
|
1150
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1134
1151
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1135
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1152
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1136
1153
|
$fault: "client",
|
|
1137
|
-
$metadata
|
|
1154
|
+
$metadata,
|
|
1138
1155
|
});
|
|
1139
1156
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1140
1157
|
}
|
|
@@ -1159,8 +1176,7 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1159
1176
|
body: await parseBody(output.body, context),
|
|
1160
1177
|
};
|
|
1161
1178
|
let response;
|
|
1162
|
-
|
|
1163
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
1180
|
switch (errorCode) {
|
|
1165
1181
|
case "AccessDeniedException":
|
|
1166
1182
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -1182,10 +1198,12 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1182
1198
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1183
1199
|
default:
|
|
1184
1200
|
const parsedBody = parsedOutput.body;
|
|
1201
|
+
const $metadata = deserializeMetadata(output);
|
|
1202
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1185
1203
|
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1204
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1187
1205
|
$fault: "client",
|
|
1188
|
-
$metadata
|
|
1206
|
+
$metadata,
|
|
1189
1207
|
});
|
|
1190
1208
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1191
1209
|
}
|
|
@@ -1303,30 +1321,25 @@ const serializeAws_json1_0CpuVendorArchitectures = (input, context) => {
|
|
|
1303
1321
|
};
|
|
1304
1322
|
const serializeAws_json1_0DeleteRecommendationPreferencesRequest = (input, context) => {
|
|
1305
1323
|
return {
|
|
1306
|
-
...(input.recommendationPreferenceNames
|
|
1307
|
-
input.recommendationPreferenceNames !== null && {
|
|
1324
|
+
...(input.recommendationPreferenceNames != null && {
|
|
1308
1325
|
recommendationPreferenceNames: serializeAws_json1_0RecommendationPreferenceNames(input.recommendationPreferenceNames, context),
|
|
1309
1326
|
}),
|
|
1310
|
-
...(input.resourceType
|
|
1311
|
-
...(input.scope
|
|
1312
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1327
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1328
|
+
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1313
1329
|
};
|
|
1314
1330
|
};
|
|
1315
1331
|
const serializeAws_json1_0DescribeRecommendationExportJobsRequest = (input, context) => {
|
|
1316
1332
|
return {
|
|
1317
|
-
...(input.filters
|
|
1318
|
-
|
|
1319
|
-
...(input.
|
|
1320
|
-
|
|
1321
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
1322
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1333
|
+
...(input.filters != null && { filters: serializeAws_json1_0JobFilters(input.filters, context) }),
|
|
1334
|
+
...(input.jobIds != null && { jobIds: serializeAws_json1_0JobIds(input.jobIds, context) }),
|
|
1335
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1336
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1323
1337
|
};
|
|
1324
1338
|
};
|
|
1325
1339
|
const serializeAws_json1_0EBSFilter = (input, context) => {
|
|
1326
1340
|
return {
|
|
1327
|
-
...(input.name
|
|
1328
|
-
...(input.values
|
|
1329
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1341
|
+
...(input.name != null && { name: input.name }),
|
|
1342
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1330
1343
|
};
|
|
1331
1344
|
};
|
|
1332
1345
|
const serializeAws_json1_0EBSFilters = (input, context) => {
|
|
@@ -1341,9 +1354,8 @@ const serializeAws_json1_0EBSFilters = (input, context) => {
|
|
|
1341
1354
|
};
|
|
1342
1355
|
const serializeAws_json1_0EnrollmentFilter = (input, context) => {
|
|
1343
1356
|
return {
|
|
1344
|
-
...(input.name
|
|
1345
|
-
...(input.values
|
|
1346
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1357
|
+
...(input.name != null && { name: input.name }),
|
|
1358
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1347
1359
|
};
|
|
1348
1360
|
};
|
|
1349
1361
|
const serializeAws_json1_0EnrollmentFilters = (input, context) => {
|
|
@@ -1398,95 +1410,72 @@ const serializeAws_json1_0ExportableVolumeFields = (input, context) => {
|
|
|
1398
1410
|
};
|
|
1399
1411
|
const serializeAws_json1_0ExportAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1400
1412
|
return {
|
|
1401
|
-
...(input.accountIds
|
|
1402
|
-
|
|
1403
|
-
...(input.fieldsToExport !== undefined &&
|
|
1404
|
-
input.fieldsToExport !== null && {
|
|
1413
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1414
|
+
...(input.fieldsToExport != null && {
|
|
1405
1415
|
fieldsToExport: serializeAws_json1_0ExportableAutoScalingGroupFields(input.fieldsToExport, context),
|
|
1406
1416
|
}),
|
|
1407
|
-
...(input.fileFormat
|
|
1408
|
-
...(input.filters
|
|
1409
|
-
|
|
1410
|
-
...(input.
|
|
1411
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1412
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1413
|
-
input.recommendationPreferences !== null && {
|
|
1417
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1418
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1419
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1420
|
+
...(input.recommendationPreferences != null && {
|
|
1414
1421
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1415
1422
|
}),
|
|
1416
|
-
...(input.s3DestinationConfig
|
|
1417
|
-
input.s3DestinationConfig !== null && {
|
|
1423
|
+
...(input.s3DestinationConfig != null && {
|
|
1418
1424
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1419
1425
|
}),
|
|
1420
1426
|
};
|
|
1421
1427
|
};
|
|
1422
1428
|
const serializeAws_json1_0ExportEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1423
1429
|
return {
|
|
1424
|
-
...(input.accountIds
|
|
1425
|
-
|
|
1426
|
-
...(input.fieldsToExport !== undefined &&
|
|
1427
|
-
input.fieldsToExport !== null && {
|
|
1430
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1431
|
+
...(input.fieldsToExport != null && {
|
|
1428
1432
|
fieldsToExport: serializeAws_json1_0ExportableVolumeFields(input.fieldsToExport, context),
|
|
1429
1433
|
}),
|
|
1430
|
-
...(input.fileFormat
|
|
1431
|
-
...(input.filters
|
|
1432
|
-
|
|
1433
|
-
...(input.
|
|
1434
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1435
|
-
...(input.s3DestinationConfig !== undefined &&
|
|
1436
|
-
input.s3DestinationConfig !== null && {
|
|
1434
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1435
|
+
...(input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) }),
|
|
1436
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1437
|
+
...(input.s3DestinationConfig != null && {
|
|
1437
1438
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1438
1439
|
}),
|
|
1439
1440
|
};
|
|
1440
1441
|
};
|
|
1441
1442
|
const serializeAws_json1_0ExportEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1442
1443
|
return {
|
|
1443
|
-
...(input.accountIds
|
|
1444
|
-
|
|
1445
|
-
...(input.fieldsToExport !== undefined &&
|
|
1446
|
-
input.fieldsToExport !== null && {
|
|
1444
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1445
|
+
...(input.fieldsToExport != null && {
|
|
1447
1446
|
fieldsToExport: serializeAws_json1_0ExportableInstanceFields(input.fieldsToExport, context),
|
|
1448
1447
|
}),
|
|
1449
|
-
...(input.fileFormat
|
|
1450
|
-
...(input.filters
|
|
1451
|
-
|
|
1452
|
-
...(input.
|
|
1453
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1454
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1455
|
-
input.recommendationPreferences !== null && {
|
|
1448
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1449
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1450
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1451
|
+
...(input.recommendationPreferences != null && {
|
|
1456
1452
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1457
1453
|
}),
|
|
1458
|
-
...(input.s3DestinationConfig
|
|
1459
|
-
input.s3DestinationConfig !== null && {
|
|
1454
|
+
...(input.s3DestinationConfig != null && {
|
|
1460
1455
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1461
1456
|
}),
|
|
1462
1457
|
};
|
|
1463
1458
|
};
|
|
1464
1459
|
const serializeAws_json1_0ExportLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1465
1460
|
return {
|
|
1466
|
-
...(input.accountIds
|
|
1467
|
-
|
|
1468
|
-
...(input.fieldsToExport !== undefined &&
|
|
1469
|
-
input.fieldsToExport !== null && {
|
|
1461
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1462
|
+
...(input.fieldsToExport != null && {
|
|
1470
1463
|
fieldsToExport: serializeAws_json1_0ExportableLambdaFunctionFields(input.fieldsToExport, context),
|
|
1471
1464
|
}),
|
|
1472
|
-
...(input.fileFormat
|
|
1473
|
-
...(input.filters
|
|
1474
|
-
input.filters !== null && {
|
|
1465
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1466
|
+
...(input.filters != null && {
|
|
1475
1467
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1476
1468
|
}),
|
|
1477
|
-
...(input.includeMemberAccounts
|
|
1478
|
-
|
|
1479
|
-
...(input.s3DestinationConfig !== undefined &&
|
|
1480
|
-
input.s3DestinationConfig !== null && {
|
|
1469
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1470
|
+
...(input.s3DestinationConfig != null && {
|
|
1481
1471
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1482
1472
|
}),
|
|
1483
1473
|
};
|
|
1484
1474
|
};
|
|
1485
1475
|
const serializeAws_json1_0Filter = (input, context) => {
|
|
1486
1476
|
return {
|
|
1487
|
-
...(input.name
|
|
1488
|
-
...(input.values
|
|
1489
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1477
|
+
...(input.name != null && { name: input.name }),
|
|
1478
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1490
1479
|
};
|
|
1491
1480
|
};
|
|
1492
1481
|
const serializeAws_json1_0Filters = (input, context) => {
|
|
@@ -1521,76 +1510,61 @@ const serializeAws_json1_0FunctionArns = (input, context) => {
|
|
|
1521
1510
|
};
|
|
1522
1511
|
const serializeAws_json1_0GetAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1523
1512
|
return {
|
|
1524
|
-
...(input.accountIds
|
|
1525
|
-
|
|
1526
|
-
...(input.autoScalingGroupArns !== undefined &&
|
|
1527
|
-
input.autoScalingGroupArns !== null && {
|
|
1513
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1514
|
+
...(input.autoScalingGroupArns != null && {
|
|
1528
1515
|
autoScalingGroupArns: serializeAws_json1_0AutoScalingGroupArns(input.autoScalingGroupArns, context),
|
|
1529
1516
|
}),
|
|
1530
|
-
...(input.filters
|
|
1531
|
-
|
|
1532
|
-
...(input.
|
|
1533
|
-
...(input.
|
|
1534
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1535
|
-
input.recommendationPreferences !== null && {
|
|
1517
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1518
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1519
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1520
|
+
...(input.recommendationPreferences != null && {
|
|
1536
1521
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1537
1522
|
}),
|
|
1538
1523
|
};
|
|
1539
1524
|
};
|
|
1540
1525
|
const serializeAws_json1_0GetEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1541
1526
|
return {
|
|
1542
|
-
...(input.accountIds
|
|
1543
|
-
|
|
1544
|
-
...(input.
|
|
1545
|
-
|
|
1546
|
-
...(input.
|
|
1547
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1548
|
-
...(input.volumeArns !== undefined &&
|
|
1549
|
-
input.volumeArns !== null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }),
|
|
1527
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1528
|
+
...(input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) }),
|
|
1529
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1530
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1531
|
+
...(input.volumeArns != null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }),
|
|
1550
1532
|
};
|
|
1551
1533
|
};
|
|
1552
1534
|
const serializeAws_json1_0GetEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1553
1535
|
return {
|
|
1554
|
-
...(input.accountIds
|
|
1555
|
-
|
|
1556
|
-
...(input.
|
|
1557
|
-
|
|
1558
|
-
...(input.
|
|
1559
|
-
|
|
1560
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
1561
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1562
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1563
|
-
input.recommendationPreferences !== null && {
|
|
1536
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1537
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1538
|
+
...(input.instanceArns != null && { instanceArns: serializeAws_json1_0InstanceArns(input.instanceArns, context) }),
|
|
1539
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1540
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1541
|
+
...(input.recommendationPreferences != null && {
|
|
1564
1542
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1565
1543
|
}),
|
|
1566
1544
|
};
|
|
1567
1545
|
};
|
|
1568
1546
|
const serializeAws_json1_0GetEC2RecommendationProjectedMetricsRequest = (input, context) => {
|
|
1569
1547
|
return {
|
|
1570
|
-
...(input.endTime
|
|
1571
|
-
|
|
1572
|
-
...(input.
|
|
1573
|
-
...(input.
|
|
1574
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1575
|
-
input.recommendationPreferences !== null && {
|
|
1548
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1549
|
+
...(input.instanceArn != null && { instanceArn: input.instanceArn }),
|
|
1550
|
+
...(input.period != null && { period: input.period }),
|
|
1551
|
+
...(input.recommendationPreferences != null && {
|
|
1576
1552
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1577
1553
|
}),
|
|
1578
|
-
...(input.startTime
|
|
1579
|
-
|
|
1580
|
-
...(input.stat !== undefined && input.stat !== null && { stat: input.stat }),
|
|
1554
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1555
|
+
...(input.stat != null && { stat: input.stat }),
|
|
1581
1556
|
};
|
|
1582
1557
|
};
|
|
1583
1558
|
const serializeAws_json1_0GetEffectiveRecommendationPreferencesRequest = (input, context) => {
|
|
1584
1559
|
return {
|
|
1585
|
-
...(input.resourceArn
|
|
1560
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1586
1561
|
};
|
|
1587
1562
|
};
|
|
1588
1563
|
const serializeAws_json1_0GetEnrollmentStatusesForOrganizationRequest = (input, context) => {
|
|
1589
1564
|
return {
|
|
1590
|
-
...(input.filters
|
|
1591
|
-
|
|
1592
|
-
...(input.
|
|
1593
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1565
|
+
...(input.filters != null && { filters: serializeAws_json1_0EnrollmentFilters(input.filters, context) }),
|
|
1566
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1567
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1594
1568
|
};
|
|
1595
1569
|
};
|
|
1596
1570
|
const serializeAws_json1_0GetEnrollmentStatusRequest = (input, context) => {
|
|
@@ -1598,33 +1572,28 @@ const serializeAws_json1_0GetEnrollmentStatusRequest = (input, context) => {
|
|
|
1598
1572
|
};
|
|
1599
1573
|
const serializeAws_json1_0GetLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1600
1574
|
return {
|
|
1601
|
-
...(input.accountIds
|
|
1602
|
-
|
|
1603
|
-
...(input.filters !== undefined &&
|
|
1604
|
-
input.filters !== null && {
|
|
1575
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1576
|
+
...(input.filters != null && {
|
|
1605
1577
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1606
1578
|
}),
|
|
1607
|
-
...(input.functionArns
|
|
1608
|
-
|
|
1609
|
-
...(input.
|
|
1610
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1579
|
+
...(input.functionArns != null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) }),
|
|
1580
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1581
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1611
1582
|
};
|
|
1612
1583
|
};
|
|
1613
1584
|
const serializeAws_json1_0GetRecommendationPreferencesRequest = (input, context) => {
|
|
1614
1585
|
return {
|
|
1615
|
-
...(input.maxResults
|
|
1616
|
-
...(input.nextToken
|
|
1617
|
-
...(input.resourceType
|
|
1618
|
-
...(input.scope
|
|
1619
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1586
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1587
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1588
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1589
|
+
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1620
1590
|
};
|
|
1621
1591
|
};
|
|
1622
1592
|
const serializeAws_json1_0GetRecommendationSummariesRequest = (input, context) => {
|
|
1623
1593
|
return {
|
|
1624
|
-
...(input.accountIds
|
|
1625
|
-
|
|
1626
|
-
...(input.
|
|
1627
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1594
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1595
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1596
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1628
1597
|
};
|
|
1629
1598
|
};
|
|
1630
1599
|
const serializeAws_json1_0InstanceArns = (input, context) => {
|
|
@@ -1639,9 +1608,8 @@ const serializeAws_json1_0InstanceArns = (input, context) => {
|
|
|
1639
1608
|
};
|
|
1640
1609
|
const serializeAws_json1_0JobFilter = (input, context) => {
|
|
1641
1610
|
return {
|
|
1642
|
-
...(input.name
|
|
1643
|
-
...(input.values
|
|
1644
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1611
|
+
...(input.name != null && { name: input.name }),
|
|
1612
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1645
1613
|
};
|
|
1646
1614
|
};
|
|
1647
1615
|
const serializeAws_json1_0JobFilters = (input, context) => {
|
|
@@ -1666,9 +1634,8 @@ const serializeAws_json1_0JobIds = (input, context) => {
|
|
|
1666
1634
|
};
|
|
1667
1635
|
const serializeAws_json1_0LambdaFunctionRecommendationFilter = (input, context) => {
|
|
1668
1636
|
return {
|
|
1669
|
-
...(input.name
|
|
1670
|
-
...(input.values
|
|
1671
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1637
|
+
...(input.name != null && { name: input.name }),
|
|
1638
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1672
1639
|
};
|
|
1673
1640
|
};
|
|
1674
1641
|
const serializeAws_json1_0LambdaFunctionRecommendationFilters = (input, context) => {
|
|
@@ -1683,15 +1650,12 @@ const serializeAws_json1_0LambdaFunctionRecommendationFilters = (input, context)
|
|
|
1683
1650
|
};
|
|
1684
1651
|
const serializeAws_json1_0PutRecommendationPreferencesRequest = (input, context) => {
|
|
1685
1652
|
return {
|
|
1686
|
-
...(input.enhancedInfrastructureMetrics
|
|
1687
|
-
input.enhancedInfrastructureMetrics !== null && {
|
|
1653
|
+
...(input.enhancedInfrastructureMetrics != null && {
|
|
1688
1654
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1689
1655
|
}),
|
|
1690
|
-
...(input.inferredWorkloadTypes
|
|
1691
|
-
|
|
1692
|
-
...(input.
|
|
1693
|
-
...(input.scope !== undefined &&
|
|
1694
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1656
|
+
...(input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
1657
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1658
|
+
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1695
1659
|
};
|
|
1696
1660
|
};
|
|
1697
1661
|
const serializeAws_json1_0RecommendationPreferenceNames = (input, context) => {
|
|
@@ -1706,29 +1670,27 @@ const serializeAws_json1_0RecommendationPreferenceNames = (input, context) => {
|
|
|
1706
1670
|
};
|
|
1707
1671
|
const serializeAws_json1_0RecommendationPreferences = (input, context) => {
|
|
1708
1672
|
return {
|
|
1709
|
-
...(input.cpuVendorArchitectures
|
|
1710
|
-
input.cpuVendorArchitectures !== null && {
|
|
1673
|
+
...(input.cpuVendorArchitectures != null && {
|
|
1711
1674
|
cpuVendorArchitectures: serializeAws_json1_0CpuVendorArchitectures(input.cpuVendorArchitectures, context),
|
|
1712
1675
|
}),
|
|
1713
1676
|
};
|
|
1714
1677
|
};
|
|
1715
1678
|
const serializeAws_json1_0S3DestinationConfig = (input, context) => {
|
|
1716
1679
|
return {
|
|
1717
|
-
...(input.bucket
|
|
1718
|
-
...(input.keyPrefix
|
|
1680
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
1681
|
+
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
1719
1682
|
};
|
|
1720
1683
|
};
|
|
1721
1684
|
const serializeAws_json1_0Scope = (input, context) => {
|
|
1722
1685
|
return {
|
|
1723
|
-
...(input.name
|
|
1724
|
-
...(input.value
|
|
1686
|
+
...(input.name != null && { name: input.name }),
|
|
1687
|
+
...(input.value != null && { value: input.value }),
|
|
1725
1688
|
};
|
|
1726
1689
|
};
|
|
1727
1690
|
const serializeAws_json1_0UpdateEnrollmentStatusRequest = (input, context) => {
|
|
1728
1691
|
return {
|
|
1729
|
-
...(input.includeMemberAccounts
|
|
1730
|
-
|
|
1731
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
1692
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1693
|
+
...(input.status != null && { status: input.status }),
|
|
1732
1694
|
};
|
|
1733
1695
|
};
|
|
1734
1696
|
const serializeAws_json1_0VolumeArns = (input, context) => {
|
|
@@ -1749,7 +1711,7 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
|
1749
1711
|
const deserializeAws_json1_0AccountEnrollmentStatus = (output, context) => {
|
|
1750
1712
|
return {
|
|
1751
1713
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
1752
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
1714
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
1753
1715
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTimestamp)))
|
|
1754
1716
|
: undefined,
|
|
1755
1717
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -1780,41 +1742,41 @@ const deserializeAws_json1_0AutoScalingGroupRecommendation = (output, context) =
|
|
|
1780
1742
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
1781
1743
|
autoScalingGroupArn: (0, smithy_client_1.expectString)(output.autoScalingGroupArn),
|
|
1782
1744
|
autoScalingGroupName: (0, smithy_client_1.expectString)(output.autoScalingGroupName),
|
|
1783
|
-
currentConfiguration: output.currentConfiguration
|
|
1745
|
+
currentConfiguration: output.currentConfiguration != null
|
|
1784
1746
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.currentConfiguration, context)
|
|
1785
1747
|
: undefined,
|
|
1786
1748
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
1787
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
1749
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
1788
1750
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
1789
1751
|
: undefined,
|
|
1790
1752
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
1791
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
1753
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
1792
1754
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
1793
1755
|
: undefined,
|
|
1794
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
1756
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
1795
1757
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
1796
1758
|
: undefined,
|
|
1797
1759
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
1798
|
-
recommendationOptions: output.recommendationOptions
|
|
1760
|
+
recommendationOptions: output.recommendationOptions != null
|
|
1799
1761
|
? deserializeAws_json1_0AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
1800
1762
|
: undefined,
|
|
1801
|
-
utilizationMetrics: output.utilizationMetrics
|
|
1763
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
1802
1764
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
1803
1765
|
: undefined,
|
|
1804
1766
|
};
|
|
1805
1767
|
};
|
|
1806
1768
|
const deserializeAws_json1_0AutoScalingGroupRecommendationOption = (output, context) => {
|
|
1807
1769
|
return {
|
|
1808
|
-
configuration: output.configuration
|
|
1770
|
+
configuration: output.configuration != null
|
|
1809
1771
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
1810
1772
|
: undefined,
|
|
1811
1773
|
migrationEffort: (0, smithy_client_1.expectString)(output.migrationEffort),
|
|
1812
1774
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
1813
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
1775
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
1814
1776
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
1815
1777
|
: undefined,
|
|
1816
1778
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
1817
|
-
savingsOpportunity: output.savingsOpportunity
|
|
1779
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
1818
1780
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
1819
1781
|
: undefined,
|
|
1820
1782
|
};
|
|
@@ -1866,7 +1828,7 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesResponse = (output, c
|
|
|
1866
1828
|
const deserializeAws_json1_0DescribeRecommendationExportJobsResponse = (output, context) => {
|
|
1867
1829
|
return {
|
|
1868
1830
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1869
|
-
recommendationExportJobs: output.recommendationExportJobs
|
|
1831
|
+
recommendationExportJobs: output.recommendationExportJobs != null
|
|
1870
1832
|
? deserializeAws_json1_0RecommendationExportJobs(output.recommendationExportJobs, context)
|
|
1871
1833
|
: undefined,
|
|
1872
1834
|
};
|
|
@@ -1891,7 +1853,7 @@ const deserializeAws_json1_0EBSUtilizationMetrics = (output, context) => {
|
|
|
1891
1853
|
};
|
|
1892
1854
|
const deserializeAws_json1_0EffectiveRecommendationPreferences = (output, context) => {
|
|
1893
1855
|
return {
|
|
1894
|
-
cpuVendorArchitectures: output.cpuVendorArchitectures
|
|
1856
|
+
cpuVendorArchitectures: output.cpuVendorArchitectures != null
|
|
1895
1857
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
1896
1858
|
: undefined,
|
|
1897
1859
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
@@ -1907,70 +1869,54 @@ const deserializeAws_json1_0EstimatedMonthlySavings = (output, context) => {
|
|
|
1907
1869
|
const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
1908
1870
|
return {
|
|
1909
1871
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1910
|
-
s3Destination: output.s3Destination
|
|
1911
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1912
|
-
: undefined,
|
|
1872
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1913
1873
|
};
|
|
1914
1874
|
};
|
|
1915
1875
|
const deserializeAws_json1_0ExportDestination = (output, context) => {
|
|
1916
1876
|
return {
|
|
1917
|
-
s3: output.s3
|
|
1918
|
-
? deserializeAws_json1_0S3Destination(output.s3, context)
|
|
1919
|
-
: undefined,
|
|
1877
|
+
s3: output.s3 != null ? deserializeAws_json1_0S3Destination(output.s3, context) : undefined,
|
|
1920
1878
|
};
|
|
1921
1879
|
};
|
|
1922
1880
|
const deserializeAws_json1_0ExportEBSVolumeRecommendationsResponse = (output, context) => {
|
|
1923
1881
|
return {
|
|
1924
1882
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1925
|
-
s3Destination: output.s3Destination
|
|
1926
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1927
|
-
: undefined,
|
|
1883
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1928
1884
|
};
|
|
1929
1885
|
};
|
|
1930
1886
|
const deserializeAws_json1_0ExportEC2InstanceRecommendationsResponse = (output, context) => {
|
|
1931
1887
|
return {
|
|
1932
1888
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1933
|
-
s3Destination: output.s3Destination
|
|
1934
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1935
|
-
: undefined,
|
|
1889
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1936
1890
|
};
|
|
1937
1891
|
};
|
|
1938
1892
|
const deserializeAws_json1_0ExportLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
1939
1893
|
return {
|
|
1940
1894
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1941
|
-
s3Destination: output.s3Destination
|
|
1942
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1943
|
-
: undefined,
|
|
1895
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1944
1896
|
};
|
|
1945
1897
|
};
|
|
1946
1898
|
const deserializeAws_json1_0GetAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
1947
1899
|
return {
|
|
1948
|
-
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations
|
|
1900
|
+
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
1949
1901
|
? deserializeAws_json1_0AutoScalingGroupRecommendations(output.autoScalingGroupRecommendations, context)
|
|
1950
1902
|
: undefined,
|
|
1951
|
-
errors: output.errors
|
|
1952
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
1953
|
-
: undefined,
|
|
1903
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
1954
1904
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1955
1905
|
};
|
|
1956
1906
|
};
|
|
1957
1907
|
const deserializeAws_json1_0GetEBSVolumeRecommendationsResponse = (output, context) => {
|
|
1958
1908
|
return {
|
|
1959
|
-
errors: output.errors
|
|
1960
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
1961
|
-
: undefined,
|
|
1909
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
1962
1910
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1963
|
-
volumeRecommendations: output.volumeRecommendations
|
|
1911
|
+
volumeRecommendations: output.volumeRecommendations != null
|
|
1964
1912
|
? deserializeAws_json1_0VolumeRecommendations(output.volumeRecommendations, context)
|
|
1965
1913
|
: undefined,
|
|
1966
1914
|
};
|
|
1967
1915
|
};
|
|
1968
1916
|
const deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = (output, context) => {
|
|
1969
1917
|
return {
|
|
1970
|
-
errors: output.errors
|
|
1971
|
-
|
|
1972
|
-
: undefined,
|
|
1973
|
-
instanceRecommendations: output.instanceRecommendations !== undefined && output.instanceRecommendations !== null
|
|
1918
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
1919
|
+
instanceRecommendations: output.instanceRecommendations != null
|
|
1974
1920
|
? deserializeAws_json1_0InstanceRecommendations(output.instanceRecommendations, context)
|
|
1975
1921
|
: undefined,
|
|
1976
1922
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -1978,7 +1924,7 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = (output, con
|
|
|
1978
1924
|
};
|
|
1979
1925
|
const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsResponse = (output, context) => {
|
|
1980
1926
|
return {
|
|
1981
|
-
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics
|
|
1927
|
+
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
1982
1928
|
? deserializeAws_json1_0RecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
1983
1929
|
: undefined,
|
|
1984
1930
|
};
|
|
@@ -1990,7 +1936,7 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesResponse = (out
|
|
|
1990
1936
|
};
|
|
1991
1937
|
const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = (output, context) => {
|
|
1992
1938
|
return {
|
|
1993
|
-
accountEnrollmentStatuses: output.accountEnrollmentStatuses
|
|
1939
|
+
accountEnrollmentStatuses: output.accountEnrollmentStatuses != null
|
|
1994
1940
|
? deserializeAws_json1_0AccountEnrollmentStatuses(output.accountEnrollmentStatuses, context)
|
|
1995
1941
|
: undefined,
|
|
1996
1942
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -1998,7 +1944,7 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = (outp
|
|
|
1998
1944
|
};
|
|
1999
1945
|
const deserializeAws_json1_0GetEnrollmentStatusResponse = (output, context) => {
|
|
2000
1946
|
return {
|
|
2001
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
1947
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2002
1948
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTimestamp)))
|
|
2003
1949
|
: undefined,
|
|
2004
1950
|
memberAccountsEnrolled: (0, smithy_client_1.expectBoolean)(output.memberAccountsEnrolled),
|
|
@@ -2009,7 +1955,7 @@ const deserializeAws_json1_0GetEnrollmentStatusResponse = (output, context) => {
|
|
|
2009
1955
|
};
|
|
2010
1956
|
const deserializeAws_json1_0GetLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2011
1957
|
return {
|
|
2012
|
-
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations
|
|
1958
|
+
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations != null
|
|
2013
1959
|
? deserializeAws_json1_0LambdaFunctionRecommendations(output.lambdaFunctionRecommendations, context)
|
|
2014
1960
|
: undefined,
|
|
2015
1961
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -2036,7 +1982,7 @@ const deserializeAws_json1_0GetRecommendationErrors = (output, context) => {
|
|
|
2036
1982
|
const deserializeAws_json1_0GetRecommendationPreferencesResponse = (output, context) => {
|
|
2037
1983
|
return {
|
|
2038
1984
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2039
|
-
recommendationPreferencesDetails: output.recommendationPreferencesDetails
|
|
1985
|
+
recommendationPreferencesDetails: output.recommendationPreferencesDetails != null
|
|
2040
1986
|
? deserializeAws_json1_0RecommendationPreferencesDetails(output.recommendationPreferencesDetails, context)
|
|
2041
1987
|
: undefined,
|
|
2042
1988
|
};
|
|
@@ -2044,7 +1990,7 @@ const deserializeAws_json1_0GetRecommendationPreferencesResponse = (output, cont
|
|
|
2044
1990
|
const deserializeAws_json1_0GetRecommendationSummariesResponse = (output, context) => {
|
|
2045
1991
|
return {
|
|
2046
1992
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2047
|
-
recommendationSummaries: output.recommendationSummaries
|
|
1993
|
+
recommendationSummaries: output.recommendationSummaries != null
|
|
2048
1994
|
? deserializeAws_json1_0RecommendationSummaries(output.recommendationSummaries, context)
|
|
2049
1995
|
: undefined,
|
|
2050
1996
|
};
|
|
@@ -2065,29 +2011,29 @@ const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
|
2065
2011
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2066
2012
|
currentInstanceType: (0, smithy_client_1.expectString)(output.currentInstanceType),
|
|
2067
2013
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2068
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
2014
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2069
2015
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2070
2016
|
: undefined,
|
|
2071
2017
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2072
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2018
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2073
2019
|
? deserializeAws_json1_0InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2074
2020
|
: undefined,
|
|
2075
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
2021
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2076
2022
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2077
2023
|
: undefined,
|
|
2078
2024
|
instanceArn: (0, smithy_client_1.expectString)(output.instanceArn),
|
|
2079
2025
|
instanceName: (0, smithy_client_1.expectString)(output.instanceName),
|
|
2080
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2026
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2081
2027
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
2082
2028
|
: undefined,
|
|
2083
2029
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
2084
|
-
recommendationOptions: output.recommendationOptions
|
|
2030
|
+
recommendationOptions: output.recommendationOptions != null
|
|
2085
2031
|
? deserializeAws_json1_0RecommendationOptions(output.recommendationOptions, context)
|
|
2086
2032
|
: undefined,
|
|
2087
|
-
recommendationSources: output.recommendationSources
|
|
2033
|
+
recommendationSources: output.recommendationSources != null
|
|
2088
2034
|
? deserializeAws_json1_0RecommendationSources(output.recommendationSources, context)
|
|
2089
2035
|
: undefined,
|
|
2090
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2036
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2091
2037
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2092
2038
|
: undefined,
|
|
2093
2039
|
};
|
|
@@ -2108,14 +2054,14 @@ const deserializeAws_json1_0InstanceRecommendationOption = (output, context) =>
|
|
|
2108
2054
|
instanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
2109
2055
|
migrationEffort: (0, smithy_client_1.expectString)(output.migrationEffort),
|
|
2110
2056
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
2111
|
-
platformDifferences: output.platformDifferences
|
|
2057
|
+
platformDifferences: output.platformDifferences != null
|
|
2112
2058
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
2113
2059
|
: undefined,
|
|
2114
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2060
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2115
2061
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2116
2062
|
: undefined,
|
|
2117
2063
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2118
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2064
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2119
2065
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2120
2066
|
: undefined,
|
|
2121
2067
|
};
|
|
@@ -2162,11 +2108,11 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = (output, cont
|
|
|
2162
2108
|
const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = (output, context) => {
|
|
2163
2109
|
return {
|
|
2164
2110
|
memorySize: (0, smithy_client_1.expectInt32)(output.memorySize),
|
|
2165
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2111
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2166
2112
|
? deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2167
2113
|
: undefined,
|
|
2168
2114
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2169
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2115
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2170
2116
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2171
2117
|
: undefined,
|
|
2172
2118
|
};
|
|
@@ -2188,20 +2134,20 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (output, context) =>
|
|
|
2188
2134
|
currentMemorySize: (0, smithy_client_1.expectInt32)(output.currentMemorySize),
|
|
2189
2135
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2190
2136
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2191
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2137
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2192
2138
|
? deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2193
2139
|
: undefined,
|
|
2194
2140
|
functionArn: (0, smithy_client_1.expectString)(output.functionArn),
|
|
2195
2141
|
functionVersion: (0, smithy_client_1.expectString)(output.functionVersion),
|
|
2196
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2142
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2197
2143
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
2198
2144
|
: undefined,
|
|
2199
2145
|
lookbackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookbackPeriodInDays),
|
|
2200
|
-
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions
|
|
2146
|
+
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions != null
|
|
2201
2147
|
? deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2202
2148
|
: undefined,
|
|
2203
2149
|
numberOfInvocations: (0, smithy_client_1.expectLong)(output.numberOfInvocations),
|
|
2204
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2150
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2205
2151
|
? deserializeAws_json1_0LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2206
2152
|
: undefined,
|
|
2207
2153
|
};
|
|
@@ -2286,12 +2232,8 @@ const deserializeAws_json1_0PlatformDifferences = (output, context) => {
|
|
|
2286
2232
|
const deserializeAws_json1_0ProjectedMetric = (output, context) => {
|
|
2287
2233
|
return {
|
|
2288
2234
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2289
|
-
timestamps: output.timestamps
|
|
2290
|
-
|
|
2291
|
-
: undefined,
|
|
2292
|
-
values: output.values !== undefined && output.values !== null
|
|
2293
|
-
? deserializeAws_json1_0MetricValues(output.values, context)
|
|
2294
|
-
: undefined,
|
|
2235
|
+
timestamps: output.timestamps != null ? deserializeAws_json1_0Timestamps(output.timestamps, context) : undefined,
|
|
2236
|
+
values: output.values != null ? deserializeAws_json1_0MetricValues(output.values, context) : undefined,
|
|
2295
2237
|
};
|
|
2296
2238
|
};
|
|
2297
2239
|
const deserializeAws_json1_0ProjectedMetrics = (output, context) => {
|
|
@@ -2338,15 +2280,13 @@ const deserializeAws_json1_0ReasonCodeSummary = (output, context) => {
|
|
|
2338
2280
|
};
|
|
2339
2281
|
const deserializeAws_json1_0RecommendationExportJob = (output, context) => {
|
|
2340
2282
|
return {
|
|
2341
|
-
creationTimestamp: output.creationTimestamp
|
|
2283
|
+
creationTimestamp: output.creationTimestamp != null
|
|
2342
2284
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
|
|
2343
2285
|
: undefined,
|
|
2344
|
-
destination: output.destination
|
|
2345
|
-
? deserializeAws_json1_0ExportDestination(output.destination, context)
|
|
2346
|
-
: undefined,
|
|
2286
|
+
destination: output.destination != null ? deserializeAws_json1_0ExportDestination(output.destination, context) : undefined,
|
|
2347
2287
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
2348
2288
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2349
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
2289
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2350
2290
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTimestamp)))
|
|
2351
2291
|
: undefined,
|
|
2352
2292
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
@@ -2380,9 +2320,7 @@ const deserializeAws_json1_0RecommendationPreferencesDetail = (output, context)
|
|
|
2380
2320
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
2381
2321
|
inferredWorkloadTypes: (0, smithy_client_1.expectString)(output.inferredWorkloadTypes),
|
|
2382
2322
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2383
|
-
scope: output.scope
|
|
2384
|
-
? deserializeAws_json1_0Scope(output.scope, context)
|
|
2385
|
-
: undefined,
|
|
2323
|
+
scope: output.scope != null ? deserializeAws_json1_0Scope(output.scope, context) : undefined,
|
|
2386
2324
|
};
|
|
2387
2325
|
};
|
|
2388
2326
|
const deserializeAws_json1_0RecommendationPreferencesDetails = (output, context) => {
|
|
@@ -2427,21 +2365,19 @@ const deserializeAws_json1_0RecommendationSummaries = (output, context) => {
|
|
|
2427
2365
|
const deserializeAws_json1_0RecommendationSummary = (output, context) => {
|
|
2428
2366
|
return {
|
|
2429
2367
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2430
|
-
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings
|
|
2368
|
+
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings != null
|
|
2431
2369
|
? deserializeAws_json1_0CurrentPerformanceRiskRatings(output.currentPerformanceRiskRatings, context)
|
|
2432
2370
|
: undefined,
|
|
2433
2371
|
recommendationResourceType: (0, smithy_client_1.expectString)(output.recommendationResourceType),
|
|
2434
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2372
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2435
2373
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2436
2374
|
: undefined,
|
|
2437
|
-
summaries: output.summaries
|
|
2438
|
-
? deserializeAws_json1_0Summaries(output.summaries, context)
|
|
2439
|
-
: undefined,
|
|
2375
|
+
summaries: output.summaries != null ? deserializeAws_json1_0Summaries(output.summaries, context) : undefined,
|
|
2440
2376
|
};
|
|
2441
2377
|
};
|
|
2442
2378
|
const deserializeAws_json1_0RecommendedOptionProjectedMetric = (output, context) => {
|
|
2443
2379
|
return {
|
|
2444
|
-
projectedMetrics: output.projectedMetrics
|
|
2380
|
+
projectedMetrics: output.projectedMetrics != null
|
|
2445
2381
|
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
2446
2382
|
: undefined,
|
|
2447
2383
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
@@ -2473,7 +2409,7 @@ const deserializeAws_json1_0S3Destination = (output, context) => {
|
|
|
2473
2409
|
};
|
|
2474
2410
|
const deserializeAws_json1_0SavingsOpportunity = (output, context) => {
|
|
2475
2411
|
return {
|
|
2476
|
-
estimatedMonthlySavings: output.estimatedMonthlySavings
|
|
2412
|
+
estimatedMonthlySavings: output.estimatedMonthlySavings != null
|
|
2477
2413
|
? deserializeAws_json1_0EstimatedMonthlySavings(output.estimatedMonthlySavings, context)
|
|
2478
2414
|
: undefined,
|
|
2479
2415
|
savingsOpportunityPercentage: (0, smithy_client_1.limitedParseDouble)(output.savingsOpportunityPercentage),
|
|
@@ -2504,7 +2440,7 @@ const deserializeAws_json1_0Summaries = (output, context) => {
|
|
|
2504
2440
|
const deserializeAws_json1_0Summary = (output, context) => {
|
|
2505
2441
|
return {
|
|
2506
2442
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2507
|
-
reasonCodeSummaries: output.reasonCodeSummaries
|
|
2443
|
+
reasonCodeSummaries: output.reasonCodeSummaries != null
|
|
2508
2444
|
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
2509
2445
|
: undefined,
|
|
2510
2446
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
@@ -2563,32 +2499,32 @@ const deserializeAws_json1_0VolumeConfiguration = (output, context) => {
|
|
|
2563
2499
|
const deserializeAws_json1_0VolumeRecommendation = (output, context) => {
|
|
2564
2500
|
return {
|
|
2565
2501
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2566
|
-
currentConfiguration: output.currentConfiguration
|
|
2502
|
+
currentConfiguration: output.currentConfiguration != null
|
|
2567
2503
|
? deserializeAws_json1_0VolumeConfiguration(output.currentConfiguration, context)
|
|
2568
2504
|
: undefined,
|
|
2569
2505
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2570
2506
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2571
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2507
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2572
2508
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
2573
2509
|
: undefined,
|
|
2574
2510
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
2575
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2511
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2576
2512
|
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
2577
2513
|
: undefined,
|
|
2578
2514
|
volumeArn: (0, smithy_client_1.expectString)(output.volumeArn),
|
|
2579
|
-
volumeRecommendationOptions: output.volumeRecommendationOptions
|
|
2515
|
+
volumeRecommendationOptions: output.volumeRecommendationOptions != null
|
|
2580
2516
|
? deserializeAws_json1_0VolumeRecommendationOptions(output.volumeRecommendationOptions, context)
|
|
2581
2517
|
: undefined,
|
|
2582
2518
|
};
|
|
2583
2519
|
};
|
|
2584
2520
|
const deserializeAws_json1_0VolumeRecommendationOption = (output, context) => {
|
|
2585
2521
|
return {
|
|
2586
|
-
configuration: output.configuration
|
|
2522
|
+
configuration: output.configuration != null
|
|
2587
2523
|
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
2588
2524
|
: undefined,
|
|
2589
2525
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
2590
2526
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2591
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2527
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2592
2528
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2593
2529
|
: undefined,
|
|
2594
2530
|
};
|
|
@@ -2677,5 +2613,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2677
2613
|
if (data["__type"] !== undefined) {
|
|
2678
2614
|
return sanitizeErrorCode(data["__type"]);
|
|
2679
2615
|
}
|
|
2680
|
-
return "";
|
|
2681
2616
|
};
|