@aws-sdk/client-cost-explorer 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_1.js +530 -718
- package/dist-es/protocols/Aws_json1_1.js +376 -564
- package/package.json +26 -26
|
@@ -376,18 +376,19 @@ const deserializeAws_json1_1CreateAnomalyMonitorCommandError = async (output, co
|
|
|
376
376
|
body: await parseBody(output.body, context),
|
|
377
377
|
};
|
|
378
378
|
let response;
|
|
379
|
-
|
|
380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
380
|
switch (errorCode) {
|
|
382
381
|
case "LimitExceededException":
|
|
383
382
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
384
383
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
385
384
|
default:
|
|
386
385
|
const parsedBody = parsedOutput.body;
|
|
386
|
+
const $metadata = deserializeMetadata(output);
|
|
387
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
387
388
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
389
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
389
390
|
$fault: "client",
|
|
390
|
-
$metadata
|
|
391
|
+
$metadata,
|
|
391
392
|
});
|
|
392
393
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
393
394
|
}
|
|
@@ -412,8 +413,7 @@ const deserializeAws_json1_1CreateAnomalySubscriptionCommandError = async (outpu
|
|
|
412
413
|
body: await parseBody(output.body, context),
|
|
413
414
|
};
|
|
414
415
|
let response;
|
|
415
|
-
|
|
416
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
417
|
switch (errorCode) {
|
|
418
418
|
case "LimitExceededException":
|
|
419
419
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -423,10 +423,12 @@ const deserializeAws_json1_1CreateAnomalySubscriptionCommandError = async (outpu
|
|
|
423
423
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
424
424
|
default:
|
|
425
425
|
const parsedBody = parsedOutput.body;
|
|
426
|
+
const $metadata = deserializeMetadata(output);
|
|
427
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
426
428
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
427
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
429
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
428
430
|
$fault: "client",
|
|
429
|
-
$metadata
|
|
431
|
+
$metadata,
|
|
430
432
|
});
|
|
431
433
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
432
434
|
}
|
|
@@ -451,8 +453,7 @@ const deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = async (ou
|
|
|
451
453
|
body: await parseBody(output.body, context),
|
|
452
454
|
};
|
|
453
455
|
let response;
|
|
454
|
-
|
|
455
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
457
|
switch (errorCode) {
|
|
457
458
|
case "LimitExceededException":
|
|
458
459
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -462,10 +463,12 @@ const deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = async (ou
|
|
|
462
463
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
463
464
|
default:
|
|
464
465
|
const parsedBody = parsedOutput.body;
|
|
466
|
+
const $metadata = deserializeMetadata(output);
|
|
467
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
465
468
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
469
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
467
470
|
$fault: "client",
|
|
468
|
-
$metadata
|
|
471
|
+
$metadata,
|
|
469
472
|
});
|
|
470
473
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
471
474
|
}
|
|
@@ -490,8 +493,7 @@ const deserializeAws_json1_1DeleteAnomalyMonitorCommandError = async (output, co
|
|
|
490
493
|
body: await parseBody(output.body, context),
|
|
491
494
|
};
|
|
492
495
|
let response;
|
|
493
|
-
|
|
494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
497
|
switch (errorCode) {
|
|
496
498
|
case "LimitExceededException":
|
|
497
499
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -501,10 +503,12 @@ const deserializeAws_json1_1DeleteAnomalyMonitorCommandError = async (output, co
|
|
|
501
503
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
502
504
|
default:
|
|
503
505
|
const parsedBody = parsedOutput.body;
|
|
506
|
+
const $metadata = deserializeMetadata(output);
|
|
507
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
504
508
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
505
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
509
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
506
510
|
$fault: "client",
|
|
507
|
-
$metadata
|
|
511
|
+
$metadata,
|
|
508
512
|
});
|
|
509
513
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
510
514
|
}
|
|
@@ -529,8 +533,7 @@ const deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = async (outpu
|
|
|
529
533
|
body: await parseBody(output.body, context),
|
|
530
534
|
};
|
|
531
535
|
let response;
|
|
532
|
-
|
|
533
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
537
|
switch (errorCode) {
|
|
535
538
|
case "LimitExceededException":
|
|
536
539
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -540,10 +543,12 @@ const deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = async (outpu
|
|
|
540
543
|
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
541
544
|
default:
|
|
542
545
|
const parsedBody = parsedOutput.body;
|
|
546
|
+
const $metadata = deserializeMetadata(output);
|
|
547
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
543
548
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
544
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
549
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
545
550
|
$fault: "client",
|
|
546
|
-
$metadata
|
|
551
|
+
$metadata,
|
|
547
552
|
});
|
|
548
553
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
549
554
|
}
|
|
@@ -568,8 +573,7 @@ const deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = async (ou
|
|
|
568
573
|
body: await parseBody(output.body, context),
|
|
569
574
|
};
|
|
570
575
|
let response;
|
|
571
|
-
|
|
572
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
577
|
switch (errorCode) {
|
|
574
578
|
case "LimitExceededException":
|
|
575
579
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -579,10 +583,12 @@ const deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = async (ou
|
|
|
579
583
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
580
584
|
default:
|
|
581
585
|
const parsedBody = parsedOutput.body;
|
|
586
|
+
const $metadata = deserializeMetadata(output);
|
|
587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
582
588
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
584
590
|
$fault: "client",
|
|
585
|
-
$metadata
|
|
591
|
+
$metadata,
|
|
586
592
|
});
|
|
587
593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
588
594
|
}
|
|
@@ -607,8 +613,7 @@ const deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = async (
|
|
|
607
613
|
body: await parseBody(output.body, context),
|
|
608
614
|
};
|
|
609
615
|
let response;
|
|
610
|
-
|
|
611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
617
|
switch (errorCode) {
|
|
613
618
|
case "LimitExceededException":
|
|
614
619
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -618,10 +623,12 @@ const deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = async (
|
|
|
618
623
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
619
624
|
default:
|
|
620
625
|
const parsedBody = parsedOutput.body;
|
|
626
|
+
const $metadata = deserializeMetadata(output);
|
|
627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
621
628
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
623
630
|
$fault: "client",
|
|
624
|
-
$metadata
|
|
631
|
+
$metadata,
|
|
625
632
|
});
|
|
626
633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
627
634
|
}
|
|
@@ -646,8 +653,7 @@ const deserializeAws_json1_1GetAnomaliesCommandError = async (output, context) =
|
|
|
646
653
|
body: await parseBody(output.body, context),
|
|
647
654
|
};
|
|
648
655
|
let response;
|
|
649
|
-
|
|
650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
657
|
switch (errorCode) {
|
|
652
658
|
case "InvalidNextTokenException":
|
|
653
659
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
@@ -657,10 +663,12 @@ const deserializeAws_json1_1GetAnomaliesCommandError = async (output, context) =
|
|
|
657
663
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
658
664
|
default:
|
|
659
665
|
const parsedBody = parsedOutput.body;
|
|
666
|
+
const $metadata = deserializeMetadata(output);
|
|
667
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
660
668
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
669
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
662
670
|
$fault: "client",
|
|
663
|
-
$metadata
|
|
671
|
+
$metadata,
|
|
664
672
|
});
|
|
665
673
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
666
674
|
}
|
|
@@ -685,8 +693,7 @@ const deserializeAws_json1_1GetAnomalyMonitorsCommandError = async (output, cont
|
|
|
685
693
|
body: await parseBody(output.body, context),
|
|
686
694
|
};
|
|
687
695
|
let response;
|
|
688
|
-
|
|
689
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
697
|
switch (errorCode) {
|
|
691
698
|
case "InvalidNextTokenException":
|
|
692
699
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
@@ -699,10 +706,12 @@ const deserializeAws_json1_1GetAnomalyMonitorsCommandError = async (output, cont
|
|
|
699
706
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
700
707
|
default:
|
|
701
708
|
const parsedBody = parsedOutput.body;
|
|
709
|
+
const $metadata = deserializeMetadata(output);
|
|
710
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
702
711
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
703
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
712
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
704
713
|
$fault: "client",
|
|
705
|
-
$metadata
|
|
714
|
+
$metadata,
|
|
706
715
|
});
|
|
707
716
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
708
717
|
}
|
|
@@ -727,8 +736,7 @@ const deserializeAws_json1_1GetAnomalySubscriptionsCommandError = async (output,
|
|
|
727
736
|
body: await parseBody(output.body, context),
|
|
728
737
|
};
|
|
729
738
|
let response;
|
|
730
|
-
|
|
731
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
740
|
switch (errorCode) {
|
|
733
741
|
case "InvalidNextTokenException":
|
|
734
742
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
@@ -741,10 +749,12 @@ const deserializeAws_json1_1GetAnomalySubscriptionsCommandError = async (output,
|
|
|
741
749
|
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
742
750
|
default:
|
|
743
751
|
const parsedBody = parsedOutput.body;
|
|
752
|
+
const $metadata = deserializeMetadata(output);
|
|
753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
744
754
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
746
756
|
$fault: "client",
|
|
747
|
-
$metadata
|
|
757
|
+
$metadata,
|
|
748
758
|
});
|
|
749
759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
750
760
|
}
|
|
@@ -769,8 +779,7 @@ const deserializeAws_json1_1GetCostAndUsageCommandError = async (output, context
|
|
|
769
779
|
body: await parseBody(output.body, context),
|
|
770
780
|
};
|
|
771
781
|
let response;
|
|
772
|
-
|
|
773
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
783
|
switch (errorCode) {
|
|
775
784
|
case "BillExpirationException":
|
|
776
785
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
@@ -789,10 +798,12 @@ const deserializeAws_json1_1GetCostAndUsageCommandError = async (output, context
|
|
|
789
798
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
790
799
|
default:
|
|
791
800
|
const parsedBody = parsedOutput.body;
|
|
801
|
+
const $metadata = deserializeMetadata(output);
|
|
802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
792
803
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
793
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
794
805
|
$fault: "client",
|
|
795
|
-
$metadata
|
|
806
|
+
$metadata,
|
|
796
807
|
});
|
|
797
808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
798
809
|
}
|
|
@@ -817,8 +828,7 @@ const deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = async (ou
|
|
|
817
828
|
body: await parseBody(output.body, context),
|
|
818
829
|
};
|
|
819
830
|
let response;
|
|
820
|
-
|
|
821
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
832
|
switch (errorCode) {
|
|
823
833
|
case "BillExpirationException":
|
|
824
834
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
@@ -837,10 +847,12 @@ const deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = async (ou
|
|
|
837
847
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
838
848
|
default:
|
|
839
849
|
const parsedBody = parsedOutput.body;
|
|
850
|
+
const $metadata = deserializeMetadata(output);
|
|
851
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
840
852
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
841
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
853
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
842
854
|
$fault: "client",
|
|
843
|
-
$metadata
|
|
855
|
+
$metadata,
|
|
844
856
|
});
|
|
845
857
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
846
858
|
}
|
|
@@ -865,8 +877,7 @@ const deserializeAws_json1_1GetCostCategoriesCommandError = async (output, conte
|
|
|
865
877
|
body: await parseBody(output.body, context),
|
|
866
878
|
};
|
|
867
879
|
let response;
|
|
868
|
-
|
|
869
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
881
|
switch (errorCode) {
|
|
871
882
|
case "BillExpirationException":
|
|
872
883
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
@@ -885,10 +896,12 @@ const deserializeAws_json1_1GetCostCategoriesCommandError = async (output, conte
|
|
|
885
896
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
886
897
|
default:
|
|
887
898
|
const parsedBody = parsedOutput.body;
|
|
899
|
+
const $metadata = deserializeMetadata(output);
|
|
900
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
888
901
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
889
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
902
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
890
903
|
$fault: "client",
|
|
891
|
-
$metadata
|
|
904
|
+
$metadata,
|
|
892
905
|
});
|
|
893
906
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
894
907
|
}
|
|
@@ -913,8 +926,7 @@ const deserializeAws_json1_1GetCostForecastCommandError = async (output, context
|
|
|
913
926
|
body: await parseBody(output.body, context),
|
|
914
927
|
};
|
|
915
928
|
let response;
|
|
916
|
-
|
|
917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
930
|
switch (errorCode) {
|
|
919
931
|
case "DataUnavailableException":
|
|
920
932
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -924,10 +936,12 @@ const deserializeAws_json1_1GetCostForecastCommandError = async (output, context
|
|
|
924
936
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
925
937
|
default:
|
|
926
938
|
const parsedBody = parsedOutput.body;
|
|
939
|
+
const $metadata = deserializeMetadata(output);
|
|
940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
927
941
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
928
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
929
943
|
$fault: "client",
|
|
930
|
-
$metadata
|
|
944
|
+
$metadata,
|
|
931
945
|
});
|
|
932
946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
933
947
|
}
|
|
@@ -952,8 +966,7 @@ const deserializeAws_json1_1GetDimensionValuesCommandError = async (output, cont
|
|
|
952
966
|
body: await parseBody(output.body, context),
|
|
953
967
|
};
|
|
954
968
|
let response;
|
|
955
|
-
|
|
956
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
970
|
switch (errorCode) {
|
|
958
971
|
case "BillExpirationException":
|
|
959
972
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
@@ -972,10 +985,12 @@ const deserializeAws_json1_1GetDimensionValuesCommandError = async (output, cont
|
|
|
972
985
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
973
986
|
default:
|
|
974
987
|
const parsedBody = parsedOutput.body;
|
|
988
|
+
const $metadata = deserializeMetadata(output);
|
|
989
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
975
990
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
991
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
977
992
|
$fault: "client",
|
|
978
|
-
$metadata
|
|
993
|
+
$metadata,
|
|
979
994
|
});
|
|
980
995
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
981
996
|
}
|
|
@@ -1000,8 +1015,7 @@ const deserializeAws_json1_1GetReservationCoverageCommandError = async (output,
|
|
|
1000
1015
|
body: await parseBody(output.body, context),
|
|
1001
1016
|
};
|
|
1002
1017
|
let response;
|
|
1003
|
-
|
|
1004
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
1019
|
switch (errorCode) {
|
|
1006
1020
|
case "DataUnavailableException":
|
|
1007
1021
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -1014,10 +1028,12 @@ const deserializeAws_json1_1GetReservationCoverageCommandError = async (output,
|
|
|
1014
1028
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1015
1029
|
default:
|
|
1016
1030
|
const parsedBody = parsedOutput.body;
|
|
1031
|
+
const $metadata = deserializeMetadata(output);
|
|
1032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1017
1033
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1018
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1019
1035
|
$fault: "client",
|
|
1020
|
-
$metadata
|
|
1036
|
+
$metadata,
|
|
1021
1037
|
});
|
|
1022
1038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1023
1039
|
}
|
|
@@ -1042,8 +1058,7 @@ const deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = a
|
|
|
1042
1058
|
body: await parseBody(output.body, context),
|
|
1043
1059
|
};
|
|
1044
1060
|
let response;
|
|
1045
|
-
|
|
1046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1062
|
switch (errorCode) {
|
|
1048
1063
|
case "DataUnavailableException":
|
|
1049
1064
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -1056,10 +1071,12 @@ const deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = a
|
|
|
1056
1071
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1057
1072
|
default:
|
|
1058
1073
|
const parsedBody = parsedOutput.body;
|
|
1074
|
+
const $metadata = deserializeMetadata(output);
|
|
1075
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1059
1076
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1061
1078
|
$fault: "client",
|
|
1062
|
-
$metadata
|
|
1079
|
+
$metadata,
|
|
1063
1080
|
});
|
|
1064
1081
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1065
1082
|
}
|
|
@@ -1084,8 +1101,7 @@ const deserializeAws_json1_1GetReservationUtilizationCommandError = async (outpu
|
|
|
1084
1101
|
body: await parseBody(output.body, context),
|
|
1085
1102
|
};
|
|
1086
1103
|
let response;
|
|
1087
|
-
|
|
1088
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1105
|
switch (errorCode) {
|
|
1090
1106
|
case "DataUnavailableException":
|
|
1091
1107
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -1098,10 +1114,12 @@ const deserializeAws_json1_1GetReservationUtilizationCommandError = async (outpu
|
|
|
1098
1114
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1099
1115
|
default:
|
|
1100
1116
|
const parsedBody = parsedOutput.body;
|
|
1117
|
+
const $metadata = deserializeMetadata(output);
|
|
1118
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1101
1119
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1102
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1120
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1103
1121
|
$fault: "client",
|
|
1104
|
-
$metadata
|
|
1122
|
+
$metadata,
|
|
1105
1123
|
});
|
|
1106
1124
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1107
1125
|
}
|
|
@@ -1126,8 +1144,7 @@ const deserializeAws_json1_1GetRightsizingRecommendationCommandError = async (ou
|
|
|
1126
1144
|
body: await parseBody(output.body, context),
|
|
1127
1145
|
};
|
|
1128
1146
|
let response;
|
|
1129
|
-
|
|
1130
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
1148
|
switch (errorCode) {
|
|
1132
1149
|
case "InvalidNextTokenException":
|
|
1133
1150
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
@@ -1137,10 +1154,12 @@ const deserializeAws_json1_1GetRightsizingRecommendationCommandError = async (ou
|
|
|
1137
1154
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1138
1155
|
default:
|
|
1139
1156
|
const parsedBody = parsedOutput.body;
|
|
1157
|
+
const $metadata = deserializeMetadata(output);
|
|
1158
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1140
1159
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1160
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1142
1161
|
$fault: "client",
|
|
1143
|
-
$metadata
|
|
1162
|
+
$metadata,
|
|
1144
1163
|
});
|
|
1145
1164
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1146
1165
|
}
|
|
@@ -1165,8 +1184,7 @@ const deserializeAws_json1_1GetSavingsPlansCoverageCommandError = async (output,
|
|
|
1165
1184
|
body: await parseBody(output.body, context),
|
|
1166
1185
|
};
|
|
1167
1186
|
let response;
|
|
1168
|
-
|
|
1169
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1187
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1188
|
switch (errorCode) {
|
|
1171
1189
|
case "DataUnavailableException":
|
|
1172
1190
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -1179,10 +1197,12 @@ const deserializeAws_json1_1GetSavingsPlansCoverageCommandError = async (output,
|
|
|
1179
1197
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1180
1198
|
default:
|
|
1181
1199
|
const parsedBody = parsedOutput.body;
|
|
1200
|
+
const $metadata = deserializeMetadata(output);
|
|
1201
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1182
1202
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1183
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1203
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1184
1204
|
$fault: "client",
|
|
1185
|
-
$metadata
|
|
1205
|
+
$metadata,
|
|
1186
1206
|
});
|
|
1187
1207
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1188
1208
|
}
|
|
@@ -1207,8 +1227,7 @@ const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError =
|
|
|
1207
1227
|
body: await parseBody(output.body, context),
|
|
1208
1228
|
};
|
|
1209
1229
|
let response;
|
|
1210
|
-
|
|
1211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1231
|
switch (errorCode) {
|
|
1213
1232
|
case "InvalidNextTokenException":
|
|
1214
1233
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
@@ -1218,10 +1237,12 @@ const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError =
|
|
|
1218
1237
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1219
1238
|
default:
|
|
1220
1239
|
const parsedBody = parsedOutput.body;
|
|
1240
|
+
const $metadata = deserializeMetadata(output);
|
|
1241
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1221
1242
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1222
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1243
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1223
1244
|
$fault: "client",
|
|
1224
|
-
$metadata
|
|
1245
|
+
$metadata,
|
|
1225
1246
|
});
|
|
1226
1247
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1227
1248
|
}
|
|
@@ -1246,8 +1267,7 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = async (outp
|
|
|
1246
1267
|
body: await parseBody(output.body, context),
|
|
1247
1268
|
};
|
|
1248
1269
|
let response;
|
|
1249
|
-
|
|
1250
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
1271
|
switch (errorCode) {
|
|
1252
1272
|
case "DataUnavailableException":
|
|
1253
1273
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -1257,10 +1277,12 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = async (outp
|
|
|
1257
1277
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1258
1278
|
default:
|
|
1259
1279
|
const parsedBody = parsedOutput.body;
|
|
1280
|
+
const $metadata = deserializeMetadata(output);
|
|
1281
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1260
1282
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1261
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1262
1284
|
$fault: "client",
|
|
1263
|
-
$metadata
|
|
1285
|
+
$metadata,
|
|
1264
1286
|
});
|
|
1265
1287
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1266
1288
|
}
|
|
@@ -1285,8 +1307,7 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = asyn
|
|
|
1285
1307
|
body: await parseBody(output.body, context),
|
|
1286
1308
|
};
|
|
1287
1309
|
let response;
|
|
1288
|
-
|
|
1289
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
1311
|
switch (errorCode) {
|
|
1291
1312
|
case "DataUnavailableException":
|
|
1292
1313
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -1299,10 +1320,12 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = asyn
|
|
|
1299
1320
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1300
1321
|
default:
|
|
1301
1322
|
const parsedBody = parsedOutput.body;
|
|
1323
|
+
const $metadata = deserializeMetadata(output);
|
|
1324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1302
1325
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1303
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1304
1327
|
$fault: "client",
|
|
1305
|
-
$metadata
|
|
1328
|
+
$metadata,
|
|
1306
1329
|
});
|
|
1307
1330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1308
1331
|
}
|
|
@@ -1327,8 +1350,7 @@ const deserializeAws_json1_1GetTagsCommandError = async (output, context) => {
|
|
|
1327
1350
|
body: await parseBody(output.body, context),
|
|
1328
1351
|
};
|
|
1329
1352
|
let response;
|
|
1330
|
-
|
|
1331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1354
|
switch (errorCode) {
|
|
1333
1355
|
case "BillExpirationException":
|
|
1334
1356
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
@@ -1347,10 +1369,12 @@ const deserializeAws_json1_1GetTagsCommandError = async (output, context) => {
|
|
|
1347
1369
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
1348
1370
|
default:
|
|
1349
1371
|
const parsedBody = parsedOutput.body;
|
|
1372
|
+
const $metadata = deserializeMetadata(output);
|
|
1373
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1350
1374
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1375
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1352
1376
|
$fault: "client",
|
|
1353
|
-
$metadata
|
|
1377
|
+
$metadata,
|
|
1354
1378
|
});
|
|
1355
1379
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1356
1380
|
}
|
|
@@ -1375,8 +1399,7 @@ const deserializeAws_json1_1GetUsageForecastCommandError = async (output, contex
|
|
|
1375
1399
|
body: await parseBody(output.body, context),
|
|
1376
1400
|
};
|
|
1377
1401
|
let response;
|
|
1378
|
-
|
|
1379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1403
|
switch (errorCode) {
|
|
1381
1404
|
case "DataUnavailableException":
|
|
1382
1405
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
@@ -1389,10 +1412,12 @@ const deserializeAws_json1_1GetUsageForecastCommandError = async (output, contex
|
|
|
1389
1412
|
throw await deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse(parsedOutput, context);
|
|
1390
1413
|
default:
|
|
1391
1414
|
const parsedBody = parsedOutput.body;
|
|
1415
|
+
const $metadata = deserializeMetadata(output);
|
|
1416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1392
1417
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1394
1419
|
$fault: "client",
|
|
1395
|
-
$metadata
|
|
1420
|
+
$metadata,
|
|
1396
1421
|
});
|
|
1397
1422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1398
1423
|
}
|
|
@@ -1417,8 +1442,7 @@ const deserializeAws_json1_1ListCostAllocationTagsCommandError = async (output,
|
|
|
1417
1442
|
body: await parseBody(output.body, context),
|
|
1418
1443
|
};
|
|
1419
1444
|
let response;
|
|
1420
|
-
|
|
1421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
1446
|
switch (errorCode) {
|
|
1423
1447
|
case "InvalidNextTokenException":
|
|
1424
1448
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
@@ -1428,10 +1452,12 @@ const deserializeAws_json1_1ListCostAllocationTagsCommandError = async (output,
|
|
|
1428
1452
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1429
1453
|
default:
|
|
1430
1454
|
const parsedBody = parsedOutput.body;
|
|
1455
|
+
const $metadata = deserializeMetadata(output);
|
|
1456
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1431
1457
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1432
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1458
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1433
1459
|
$fault: "client",
|
|
1434
|
-
$metadata
|
|
1460
|
+
$metadata,
|
|
1435
1461
|
});
|
|
1436
1462
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1437
1463
|
}
|
|
@@ -1456,18 +1482,19 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = async (out
|
|
|
1456
1482
|
body: await parseBody(output.body, context),
|
|
1457
1483
|
};
|
|
1458
1484
|
let response;
|
|
1459
|
-
|
|
1460
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
1486
|
switch (errorCode) {
|
|
1462
1487
|
case "LimitExceededException":
|
|
1463
1488
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1464
1489
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1465
1490
|
default:
|
|
1466
1491
|
const parsedBody = parsedOutput.body;
|
|
1492
|
+
const $metadata = deserializeMetadata(output);
|
|
1493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1467
1494
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1468
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1495
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1469
1496
|
$fault: "client",
|
|
1470
|
-
$metadata
|
|
1497
|
+
$metadata,
|
|
1471
1498
|
});
|
|
1472
1499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1473
1500
|
}
|
|
@@ -1492,8 +1519,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1492
1519
|
body: await parseBody(output.body, context),
|
|
1493
1520
|
};
|
|
1494
1521
|
let response;
|
|
1495
|
-
|
|
1496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
1523
|
switch (errorCode) {
|
|
1498
1524
|
case "LimitExceededException":
|
|
1499
1525
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -1503,10 +1529,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1503
1529
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1504
1530
|
default:
|
|
1505
1531
|
const parsedBody = parsedOutput.body;
|
|
1532
|
+
const $metadata = deserializeMetadata(output);
|
|
1533
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1506
1534
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1535
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1508
1536
|
$fault: "client",
|
|
1509
|
-
$metadata
|
|
1537
|
+
$metadata,
|
|
1510
1538
|
});
|
|
1511
1539
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1512
1540
|
}
|
|
@@ -1531,18 +1559,19 @@ const deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = async (output,
|
|
|
1531
1559
|
body: await parseBody(output.body, context),
|
|
1532
1560
|
};
|
|
1533
1561
|
let response;
|
|
1534
|
-
|
|
1535
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
1563
|
switch (errorCode) {
|
|
1537
1564
|
case "LimitExceededException":
|
|
1538
1565
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1539
1566
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1540
1567
|
default:
|
|
1541
1568
|
const parsedBody = parsedOutput.body;
|
|
1569
|
+
const $metadata = deserializeMetadata(output);
|
|
1570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1542
1571
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1544
1573
|
$fault: "client",
|
|
1545
|
-
$metadata
|
|
1574
|
+
$metadata,
|
|
1546
1575
|
});
|
|
1547
1576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1548
1577
|
}
|
|
@@ -1567,8 +1596,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1567
1596
|
body: await parseBody(output.body, context),
|
|
1568
1597
|
};
|
|
1569
1598
|
let response;
|
|
1570
|
-
|
|
1571
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
1600
|
switch (errorCode) {
|
|
1573
1601
|
case "LimitExceededException":
|
|
1574
1602
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -1581,10 +1609,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1581
1609
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1582
1610
|
default:
|
|
1583
1611
|
const parsedBody = parsedOutput.body;
|
|
1612
|
+
const $metadata = deserializeMetadata(output);
|
|
1613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1584
1614
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1585
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1586
1616
|
$fault: "client",
|
|
1587
|
-
$metadata
|
|
1617
|
+
$metadata,
|
|
1588
1618
|
});
|
|
1589
1619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1590
1620
|
}
|
|
@@ -1609,8 +1639,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1609
1639
|
body: await parseBody(output.body, context),
|
|
1610
1640
|
};
|
|
1611
1641
|
let response;
|
|
1612
|
-
|
|
1613
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
1643
|
switch (errorCode) {
|
|
1615
1644
|
case "LimitExceededException":
|
|
1616
1645
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -1620,10 +1649,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1620
1649
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1621
1650
|
default:
|
|
1622
1651
|
const parsedBody = parsedOutput.body;
|
|
1652
|
+
const $metadata = deserializeMetadata(output);
|
|
1653
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1623
1654
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1624
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1625
1656
|
$fault: "client",
|
|
1626
|
-
$metadata
|
|
1657
|
+
$metadata,
|
|
1627
1658
|
});
|
|
1628
1659
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1629
1660
|
}
|
|
@@ -1648,8 +1679,7 @@ const deserializeAws_json1_1UpdateAnomalyMonitorCommandError = async (output, co
|
|
|
1648
1679
|
body: await parseBody(output.body, context),
|
|
1649
1680
|
};
|
|
1650
1681
|
let response;
|
|
1651
|
-
|
|
1652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
1683
|
switch (errorCode) {
|
|
1654
1684
|
case "LimitExceededException":
|
|
1655
1685
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -1659,10 +1689,12 @@ const deserializeAws_json1_1UpdateAnomalyMonitorCommandError = async (output, co
|
|
|
1659
1689
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
1660
1690
|
default:
|
|
1661
1691
|
const parsedBody = parsedOutput.body;
|
|
1692
|
+
const $metadata = deserializeMetadata(output);
|
|
1693
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1662
1694
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1663
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1664
1696
|
$fault: "client",
|
|
1665
|
-
$metadata
|
|
1697
|
+
$metadata,
|
|
1666
1698
|
});
|
|
1667
1699
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1668
1700
|
}
|
|
@@ -1687,8 +1719,7 @@ const deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = async (outpu
|
|
|
1687
1719
|
body: await parseBody(output.body, context),
|
|
1688
1720
|
};
|
|
1689
1721
|
let response;
|
|
1690
|
-
|
|
1691
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
1723
|
switch (errorCode) {
|
|
1693
1724
|
case "LimitExceededException":
|
|
1694
1725
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -1701,10 +1732,12 @@ const deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = async (outpu
|
|
|
1701
1732
|
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
1702
1733
|
default:
|
|
1703
1734
|
const parsedBody = parsedOutput.body;
|
|
1735
|
+
const $metadata = deserializeMetadata(output);
|
|
1736
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1704
1737
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1705
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1706
1739
|
$fault: "client",
|
|
1707
|
-
$metadata
|
|
1740
|
+
$metadata,
|
|
1708
1741
|
});
|
|
1709
1742
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1710
1743
|
}
|
|
@@ -1729,18 +1762,19 @@ const deserializeAws_json1_1UpdateCostAllocationTagsStatusCommandError = async (
|
|
|
1729
1762
|
body: await parseBody(output.body, context),
|
|
1730
1763
|
};
|
|
1731
1764
|
let response;
|
|
1732
|
-
|
|
1733
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1734
1766
|
switch (errorCode) {
|
|
1735
1767
|
case "LimitExceededException":
|
|
1736
1768
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1737
1769
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1738
1770
|
default:
|
|
1739
1771
|
const parsedBody = parsedOutput.body;
|
|
1772
|
+
const $metadata = deserializeMetadata(output);
|
|
1773
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1740
1774
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1741
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1775
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1742
1776
|
$fault: "client",
|
|
1743
|
-
$metadata
|
|
1777
|
+
$metadata,
|
|
1744
1778
|
});
|
|
1745
1779
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1746
1780
|
}
|
|
@@ -1765,8 +1799,7 @@ const deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = async (ou
|
|
|
1765
1799
|
body: await parseBody(output.body, context),
|
|
1766
1800
|
};
|
|
1767
1801
|
let response;
|
|
1768
|
-
|
|
1769
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1803
|
switch (errorCode) {
|
|
1771
1804
|
case "LimitExceededException":
|
|
1772
1805
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -1779,10 +1812,12 @@ const deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = async (ou
|
|
|
1779
1812
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1780
1813
|
default:
|
|
1781
1814
|
const parsedBody = parsedOutput.body;
|
|
1815
|
+
const $metadata = deserializeMetadata(output);
|
|
1816
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1782
1817
|
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1818
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1784
1819
|
$fault: "client",
|
|
1785
|
-
$metadata
|
|
1820
|
+
$metadata,
|
|
1786
1821
|
});
|
|
1787
1822
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1788
1823
|
}
|
|
@@ -1888,45 +1923,36 @@ const deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse = async (pars
|
|
|
1888
1923
|
};
|
|
1889
1924
|
const serializeAws_json1_1AnomalyDateInterval = (input, context) => {
|
|
1890
1925
|
return {
|
|
1891
|
-
...(input.EndDate
|
|
1892
|
-
...(input.StartDate
|
|
1926
|
+
...(input.EndDate != null && { EndDate: input.EndDate }),
|
|
1927
|
+
...(input.StartDate != null && { StartDate: input.StartDate }),
|
|
1893
1928
|
};
|
|
1894
1929
|
};
|
|
1895
1930
|
const serializeAws_json1_1AnomalyMonitor = (input, context) => {
|
|
1896
1931
|
return {
|
|
1897
|
-
...(input.CreationDate
|
|
1898
|
-
...(input.DimensionalValueCount
|
|
1899
|
-
|
|
1900
|
-
...(input.
|
|
1901
|
-
|
|
1902
|
-
...(input.
|
|
1903
|
-
|
|
1904
|
-
...(input.
|
|
1905
|
-
...(input.MonitorDimension !== undefined &&
|
|
1906
|
-
input.MonitorDimension !== null && { MonitorDimension: input.MonitorDimension }),
|
|
1907
|
-
...(input.MonitorName !== undefined && input.MonitorName !== null && { MonitorName: input.MonitorName }),
|
|
1908
|
-
...(input.MonitorSpecification !== undefined &&
|
|
1909
|
-
input.MonitorSpecification !== null && {
|
|
1932
|
+
...(input.CreationDate != null && { CreationDate: input.CreationDate }),
|
|
1933
|
+
...(input.DimensionalValueCount != null && { DimensionalValueCount: input.DimensionalValueCount }),
|
|
1934
|
+
...(input.LastEvaluatedDate != null && { LastEvaluatedDate: input.LastEvaluatedDate }),
|
|
1935
|
+
...(input.LastUpdatedDate != null && { LastUpdatedDate: input.LastUpdatedDate }),
|
|
1936
|
+
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
1937
|
+
...(input.MonitorDimension != null && { MonitorDimension: input.MonitorDimension }),
|
|
1938
|
+
...(input.MonitorName != null && { MonitorName: input.MonitorName }),
|
|
1939
|
+
...(input.MonitorSpecification != null && {
|
|
1910
1940
|
MonitorSpecification: serializeAws_json1_1Expression(input.MonitorSpecification, context),
|
|
1911
1941
|
}),
|
|
1912
|
-
...(input.MonitorType
|
|
1942
|
+
...(input.MonitorType != null && { MonitorType: input.MonitorType }),
|
|
1913
1943
|
};
|
|
1914
1944
|
};
|
|
1915
1945
|
const serializeAws_json1_1AnomalySubscription = (input, context) => {
|
|
1916
1946
|
return {
|
|
1917
|
-
...(input.AccountId
|
|
1918
|
-
...(input.Frequency
|
|
1919
|
-
...(input.MonitorArnList
|
|
1920
|
-
input.MonitorArnList !== null && {
|
|
1947
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1948
|
+
...(input.Frequency != null && { Frequency: input.Frequency }),
|
|
1949
|
+
...(input.MonitorArnList != null && {
|
|
1921
1950
|
MonitorArnList: serializeAws_json1_1MonitorArnList(input.MonitorArnList, context),
|
|
1922
1951
|
}),
|
|
1923
|
-
...(input.Subscribers
|
|
1924
|
-
|
|
1925
|
-
...(input.
|
|
1926
|
-
|
|
1927
|
-
...(input.SubscriptionName !== undefined &&
|
|
1928
|
-
input.SubscriptionName !== null && { SubscriptionName: input.SubscriptionName }),
|
|
1929
|
-
...(input.Threshold !== undefined && input.Threshold !== null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
1952
|
+
...(input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1953
|
+
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
1954
|
+
...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
|
|
1955
|
+
...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
1930
1956
|
};
|
|
1931
1957
|
};
|
|
1932
1958
|
const serializeAws_json1_1CostAllocationTagKeyList = (input, context) => {
|
|
@@ -1941,8 +1967,8 @@ const serializeAws_json1_1CostAllocationTagKeyList = (input, context) => {
|
|
|
1941
1967
|
};
|
|
1942
1968
|
const serializeAws_json1_1CostAllocationTagStatusEntry = (input, context) => {
|
|
1943
1969
|
return {
|
|
1944
|
-
...(input.Status
|
|
1945
|
-
...(input.TagKey
|
|
1970
|
+
...(input.Status != null && { Status: input.Status }),
|
|
1971
|
+
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
1946
1972
|
};
|
|
1947
1973
|
};
|
|
1948
1974
|
const serializeAws_json1_1CostAllocationTagStatusList = (input, context) => {
|
|
@@ -1957,20 +1983,18 @@ const serializeAws_json1_1CostAllocationTagStatusList = (input, context) => {
|
|
|
1957
1983
|
};
|
|
1958
1984
|
const serializeAws_json1_1CostCategoryInheritedValueDimension = (input, context) => {
|
|
1959
1985
|
return {
|
|
1960
|
-
...(input.DimensionKey
|
|
1961
|
-
...(input.DimensionName
|
|
1986
|
+
...(input.DimensionKey != null && { DimensionKey: input.DimensionKey }),
|
|
1987
|
+
...(input.DimensionName != null && { DimensionName: input.DimensionName }),
|
|
1962
1988
|
};
|
|
1963
1989
|
};
|
|
1964
1990
|
const serializeAws_json1_1CostCategoryRule = (input, context) => {
|
|
1965
1991
|
return {
|
|
1966
|
-
...(input.InheritedValue
|
|
1967
|
-
input.InheritedValue !== null && {
|
|
1992
|
+
...(input.InheritedValue != null && {
|
|
1968
1993
|
InheritedValue: serializeAws_json1_1CostCategoryInheritedValueDimension(input.InheritedValue, context),
|
|
1969
1994
|
}),
|
|
1970
|
-
...(input.Rule
|
|
1971
|
-
|
|
1972
|
-
...(input.
|
|
1973
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
1995
|
+
...(input.Rule != null && { Rule: serializeAws_json1_1Expression(input.Rule, context) }),
|
|
1996
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1997
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1974
1998
|
};
|
|
1975
1999
|
};
|
|
1976
2000
|
const serializeAws_json1_1CostCategoryRulesList = (input, context) => {
|
|
@@ -1985,23 +2009,20 @@ const serializeAws_json1_1CostCategoryRulesList = (input, context) => {
|
|
|
1985
2009
|
};
|
|
1986
2010
|
const serializeAws_json1_1CostCategorySplitChargeRule = (input, context) => {
|
|
1987
2011
|
return {
|
|
1988
|
-
...(input.Method
|
|
1989
|
-
...(input.Parameters
|
|
1990
|
-
input.Parameters !== null && {
|
|
2012
|
+
...(input.Method != null && { Method: input.Method }),
|
|
2013
|
+
...(input.Parameters != null && {
|
|
1991
2014
|
Parameters: serializeAws_json1_1CostCategorySplitChargeRuleParametersList(input.Parameters, context),
|
|
1992
2015
|
}),
|
|
1993
|
-
...(input.Source
|
|
1994
|
-
...(input.Targets
|
|
1995
|
-
input.Targets !== null && {
|
|
2016
|
+
...(input.Source != null && { Source: input.Source }),
|
|
2017
|
+
...(input.Targets != null && {
|
|
1996
2018
|
Targets: serializeAws_json1_1CostCategorySplitChargeRuleTargetsList(input.Targets, context),
|
|
1997
2019
|
}),
|
|
1998
2020
|
};
|
|
1999
2021
|
};
|
|
2000
2022
|
const serializeAws_json1_1CostCategorySplitChargeRuleParameter = (input, context) => {
|
|
2001
2023
|
return {
|
|
2002
|
-
...(input.Type
|
|
2003
|
-
...(input.Values
|
|
2004
|
-
input.Values !== null && {
|
|
2024
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2025
|
+
...(input.Values != null && {
|
|
2005
2026
|
Values: serializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList(input.Values, context),
|
|
2006
2027
|
}),
|
|
2007
2028
|
};
|
|
@@ -2048,111 +2069,94 @@ const serializeAws_json1_1CostCategorySplitChargeRuleTargetsList = (input, conte
|
|
|
2048
2069
|
};
|
|
2049
2070
|
const serializeAws_json1_1CostCategoryValues = (input, context) => {
|
|
2050
2071
|
return {
|
|
2051
|
-
...(input.Key
|
|
2052
|
-
...(input.MatchOptions
|
|
2053
|
-
|
|
2054
|
-
...(input.Values !== undefined &&
|
|
2055
|
-
input.Values !== null && { Values: serializeAws_json1_1Values(input.Values, context) }),
|
|
2072
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2073
|
+
...(input.MatchOptions != null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) }),
|
|
2074
|
+
...(input.Values != null && { Values: serializeAws_json1_1Values(input.Values, context) }),
|
|
2056
2075
|
};
|
|
2057
2076
|
};
|
|
2058
2077
|
const serializeAws_json1_1CreateAnomalyMonitorRequest = (input, context) => {
|
|
2059
2078
|
return {
|
|
2060
|
-
...(input.AnomalyMonitor
|
|
2061
|
-
input.AnomalyMonitor !== null && {
|
|
2079
|
+
...(input.AnomalyMonitor != null && {
|
|
2062
2080
|
AnomalyMonitor: serializeAws_json1_1AnomalyMonitor(input.AnomalyMonitor, context),
|
|
2063
2081
|
}),
|
|
2064
|
-
...(input.ResourceTags
|
|
2065
|
-
input.ResourceTags !== null && {
|
|
2082
|
+
...(input.ResourceTags != null && {
|
|
2066
2083
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2067
2084
|
}),
|
|
2068
2085
|
};
|
|
2069
2086
|
};
|
|
2070
2087
|
const serializeAws_json1_1CreateAnomalySubscriptionRequest = (input, context) => {
|
|
2071
2088
|
return {
|
|
2072
|
-
...(input.AnomalySubscription
|
|
2073
|
-
input.AnomalySubscription !== null && {
|
|
2089
|
+
...(input.AnomalySubscription != null && {
|
|
2074
2090
|
AnomalySubscription: serializeAws_json1_1AnomalySubscription(input.AnomalySubscription, context),
|
|
2075
2091
|
}),
|
|
2076
|
-
...(input.ResourceTags
|
|
2077
|
-
input.ResourceTags !== null && {
|
|
2092
|
+
...(input.ResourceTags != null && {
|
|
2078
2093
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2079
2094
|
}),
|
|
2080
2095
|
};
|
|
2081
2096
|
};
|
|
2082
2097
|
const serializeAws_json1_1CreateCostCategoryDefinitionRequest = (input, context) => {
|
|
2083
2098
|
return {
|
|
2084
|
-
...(input.DefaultValue
|
|
2085
|
-
...(input.Name
|
|
2086
|
-
...(input.ResourceTags
|
|
2087
|
-
input.ResourceTags !== null && {
|
|
2099
|
+
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
|
|
2100
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2101
|
+
...(input.ResourceTags != null && {
|
|
2088
2102
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2089
2103
|
}),
|
|
2090
|
-
...(input.RuleVersion
|
|
2091
|
-
...(input.Rules
|
|
2092
|
-
|
|
2093
|
-
...(input.SplitChargeRules !== undefined &&
|
|
2094
|
-
input.SplitChargeRules !== null && {
|
|
2104
|
+
...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
|
|
2105
|
+
...(input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) }),
|
|
2106
|
+
...(input.SplitChargeRules != null && {
|
|
2095
2107
|
SplitChargeRules: serializeAws_json1_1CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
2096
2108
|
}),
|
|
2097
2109
|
};
|
|
2098
2110
|
};
|
|
2099
2111
|
const serializeAws_json1_1DateInterval = (input, context) => {
|
|
2100
2112
|
return {
|
|
2101
|
-
...(input.End
|
|
2102
|
-
...(input.Start
|
|
2113
|
+
...(input.End != null && { End: input.End }),
|
|
2114
|
+
...(input.Start != null && { Start: input.Start }),
|
|
2103
2115
|
};
|
|
2104
2116
|
};
|
|
2105
2117
|
const serializeAws_json1_1DeleteAnomalyMonitorRequest = (input, context) => {
|
|
2106
2118
|
return {
|
|
2107
|
-
...(input.MonitorArn
|
|
2119
|
+
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2108
2120
|
};
|
|
2109
2121
|
};
|
|
2110
2122
|
const serializeAws_json1_1DeleteAnomalySubscriptionRequest = (input, context) => {
|
|
2111
2123
|
return {
|
|
2112
|
-
...(input.SubscriptionArn
|
|
2113
|
-
input.SubscriptionArn !== null && { SubscriptionArn: input.SubscriptionArn }),
|
|
2124
|
+
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
2114
2125
|
};
|
|
2115
2126
|
};
|
|
2116
2127
|
const serializeAws_json1_1DeleteCostCategoryDefinitionRequest = (input, context) => {
|
|
2117
2128
|
return {
|
|
2118
|
-
...(input.CostCategoryArn
|
|
2119
|
-
input.CostCategoryArn !== null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2129
|
+
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2120
2130
|
};
|
|
2121
2131
|
};
|
|
2122
2132
|
const serializeAws_json1_1DescribeCostCategoryDefinitionRequest = (input, context) => {
|
|
2123
2133
|
return {
|
|
2124
|
-
...(input.CostCategoryArn
|
|
2125
|
-
|
|
2126
|
-
...(input.EffectiveOn !== undefined && input.EffectiveOn !== null && { EffectiveOn: input.EffectiveOn }),
|
|
2134
|
+
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2135
|
+
...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
|
|
2127
2136
|
};
|
|
2128
2137
|
};
|
|
2129
2138
|
const serializeAws_json1_1DimensionValues = (input, context) => {
|
|
2130
2139
|
return {
|
|
2131
|
-
...(input.Key
|
|
2132
|
-
...(input.MatchOptions
|
|
2133
|
-
|
|
2134
|
-
...(input.Values !== undefined &&
|
|
2135
|
-
input.Values !== null && { Values: serializeAws_json1_1Values(input.Values, context) }),
|
|
2140
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2141
|
+
...(input.MatchOptions != null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) }),
|
|
2142
|
+
...(input.Values != null && { Values: serializeAws_json1_1Values(input.Values, context) }),
|
|
2136
2143
|
};
|
|
2137
2144
|
};
|
|
2138
2145
|
const serializeAws_json1_1EC2Specification = (input, context) => {
|
|
2139
2146
|
return {
|
|
2140
|
-
...(input.OfferingClass
|
|
2147
|
+
...(input.OfferingClass != null && { OfferingClass: input.OfferingClass }),
|
|
2141
2148
|
};
|
|
2142
2149
|
};
|
|
2143
2150
|
const serializeAws_json1_1Expression = (input, context) => {
|
|
2144
2151
|
return {
|
|
2145
|
-
...(input.And
|
|
2146
|
-
...(input.CostCategories
|
|
2147
|
-
input.CostCategories !== null && {
|
|
2152
|
+
...(input.And != null && { And: serializeAws_json1_1Expressions(input.And, context) }),
|
|
2153
|
+
...(input.CostCategories != null && {
|
|
2148
2154
|
CostCategories: serializeAws_json1_1CostCategoryValues(input.CostCategories, context),
|
|
2149
2155
|
}),
|
|
2150
|
-
...(input.Dimensions
|
|
2151
|
-
|
|
2152
|
-
...(input.
|
|
2153
|
-
...(input.
|
|
2154
|
-
...(input.Tags !== undefined &&
|
|
2155
|
-
input.Tags !== null && { Tags: serializeAws_json1_1TagValues(input.Tags, context) }),
|
|
2156
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_json1_1DimensionValues(input.Dimensions, context) }),
|
|
2157
|
+
...(input.Not != null && { Not: serializeAws_json1_1Expression(input.Not, context) }),
|
|
2158
|
+
...(input.Or != null && { Or: serializeAws_json1_1Expressions(input.Or, context) }),
|
|
2159
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagValues(input.Tags, context) }),
|
|
2156
2160
|
};
|
|
2157
2161
|
};
|
|
2158
2162
|
const serializeAws_json1_1Expressions = (input, context) => {
|
|
@@ -2167,258 +2171,203 @@ const serializeAws_json1_1Expressions = (input, context) => {
|
|
|
2167
2171
|
};
|
|
2168
2172
|
const serializeAws_json1_1GetAnomaliesRequest = (input, context) => {
|
|
2169
2173
|
return {
|
|
2170
|
-
...(input.DateInterval
|
|
2171
|
-
input.DateInterval !== null && {
|
|
2174
|
+
...(input.DateInterval != null && {
|
|
2172
2175
|
DateInterval: serializeAws_json1_1AnomalyDateInterval(input.DateInterval, context),
|
|
2173
2176
|
}),
|
|
2174
|
-
...(input.Feedback
|
|
2175
|
-
...(input.MaxResults
|
|
2176
|
-
...(input.MonitorArn
|
|
2177
|
-
...(input.NextPageToken
|
|
2178
|
-
...(input.TotalImpact
|
|
2179
|
-
|
|
2177
|
+
...(input.Feedback != null && { Feedback: input.Feedback }),
|
|
2178
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2179
|
+
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2180
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2181
|
+
...(input.TotalImpact != null && {
|
|
2182
|
+
TotalImpact: serializeAws_json1_1TotalImpactFilter(input.TotalImpact, context),
|
|
2183
|
+
}),
|
|
2180
2184
|
};
|
|
2181
2185
|
};
|
|
2182
2186
|
const serializeAws_json1_1GetAnomalyMonitorsRequest = (input, context) => {
|
|
2183
2187
|
return {
|
|
2184
|
-
...(input.MaxResults
|
|
2185
|
-
...(input.MonitorArnList
|
|
2186
|
-
|
|
2187
|
-
...(input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken }),
|
|
2188
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2189
|
+
...(input.MonitorArnList != null && { MonitorArnList: serializeAws_json1_1Values(input.MonitorArnList, context) }),
|
|
2190
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2188
2191
|
};
|
|
2189
2192
|
};
|
|
2190
2193
|
const serializeAws_json1_1GetAnomalySubscriptionsRequest = (input, context) => {
|
|
2191
2194
|
return {
|
|
2192
|
-
...(input.MaxResults
|
|
2193
|
-
...(input.MonitorArn
|
|
2194
|
-
...(input.NextPageToken
|
|
2195
|
-
...(input.SubscriptionArnList
|
|
2196
|
-
input.SubscriptionArnList !== null && {
|
|
2195
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2196
|
+
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2197
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2198
|
+
...(input.SubscriptionArnList != null && {
|
|
2197
2199
|
SubscriptionArnList: serializeAws_json1_1Values(input.SubscriptionArnList, context),
|
|
2198
2200
|
}),
|
|
2199
2201
|
};
|
|
2200
2202
|
};
|
|
2201
2203
|
const serializeAws_json1_1GetCostAndUsageRequest = (input, context) => {
|
|
2202
2204
|
return {
|
|
2203
|
-
...(input.Filter
|
|
2204
|
-
|
|
2205
|
-
...(input.
|
|
2206
|
-
...(input.
|
|
2207
|
-
|
|
2208
|
-
...(input.
|
|
2209
|
-
input.Metrics !== null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) }),
|
|
2210
|
-
...(input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken }),
|
|
2211
|
-
...(input.TimePeriod !== undefined &&
|
|
2212
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2205
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2206
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2207
|
+
...(input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) }),
|
|
2208
|
+
...(input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) }),
|
|
2209
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2210
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2213
2211
|
};
|
|
2214
2212
|
};
|
|
2215
2213
|
const serializeAws_json1_1GetCostAndUsageWithResourcesRequest = (input, context) => {
|
|
2216
2214
|
return {
|
|
2217
|
-
...(input.Filter
|
|
2218
|
-
|
|
2219
|
-
...(input.
|
|
2220
|
-
...(input.
|
|
2221
|
-
|
|
2222
|
-
...(input.
|
|
2223
|
-
input.Metrics !== null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) }),
|
|
2224
|
-
...(input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken }),
|
|
2225
|
-
...(input.TimePeriod !== undefined &&
|
|
2226
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2215
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2216
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2217
|
+
...(input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) }),
|
|
2218
|
+
...(input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) }),
|
|
2219
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2220
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2227
2221
|
};
|
|
2228
2222
|
};
|
|
2229
2223
|
const serializeAws_json1_1GetCostCategoriesRequest = (input, context) => {
|
|
2230
2224
|
return {
|
|
2231
|
-
...(input.CostCategoryName
|
|
2232
|
-
|
|
2233
|
-
...(input.
|
|
2234
|
-
|
|
2235
|
-
...(input.
|
|
2236
|
-
...(input.
|
|
2237
|
-
...(input.
|
|
2238
|
-
...(input.SortBy !== undefined &&
|
|
2239
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) }),
|
|
2240
|
-
...(input.TimePeriod !== undefined &&
|
|
2241
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2225
|
+
...(input.CostCategoryName != null && { CostCategoryName: input.CostCategoryName }),
|
|
2226
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2227
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2228
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2229
|
+
...(input.SearchString != null && { SearchString: input.SearchString }),
|
|
2230
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) }),
|
|
2231
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2242
2232
|
};
|
|
2243
2233
|
};
|
|
2244
2234
|
const serializeAws_json1_1GetCostForecastRequest = (input, context) => {
|
|
2245
2235
|
return {
|
|
2246
|
-
...(input.Filter
|
|
2247
|
-
|
|
2248
|
-
...(input.
|
|
2249
|
-
...(input.
|
|
2250
|
-
...(input.
|
|
2251
|
-
input.PredictionIntervalLevel !== null && { PredictionIntervalLevel: input.PredictionIntervalLevel }),
|
|
2252
|
-
...(input.TimePeriod !== undefined &&
|
|
2253
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2236
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2237
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2238
|
+
...(input.Metric != null && { Metric: input.Metric }),
|
|
2239
|
+
...(input.PredictionIntervalLevel != null && { PredictionIntervalLevel: input.PredictionIntervalLevel }),
|
|
2240
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2254
2241
|
};
|
|
2255
2242
|
};
|
|
2256
2243
|
const serializeAws_json1_1GetDimensionValuesRequest = (input, context) => {
|
|
2257
2244
|
return {
|
|
2258
|
-
...(input.Context
|
|
2259
|
-
...(input.Dimension
|
|
2260
|
-
...(input.Filter
|
|
2261
|
-
|
|
2262
|
-
...(input.
|
|
2263
|
-
...(input.
|
|
2264
|
-
...(input.
|
|
2265
|
-
...(input.
|
|
2266
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) }),
|
|
2267
|
-
...(input.TimePeriod !== undefined &&
|
|
2268
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2245
|
+
...(input.Context != null && { Context: input.Context }),
|
|
2246
|
+
...(input.Dimension != null && { Dimension: input.Dimension }),
|
|
2247
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2248
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2249
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2250
|
+
...(input.SearchString != null && { SearchString: input.SearchString }),
|
|
2251
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) }),
|
|
2252
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2269
2253
|
};
|
|
2270
2254
|
};
|
|
2271
2255
|
const serializeAws_json1_1GetReservationCoverageRequest = (input, context) => {
|
|
2272
2256
|
return {
|
|
2273
|
-
...(input.Filter
|
|
2274
|
-
|
|
2275
|
-
...(input.
|
|
2276
|
-
...(input.
|
|
2277
|
-
|
|
2278
|
-
...(input.
|
|
2279
|
-
...(input.
|
|
2280
|
-
|
|
2281
|
-
...(input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken }),
|
|
2282
|
-
...(input.SortBy !== undefined &&
|
|
2283
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2284
|
-
...(input.TimePeriod !== undefined &&
|
|
2285
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2257
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2258
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2259
|
+
...(input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) }),
|
|
2260
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2261
|
+
...(input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) }),
|
|
2262
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2263
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2264
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2286
2265
|
};
|
|
2287
2266
|
};
|
|
2288
2267
|
const serializeAws_json1_1GetReservationPurchaseRecommendationRequest = (input, context) => {
|
|
2289
2268
|
return {
|
|
2290
|
-
...(input.AccountId
|
|
2291
|
-
...(input.AccountScope
|
|
2292
|
-
...(input.Filter
|
|
2293
|
-
|
|
2294
|
-
...(input.
|
|
2295
|
-
|
|
2296
|
-
...(input.
|
|
2297
|
-
...(input.
|
|
2298
|
-
...(input.
|
|
2299
|
-
...(input.Service !== undefined && input.Service !== null && { Service: input.Service }),
|
|
2300
|
-
...(input.ServiceSpecification !== undefined &&
|
|
2301
|
-
input.ServiceSpecification !== null && {
|
|
2269
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
2270
|
+
...(input.AccountScope != null && { AccountScope: input.AccountScope }),
|
|
2271
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2272
|
+
...(input.LookbackPeriodInDays != null && { LookbackPeriodInDays: input.LookbackPeriodInDays }),
|
|
2273
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2274
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
2275
|
+
...(input.PaymentOption != null && { PaymentOption: input.PaymentOption }),
|
|
2276
|
+
...(input.Service != null && { Service: input.Service }),
|
|
2277
|
+
...(input.ServiceSpecification != null && {
|
|
2302
2278
|
ServiceSpecification: serializeAws_json1_1ServiceSpecification(input.ServiceSpecification, context),
|
|
2303
2279
|
}),
|
|
2304
|
-
...(input.TermInYears
|
|
2280
|
+
...(input.TermInYears != null && { TermInYears: input.TermInYears }),
|
|
2305
2281
|
};
|
|
2306
2282
|
};
|
|
2307
2283
|
const serializeAws_json1_1GetReservationUtilizationRequest = (input, context) => {
|
|
2308
2284
|
return {
|
|
2309
|
-
...(input.Filter
|
|
2310
|
-
|
|
2311
|
-
...(input.
|
|
2312
|
-
...(input.
|
|
2313
|
-
|
|
2314
|
-
...(input.
|
|
2315
|
-
...(input.
|
|
2316
|
-
...(input.SortBy !== undefined &&
|
|
2317
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2318
|
-
...(input.TimePeriod !== undefined &&
|
|
2319
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2285
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2286
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2287
|
+
...(input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) }),
|
|
2288
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2289
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2290
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2291
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2320
2292
|
};
|
|
2321
2293
|
};
|
|
2322
2294
|
const serializeAws_json1_1GetRightsizingRecommendationRequest = (input, context) => {
|
|
2323
2295
|
return {
|
|
2324
|
-
...(input.Configuration
|
|
2325
|
-
input.Configuration !== null && {
|
|
2296
|
+
...(input.Configuration != null && {
|
|
2326
2297
|
Configuration: serializeAws_json1_1RightsizingRecommendationConfiguration(input.Configuration, context),
|
|
2327
2298
|
}),
|
|
2328
|
-
...(input.Filter
|
|
2329
|
-
|
|
2330
|
-
...(input.
|
|
2331
|
-
...(input.
|
|
2332
|
-
...(input.Service !== undefined && input.Service !== null && { Service: input.Service }),
|
|
2299
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2300
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2301
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
2302
|
+
...(input.Service != null && { Service: input.Service }),
|
|
2333
2303
|
};
|
|
2334
2304
|
};
|
|
2335
2305
|
const serializeAws_json1_1GetSavingsPlansCoverageRequest = (input, context) => {
|
|
2336
2306
|
return {
|
|
2337
|
-
...(input.Filter
|
|
2338
|
-
|
|
2339
|
-
...(input.
|
|
2340
|
-
...(input.
|
|
2341
|
-
|
|
2342
|
-
...(input.
|
|
2343
|
-
...(input.
|
|
2344
|
-
|
|
2345
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2346
|
-
...(input.SortBy !== undefined &&
|
|
2347
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2348
|
-
...(input.TimePeriod !== undefined &&
|
|
2349
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2307
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2308
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2309
|
+
...(input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) }),
|
|
2310
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2311
|
+
...(input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) }),
|
|
2312
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2313
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2314
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2350
2315
|
};
|
|
2351
2316
|
};
|
|
2352
2317
|
const serializeAws_json1_1GetSavingsPlansPurchaseRecommendationRequest = (input, context) => {
|
|
2353
2318
|
return {
|
|
2354
|
-
...(input.AccountScope
|
|
2355
|
-
...(input.Filter
|
|
2356
|
-
|
|
2357
|
-
...(input.
|
|
2358
|
-
|
|
2359
|
-
...(input.
|
|
2360
|
-
...(input.
|
|
2361
|
-
...(input.
|
|
2362
|
-
...(input.SavingsPlansType !== undefined &&
|
|
2363
|
-
input.SavingsPlansType !== null && { SavingsPlansType: input.SavingsPlansType }),
|
|
2364
|
-
...(input.TermInYears !== undefined && input.TermInYears !== null && { TermInYears: input.TermInYears }),
|
|
2319
|
+
...(input.AccountScope != null && { AccountScope: input.AccountScope }),
|
|
2320
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2321
|
+
...(input.LookbackPeriodInDays != null && { LookbackPeriodInDays: input.LookbackPeriodInDays }),
|
|
2322
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2323
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
2324
|
+
...(input.PaymentOption != null && { PaymentOption: input.PaymentOption }),
|
|
2325
|
+
...(input.SavingsPlansType != null && { SavingsPlansType: input.SavingsPlansType }),
|
|
2326
|
+
...(input.TermInYears != null && { TermInYears: input.TermInYears }),
|
|
2365
2327
|
};
|
|
2366
2328
|
};
|
|
2367
2329
|
const serializeAws_json1_1GetSavingsPlansUtilizationDetailsRequest = (input, context) => {
|
|
2368
2330
|
return {
|
|
2369
|
-
...(input.DataType
|
|
2370
|
-
|
|
2371
|
-
...(input.
|
|
2372
|
-
|
|
2373
|
-
...(input.
|
|
2374
|
-
...(input.
|
|
2375
|
-
...(input.SortBy !== undefined &&
|
|
2376
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2377
|
-
...(input.TimePeriod !== undefined &&
|
|
2378
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2331
|
+
...(input.DataType != null && { DataType: serializeAws_json1_1SavingsPlansDataTypes(input.DataType, context) }),
|
|
2332
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2333
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2334
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2335
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2336
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2379
2337
|
};
|
|
2380
2338
|
};
|
|
2381
2339
|
const serializeAws_json1_1GetSavingsPlansUtilizationRequest = (input, context) => {
|
|
2382
2340
|
return {
|
|
2383
|
-
...(input.Filter
|
|
2384
|
-
|
|
2385
|
-
...(input.
|
|
2386
|
-
...(input.
|
|
2387
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2388
|
-
...(input.TimePeriod !== undefined &&
|
|
2389
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2341
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2342
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2343
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) }),
|
|
2344
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2390
2345
|
};
|
|
2391
2346
|
};
|
|
2392
2347
|
const serializeAws_json1_1GetTagsRequest = (input, context) => {
|
|
2393
2348
|
return {
|
|
2394
|
-
...(input.Filter
|
|
2395
|
-
|
|
2396
|
-
...(input.
|
|
2397
|
-
...(input.
|
|
2398
|
-
...(input.
|
|
2399
|
-
...(input.
|
|
2400
|
-
|
|
2401
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2402
|
-
...(input.TimePeriod !== undefined &&
|
|
2403
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2349
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2350
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2351
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2352
|
+
...(input.SearchString != null && { SearchString: input.SearchString }),
|
|
2353
|
+
...(input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) }),
|
|
2354
|
+
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
2355
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2404
2356
|
};
|
|
2405
2357
|
};
|
|
2406
2358
|
const serializeAws_json1_1GetUsageForecastRequest = (input, context) => {
|
|
2407
2359
|
return {
|
|
2408
|
-
...(input.Filter
|
|
2409
|
-
|
|
2410
|
-
...(input.
|
|
2411
|
-
...(input.
|
|
2412
|
-
...(input.
|
|
2413
|
-
input.PredictionIntervalLevel !== null && { PredictionIntervalLevel: input.PredictionIntervalLevel }),
|
|
2414
|
-
...(input.TimePeriod !== undefined &&
|
|
2415
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2360
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) }),
|
|
2361
|
+
...(input.Granularity != null && { Granularity: input.Granularity }),
|
|
2362
|
+
...(input.Metric != null && { Metric: input.Metric }),
|
|
2363
|
+
...(input.PredictionIntervalLevel != null && { PredictionIntervalLevel: input.PredictionIntervalLevel }),
|
|
2364
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }),
|
|
2416
2365
|
};
|
|
2417
2366
|
};
|
|
2418
2367
|
const serializeAws_json1_1GroupDefinition = (input, context) => {
|
|
2419
2368
|
return {
|
|
2420
|
-
...(input.Key
|
|
2421
|
-
...(input.Type
|
|
2369
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2370
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2422
2371
|
};
|
|
2423
2372
|
};
|
|
2424
2373
|
const serializeAws_json1_1GroupDefinitions = (input, context) => {
|
|
@@ -2433,24 +2382,23 @@ const serializeAws_json1_1GroupDefinitions = (input, context) => {
|
|
|
2433
2382
|
};
|
|
2434
2383
|
const serializeAws_json1_1ListCostAllocationTagsRequest = (input, context) => {
|
|
2435
2384
|
return {
|
|
2436
|
-
...(input.MaxResults
|
|
2437
|
-
...(input.NextToken
|
|
2438
|
-
...(input.Status
|
|
2439
|
-
...(input.TagKeys
|
|
2440
|
-
|
|
2441
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2385
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2386
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2387
|
+
...(input.Status != null && { Status: input.Status }),
|
|
2388
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1CostAllocationTagKeyList(input.TagKeys, context) }),
|
|
2389
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2442
2390
|
};
|
|
2443
2391
|
};
|
|
2444
2392
|
const serializeAws_json1_1ListCostCategoryDefinitionsRequest = (input, context) => {
|
|
2445
2393
|
return {
|
|
2446
|
-
...(input.EffectiveOn
|
|
2447
|
-
...(input.MaxResults
|
|
2448
|
-
...(input.NextToken
|
|
2394
|
+
...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
|
|
2395
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2396
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2449
2397
|
};
|
|
2450
2398
|
};
|
|
2451
2399
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2452
2400
|
return {
|
|
2453
|
-
...(input.ResourceArn
|
|
2401
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2454
2402
|
};
|
|
2455
2403
|
};
|
|
2456
2404
|
const serializeAws_json1_1MatchOptions = (input, context) => {
|
|
@@ -2485,14 +2433,14 @@ const serializeAws_json1_1MonitorArnList = (input, context) => {
|
|
|
2485
2433
|
};
|
|
2486
2434
|
const serializeAws_json1_1ProvideAnomalyFeedbackRequest = (input, context) => {
|
|
2487
2435
|
return {
|
|
2488
|
-
...(input.AnomalyId
|
|
2489
|
-
...(input.Feedback
|
|
2436
|
+
...(input.AnomalyId != null && { AnomalyId: input.AnomalyId }),
|
|
2437
|
+
...(input.Feedback != null && { Feedback: input.Feedback }),
|
|
2490
2438
|
};
|
|
2491
2439
|
};
|
|
2492
2440
|
const serializeAws_json1_1ResourceTag = (input, context) => {
|
|
2493
2441
|
return {
|
|
2494
|
-
...(input.Key
|
|
2495
|
-
...(input.Value
|
|
2442
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2443
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2496
2444
|
};
|
|
2497
2445
|
};
|
|
2498
2446
|
const serializeAws_json1_1ResourceTagKeyList = (input, context) => {
|
|
@@ -2517,10 +2465,8 @@ const serializeAws_json1_1ResourceTagList = (input, context) => {
|
|
|
2517
2465
|
};
|
|
2518
2466
|
const serializeAws_json1_1RightsizingRecommendationConfiguration = (input, context) => {
|
|
2519
2467
|
return {
|
|
2520
|
-
...(input.BenefitsConsidered
|
|
2521
|
-
|
|
2522
|
-
...(input.RecommendationTarget !== undefined &&
|
|
2523
|
-
input.RecommendationTarget !== null && { RecommendationTarget: input.RecommendationTarget }),
|
|
2468
|
+
...(input.BenefitsConsidered != null && { BenefitsConsidered: input.BenefitsConsidered }),
|
|
2469
|
+
...(input.RecommendationTarget != null && { RecommendationTarget: input.RecommendationTarget }),
|
|
2524
2470
|
};
|
|
2525
2471
|
};
|
|
2526
2472
|
const serializeAws_json1_1SavingsPlansDataTypes = (input, context) => {
|
|
@@ -2535,16 +2481,15 @@ const serializeAws_json1_1SavingsPlansDataTypes = (input, context) => {
|
|
|
2535
2481
|
};
|
|
2536
2482
|
const serializeAws_json1_1ServiceSpecification = (input, context) => {
|
|
2537
2483
|
return {
|
|
2538
|
-
...(input.EC2Specification
|
|
2539
|
-
input.EC2Specification !== null && {
|
|
2484
|
+
...(input.EC2Specification != null && {
|
|
2540
2485
|
EC2Specification: serializeAws_json1_1EC2Specification(input.EC2Specification, context),
|
|
2541
2486
|
}),
|
|
2542
2487
|
};
|
|
2543
2488
|
};
|
|
2544
2489
|
const serializeAws_json1_1SortDefinition = (input, context) => {
|
|
2545
2490
|
return {
|
|
2546
|
-
...(input.Key
|
|
2547
|
-
...(input.SortOrder
|
|
2491
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2492
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
2548
2493
|
};
|
|
2549
2494
|
};
|
|
2550
2495
|
const serializeAws_json1_1SortDefinitions = (input, context) => {
|
|
@@ -2559,9 +2504,9 @@ const serializeAws_json1_1SortDefinitions = (input, context) => {
|
|
|
2559
2504
|
};
|
|
2560
2505
|
const serializeAws_json1_1Subscriber = (input, context) => {
|
|
2561
2506
|
return {
|
|
2562
|
-
...(input.Address
|
|
2563
|
-
...(input.Status
|
|
2564
|
-
...(input.Type
|
|
2507
|
+
...(input.Address != null && { Address: input.Address }),
|
|
2508
|
+
...(input.Status != null && { Status: input.Status }),
|
|
2509
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2565
2510
|
};
|
|
2566
2511
|
};
|
|
2567
2512
|
const serializeAws_json1_1Subscribers = (input, context) => {
|
|
@@ -2576,80 +2521,66 @@ const serializeAws_json1_1Subscribers = (input, context) => {
|
|
|
2576
2521
|
};
|
|
2577
2522
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2578
2523
|
return {
|
|
2579
|
-
...(input.ResourceArn
|
|
2580
|
-
...(input.ResourceTags
|
|
2581
|
-
input.ResourceTags !== null && {
|
|
2524
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2525
|
+
...(input.ResourceTags != null && {
|
|
2582
2526
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2583
2527
|
}),
|
|
2584
2528
|
};
|
|
2585
2529
|
};
|
|
2586
2530
|
const serializeAws_json1_1TagValues = (input, context) => {
|
|
2587
2531
|
return {
|
|
2588
|
-
...(input.Key
|
|
2589
|
-
...(input.MatchOptions
|
|
2590
|
-
|
|
2591
|
-
...(input.Values !== undefined &&
|
|
2592
|
-
input.Values !== null && { Values: serializeAws_json1_1Values(input.Values, context) }),
|
|
2532
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2533
|
+
...(input.MatchOptions != null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) }),
|
|
2534
|
+
...(input.Values != null && { Values: serializeAws_json1_1Values(input.Values, context) }),
|
|
2593
2535
|
};
|
|
2594
2536
|
};
|
|
2595
2537
|
const serializeAws_json1_1TotalImpactFilter = (input, context) => {
|
|
2596
2538
|
return {
|
|
2597
|
-
...(input.EndValue
|
|
2598
|
-
...(input.NumericOperator
|
|
2599
|
-
|
|
2600
|
-
...(input.StartValue !== undefined &&
|
|
2601
|
-
input.StartValue !== null && { StartValue: (0, smithy_client_1.serializeFloat)(input.StartValue) }),
|
|
2539
|
+
...(input.EndValue != null && { EndValue: (0, smithy_client_1.serializeFloat)(input.EndValue) }),
|
|
2540
|
+
...(input.NumericOperator != null && { NumericOperator: input.NumericOperator }),
|
|
2541
|
+
...(input.StartValue != null && { StartValue: (0, smithy_client_1.serializeFloat)(input.StartValue) }),
|
|
2602
2542
|
};
|
|
2603
2543
|
};
|
|
2604
2544
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2605
2545
|
return {
|
|
2606
|
-
...(input.ResourceArn
|
|
2607
|
-
...(input.ResourceTagKeys
|
|
2608
|
-
input.ResourceTagKeys !== null && {
|
|
2546
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2547
|
+
...(input.ResourceTagKeys != null && {
|
|
2609
2548
|
ResourceTagKeys: serializeAws_json1_1ResourceTagKeyList(input.ResourceTagKeys, context),
|
|
2610
2549
|
}),
|
|
2611
2550
|
};
|
|
2612
2551
|
};
|
|
2613
2552
|
const serializeAws_json1_1UpdateAnomalyMonitorRequest = (input, context) => {
|
|
2614
2553
|
return {
|
|
2615
|
-
...(input.MonitorArn
|
|
2616
|
-
...(input.MonitorName
|
|
2554
|
+
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2555
|
+
...(input.MonitorName != null && { MonitorName: input.MonitorName }),
|
|
2617
2556
|
};
|
|
2618
2557
|
};
|
|
2619
2558
|
const serializeAws_json1_1UpdateAnomalySubscriptionRequest = (input, context) => {
|
|
2620
2559
|
return {
|
|
2621
|
-
...(input.Frequency
|
|
2622
|
-
...(input.MonitorArnList
|
|
2623
|
-
input.MonitorArnList !== null && {
|
|
2560
|
+
...(input.Frequency != null && { Frequency: input.Frequency }),
|
|
2561
|
+
...(input.MonitorArnList != null && {
|
|
2624
2562
|
MonitorArnList: serializeAws_json1_1MonitorArnList(input.MonitorArnList, context),
|
|
2625
2563
|
}),
|
|
2626
|
-
...(input.Subscribers
|
|
2627
|
-
|
|
2628
|
-
...(input.
|
|
2629
|
-
|
|
2630
|
-
...(input.SubscriptionName !== undefined &&
|
|
2631
|
-
input.SubscriptionName !== null && { SubscriptionName: input.SubscriptionName }),
|
|
2632
|
-
...(input.Threshold !== undefined && input.Threshold !== null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
2564
|
+
...(input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
2565
|
+
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
2566
|
+
...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
|
|
2567
|
+
...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
2633
2568
|
};
|
|
2634
2569
|
};
|
|
2635
2570
|
const serializeAws_json1_1UpdateCostAllocationTagsStatusRequest = (input, context) => {
|
|
2636
2571
|
return {
|
|
2637
|
-
...(input.CostAllocationTagsStatus
|
|
2638
|
-
input.CostAllocationTagsStatus !== null && {
|
|
2572
|
+
...(input.CostAllocationTagsStatus != null && {
|
|
2639
2573
|
CostAllocationTagsStatus: serializeAws_json1_1CostAllocationTagStatusList(input.CostAllocationTagsStatus, context),
|
|
2640
2574
|
}),
|
|
2641
2575
|
};
|
|
2642
2576
|
};
|
|
2643
2577
|
const serializeAws_json1_1UpdateCostCategoryDefinitionRequest = (input, context) => {
|
|
2644
2578
|
return {
|
|
2645
|
-
...(input.CostCategoryArn
|
|
2646
|
-
|
|
2647
|
-
...(input.
|
|
2648
|
-
...(input.
|
|
2649
|
-
...(input.
|
|
2650
|
-
input.Rules !== null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) }),
|
|
2651
|
-
...(input.SplitChargeRules !== undefined &&
|
|
2652
|
-
input.SplitChargeRules !== null && {
|
|
2579
|
+
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2580
|
+
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
|
|
2581
|
+
...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
|
|
2582
|
+
...(input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) }),
|
|
2583
|
+
...(input.SplitChargeRules != null && {
|
|
2653
2584
|
SplitChargeRules: serializeAws_json1_1CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
2654
2585
|
}),
|
|
2655
2586
|
};
|
|
@@ -2679,19 +2610,13 @@ const deserializeAws_json1_1Anomaly = (output, context) => {
|
|
|
2679
2610
|
return {
|
|
2680
2611
|
AnomalyEndDate: (0, smithy_client_1.expectString)(output.AnomalyEndDate),
|
|
2681
2612
|
AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
|
|
2682
|
-
AnomalyScore: output.AnomalyScore
|
|
2683
|
-
? deserializeAws_json1_1AnomalyScore(output.AnomalyScore, context)
|
|
2684
|
-
: undefined,
|
|
2613
|
+
AnomalyScore: output.AnomalyScore != null ? deserializeAws_json1_1AnomalyScore(output.AnomalyScore, context) : undefined,
|
|
2685
2614
|
AnomalyStartDate: (0, smithy_client_1.expectString)(output.AnomalyStartDate),
|
|
2686
2615
|
DimensionValue: (0, smithy_client_1.expectString)(output.DimensionValue),
|
|
2687
2616
|
Feedback: (0, smithy_client_1.expectString)(output.Feedback),
|
|
2688
|
-
Impact: output.Impact
|
|
2689
|
-
? deserializeAws_json1_1Impact(output.Impact, context)
|
|
2690
|
-
: undefined,
|
|
2617
|
+
Impact: output.Impact != null ? deserializeAws_json1_1Impact(output.Impact, context) : undefined,
|
|
2691
2618
|
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
2692
|
-
RootCauses: output.RootCauses
|
|
2693
|
-
? deserializeAws_json1_1RootCauses(output.RootCauses, context)
|
|
2694
|
-
: undefined,
|
|
2619
|
+
RootCauses: output.RootCauses != null ? deserializeAws_json1_1RootCauses(output.RootCauses, context) : undefined,
|
|
2695
2620
|
};
|
|
2696
2621
|
};
|
|
2697
2622
|
const deserializeAws_json1_1AnomalyMonitor = (output, context) => {
|
|
@@ -2703,7 +2628,7 @@ const deserializeAws_json1_1AnomalyMonitor = (output, context) => {
|
|
|
2703
2628
|
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
2704
2629
|
MonitorDimension: (0, smithy_client_1.expectString)(output.MonitorDimension),
|
|
2705
2630
|
MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
|
|
2706
|
-
MonitorSpecification: output.MonitorSpecification
|
|
2631
|
+
MonitorSpecification: output.MonitorSpecification != null
|
|
2707
2632
|
? deserializeAws_json1_1Expression(output.MonitorSpecification, context)
|
|
2708
2633
|
: undefined,
|
|
2709
2634
|
MonitorType: (0, smithy_client_1.expectString)(output.MonitorType),
|
|
@@ -2730,12 +2655,8 @@ const deserializeAws_json1_1AnomalySubscription = (output, context) => {
|
|
|
2730
2655
|
return {
|
|
2731
2656
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2732
2657
|
Frequency: (0, smithy_client_1.expectString)(output.Frequency),
|
|
2733
|
-
MonitorArnList: output.MonitorArnList
|
|
2734
|
-
|
|
2735
|
-
: undefined,
|
|
2736
|
-
Subscribers: output.Subscribers !== undefined && output.Subscribers !== null
|
|
2737
|
-
? deserializeAws_json1_1Subscribers(output.Subscribers, context)
|
|
2738
|
-
: undefined,
|
|
2658
|
+
MonitorArnList: output.MonitorArnList != null ? deserializeAws_json1_1MonitorArnList(output.MonitorArnList, context) : undefined,
|
|
2659
|
+
Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
|
|
2739
2660
|
SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
|
|
2740
2661
|
SubscriptionName: (0, smithy_client_1.expectString)(output.SubscriptionName),
|
|
2741
2662
|
Threshold: (0, smithy_client_1.limitedParseDouble)(output.Threshold),
|
|
@@ -2793,14 +2714,12 @@ const deserializeAws_json1_1CostCategory = (output, context) => {
|
|
|
2793
2714
|
EffectiveEnd: (0, smithy_client_1.expectString)(output.EffectiveEnd),
|
|
2794
2715
|
EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
|
|
2795
2716
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2796
|
-
ProcessingStatus: output.ProcessingStatus
|
|
2717
|
+
ProcessingStatus: output.ProcessingStatus != null
|
|
2797
2718
|
? deserializeAws_json1_1CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
2798
2719
|
: undefined,
|
|
2799
2720
|
RuleVersion: (0, smithy_client_1.expectString)(output.RuleVersion),
|
|
2800
|
-
Rules: output.Rules
|
|
2801
|
-
|
|
2802
|
-
: undefined,
|
|
2803
|
-
SplitChargeRules: output.SplitChargeRules !== undefined && output.SplitChargeRules !== null
|
|
2721
|
+
Rules: output.Rules != null ? deserializeAws_json1_1CostCategoryRulesList(output.Rules, context) : undefined,
|
|
2722
|
+
SplitChargeRules: output.SplitChargeRules != null
|
|
2804
2723
|
? deserializeAws_json1_1CostCategorySplitChargeRulesList(output.SplitChargeRules, context)
|
|
2805
2724
|
: undefined,
|
|
2806
2725
|
};
|
|
@@ -2847,12 +2766,10 @@ const deserializeAws_json1_1CostCategoryReference = (output, context) => {
|
|
|
2847
2766
|
EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
|
|
2848
2767
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2849
2768
|
NumberOfRules: (0, smithy_client_1.expectInt32)(output.NumberOfRules),
|
|
2850
|
-
ProcessingStatus: output.ProcessingStatus
|
|
2769
|
+
ProcessingStatus: output.ProcessingStatus != null
|
|
2851
2770
|
? deserializeAws_json1_1CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
2852
2771
|
: undefined,
|
|
2853
|
-
Values: output.Values
|
|
2854
|
-
? deserializeAws_json1_1CostCategoryValuesList(output.Values, context)
|
|
2855
|
-
: undefined,
|
|
2772
|
+
Values: output.Values != null ? deserializeAws_json1_1CostCategoryValuesList(output.Values, context) : undefined,
|
|
2856
2773
|
};
|
|
2857
2774
|
};
|
|
2858
2775
|
const deserializeAws_json1_1CostCategoryReferencesList = (output, context) => {
|
|
@@ -2868,12 +2785,10 @@ const deserializeAws_json1_1CostCategoryReferencesList = (output, context) => {
|
|
|
2868
2785
|
};
|
|
2869
2786
|
const deserializeAws_json1_1CostCategoryRule = (output, context) => {
|
|
2870
2787
|
return {
|
|
2871
|
-
InheritedValue: output.InheritedValue
|
|
2788
|
+
InheritedValue: output.InheritedValue != null
|
|
2872
2789
|
? deserializeAws_json1_1CostCategoryInheritedValueDimension(output.InheritedValue, context)
|
|
2873
2790
|
: undefined,
|
|
2874
|
-
Rule: output.Rule
|
|
2875
|
-
? deserializeAws_json1_1Expression(output.Rule, context)
|
|
2876
|
-
: undefined,
|
|
2791
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Expression(output.Rule, context) : undefined,
|
|
2877
2792
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2878
2793
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2879
2794
|
};
|
|
@@ -2892,11 +2807,11 @@ const deserializeAws_json1_1CostCategoryRulesList = (output, context) => {
|
|
|
2892
2807
|
const deserializeAws_json1_1CostCategorySplitChargeRule = (output, context) => {
|
|
2893
2808
|
return {
|
|
2894
2809
|
Method: (0, smithy_client_1.expectString)(output.Method),
|
|
2895
|
-
Parameters: output.Parameters
|
|
2810
|
+
Parameters: output.Parameters != null
|
|
2896
2811
|
? deserializeAws_json1_1CostCategorySplitChargeRuleParametersList(output.Parameters, context)
|
|
2897
2812
|
: undefined,
|
|
2898
2813
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
2899
|
-
Targets: output.Targets
|
|
2814
|
+
Targets: output.Targets != null
|
|
2900
2815
|
? deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList(output.Targets, context)
|
|
2901
2816
|
: undefined,
|
|
2902
2817
|
};
|
|
@@ -2904,7 +2819,7 @@ const deserializeAws_json1_1CostCategorySplitChargeRule = (output, context) => {
|
|
|
2904
2819
|
const deserializeAws_json1_1CostCategorySplitChargeRuleParameter = (output, context) => {
|
|
2905
2820
|
return {
|
|
2906
2821
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2907
|
-
Values: output.Values
|
|
2822
|
+
Values: output.Values != null
|
|
2908
2823
|
? deserializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList(output.Values, context)
|
|
2909
2824
|
: undefined,
|
|
2910
2825
|
};
|
|
@@ -2956,12 +2871,8 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList = (output, co
|
|
|
2956
2871
|
const deserializeAws_json1_1CostCategoryValues = (output, context) => {
|
|
2957
2872
|
return {
|
|
2958
2873
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2959
|
-
MatchOptions: output.MatchOptions
|
|
2960
|
-
|
|
2961
|
-
: undefined,
|
|
2962
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
2963
|
-
? deserializeAws_json1_1Values(output.Values, context)
|
|
2964
|
-
: undefined,
|
|
2874
|
+
MatchOptions: output.MatchOptions != null ? deserializeAws_json1_1MatchOptions(output.MatchOptions, context) : undefined,
|
|
2875
|
+
Values: output.Values != null ? deserializeAws_json1_1Values(output.Values, context) : undefined,
|
|
2965
2876
|
};
|
|
2966
2877
|
};
|
|
2967
2878
|
const deserializeAws_json1_1CostCategoryValuesList = (output, context) => {
|
|
@@ -2977,28 +2888,18 @@ const deserializeAws_json1_1CostCategoryValuesList = (output, context) => {
|
|
|
2977
2888
|
};
|
|
2978
2889
|
const deserializeAws_json1_1Coverage = (output, context) => {
|
|
2979
2890
|
return {
|
|
2980
|
-
CoverageCost: output.CoverageCost
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
CoverageHours: output.CoverageHours !== undefined && output.CoverageHours !== null
|
|
2984
|
-
? deserializeAws_json1_1CoverageHours(output.CoverageHours, context)
|
|
2985
|
-
: undefined,
|
|
2986
|
-
CoverageNormalizedUnits: output.CoverageNormalizedUnits !== undefined && output.CoverageNormalizedUnits !== null
|
|
2891
|
+
CoverageCost: output.CoverageCost != null ? deserializeAws_json1_1CoverageCost(output.CoverageCost, context) : undefined,
|
|
2892
|
+
CoverageHours: output.CoverageHours != null ? deserializeAws_json1_1CoverageHours(output.CoverageHours, context) : undefined,
|
|
2893
|
+
CoverageNormalizedUnits: output.CoverageNormalizedUnits != null
|
|
2987
2894
|
? deserializeAws_json1_1CoverageNormalizedUnits(output.CoverageNormalizedUnits, context)
|
|
2988
2895
|
: undefined,
|
|
2989
2896
|
};
|
|
2990
2897
|
};
|
|
2991
2898
|
const deserializeAws_json1_1CoverageByTime = (output, context) => {
|
|
2992
2899
|
return {
|
|
2993
|
-
Groups: output.Groups
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
2997
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
2998
|
-
: undefined,
|
|
2999
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
3000
|
-
? deserializeAws_json1_1Coverage(output.Total, context)
|
|
3001
|
-
: undefined,
|
|
2900
|
+
Groups: output.Groups != null ? deserializeAws_json1_1ReservationCoverageGroups(output.Groups, context) : undefined,
|
|
2901
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
2902
|
+
Total: output.Total != null ? deserializeAws_json1_1Coverage(output.Total, context) : undefined,
|
|
3002
2903
|
};
|
|
3003
2904
|
};
|
|
3004
2905
|
const deserializeAws_json1_1CoverageCost = (output, context) => {
|
|
@@ -3056,17 +2957,15 @@ const deserializeAws_json1_1CurrentInstance = (output, context) => {
|
|
|
3056
2957
|
MonthlyCost: (0, smithy_client_1.expectString)(output.MonthlyCost),
|
|
3057
2958
|
OnDemandHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.OnDemandHoursInLookbackPeriod),
|
|
3058
2959
|
ReservationCoveredHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.ReservationCoveredHoursInLookbackPeriod),
|
|
3059
|
-
ResourceDetails: output.ResourceDetails
|
|
2960
|
+
ResourceDetails: output.ResourceDetails != null
|
|
3060
2961
|
? deserializeAws_json1_1ResourceDetails(output.ResourceDetails, context)
|
|
3061
2962
|
: undefined,
|
|
3062
2963
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
3063
|
-
ResourceUtilization: output.ResourceUtilization
|
|
2964
|
+
ResourceUtilization: output.ResourceUtilization != null
|
|
3064
2965
|
? deserializeAws_json1_1ResourceUtilization(output.ResourceUtilization, context)
|
|
3065
2966
|
: undefined,
|
|
3066
2967
|
SavingsPlansCoveredHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.SavingsPlansCoveredHoursInLookbackPeriod),
|
|
3067
|
-
Tags: output.Tags
|
|
3068
|
-
? deserializeAws_json1_1TagValuesList(output.Tags, context)
|
|
3069
|
-
: undefined,
|
|
2968
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagValuesList(output.Tags, context) : undefined,
|
|
3070
2969
|
TotalRunningHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.TotalRunningHoursInLookbackPeriod),
|
|
3071
2970
|
};
|
|
3072
2971
|
};
|
|
@@ -3095,27 +2994,19 @@ const deserializeAws_json1_1DeleteCostCategoryDefinitionResponse = (output, cont
|
|
|
3095
2994
|
};
|
|
3096
2995
|
const deserializeAws_json1_1DescribeCostCategoryDefinitionResponse = (output, context) => {
|
|
3097
2996
|
return {
|
|
3098
|
-
CostCategory: output.CostCategory
|
|
3099
|
-
? deserializeAws_json1_1CostCategory(output.CostCategory, context)
|
|
3100
|
-
: undefined,
|
|
2997
|
+
CostCategory: output.CostCategory != null ? deserializeAws_json1_1CostCategory(output.CostCategory, context) : undefined,
|
|
3101
2998
|
};
|
|
3102
2999
|
};
|
|
3103
3000
|
const deserializeAws_json1_1DimensionValues = (output, context) => {
|
|
3104
3001
|
return {
|
|
3105
3002
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3106
|
-
MatchOptions: output.MatchOptions
|
|
3107
|
-
|
|
3108
|
-
: undefined,
|
|
3109
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
3110
|
-
? deserializeAws_json1_1Values(output.Values, context)
|
|
3111
|
-
: undefined,
|
|
3003
|
+
MatchOptions: output.MatchOptions != null ? deserializeAws_json1_1MatchOptions(output.MatchOptions, context) : undefined,
|
|
3004
|
+
Values: output.Values != null ? deserializeAws_json1_1Values(output.Values, context) : undefined,
|
|
3112
3005
|
};
|
|
3113
3006
|
};
|
|
3114
3007
|
const deserializeAws_json1_1DimensionValuesWithAttributes = (output, context) => {
|
|
3115
3008
|
return {
|
|
3116
|
-
Attributes: output.Attributes
|
|
3117
|
-
? deserializeAws_json1_1Attributes(output.Attributes, context)
|
|
3118
|
-
: undefined,
|
|
3009
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
3119
3010
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3120
3011
|
};
|
|
3121
3012
|
};
|
|
@@ -3173,16 +3064,16 @@ const deserializeAws_json1_1EC2ResourceDetails = (output, context) => {
|
|
|
3173
3064
|
};
|
|
3174
3065
|
const deserializeAws_json1_1EC2ResourceUtilization = (output, context) => {
|
|
3175
3066
|
return {
|
|
3176
|
-
DiskResourceUtilization: output.DiskResourceUtilization
|
|
3067
|
+
DiskResourceUtilization: output.DiskResourceUtilization != null
|
|
3177
3068
|
? deserializeAws_json1_1DiskResourceUtilization(output.DiskResourceUtilization, context)
|
|
3178
3069
|
: undefined,
|
|
3179
|
-
EBSResourceUtilization: output.EBSResourceUtilization
|
|
3070
|
+
EBSResourceUtilization: output.EBSResourceUtilization != null
|
|
3180
3071
|
? deserializeAws_json1_1EBSResourceUtilization(output.EBSResourceUtilization, context)
|
|
3181
3072
|
: undefined,
|
|
3182
3073
|
MaxCpuUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxCpuUtilizationPercentage),
|
|
3183
3074
|
MaxMemoryUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxMemoryUtilizationPercentage),
|
|
3184
3075
|
MaxStorageUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxStorageUtilizationPercentage),
|
|
3185
|
-
NetworkResourceUtilization: output.NetworkResourceUtilization
|
|
3076
|
+
NetworkResourceUtilization: output.NetworkResourceUtilization != null
|
|
3186
3077
|
? deserializeAws_json1_1NetworkResourceUtilization(output.NetworkResourceUtilization, context)
|
|
3187
3078
|
: undefined,
|
|
3188
3079
|
};
|
|
@@ -3213,22 +3104,14 @@ const deserializeAws_json1_1ESInstanceDetails = (output, context) => {
|
|
|
3213
3104
|
};
|
|
3214
3105
|
const deserializeAws_json1_1Expression = (output, context) => {
|
|
3215
3106
|
return {
|
|
3216
|
-
And: output.And
|
|
3217
|
-
|
|
3218
|
-
: undefined,
|
|
3219
|
-
CostCategories: output.CostCategories !== undefined && output.CostCategories !== null
|
|
3107
|
+
And: output.And != null ? deserializeAws_json1_1Expressions(output.And, context) : undefined,
|
|
3108
|
+
CostCategories: output.CostCategories != null
|
|
3220
3109
|
? deserializeAws_json1_1CostCategoryValues(output.CostCategories, context)
|
|
3221
3110
|
: undefined,
|
|
3222
|
-
Dimensions: output.Dimensions
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
? deserializeAws_json1_1Expression(output.Not, context)
|
|
3227
|
-
: undefined,
|
|
3228
|
-
Or: output.Or !== undefined && output.Or !== null ? deserializeAws_json1_1Expressions(output.Or, context) : undefined,
|
|
3229
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3230
|
-
? deserializeAws_json1_1TagValues(output.Tags, context)
|
|
3231
|
-
: undefined,
|
|
3111
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_1DimensionValues(output.Dimensions, context) : undefined,
|
|
3112
|
+
Not: output.Not != null ? deserializeAws_json1_1Expression(output.Not, context) : undefined,
|
|
3113
|
+
Or: output.Or != null ? deserializeAws_json1_1Expressions(output.Or, context) : undefined,
|
|
3114
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagValues(output.Tags, context) : undefined,
|
|
3232
3115
|
};
|
|
3233
3116
|
};
|
|
3234
3117
|
const deserializeAws_json1_1Expressions = (output, context) => {
|
|
@@ -3258,9 +3141,7 @@ const deserializeAws_json1_1ForecastResult = (output, context) => {
|
|
|
3258
3141
|
MeanValue: (0, smithy_client_1.expectString)(output.MeanValue),
|
|
3259
3142
|
PredictionIntervalLowerBound: (0, smithy_client_1.expectString)(output.PredictionIntervalLowerBound),
|
|
3260
3143
|
PredictionIntervalUpperBound: (0, smithy_client_1.expectString)(output.PredictionIntervalUpperBound),
|
|
3261
|
-
TimePeriod: output.TimePeriod
|
|
3262
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
3263
|
-
: undefined,
|
|
3144
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3264
3145
|
};
|
|
3265
3146
|
};
|
|
3266
3147
|
const deserializeAws_json1_1ForecastResultsByTime = (output, context) => {
|
|
@@ -3276,15 +3157,13 @@ const deserializeAws_json1_1ForecastResultsByTime = (output, context) => {
|
|
|
3276
3157
|
};
|
|
3277
3158
|
const deserializeAws_json1_1GetAnomaliesResponse = (output, context) => {
|
|
3278
3159
|
return {
|
|
3279
|
-
Anomalies: output.Anomalies
|
|
3280
|
-
? deserializeAws_json1_1Anomalies(output.Anomalies, context)
|
|
3281
|
-
: undefined,
|
|
3160
|
+
Anomalies: output.Anomalies != null ? deserializeAws_json1_1Anomalies(output.Anomalies, context) : undefined,
|
|
3282
3161
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3283
3162
|
};
|
|
3284
3163
|
};
|
|
3285
3164
|
const deserializeAws_json1_1GetAnomalyMonitorsResponse = (output, context) => {
|
|
3286
3165
|
return {
|
|
3287
|
-
AnomalyMonitors: output.AnomalyMonitors
|
|
3166
|
+
AnomalyMonitors: output.AnomalyMonitors != null
|
|
3288
3167
|
? deserializeAws_json1_1AnomalyMonitors(output.AnomalyMonitors, context)
|
|
3289
3168
|
: undefined,
|
|
3290
3169
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
@@ -3292,7 +3171,7 @@ const deserializeAws_json1_1GetAnomalyMonitorsResponse = (output, context) => {
|
|
|
3292
3171
|
};
|
|
3293
3172
|
const deserializeAws_json1_1GetAnomalySubscriptionsResponse = (output, context) => {
|
|
3294
3173
|
return {
|
|
3295
|
-
AnomalySubscriptions: output.AnomalySubscriptions
|
|
3174
|
+
AnomalySubscriptions: output.AnomalySubscriptions != null
|
|
3296
3175
|
? deserializeAws_json1_1AnomalySubscriptions(output.AnomalySubscriptions, context)
|
|
3297
3176
|
: undefined,
|
|
3298
3177
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
@@ -3300,38 +3179,34 @@ const deserializeAws_json1_1GetAnomalySubscriptionsResponse = (output, context)
|
|
|
3300
3179
|
};
|
|
3301
3180
|
const deserializeAws_json1_1GetCostAndUsageResponse = (output, context) => {
|
|
3302
3181
|
return {
|
|
3303
|
-
DimensionValueAttributes: output.DimensionValueAttributes
|
|
3182
|
+
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
3304
3183
|
? deserializeAws_json1_1DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
3305
3184
|
: undefined,
|
|
3306
|
-
GroupDefinitions: output.GroupDefinitions
|
|
3185
|
+
GroupDefinitions: output.GroupDefinitions != null
|
|
3307
3186
|
? deserializeAws_json1_1GroupDefinitions(output.GroupDefinitions, context)
|
|
3308
3187
|
: undefined,
|
|
3309
3188
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3310
|
-
ResultsByTime: output.ResultsByTime
|
|
3311
|
-
? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context)
|
|
3312
|
-
: undefined,
|
|
3189
|
+
ResultsByTime: output.ResultsByTime != null ? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
3313
3190
|
};
|
|
3314
3191
|
};
|
|
3315
3192
|
const deserializeAws_json1_1GetCostAndUsageWithResourcesResponse = (output, context) => {
|
|
3316
3193
|
return {
|
|
3317
|
-
DimensionValueAttributes: output.DimensionValueAttributes
|
|
3194
|
+
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
3318
3195
|
? deserializeAws_json1_1DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
3319
3196
|
: undefined,
|
|
3320
|
-
GroupDefinitions: output.GroupDefinitions
|
|
3197
|
+
GroupDefinitions: output.GroupDefinitions != null
|
|
3321
3198
|
? deserializeAws_json1_1GroupDefinitions(output.GroupDefinitions, context)
|
|
3322
3199
|
: undefined,
|
|
3323
3200
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3324
|
-
ResultsByTime: output.ResultsByTime
|
|
3325
|
-
? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context)
|
|
3326
|
-
: undefined,
|
|
3201
|
+
ResultsByTime: output.ResultsByTime != null ? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
3327
3202
|
};
|
|
3328
3203
|
};
|
|
3329
3204
|
const deserializeAws_json1_1GetCostCategoriesResponse = (output, context) => {
|
|
3330
3205
|
return {
|
|
3331
|
-
CostCategoryNames: output.CostCategoryNames
|
|
3206
|
+
CostCategoryNames: output.CostCategoryNames != null
|
|
3332
3207
|
? deserializeAws_json1_1CostCategoryNamesList(output.CostCategoryNames, context)
|
|
3333
3208
|
: undefined,
|
|
3334
|
-
CostCategoryValues: output.CostCategoryValues
|
|
3209
|
+
CostCategoryValues: output.CostCategoryValues != null
|
|
3335
3210
|
? deserializeAws_json1_1CostCategoryValuesList(output.CostCategoryValues, context)
|
|
3336
3211
|
: undefined,
|
|
3337
3212
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
@@ -3341,17 +3216,15 @@ const deserializeAws_json1_1GetCostCategoriesResponse = (output, context) => {
|
|
|
3341
3216
|
};
|
|
3342
3217
|
const deserializeAws_json1_1GetCostForecastResponse = (output, context) => {
|
|
3343
3218
|
return {
|
|
3344
|
-
ForecastResultsByTime: output.ForecastResultsByTime
|
|
3219
|
+
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
3345
3220
|
? deserializeAws_json1_1ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
3346
3221
|
: undefined,
|
|
3347
|
-
Total: output.Total
|
|
3348
|
-
? deserializeAws_json1_1MetricValue(output.Total, context)
|
|
3349
|
-
: undefined,
|
|
3222
|
+
Total: output.Total != null ? deserializeAws_json1_1MetricValue(output.Total, context) : undefined,
|
|
3350
3223
|
};
|
|
3351
3224
|
};
|
|
3352
3225
|
const deserializeAws_json1_1GetDimensionValuesResponse = (output, context) => {
|
|
3353
3226
|
return {
|
|
3354
|
-
DimensionValues: output.DimensionValues
|
|
3227
|
+
DimensionValues: output.DimensionValues != null
|
|
3355
3228
|
? deserializeAws_json1_1DimensionValuesWithAttributesList(output.DimensionValues, context)
|
|
3356
3229
|
: undefined,
|
|
3357
3230
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
@@ -3361,22 +3234,20 @@ const deserializeAws_json1_1GetDimensionValuesResponse = (output, context) => {
|
|
|
3361
3234
|
};
|
|
3362
3235
|
const deserializeAws_json1_1GetReservationCoverageResponse = (output, context) => {
|
|
3363
3236
|
return {
|
|
3364
|
-
CoveragesByTime: output.CoveragesByTime
|
|
3237
|
+
CoveragesByTime: output.CoveragesByTime != null
|
|
3365
3238
|
? deserializeAws_json1_1CoveragesByTime(output.CoveragesByTime, context)
|
|
3366
3239
|
: undefined,
|
|
3367
3240
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3368
|
-
Total: output.Total
|
|
3369
|
-
? deserializeAws_json1_1Coverage(output.Total, context)
|
|
3370
|
-
: undefined,
|
|
3241
|
+
Total: output.Total != null ? deserializeAws_json1_1Coverage(output.Total, context) : undefined,
|
|
3371
3242
|
};
|
|
3372
3243
|
};
|
|
3373
3244
|
const deserializeAws_json1_1GetReservationPurchaseRecommendationResponse = (output, context) => {
|
|
3374
3245
|
return {
|
|
3375
|
-
Metadata: output.Metadata
|
|
3246
|
+
Metadata: output.Metadata != null
|
|
3376
3247
|
? deserializeAws_json1_1ReservationPurchaseRecommendationMetadata(output.Metadata, context)
|
|
3377
3248
|
: undefined,
|
|
3378
3249
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3379
|
-
Recommendations: output.Recommendations
|
|
3250
|
+
Recommendations: output.Recommendations != null
|
|
3380
3251
|
? deserializeAws_json1_1ReservationPurchaseRecommendations(output.Recommendations, context)
|
|
3381
3252
|
: undefined,
|
|
3382
3253
|
};
|
|
@@ -3384,27 +3255,25 @@ const deserializeAws_json1_1GetReservationPurchaseRecommendationResponse = (outp
|
|
|
3384
3255
|
const deserializeAws_json1_1GetReservationUtilizationResponse = (output, context) => {
|
|
3385
3256
|
return {
|
|
3386
3257
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3387
|
-
Total: output.Total
|
|
3388
|
-
|
|
3389
|
-
: undefined,
|
|
3390
|
-
UtilizationsByTime: output.UtilizationsByTime !== undefined && output.UtilizationsByTime !== null
|
|
3258
|
+
Total: output.Total != null ? deserializeAws_json1_1ReservationAggregates(output.Total, context) : undefined,
|
|
3259
|
+
UtilizationsByTime: output.UtilizationsByTime != null
|
|
3391
3260
|
? deserializeAws_json1_1UtilizationsByTime(output.UtilizationsByTime, context)
|
|
3392
3261
|
: undefined,
|
|
3393
3262
|
};
|
|
3394
3263
|
};
|
|
3395
3264
|
const deserializeAws_json1_1GetRightsizingRecommendationResponse = (output, context) => {
|
|
3396
3265
|
return {
|
|
3397
|
-
Configuration: output.Configuration
|
|
3266
|
+
Configuration: output.Configuration != null
|
|
3398
3267
|
? deserializeAws_json1_1RightsizingRecommendationConfiguration(output.Configuration, context)
|
|
3399
3268
|
: undefined,
|
|
3400
|
-
Metadata: output.Metadata
|
|
3269
|
+
Metadata: output.Metadata != null
|
|
3401
3270
|
? deserializeAws_json1_1RightsizingRecommendationMetadata(output.Metadata, context)
|
|
3402
3271
|
: undefined,
|
|
3403
3272
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3404
|
-
RightsizingRecommendations: output.RightsizingRecommendations
|
|
3273
|
+
RightsizingRecommendations: output.RightsizingRecommendations != null
|
|
3405
3274
|
? deserializeAws_json1_1RightsizingRecommendationList(output.RightsizingRecommendations, context)
|
|
3406
3275
|
: undefined,
|
|
3407
|
-
Summary: output.Summary
|
|
3276
|
+
Summary: output.Summary != null
|
|
3408
3277
|
? deserializeAws_json1_1RightsizingRecommendationSummary(output.Summary, context)
|
|
3409
3278
|
: undefined,
|
|
3410
3279
|
};
|
|
@@ -3412,18 +3281,18 @@ const deserializeAws_json1_1GetRightsizingRecommendationResponse = (output, cont
|
|
|
3412
3281
|
const deserializeAws_json1_1GetSavingsPlansCoverageResponse = (output, context) => {
|
|
3413
3282
|
return {
|
|
3414
3283
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3415
|
-
SavingsPlansCoverages: output.SavingsPlansCoverages
|
|
3284
|
+
SavingsPlansCoverages: output.SavingsPlansCoverages != null
|
|
3416
3285
|
? deserializeAws_json1_1SavingsPlansCoverages(output.SavingsPlansCoverages, context)
|
|
3417
3286
|
: undefined,
|
|
3418
3287
|
};
|
|
3419
3288
|
};
|
|
3420
3289
|
const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationResponse = (output, context) => {
|
|
3421
3290
|
return {
|
|
3422
|
-
Metadata: output.Metadata
|
|
3291
|
+
Metadata: output.Metadata != null
|
|
3423
3292
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendationMetadata(output.Metadata, context)
|
|
3424
3293
|
: undefined,
|
|
3425
3294
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3426
|
-
SavingsPlansPurchaseRecommendation: output.SavingsPlansPurchaseRecommendation
|
|
3295
|
+
SavingsPlansPurchaseRecommendation: output.SavingsPlansPurchaseRecommendation != null
|
|
3427
3296
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendation(output.SavingsPlansPurchaseRecommendation, context)
|
|
3428
3297
|
: undefined,
|
|
3429
3298
|
};
|
|
@@ -3431,53 +3300,41 @@ const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationResponse = (out
|
|
|
3431
3300
|
const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsResponse = (output, context) => {
|
|
3432
3301
|
return {
|
|
3433
3302
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3434
|
-
SavingsPlansUtilizationDetails: output.SavingsPlansUtilizationDetails
|
|
3303
|
+
SavingsPlansUtilizationDetails: output.SavingsPlansUtilizationDetails != null
|
|
3435
3304
|
? deserializeAws_json1_1SavingsPlansUtilizationDetails(output.SavingsPlansUtilizationDetails, context)
|
|
3436
3305
|
: undefined,
|
|
3437
|
-
TimePeriod: output.TimePeriod
|
|
3438
|
-
|
|
3439
|
-
: undefined,
|
|
3440
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
3441
|
-
? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context)
|
|
3442
|
-
: undefined,
|
|
3306
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3307
|
+
Total: output.Total != null ? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3443
3308
|
};
|
|
3444
3309
|
};
|
|
3445
3310
|
const deserializeAws_json1_1GetSavingsPlansUtilizationResponse = (output, context) => {
|
|
3446
3311
|
return {
|
|
3447
|
-
SavingsPlansUtilizationsByTime: output.SavingsPlansUtilizationsByTime
|
|
3312
|
+
SavingsPlansUtilizationsByTime: output.SavingsPlansUtilizationsByTime != null
|
|
3448
3313
|
? deserializeAws_json1_1SavingsPlansUtilizationsByTime(output.SavingsPlansUtilizationsByTime, context)
|
|
3449
3314
|
: undefined,
|
|
3450
|
-
Total: output.Total
|
|
3451
|
-
? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context)
|
|
3452
|
-
: undefined,
|
|
3315
|
+
Total: output.Total != null ? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3453
3316
|
};
|
|
3454
3317
|
};
|
|
3455
3318
|
const deserializeAws_json1_1GetTagsResponse = (output, context) => {
|
|
3456
3319
|
return {
|
|
3457
3320
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3458
3321
|
ReturnSize: (0, smithy_client_1.expectInt32)(output.ReturnSize),
|
|
3459
|
-
Tags: output.Tags
|
|
3460
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3461
|
-
: undefined,
|
|
3322
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
3462
3323
|
TotalSize: (0, smithy_client_1.expectInt32)(output.TotalSize),
|
|
3463
3324
|
};
|
|
3464
3325
|
};
|
|
3465
3326
|
const deserializeAws_json1_1GetUsageForecastResponse = (output, context) => {
|
|
3466
3327
|
return {
|
|
3467
|
-
ForecastResultsByTime: output.ForecastResultsByTime
|
|
3328
|
+
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
3468
3329
|
? deserializeAws_json1_1ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
3469
3330
|
: undefined,
|
|
3470
|
-
Total: output.Total
|
|
3471
|
-
? deserializeAws_json1_1MetricValue(output.Total, context)
|
|
3472
|
-
: undefined,
|
|
3331
|
+
Total: output.Total != null ? deserializeAws_json1_1MetricValue(output.Total, context) : undefined,
|
|
3473
3332
|
};
|
|
3474
3333
|
};
|
|
3475
3334
|
const deserializeAws_json1_1Group = (output, context) => {
|
|
3476
3335
|
return {
|
|
3477
|
-
Keys: output.Keys
|
|
3478
|
-
Metrics: output.Metrics
|
|
3479
|
-
? deserializeAws_json1_1Metrics(output.Metrics, context)
|
|
3480
|
-
: undefined,
|
|
3336
|
+
Keys: output.Keys != null ? deserializeAws_json1_1Keys(output.Keys, context) : undefined,
|
|
3337
|
+
Metrics: output.Metrics != null ? deserializeAws_json1_1Metrics(output.Metrics, context) : undefined,
|
|
3481
3338
|
};
|
|
3482
3339
|
};
|
|
3483
3340
|
const deserializeAws_json1_1GroupDefinition = (output, context) => {
|
|
@@ -3516,19 +3373,19 @@ const deserializeAws_json1_1Impact = (output, context) => {
|
|
|
3516
3373
|
};
|
|
3517
3374
|
const deserializeAws_json1_1InstanceDetails = (output, context) => {
|
|
3518
3375
|
return {
|
|
3519
|
-
EC2InstanceDetails: output.EC2InstanceDetails
|
|
3376
|
+
EC2InstanceDetails: output.EC2InstanceDetails != null
|
|
3520
3377
|
? deserializeAws_json1_1EC2InstanceDetails(output.EC2InstanceDetails, context)
|
|
3521
3378
|
: undefined,
|
|
3522
|
-
ESInstanceDetails: output.ESInstanceDetails
|
|
3379
|
+
ESInstanceDetails: output.ESInstanceDetails != null
|
|
3523
3380
|
? deserializeAws_json1_1ESInstanceDetails(output.ESInstanceDetails, context)
|
|
3524
3381
|
: undefined,
|
|
3525
|
-
ElastiCacheInstanceDetails: output.ElastiCacheInstanceDetails
|
|
3382
|
+
ElastiCacheInstanceDetails: output.ElastiCacheInstanceDetails != null
|
|
3526
3383
|
? deserializeAws_json1_1ElastiCacheInstanceDetails(output.ElastiCacheInstanceDetails, context)
|
|
3527
3384
|
: undefined,
|
|
3528
|
-
RDSInstanceDetails: output.RDSInstanceDetails
|
|
3385
|
+
RDSInstanceDetails: output.RDSInstanceDetails != null
|
|
3529
3386
|
? deserializeAws_json1_1RDSInstanceDetails(output.RDSInstanceDetails, context)
|
|
3530
3387
|
: undefined,
|
|
3531
|
-
RedshiftInstanceDetails: output.RedshiftInstanceDetails
|
|
3388
|
+
RedshiftInstanceDetails: output.RedshiftInstanceDetails != null
|
|
3532
3389
|
? deserializeAws_json1_1RedshiftInstanceDetails(output.RedshiftInstanceDetails, context)
|
|
3533
3390
|
: undefined,
|
|
3534
3391
|
};
|
|
@@ -3556,7 +3413,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
3556
3413
|
};
|
|
3557
3414
|
const deserializeAws_json1_1ListCostAllocationTagsResponse = (output, context) => {
|
|
3558
3415
|
return {
|
|
3559
|
-
CostAllocationTags: output.CostAllocationTags
|
|
3416
|
+
CostAllocationTags: output.CostAllocationTags != null
|
|
3560
3417
|
? deserializeAws_json1_1CostAllocationTagList(output.CostAllocationTags, context)
|
|
3561
3418
|
: undefined,
|
|
3562
3419
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3564,7 +3421,7 @@ const deserializeAws_json1_1ListCostAllocationTagsResponse = (output, context) =
|
|
|
3564
3421
|
};
|
|
3565
3422
|
const deserializeAws_json1_1ListCostCategoryDefinitionsResponse = (output, context) => {
|
|
3566
3423
|
return {
|
|
3567
|
-
CostCategoryReferences: output.CostCategoryReferences
|
|
3424
|
+
CostCategoryReferences: output.CostCategoryReferences != null
|
|
3568
3425
|
? deserializeAws_json1_1CostCategoryReferencesList(output.CostCategoryReferences, context)
|
|
3569
3426
|
: undefined,
|
|
3570
3427
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3572,9 +3429,7 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsResponse = (output, conte
|
|
|
3572
3429
|
};
|
|
3573
3430
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3574
3431
|
return {
|
|
3575
|
-
ResourceTags: output.ResourceTags
|
|
3576
|
-
? deserializeAws_json1_1ResourceTagList(output.ResourceTags, context)
|
|
3577
|
-
: undefined,
|
|
3432
|
+
ResourceTags: output.ResourceTags != null ? deserializeAws_json1_1ResourceTagList(output.ResourceTags, context) : undefined,
|
|
3578
3433
|
};
|
|
3579
3434
|
};
|
|
3580
3435
|
const deserializeAws_json1_1MatchOptions = (output, context) => {
|
|
@@ -3607,7 +3462,7 @@ const deserializeAws_json1_1MetricValue = (output, context) => {
|
|
|
3607
3462
|
};
|
|
3608
3463
|
const deserializeAws_json1_1ModifyRecommendationDetail = (output, context) => {
|
|
3609
3464
|
return {
|
|
3610
|
-
TargetInstances: output.TargetInstances
|
|
3465
|
+
TargetInstances: output.TargetInstances != null
|
|
3611
3466
|
? deserializeAws_json1_1TargetInstancesList(output.TargetInstances, context)
|
|
3612
3467
|
: undefined,
|
|
3613
3468
|
};
|
|
@@ -3697,12 +3552,8 @@ const deserializeAws_json1_1ReservationAggregates = (output, context) => {
|
|
|
3697
3552
|
};
|
|
3698
3553
|
const deserializeAws_json1_1ReservationCoverageGroup = (output, context) => {
|
|
3699
3554
|
return {
|
|
3700
|
-
Attributes: output.Attributes
|
|
3701
|
-
|
|
3702
|
-
: undefined,
|
|
3703
|
-
Coverage: output.Coverage !== undefined && output.Coverage !== null
|
|
3704
|
-
? deserializeAws_json1_1Coverage(output.Coverage, context)
|
|
3705
|
-
: undefined,
|
|
3555
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
3556
|
+
Coverage: output.Coverage != null ? deserializeAws_json1_1Coverage(output.Coverage, context) : undefined,
|
|
3706
3557
|
};
|
|
3707
3558
|
};
|
|
3708
3559
|
const deserializeAws_json1_1ReservationCoverageGroups = (output, context) => {
|
|
@@ -3721,13 +3572,13 @@ const deserializeAws_json1_1ReservationPurchaseRecommendation = (output, context
|
|
|
3721
3572
|
AccountScope: (0, smithy_client_1.expectString)(output.AccountScope),
|
|
3722
3573
|
LookbackPeriodInDays: (0, smithy_client_1.expectString)(output.LookbackPeriodInDays),
|
|
3723
3574
|
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
3724
|
-
RecommendationDetails: output.RecommendationDetails
|
|
3575
|
+
RecommendationDetails: output.RecommendationDetails != null
|
|
3725
3576
|
? deserializeAws_json1_1ReservationPurchaseRecommendationDetails(output.RecommendationDetails, context)
|
|
3726
3577
|
: undefined,
|
|
3727
|
-
RecommendationSummary: output.RecommendationSummary
|
|
3578
|
+
RecommendationSummary: output.RecommendationSummary != null
|
|
3728
3579
|
? deserializeAws_json1_1ReservationPurchaseRecommendationSummary(output.RecommendationSummary, context)
|
|
3729
3580
|
: undefined,
|
|
3730
|
-
ServiceSpecification: output.ServiceSpecification
|
|
3581
|
+
ServiceSpecification: output.ServiceSpecification != null
|
|
3731
3582
|
? deserializeAws_json1_1ServiceSpecification(output.ServiceSpecification, context)
|
|
3732
3583
|
: undefined,
|
|
3733
3584
|
TermInYears: (0, smithy_client_1.expectString)(output.TermInYears),
|
|
@@ -3745,7 +3596,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendationDetail = (output, c
|
|
|
3745
3596
|
EstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsAmount),
|
|
3746
3597
|
EstimatedMonthlySavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsPercentage),
|
|
3747
3598
|
EstimatedReservationCostForLookbackPeriod: (0, smithy_client_1.expectString)(output.EstimatedReservationCostForLookbackPeriod),
|
|
3748
|
-
InstanceDetails: output.InstanceDetails
|
|
3599
|
+
InstanceDetails: output.InstanceDetails != null
|
|
3749
3600
|
? deserializeAws_json1_1InstanceDetails(output.InstanceDetails, context)
|
|
3750
3601
|
: undefined,
|
|
3751
3602
|
MaximumNormalizedUnitsUsedPerHour: (0, smithy_client_1.expectString)(output.MaximumNormalizedUnitsUsedPerHour),
|
|
@@ -3795,13 +3646,9 @@ const deserializeAws_json1_1ReservationPurchaseRecommendationSummary = (output,
|
|
|
3795
3646
|
};
|
|
3796
3647
|
const deserializeAws_json1_1ReservationUtilizationGroup = (output, context) => {
|
|
3797
3648
|
return {
|
|
3798
|
-
Attributes: output.Attributes
|
|
3799
|
-
? deserializeAws_json1_1Attributes(output.Attributes, context)
|
|
3800
|
-
: undefined,
|
|
3649
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
3801
3650
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3802
|
-
Utilization: output.Utilization
|
|
3803
|
-
? deserializeAws_json1_1ReservationAggregates(output.Utilization, context)
|
|
3804
|
-
: undefined,
|
|
3651
|
+
Utilization: output.Utilization != null ? deserializeAws_json1_1ReservationAggregates(output.Utilization, context) : undefined,
|
|
3805
3652
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3806
3653
|
};
|
|
3807
3654
|
};
|
|
@@ -3818,7 +3665,7 @@ const deserializeAws_json1_1ReservationUtilizationGroups = (output, context) =>
|
|
|
3818
3665
|
};
|
|
3819
3666
|
const deserializeAws_json1_1ResourceDetails = (output, context) => {
|
|
3820
3667
|
return {
|
|
3821
|
-
EC2ResourceDetails: output.EC2ResourceDetails
|
|
3668
|
+
EC2ResourceDetails: output.EC2ResourceDetails != null
|
|
3822
3669
|
? deserializeAws_json1_1EC2ResourceDetails(output.EC2ResourceDetails, context)
|
|
3823
3670
|
: undefined,
|
|
3824
3671
|
};
|
|
@@ -3848,7 +3695,7 @@ const deserializeAws_json1_1ResourceTagList = (output, context) => {
|
|
|
3848
3695
|
};
|
|
3849
3696
|
const deserializeAws_json1_1ResourceUtilization = (output, context) => {
|
|
3850
3697
|
return {
|
|
3851
|
-
EC2ResourceUtilization: output.EC2ResourceUtilization
|
|
3698
|
+
EC2ResourceUtilization: output.EC2ResourceUtilization != null
|
|
3852
3699
|
? deserializeAws_json1_1EC2ResourceUtilization(output.EC2ResourceUtilization, context)
|
|
3853
3700
|
: undefined,
|
|
3854
3701
|
};
|
|
@@ -3856,15 +3703,9 @@ const deserializeAws_json1_1ResourceUtilization = (output, context) => {
|
|
|
3856
3703
|
const deserializeAws_json1_1ResultByTime = (output, context) => {
|
|
3857
3704
|
return {
|
|
3858
3705
|
Estimated: (0, smithy_client_1.expectBoolean)(output.Estimated),
|
|
3859
|
-
Groups: output.Groups
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
3863
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
3864
|
-
: undefined,
|
|
3865
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
3866
|
-
? deserializeAws_json1_1Metrics(output.Total, context)
|
|
3867
|
-
: undefined,
|
|
3706
|
+
Groups: output.Groups != null ? deserializeAws_json1_1Groups(output.Groups, context) : undefined,
|
|
3707
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3708
|
+
Total: output.Total != null ? deserializeAws_json1_1Metrics(output.Total, context) : undefined,
|
|
3868
3709
|
};
|
|
3869
3710
|
};
|
|
3870
3711
|
const deserializeAws_json1_1ResultsByTime = (output, context) => {
|
|
@@ -3881,17 +3722,17 @@ const deserializeAws_json1_1ResultsByTime = (output, context) => {
|
|
|
3881
3722
|
const deserializeAws_json1_1RightsizingRecommendation = (output, context) => {
|
|
3882
3723
|
return {
|
|
3883
3724
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
3884
|
-
CurrentInstance: output.CurrentInstance
|
|
3725
|
+
CurrentInstance: output.CurrentInstance != null
|
|
3885
3726
|
? deserializeAws_json1_1CurrentInstance(output.CurrentInstance, context)
|
|
3886
3727
|
: undefined,
|
|
3887
|
-
FindingReasonCodes: output.FindingReasonCodes
|
|
3728
|
+
FindingReasonCodes: output.FindingReasonCodes != null
|
|
3888
3729
|
? deserializeAws_json1_1FindingReasonCodes(output.FindingReasonCodes, context)
|
|
3889
3730
|
: undefined,
|
|
3890
|
-
ModifyRecommendationDetail: output.ModifyRecommendationDetail
|
|
3731
|
+
ModifyRecommendationDetail: output.ModifyRecommendationDetail != null
|
|
3891
3732
|
? deserializeAws_json1_1ModifyRecommendationDetail(output.ModifyRecommendationDetail, context)
|
|
3892
3733
|
: undefined,
|
|
3893
3734
|
RightsizingType: (0, smithy_client_1.expectString)(output.RightsizingType),
|
|
3894
|
-
TerminateRecommendationDetail: output.TerminateRecommendationDetail
|
|
3735
|
+
TerminateRecommendationDetail: output.TerminateRecommendationDetail != null
|
|
3895
3736
|
? deserializeAws_json1_1TerminateRecommendationDetail(output.TerminateRecommendationDetail, context)
|
|
3896
3737
|
: undefined,
|
|
3897
3738
|
};
|
|
@@ -3957,15 +3798,9 @@ const deserializeAws_json1_1SavingsPlansAmortizedCommitment = (output, context)
|
|
|
3957
3798
|
};
|
|
3958
3799
|
const deserializeAws_json1_1SavingsPlansCoverage = (output, context) => {
|
|
3959
3800
|
return {
|
|
3960
|
-
Attributes: output.Attributes
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
Coverage: output.Coverage !== undefined && output.Coverage !== null
|
|
3964
|
-
? deserializeAws_json1_1SavingsPlansCoverageData(output.Coverage, context)
|
|
3965
|
-
: undefined,
|
|
3966
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
3967
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
3968
|
-
: undefined,
|
|
3801
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
3802
|
+
Coverage: output.Coverage != null ? deserializeAws_json1_1SavingsPlansCoverageData(output.Coverage, context) : undefined,
|
|
3803
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3969
3804
|
};
|
|
3970
3805
|
};
|
|
3971
3806
|
const deserializeAws_json1_1SavingsPlansCoverageData = (output, context) => {
|
|
@@ -3999,12 +3834,10 @@ const deserializeAws_json1_1SavingsPlansPurchaseRecommendation = (output, contex
|
|
|
3999
3834
|
AccountScope: (0, smithy_client_1.expectString)(output.AccountScope),
|
|
4000
3835
|
LookbackPeriodInDays: (0, smithy_client_1.expectString)(output.LookbackPeriodInDays),
|
|
4001
3836
|
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
4002
|
-
SavingsPlansPurchaseRecommendationDetails: output.SavingsPlansPurchaseRecommendationDetails
|
|
4003
|
-
output.SavingsPlansPurchaseRecommendationDetails !== null
|
|
3837
|
+
SavingsPlansPurchaseRecommendationDetails: output.SavingsPlansPurchaseRecommendationDetails != null
|
|
4004
3838
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetailList(output.SavingsPlansPurchaseRecommendationDetails, context)
|
|
4005
3839
|
: undefined,
|
|
4006
|
-
SavingsPlansPurchaseRecommendationSummary: output.SavingsPlansPurchaseRecommendationSummary
|
|
4007
|
-
output.SavingsPlansPurchaseRecommendationSummary !== null
|
|
3840
|
+
SavingsPlansPurchaseRecommendationSummary: output.SavingsPlansPurchaseRecommendationSummary != null
|
|
4008
3841
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendationSummary(output.SavingsPlansPurchaseRecommendationSummary, context)
|
|
4009
3842
|
: undefined,
|
|
4010
3843
|
SavingsPlansType: (0, smithy_client_1.expectString)(output.SavingsPlansType),
|
|
@@ -4027,7 +3860,7 @@ const deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetail = (output,
|
|
|
4027
3860
|
EstimatedSavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedSavingsAmount),
|
|
4028
3861
|
EstimatedSavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedSavingsPercentage),
|
|
4029
3862
|
HourlyCommitmentToPurchase: (0, smithy_client_1.expectString)(output.HourlyCommitmentToPurchase),
|
|
4030
|
-
SavingsPlansDetails: output.SavingsPlansDetails
|
|
3863
|
+
SavingsPlansDetails: output.SavingsPlansDetails != null
|
|
4031
3864
|
? deserializeAws_json1_1SavingsPlansDetails(output.SavingsPlansDetails, context)
|
|
4032
3865
|
: undefined,
|
|
4033
3866
|
UpfrontCost: (0, smithy_client_1.expectString)(output.UpfrontCost),
|
|
@@ -4082,46 +3915,36 @@ const deserializeAws_json1_1SavingsPlansUtilization = (output, context) => {
|
|
|
4082
3915
|
};
|
|
4083
3916
|
const deserializeAws_json1_1SavingsPlansUtilizationAggregates = (output, context) => {
|
|
4084
3917
|
return {
|
|
4085
|
-
AmortizedCommitment: output.AmortizedCommitment
|
|
3918
|
+
AmortizedCommitment: output.AmortizedCommitment != null
|
|
4086
3919
|
? deserializeAws_json1_1SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
4087
3920
|
: undefined,
|
|
4088
|
-
Savings: output.Savings
|
|
4089
|
-
|
|
4090
|
-
: undefined,
|
|
4091
|
-
Utilization: output.Utilization !== undefined && output.Utilization !== null
|
|
3921
|
+
Savings: output.Savings != null ? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context) : undefined,
|
|
3922
|
+
Utilization: output.Utilization != null
|
|
4092
3923
|
? deserializeAws_json1_1SavingsPlansUtilization(output.Utilization, context)
|
|
4093
3924
|
: undefined,
|
|
4094
3925
|
};
|
|
4095
3926
|
};
|
|
4096
3927
|
const deserializeAws_json1_1SavingsPlansUtilizationByTime = (output, context) => {
|
|
4097
3928
|
return {
|
|
4098
|
-
AmortizedCommitment: output.AmortizedCommitment
|
|
3929
|
+
AmortizedCommitment: output.AmortizedCommitment != null
|
|
4099
3930
|
? deserializeAws_json1_1SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
4100
3931
|
: undefined,
|
|
4101
|
-
Savings: output.Savings
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
4105
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
4106
|
-
: undefined,
|
|
4107
|
-
Utilization: output.Utilization !== undefined && output.Utilization !== null
|
|
3932
|
+
Savings: output.Savings != null ? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context) : undefined,
|
|
3933
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3934
|
+
Utilization: output.Utilization != null
|
|
4108
3935
|
? deserializeAws_json1_1SavingsPlansUtilization(output.Utilization, context)
|
|
4109
3936
|
: undefined,
|
|
4110
3937
|
};
|
|
4111
3938
|
};
|
|
4112
3939
|
const deserializeAws_json1_1SavingsPlansUtilizationDetail = (output, context) => {
|
|
4113
3940
|
return {
|
|
4114
|
-
AmortizedCommitment: output.AmortizedCommitment
|
|
3941
|
+
AmortizedCommitment: output.AmortizedCommitment != null
|
|
4115
3942
|
? deserializeAws_json1_1SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
4116
3943
|
: undefined,
|
|
4117
|
-
Attributes: output.Attributes
|
|
4118
|
-
|
|
4119
|
-
: undefined,
|
|
4120
|
-
Savings: output.Savings !== undefined && output.Savings !== null
|
|
4121
|
-
? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context)
|
|
4122
|
-
: undefined,
|
|
3944
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
3945
|
+
Savings: output.Savings != null ? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context) : undefined,
|
|
4123
3946
|
SavingsPlanArn: (0, smithy_client_1.expectString)(output.SavingsPlanArn),
|
|
4124
|
-
Utilization: output.Utilization
|
|
3947
|
+
Utilization: output.Utilization != null
|
|
4125
3948
|
? deserializeAws_json1_1SavingsPlansUtilization(output.Utilization, context)
|
|
4126
3949
|
: undefined,
|
|
4127
3950
|
};
|
|
@@ -4155,7 +3978,7 @@ const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) =>
|
|
|
4155
3978
|
};
|
|
4156
3979
|
const deserializeAws_json1_1ServiceSpecification = (output, context) => {
|
|
4157
3980
|
return {
|
|
4158
|
-
EC2Specification: output.EC2Specification
|
|
3981
|
+
EC2Specification: output.EC2Specification != null
|
|
4159
3982
|
? deserializeAws_json1_1EC2Specification(output.EC2Specification, context)
|
|
4160
3983
|
: undefined,
|
|
4161
3984
|
};
|
|
@@ -4195,12 +4018,8 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
4195
4018
|
const deserializeAws_json1_1TagValues = (output, context) => {
|
|
4196
4019
|
return {
|
|
4197
4020
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4198
|
-
MatchOptions: output.MatchOptions
|
|
4199
|
-
|
|
4200
|
-
: undefined,
|
|
4201
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
4202
|
-
? deserializeAws_json1_1Values(output.Values, context)
|
|
4203
|
-
: undefined,
|
|
4021
|
+
MatchOptions: output.MatchOptions != null ? deserializeAws_json1_1MatchOptions(output.MatchOptions, context) : undefined,
|
|
4022
|
+
Values: output.Values != null ? deserializeAws_json1_1Values(output.Values, context) : undefined,
|
|
4204
4023
|
};
|
|
4205
4024
|
};
|
|
4206
4025
|
const deserializeAws_json1_1TagValuesList = (output, context) => {
|
|
@@ -4220,13 +4039,13 @@ const deserializeAws_json1_1TargetInstance = (output, context) => {
|
|
|
4220
4039
|
DefaultTargetInstance: (0, smithy_client_1.expectBoolean)(output.DefaultTargetInstance),
|
|
4221
4040
|
EstimatedMonthlyCost: (0, smithy_client_1.expectString)(output.EstimatedMonthlyCost),
|
|
4222
4041
|
EstimatedMonthlySavings: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavings),
|
|
4223
|
-
ExpectedResourceUtilization: output.ExpectedResourceUtilization
|
|
4042
|
+
ExpectedResourceUtilization: output.ExpectedResourceUtilization != null
|
|
4224
4043
|
? deserializeAws_json1_1ResourceUtilization(output.ExpectedResourceUtilization, context)
|
|
4225
4044
|
: undefined,
|
|
4226
|
-
PlatformDifferences: output.PlatformDifferences
|
|
4045
|
+
PlatformDifferences: output.PlatformDifferences != null
|
|
4227
4046
|
? deserializeAws_json1_1PlatformDifferences(output.PlatformDifferences, context)
|
|
4228
4047
|
: undefined,
|
|
4229
|
-
ResourceDetails: output.ResourceDetails
|
|
4048
|
+
ResourceDetails: output.ResourceDetails != null
|
|
4230
4049
|
? deserializeAws_json1_1ResourceDetails(output.ResourceDetails, context)
|
|
4231
4050
|
: undefined,
|
|
4232
4051
|
};
|
|
@@ -4302,7 +4121,7 @@ const deserializeAws_json1_1UpdateCostAllocationTagsStatusErrors = (output, cont
|
|
|
4302
4121
|
};
|
|
4303
4122
|
const deserializeAws_json1_1UpdateCostAllocationTagsStatusResponse = (output, context) => {
|
|
4304
4123
|
return {
|
|
4305
|
-
Errors: output.Errors
|
|
4124
|
+
Errors: output.Errors != null
|
|
4306
4125
|
? deserializeAws_json1_1UpdateCostAllocationTagsStatusErrors(output.Errors, context)
|
|
4307
4126
|
: undefined,
|
|
4308
4127
|
};
|
|
@@ -4315,15 +4134,9 @@ const deserializeAws_json1_1UpdateCostCategoryDefinitionResponse = (output, cont
|
|
|
4315
4134
|
};
|
|
4316
4135
|
const deserializeAws_json1_1UtilizationByTime = (output, context) => {
|
|
4317
4136
|
return {
|
|
4318
|
-
Groups: output.Groups
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
4322
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
4323
|
-
: undefined,
|
|
4324
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
4325
|
-
? deserializeAws_json1_1ReservationAggregates(output.Total, context)
|
|
4326
|
-
: undefined,
|
|
4137
|
+
Groups: output.Groups != null ? deserializeAws_json1_1ReservationUtilizationGroups(output.Groups, context) : undefined,
|
|
4138
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
4139
|
+
Total: output.Total != null ? deserializeAws_json1_1ReservationAggregates(output.Total, context) : undefined,
|
|
4327
4140
|
};
|
|
4328
4141
|
};
|
|
4329
4142
|
const deserializeAws_json1_1UtilizationsByTime = (output, context) => {
|
|
@@ -4410,5 +4223,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4410
4223
|
if (data["__type"] !== undefined) {
|
|
4411
4224
|
return sanitizeErrorCode(data["__type"]);
|
|
4412
4225
|
}
|
|
4413
|
-
return "";
|
|
4414
4226
|
};
|