@aws-sdk/client-budgets 3.118.1 → 3.128.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.
@@ -275,7 +275,7 @@ export var deserializeAws_json1_1CreateBudgetCommand = function (output, context
275
275
  });
276
276
  }); };
277
277
  var deserializeAws_json1_1CreateBudgetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
278
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
278
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
279
279
  var _c;
280
280
  return __generator(this, function (_d) {
281
281
  switch (_d.label) {
@@ -285,7 +285,6 @@ var deserializeAws_json1_1CreateBudgetCommandError = function (output, context)
285
285
  return [4, parseBody(output.body, context)];
286
286
  case 1:
287
287
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
288
- errorCode = "UnknownError";
289
288
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
290
289
  _b = errorCode;
291
290
  switch (_b) {
@@ -317,10 +316,12 @@ var deserializeAws_json1_1CreateBudgetCommandError = function (output, context)
317
316
  case 13: throw _d.sent();
318
317
  case 14:
319
318
  parsedBody = parsedOutput.body;
319
+ $metadata = deserializeMetadata(output);
320
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
320
321
  response = new __BaseException({
321
- name: parsedBody.code || parsedBody.Code || errorCode,
322
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
322
323
  $fault: "client",
323
- $metadata: deserializeMetadata(output),
324
+ $metadata: $metadata,
324
325
  });
325
326
  throw __decorateServiceException(response, parsedBody);
326
327
  }
@@ -345,7 +346,7 @@ export var deserializeAws_json1_1CreateBudgetActionCommand = function (output, c
345
346
  });
346
347
  }); };
347
348
  var deserializeAws_json1_1CreateBudgetActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
348
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
349
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
349
350
  var _c;
350
351
  return __generator(this, function (_d) {
351
352
  switch (_d.label) {
@@ -355,7 +356,6 @@ var deserializeAws_json1_1CreateBudgetActionCommandError = function (output, con
355
356
  return [4, parseBody(output.body, context)];
356
357
  case 1:
357
358
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
358
- errorCode = "UnknownError";
359
359
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
360
360
  _b = errorCode;
361
361
  switch (_b) {
@@ -391,10 +391,12 @@ var deserializeAws_json1_1CreateBudgetActionCommandError = function (output, con
391
391
  case 15: throw _d.sent();
392
392
  case 16:
393
393
  parsedBody = parsedOutput.body;
394
+ $metadata = deserializeMetadata(output);
395
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
394
396
  response = new __BaseException({
395
- name: parsedBody.code || parsedBody.Code || errorCode,
397
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
396
398
  $fault: "client",
397
- $metadata: deserializeMetadata(output),
399
+ $metadata: $metadata,
398
400
  });
399
401
  throw __decorateServiceException(response, parsedBody);
400
402
  }
@@ -419,7 +421,7 @@ export var deserializeAws_json1_1CreateNotificationCommand = function (output, c
419
421
  });
420
422
  }); };
421
423
  var deserializeAws_json1_1CreateNotificationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
422
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
424
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
423
425
  var _c;
424
426
  return __generator(this, function (_d) {
425
427
  switch (_d.label) {
@@ -429,7 +431,6 @@ var deserializeAws_json1_1CreateNotificationCommandError = function (output, con
429
431
  return [4, parseBody(output.body, context)];
430
432
  case 1:
431
433
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
432
- errorCode = "UnknownError";
433
434
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
434
435
  _b = errorCode;
435
436
  switch (_b) {
@@ -465,10 +466,12 @@ var deserializeAws_json1_1CreateNotificationCommandError = function (output, con
465
466
  case 15: throw _d.sent();
466
467
  case 16:
467
468
  parsedBody = parsedOutput.body;
469
+ $metadata = deserializeMetadata(output);
470
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
468
471
  response = new __BaseException({
469
- name: parsedBody.code || parsedBody.Code || errorCode,
472
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
470
473
  $fault: "client",
471
- $metadata: deserializeMetadata(output),
474
+ $metadata: $metadata,
472
475
  });
473
476
  throw __decorateServiceException(response, parsedBody);
474
477
  }
@@ -493,7 +496,7 @@ export var deserializeAws_json1_1CreateSubscriberCommand = function (output, con
493
496
  });
494
497
  }); };
495
498
  var deserializeAws_json1_1CreateSubscriberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
496
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
499
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
497
500
  var _c;
498
501
  return __generator(this, function (_d) {
499
502
  switch (_d.label) {
@@ -503,7 +506,6 @@ var deserializeAws_json1_1CreateSubscriberCommandError = function (output, conte
503
506
  return [4, parseBody(output.body, context)];
504
507
  case 1:
505
508
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
506
- errorCode = "UnknownError";
507
509
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
508
510
  _b = errorCode;
509
511
  switch (_b) {
@@ -539,10 +541,12 @@ var deserializeAws_json1_1CreateSubscriberCommandError = function (output, conte
539
541
  case 15: throw _d.sent();
540
542
  case 16:
541
543
  parsedBody = parsedOutput.body;
544
+ $metadata = deserializeMetadata(output);
545
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
542
546
  response = new __BaseException({
543
- name: parsedBody.code || parsedBody.Code || errorCode,
547
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
544
548
  $fault: "client",
545
- $metadata: deserializeMetadata(output),
549
+ $metadata: $metadata,
546
550
  });
547
551
  throw __decorateServiceException(response, parsedBody);
548
552
  }
@@ -567,7 +571,7 @@ export var deserializeAws_json1_1DeleteBudgetCommand = function (output, context
567
571
  });
568
572
  }); };
569
573
  var deserializeAws_json1_1DeleteBudgetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
570
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
574
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
571
575
  var _c;
572
576
  return __generator(this, function (_d) {
573
577
  switch (_d.label) {
@@ -577,7 +581,6 @@ var deserializeAws_json1_1DeleteBudgetCommandError = function (output, context)
577
581
  return [4, parseBody(output.body, context)];
578
582
  case 1:
579
583
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
580
- errorCode = "UnknownError";
581
584
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
582
585
  _b = errorCode;
583
586
  switch (_b) {
@@ -605,10 +608,12 @@ var deserializeAws_json1_1DeleteBudgetCommandError = function (output, context)
605
608
  case 11: throw _d.sent();
606
609
  case 12:
607
610
  parsedBody = parsedOutput.body;
611
+ $metadata = deserializeMetadata(output);
612
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
608
613
  response = new __BaseException({
609
- name: parsedBody.code || parsedBody.Code || errorCode,
614
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
610
615
  $fault: "client",
611
- $metadata: deserializeMetadata(output),
616
+ $metadata: $metadata,
612
617
  });
613
618
  throw __decorateServiceException(response, parsedBody);
614
619
  }
@@ -633,7 +638,7 @@ export var deserializeAws_json1_1DeleteBudgetActionCommand = function (output, c
633
638
  });
634
639
  }); };
635
640
  var deserializeAws_json1_1DeleteBudgetActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
636
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
641
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
637
642
  var _c;
638
643
  return __generator(this, function (_d) {
639
644
  switch (_d.label) {
@@ -643,7 +648,6 @@ var deserializeAws_json1_1DeleteBudgetActionCommandError = function (output, con
643
648
  return [4, parseBody(output.body, context)];
644
649
  case 1:
645
650
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
646
- errorCode = "UnknownError";
647
651
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
648
652
  _b = errorCode;
649
653
  switch (_b) {
@@ -675,10 +679,12 @@ var deserializeAws_json1_1DeleteBudgetActionCommandError = function (output, con
675
679
  case 13: throw _d.sent();
676
680
  case 14:
677
681
  parsedBody = parsedOutput.body;
682
+ $metadata = deserializeMetadata(output);
683
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
678
684
  response = new __BaseException({
679
- name: parsedBody.code || parsedBody.Code || errorCode,
685
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
680
686
  $fault: "client",
681
- $metadata: deserializeMetadata(output),
687
+ $metadata: $metadata,
682
688
  });
683
689
  throw __decorateServiceException(response, parsedBody);
684
690
  }
@@ -703,7 +709,7 @@ export var deserializeAws_json1_1DeleteNotificationCommand = function (output, c
703
709
  });
704
710
  }); };
705
711
  var deserializeAws_json1_1DeleteNotificationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
706
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
712
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
707
713
  var _c;
708
714
  return __generator(this, function (_d) {
709
715
  switch (_d.label) {
@@ -713,7 +719,6 @@ var deserializeAws_json1_1DeleteNotificationCommandError = function (output, con
713
719
  return [4, parseBody(output.body, context)];
714
720
  case 1:
715
721
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
716
- errorCode = "UnknownError";
717
722
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
718
723
  _b = errorCode;
719
724
  switch (_b) {
@@ -741,10 +746,12 @@ var deserializeAws_json1_1DeleteNotificationCommandError = function (output, con
741
746
  case 11: throw _d.sent();
742
747
  case 12:
743
748
  parsedBody = parsedOutput.body;
749
+ $metadata = deserializeMetadata(output);
750
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
744
751
  response = new __BaseException({
745
- name: parsedBody.code || parsedBody.Code || errorCode,
752
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
746
753
  $fault: "client",
747
- $metadata: deserializeMetadata(output),
754
+ $metadata: $metadata,
748
755
  });
749
756
  throw __decorateServiceException(response, parsedBody);
750
757
  }
@@ -769,7 +776,7 @@ export var deserializeAws_json1_1DeleteSubscriberCommand = function (output, con
769
776
  });
770
777
  }); };
771
778
  var deserializeAws_json1_1DeleteSubscriberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
772
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
779
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
773
780
  var _c;
774
781
  return __generator(this, function (_d) {
775
782
  switch (_d.label) {
@@ -779,7 +786,6 @@ var deserializeAws_json1_1DeleteSubscriberCommandError = function (output, conte
779
786
  return [4, parseBody(output.body, context)];
780
787
  case 1:
781
788
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
782
- errorCode = "UnknownError";
783
789
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
784
790
  _b = errorCode;
785
791
  switch (_b) {
@@ -807,10 +813,12 @@ var deserializeAws_json1_1DeleteSubscriberCommandError = function (output, conte
807
813
  case 11: throw _d.sent();
808
814
  case 12:
809
815
  parsedBody = parsedOutput.body;
816
+ $metadata = deserializeMetadata(output);
817
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
810
818
  response = new __BaseException({
811
- name: parsedBody.code || parsedBody.Code || errorCode,
819
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
812
820
  $fault: "client",
813
- $metadata: deserializeMetadata(output),
821
+ $metadata: $metadata,
814
822
  });
815
823
  throw __decorateServiceException(response, parsedBody);
816
824
  }
@@ -835,7 +843,7 @@ export var deserializeAws_json1_1DescribeBudgetCommand = function (output, conte
835
843
  });
836
844
  }); };
837
845
  var deserializeAws_json1_1DescribeBudgetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
838
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
846
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
839
847
  var _c;
840
848
  return __generator(this, function (_d) {
841
849
  switch (_d.label) {
@@ -845,7 +853,6 @@ var deserializeAws_json1_1DescribeBudgetCommandError = function (output, context
845
853
  return [4, parseBody(output.body, context)];
846
854
  case 1:
847
855
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
848
- errorCode = "UnknownError";
849
856
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
850
857
  _b = errorCode;
851
858
  switch (_b) {
@@ -873,10 +880,12 @@ var deserializeAws_json1_1DescribeBudgetCommandError = function (output, context
873
880
  case 11: throw _d.sent();
874
881
  case 12:
875
882
  parsedBody = parsedOutput.body;
883
+ $metadata = deserializeMetadata(output);
884
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
876
885
  response = new __BaseException({
877
- name: parsedBody.code || parsedBody.Code || errorCode,
886
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
878
887
  $fault: "client",
879
- $metadata: deserializeMetadata(output),
888
+ $metadata: $metadata,
880
889
  });
881
890
  throw __decorateServiceException(response, parsedBody);
882
891
  }
@@ -901,7 +910,7 @@ export var deserializeAws_json1_1DescribeBudgetActionCommand = function (output,
901
910
  });
902
911
  }); };
903
912
  var deserializeAws_json1_1DescribeBudgetActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
904
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
913
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
905
914
  var _c;
906
915
  return __generator(this, function (_d) {
907
916
  switch (_d.label) {
@@ -911,7 +920,6 @@ var deserializeAws_json1_1DescribeBudgetActionCommandError = function (output, c
911
920
  return [4, parseBody(output.body, context)];
912
921
  case 1:
913
922
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
914
- errorCode = "UnknownError";
915
923
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
916
924
  _b = errorCode;
917
925
  switch (_b) {
@@ -939,10 +947,12 @@ var deserializeAws_json1_1DescribeBudgetActionCommandError = function (output, c
939
947
  case 11: throw _d.sent();
940
948
  case 12:
941
949
  parsedBody = parsedOutput.body;
950
+ $metadata = deserializeMetadata(output);
951
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
942
952
  response = new __BaseException({
943
- name: parsedBody.code || parsedBody.Code || errorCode,
953
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
944
954
  $fault: "client",
945
- $metadata: deserializeMetadata(output),
955
+ $metadata: $metadata,
946
956
  });
947
957
  throw __decorateServiceException(response, parsedBody);
948
958
  }
@@ -967,7 +977,7 @@ export var deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = function
967
977
  });
968
978
  }); };
969
979
  var deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
970
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
980
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
971
981
  var _c;
972
982
  return __generator(this, function (_d) {
973
983
  switch (_d.label) {
@@ -977,7 +987,6 @@ var deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = function (
977
987
  return [4, parseBody(output.body, context)];
978
988
  case 1:
979
989
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
980
- errorCode = "UnknownError";
981
990
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
982
991
  _b = errorCode;
983
992
  switch (_b) {
@@ -1009,10 +1018,12 @@ var deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = function (
1009
1018
  case 13: throw _d.sent();
1010
1019
  case 14:
1011
1020
  parsedBody = parsedOutput.body;
1021
+ $metadata = deserializeMetadata(output);
1022
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1012
1023
  response = new __BaseException({
1013
- name: parsedBody.code || parsedBody.Code || errorCode,
1024
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1014
1025
  $fault: "client",
1015
- $metadata: deserializeMetadata(output),
1026
+ $metadata: $metadata,
1016
1027
  });
1017
1028
  throw __decorateServiceException(response, parsedBody);
1018
1029
  }
@@ -1037,7 +1048,7 @@ export var deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = functi
1037
1048
  });
1038
1049
  }); };
1039
1050
  var deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1040
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1051
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1041
1052
  var _c;
1042
1053
  return __generator(this, function (_d) {
1043
1054
  switch (_d.label) {
@@ -1047,7 +1058,6 @@ var deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = function
1047
1058
  return [4, parseBody(output.body, context)];
1048
1059
  case 1:
1049
1060
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1050
- errorCode = "UnknownError";
1051
1061
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1052
1062
  _b = errorCode;
1053
1063
  switch (_b) {
@@ -1075,10 +1085,12 @@ var deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = function
1075
1085
  case 11: throw _d.sent();
1076
1086
  case 12:
1077
1087
  parsedBody = parsedOutput.body;
1088
+ $metadata = deserializeMetadata(output);
1089
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1078
1090
  response = new __BaseException({
1079
- name: parsedBody.code || parsedBody.Code || errorCode,
1091
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1080
1092
  $fault: "client",
1081
- $metadata: deserializeMetadata(output),
1093
+ $metadata: $metadata,
1082
1094
  });
1083
1095
  throw __decorateServiceException(response, parsedBody);
1084
1096
  }
@@ -1103,7 +1115,7 @@ export var deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = functio
1103
1115
  });
1104
1116
  }); };
1105
1117
  var deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1106
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1118
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1107
1119
  var _c;
1108
1120
  return __generator(this, function (_d) {
1109
1121
  switch (_d.label) {
@@ -1113,7 +1125,6 @@ var deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = function
1113
1125
  return [4, parseBody(output.body, context)];
1114
1126
  case 1:
1115
1127
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1116
- errorCode = "UnknownError";
1117
1128
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1118
1129
  _b = errorCode;
1119
1130
  switch (_b) {
@@ -1145,10 +1156,12 @@ var deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = function
1145
1156
  case 13: throw _d.sent();
1146
1157
  case 14:
1147
1158
  parsedBody = parsedOutput.body;
1159
+ $metadata = deserializeMetadata(output);
1160
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1148
1161
  response = new __BaseException({
1149
- name: parsedBody.code || parsedBody.Code || errorCode,
1162
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1150
1163
  $fault: "client",
1151
- $metadata: deserializeMetadata(output),
1164
+ $metadata: $metadata,
1152
1165
  });
1153
1166
  throw __decorateServiceException(response, parsedBody);
1154
1167
  }
@@ -1173,7 +1186,7 @@ export var deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand =
1173
1186
  });
1174
1187
  }); };
1175
1188
  var deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1176
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1189
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1177
1190
  var _c;
1178
1191
  return __generator(this, function (_d) {
1179
1192
  switch (_d.label) {
@@ -1183,7 +1196,6 @@ var deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError = fu
1183
1196
  return [4, parseBody(output.body, context)];
1184
1197
  case 1:
1185
1198
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1186
- errorCode = "UnknownError";
1187
1199
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1188
1200
  _b = errorCode;
1189
1201
  switch (_b) {
@@ -1219,10 +1231,12 @@ var deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError = fu
1219
1231
  case 15: throw _d.sent();
1220
1232
  case 16:
1221
1233
  parsedBody = parsedOutput.body;
1234
+ $metadata = deserializeMetadata(output);
1235
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1222
1236
  response = new __BaseException({
1223
- name: parsedBody.code || parsedBody.Code || errorCode,
1237
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1224
1238
  $fault: "client",
1225
- $metadata: deserializeMetadata(output),
1239
+ $metadata: $metadata,
1226
1240
  });
1227
1241
  throw __decorateServiceException(response, parsedBody);
1228
1242
  }
@@ -1247,7 +1261,7 @@ export var deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = funct
1247
1261
  });
1248
1262
  }); };
1249
1263
  var deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1250
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1264
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1251
1265
  var _c;
1252
1266
  return __generator(this, function (_d) {
1253
1267
  switch (_d.label) {
@@ -1257,7 +1271,6 @@ var deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = functio
1257
1271
  return [4, parseBody(output.body, context)];
1258
1272
  case 1:
1259
1273
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1260
- errorCode = "UnknownError";
1261
1274
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
1275
  _b = errorCode;
1263
1276
  switch (_b) {
@@ -1293,10 +1306,12 @@ var deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = functio
1293
1306
  case 15: throw _d.sent();
1294
1307
  case 16:
1295
1308
  parsedBody = parsedOutput.body;
1309
+ $metadata = deserializeMetadata(output);
1310
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1296
1311
  response = new __BaseException({
1297
- name: parsedBody.code || parsedBody.Code || errorCode,
1312
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1298
1313
  $fault: "client",
1299
- $metadata: deserializeMetadata(output),
1314
+ $metadata: $metadata,
1300
1315
  });
1301
1316
  throw __decorateServiceException(response, parsedBody);
1302
1317
  }
@@ -1321,7 +1336,7 @@ export var deserializeAws_json1_1DescribeBudgetsCommand = function (output, cont
1321
1336
  });
1322
1337
  }); };
1323
1338
  var deserializeAws_json1_1DescribeBudgetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1324
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1339
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1325
1340
  var _c;
1326
1341
  return __generator(this, function (_d) {
1327
1342
  switch (_d.label) {
@@ -1331,7 +1346,6 @@ var deserializeAws_json1_1DescribeBudgetsCommandError = function (output, contex
1331
1346
  return [4, parseBody(output.body, context)];
1332
1347
  case 1:
1333
1348
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1334
- errorCode = "UnknownError";
1335
1349
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1336
1350
  _b = errorCode;
1337
1351
  switch (_b) {
@@ -1367,10 +1381,12 @@ var deserializeAws_json1_1DescribeBudgetsCommandError = function (output, contex
1367
1381
  case 15: throw _d.sent();
1368
1382
  case 16:
1369
1383
  parsedBody = parsedOutput.body;
1384
+ $metadata = deserializeMetadata(output);
1385
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1370
1386
  response = new __BaseException({
1371
- name: parsedBody.code || parsedBody.Code || errorCode,
1387
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1372
1388
  $fault: "client",
1373
- $metadata: deserializeMetadata(output),
1389
+ $metadata: $metadata,
1374
1390
  });
1375
1391
  throw __decorateServiceException(response, parsedBody);
1376
1392
  }
@@ -1395,7 +1411,7 @@ export var deserializeAws_json1_1DescribeNotificationsForBudgetCommand = functio
1395
1411
  });
1396
1412
  }); };
1397
1413
  var deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1398
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1414
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1399
1415
  var _c;
1400
1416
  return __generator(this, function (_d) {
1401
1417
  switch (_d.label) {
@@ -1405,7 +1421,6 @@ var deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = function
1405
1421
  return [4, parseBody(output.body, context)];
1406
1422
  case 1:
1407
1423
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1408
- errorCode = "UnknownError";
1409
1424
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1410
1425
  _b = errorCode;
1411
1426
  switch (_b) {
@@ -1441,10 +1456,12 @@ var deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = function
1441
1456
  case 15: throw _d.sent();
1442
1457
  case 16:
1443
1458
  parsedBody = parsedOutput.body;
1459
+ $metadata = deserializeMetadata(output);
1460
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1444
1461
  response = new __BaseException({
1445
- name: parsedBody.code || parsedBody.Code || errorCode,
1462
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1446
1463
  $fault: "client",
1447
- $metadata: deserializeMetadata(output),
1464
+ $metadata: $metadata,
1448
1465
  });
1449
1466
  throw __decorateServiceException(response, parsedBody);
1450
1467
  }
@@ -1469,7 +1486,7 @@ export var deserializeAws_json1_1DescribeSubscribersForNotificationCommand = fun
1469
1486
  });
1470
1487
  }); };
1471
1488
  var deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1472
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1489
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1473
1490
  var _c;
1474
1491
  return __generator(this, function (_d) {
1475
1492
  switch (_d.label) {
@@ -1479,7 +1496,6 @@ var deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = funct
1479
1496
  return [4, parseBody(output.body, context)];
1480
1497
  case 1:
1481
1498
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1482
- errorCode = "UnknownError";
1483
1499
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1484
1500
  _b = errorCode;
1485
1501
  switch (_b) {
@@ -1515,10 +1531,12 @@ var deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = funct
1515
1531
  case 15: throw _d.sent();
1516
1532
  case 16:
1517
1533
  parsedBody = parsedOutput.body;
1534
+ $metadata = deserializeMetadata(output);
1535
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1518
1536
  response = new __BaseException({
1519
- name: parsedBody.code || parsedBody.Code || errorCode,
1537
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1520
1538
  $fault: "client",
1521
- $metadata: deserializeMetadata(output),
1539
+ $metadata: $metadata,
1522
1540
  });
1523
1541
  throw __decorateServiceException(response, parsedBody);
1524
1542
  }
@@ -1543,7 +1561,7 @@ export var deserializeAws_json1_1ExecuteBudgetActionCommand = function (output,
1543
1561
  });
1544
1562
  }); };
1545
1563
  var deserializeAws_json1_1ExecuteBudgetActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1546
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1564
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1547
1565
  var _c;
1548
1566
  return __generator(this, function (_d) {
1549
1567
  switch (_d.label) {
@@ -1553,7 +1571,6 @@ var deserializeAws_json1_1ExecuteBudgetActionCommandError = function (output, co
1553
1571
  return [4, parseBody(output.body, context)];
1554
1572
  case 1:
1555
1573
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1556
- errorCode = "UnknownError";
1557
1574
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1558
1575
  _b = errorCode;
1559
1576
  switch (_b) {
@@ -1585,10 +1602,12 @@ var deserializeAws_json1_1ExecuteBudgetActionCommandError = function (output, co
1585
1602
  case 13: throw _d.sent();
1586
1603
  case 14:
1587
1604
  parsedBody = parsedOutput.body;
1605
+ $metadata = deserializeMetadata(output);
1606
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1588
1607
  response = new __BaseException({
1589
- name: parsedBody.code || parsedBody.Code || errorCode,
1608
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1590
1609
  $fault: "client",
1591
- $metadata: deserializeMetadata(output),
1610
+ $metadata: $metadata,
1592
1611
  });
1593
1612
  throw __decorateServiceException(response, parsedBody);
1594
1613
  }
@@ -1613,7 +1632,7 @@ export var deserializeAws_json1_1UpdateBudgetCommand = function (output, context
1613
1632
  });
1614
1633
  }); };
1615
1634
  var deserializeAws_json1_1UpdateBudgetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1616
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1635
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1617
1636
  var _c;
1618
1637
  return __generator(this, function (_d) {
1619
1638
  switch (_d.label) {
@@ -1623,7 +1642,6 @@ var deserializeAws_json1_1UpdateBudgetCommandError = function (output, context)
1623
1642
  return [4, parseBody(output.body, context)];
1624
1643
  case 1:
1625
1644
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1626
- errorCode = "UnknownError";
1627
1645
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1628
1646
  _b = errorCode;
1629
1647
  switch (_b) {
@@ -1651,10 +1669,12 @@ var deserializeAws_json1_1UpdateBudgetCommandError = function (output, context)
1651
1669
  case 11: throw _d.sent();
1652
1670
  case 12:
1653
1671
  parsedBody = parsedOutput.body;
1672
+ $metadata = deserializeMetadata(output);
1673
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1654
1674
  response = new __BaseException({
1655
- name: parsedBody.code || parsedBody.Code || errorCode,
1675
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1656
1676
  $fault: "client",
1657
- $metadata: deserializeMetadata(output),
1677
+ $metadata: $metadata,
1658
1678
  });
1659
1679
  throw __decorateServiceException(response, parsedBody);
1660
1680
  }
@@ -1679,7 +1699,7 @@ export var deserializeAws_json1_1UpdateBudgetActionCommand = function (output, c
1679
1699
  });
1680
1700
  }); };
1681
1701
  var deserializeAws_json1_1UpdateBudgetActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1682
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1702
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1683
1703
  var _c;
1684
1704
  return __generator(this, function (_d) {
1685
1705
  switch (_d.label) {
@@ -1689,7 +1709,6 @@ var deserializeAws_json1_1UpdateBudgetActionCommandError = function (output, con
1689
1709
  return [4, parseBody(output.body, context)];
1690
1710
  case 1:
1691
1711
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1692
- errorCode = "UnknownError";
1693
1712
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
1713
  _b = errorCode;
1695
1714
  switch (_b) {
@@ -1721,10 +1740,12 @@ var deserializeAws_json1_1UpdateBudgetActionCommandError = function (output, con
1721
1740
  case 13: throw _d.sent();
1722
1741
  case 14:
1723
1742
  parsedBody = parsedOutput.body;
1743
+ $metadata = deserializeMetadata(output);
1744
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1724
1745
  response = new __BaseException({
1725
- name: parsedBody.code || parsedBody.Code || errorCode,
1746
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1726
1747
  $fault: "client",
1727
- $metadata: deserializeMetadata(output),
1748
+ $metadata: $metadata,
1728
1749
  });
1729
1750
  throw __decorateServiceException(response, parsedBody);
1730
1751
  }
@@ -1749,7 +1770,7 @@ export var deserializeAws_json1_1UpdateNotificationCommand = function (output, c
1749
1770
  });
1750
1771
  }); };
1751
1772
  var deserializeAws_json1_1UpdateNotificationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1752
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1773
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1753
1774
  var _c;
1754
1775
  return __generator(this, function (_d) {
1755
1776
  switch (_d.label) {
@@ -1759,7 +1780,6 @@ var deserializeAws_json1_1UpdateNotificationCommandError = function (output, con
1759
1780
  return [4, parseBody(output.body, context)];
1760
1781
  case 1:
1761
1782
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1762
- errorCode = "UnknownError";
1763
1783
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1764
1784
  _b = errorCode;
1765
1785
  switch (_b) {
@@ -1791,10 +1811,12 @@ var deserializeAws_json1_1UpdateNotificationCommandError = function (output, con
1791
1811
  case 13: throw _d.sent();
1792
1812
  case 14:
1793
1813
  parsedBody = parsedOutput.body;
1814
+ $metadata = deserializeMetadata(output);
1815
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1794
1816
  response = new __BaseException({
1795
- name: parsedBody.code || parsedBody.Code || errorCode,
1817
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1796
1818
  $fault: "client",
1797
- $metadata: deserializeMetadata(output),
1819
+ $metadata: $metadata,
1798
1820
  });
1799
1821
  throw __decorateServiceException(response, parsedBody);
1800
1822
  }
@@ -1819,7 +1841,7 @@ export var deserializeAws_json1_1UpdateSubscriberCommand = function (output, con
1819
1841
  });
1820
1842
  }); };
1821
1843
  var deserializeAws_json1_1UpdateSubscriberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1822
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1844
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1823
1845
  var _c;
1824
1846
  return __generator(this, function (_d) {
1825
1847
  switch (_d.label) {
@@ -1829,7 +1851,6 @@ var deserializeAws_json1_1UpdateSubscriberCommandError = function (output, conte
1829
1851
  return [4, parseBody(output.body, context)];
1830
1852
  case 1:
1831
1853
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1832
- errorCode = "UnknownError";
1833
1854
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1834
1855
  _b = errorCode;
1835
1856
  switch (_b) {
@@ -1861,10 +1882,12 @@ var deserializeAws_json1_1UpdateSubscriberCommandError = function (output, conte
1861
1882
  case 13: throw _d.sent();
1862
1883
  case 14:
1863
1884
  parsedBody = parsedOutput.body;
1885
+ $metadata = deserializeMetadata(output);
1886
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1864
1887
  response = new __BaseException({
1865
- name: parsedBody.code || parsedBody.Code || errorCode,
1888
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1866
1889
  $fault: "client",
1867
- $metadata: deserializeMetadata(output),
1890
+ $metadata: $metadata,
1868
1891
  });
1869
1892
  throw __decorateServiceException(response, parsedBody);
1870
1893
  }
@@ -1961,41 +1984,28 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
1961
1984
  });
1962
1985
  }); };
1963
1986
  var serializeAws_json1_1ActionThreshold = function (input, context) {
1964
- return __assign(__assign({}, (input.ActionThresholdType !== undefined &&
1965
- input.ActionThresholdType !== null && { ActionThresholdType: input.ActionThresholdType })), (input.ActionThresholdValue !== undefined &&
1966
- input.ActionThresholdValue !== null && { ActionThresholdValue: __serializeFloat(input.ActionThresholdValue) }));
1987
+ return __assign(__assign({}, (input.ActionThresholdType != null && { ActionThresholdType: input.ActionThresholdType })), (input.ActionThresholdValue != null && { ActionThresholdValue: __serializeFloat(input.ActionThresholdValue) }));
1967
1988
  };
1968
1989
  var serializeAws_json1_1AutoAdjustData = function (input, context) {
1969
- return __assign(__assign(__assign({}, (input.AutoAdjustType !== undefined &&
1970
- input.AutoAdjustType !== null && { AutoAdjustType: input.AutoAdjustType })), (input.HistoricalOptions !== undefined &&
1971
- input.HistoricalOptions !== null && {
1990
+ return __assign(__assign(__assign({}, (input.AutoAdjustType != null && { AutoAdjustType: input.AutoAdjustType })), (input.HistoricalOptions != null && {
1972
1991
  HistoricalOptions: serializeAws_json1_1HistoricalOptions(input.HistoricalOptions, context),
1973
- })), (input.LastAutoAdjustTime !== undefined &&
1974
- input.LastAutoAdjustTime !== null && {
1992
+ })), (input.LastAutoAdjustTime != null && {
1975
1993
  LastAutoAdjustTime: Math.round(input.LastAutoAdjustTime.getTime() / 1000),
1976
1994
  }));
1977
1995
  };
1978
1996
  var serializeAws_json1_1Budget = function (input, context) {
1979
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoAdjustData !== undefined &&
1980
- input.AutoAdjustData !== null && {
1997
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoAdjustData != null && {
1981
1998
  AutoAdjustData: serializeAws_json1_1AutoAdjustData(input.AutoAdjustData, context),
1982
- })), (input.BudgetLimit !== undefined &&
1983
- input.BudgetLimit !== null && { BudgetLimit: serializeAws_json1_1Spend(input.BudgetLimit, context) })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.BudgetType !== undefined && input.BudgetType !== null && { BudgetType: input.BudgetType })), (input.CalculatedSpend !== undefined &&
1984
- input.CalculatedSpend !== null && {
1999
+ })), (input.BudgetLimit != null && { BudgetLimit: serializeAws_json1_1Spend(input.BudgetLimit, context) })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.BudgetType != null && { BudgetType: input.BudgetType })), (input.CalculatedSpend != null && {
1985
2000
  CalculatedSpend: serializeAws_json1_1CalculatedSpend(input.CalculatedSpend, context),
1986
- })), (input.CostFilters !== undefined &&
1987
- input.CostFilters !== null && { CostFilters: serializeAws_json1_1CostFilters(input.CostFilters, context) })), (input.CostTypes !== undefined &&
1988
- input.CostTypes !== null && { CostTypes: serializeAws_json1_1CostTypes(input.CostTypes, context) })), (input.LastUpdatedTime !== undefined &&
1989
- input.LastUpdatedTime !== null && { LastUpdatedTime: Math.round(input.LastUpdatedTime.getTime() / 1000) })), (input.PlannedBudgetLimits !== undefined &&
1990
- input.PlannedBudgetLimits !== null && {
2001
+ })), (input.CostFilters != null && { CostFilters: serializeAws_json1_1CostFilters(input.CostFilters, context) })), (input.CostTypes != null && { CostTypes: serializeAws_json1_1CostTypes(input.CostTypes, context) })), (input.LastUpdatedTime != null && { LastUpdatedTime: Math.round(input.LastUpdatedTime.getTime() / 1000) })), (input.PlannedBudgetLimits != null && {
1991
2002
  PlannedBudgetLimits: serializeAws_json1_1PlannedBudgetLimits(input.PlannedBudgetLimits, context),
1992
- })), (input.TimePeriod !== undefined &&
1993
- input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) })), (input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit }));
2003
+ })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) })), (input.TimeUnit != null && { TimeUnit: input.TimeUnit }));
1994
2004
  };
1995
2005
  var serializeAws_json1_1CalculatedSpend = function (input, context) {
1996
- return __assign(__assign({}, (input.ActualSpend !== undefined &&
1997
- input.ActualSpend !== null && { ActualSpend: serializeAws_json1_1Spend(input.ActualSpend, context) })), (input.ForecastedSpend !== undefined &&
1998
- input.ForecastedSpend !== null && { ForecastedSpend: serializeAws_json1_1Spend(input.ForecastedSpend, context) }));
2006
+ return __assign(__assign({}, (input.ActualSpend != null && { ActualSpend: serializeAws_json1_1Spend(input.ActualSpend, context) })), (input.ForecastedSpend != null && {
2007
+ ForecastedSpend: serializeAws_json1_1Spend(input.ForecastedSpend, context),
2008
+ }));
1999
2009
  };
2000
2010
  var serializeAws_json1_1CostFilters = function (input, context) {
2001
2011
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2008,100 +2018,74 @@ var serializeAws_json1_1CostFilters = function (input, context) {
2008
2018
  }, {});
2009
2019
  };
2010
2020
  var serializeAws_json1_1CostTypes = function (input, context) {
2011
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.IncludeCredit !== undefined && input.IncludeCredit !== null && { IncludeCredit: input.IncludeCredit })), (input.IncludeDiscount !== undefined &&
2012
- input.IncludeDiscount !== null && { IncludeDiscount: input.IncludeDiscount })), (input.IncludeOtherSubscription !== undefined &&
2013
- input.IncludeOtherSubscription !== null && { IncludeOtherSubscription: input.IncludeOtherSubscription })), (input.IncludeRecurring !== undefined &&
2014
- input.IncludeRecurring !== null && { IncludeRecurring: input.IncludeRecurring })), (input.IncludeRefund !== undefined && input.IncludeRefund !== null && { IncludeRefund: input.IncludeRefund })), (input.IncludeSubscription !== undefined &&
2015
- input.IncludeSubscription !== null && { IncludeSubscription: input.IncludeSubscription })), (input.IncludeSupport !== undefined &&
2016
- input.IncludeSupport !== null && { IncludeSupport: input.IncludeSupport })), (input.IncludeTax !== undefined && input.IncludeTax !== null && { IncludeTax: input.IncludeTax })), (input.IncludeUpfront !== undefined &&
2017
- input.IncludeUpfront !== null && { IncludeUpfront: input.IncludeUpfront })), (input.UseAmortized !== undefined && input.UseAmortized !== null && { UseAmortized: input.UseAmortized })), (input.UseBlended !== undefined && input.UseBlended !== null && { UseBlended: input.UseBlended }));
2021
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.IncludeCredit != null && { IncludeCredit: input.IncludeCredit })), (input.IncludeDiscount != null && { IncludeDiscount: input.IncludeDiscount })), (input.IncludeOtherSubscription != null && { IncludeOtherSubscription: input.IncludeOtherSubscription })), (input.IncludeRecurring != null && { IncludeRecurring: input.IncludeRecurring })), (input.IncludeRefund != null && { IncludeRefund: input.IncludeRefund })), (input.IncludeSubscription != null && { IncludeSubscription: input.IncludeSubscription })), (input.IncludeSupport != null && { IncludeSupport: input.IncludeSupport })), (input.IncludeTax != null && { IncludeTax: input.IncludeTax })), (input.IncludeUpfront != null && { IncludeUpfront: input.IncludeUpfront })), (input.UseAmortized != null && { UseAmortized: input.UseAmortized })), (input.UseBlended != null && { UseBlended: input.UseBlended }));
2018
2022
  };
2019
2023
  var serializeAws_json1_1CreateBudgetActionRequest = function (input, context) {
2020
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionThreshold !== undefined &&
2021
- input.ActionThreshold !== null && {
2024
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionThreshold != null && {
2022
2025
  ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
2023
- })), (input.ActionType !== undefined && input.ActionType !== null && { ActionType: input.ActionType })), (input.ApprovalModel !== undefined && input.ApprovalModel !== null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Definition !== undefined &&
2024
- input.Definition !== null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn !== undefined &&
2025
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType !== undefined &&
2026
- input.NotificationType !== null && { NotificationType: input.NotificationType })), (input.Subscribers !== undefined &&
2027
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2026
+ })), (input.ActionType != null && { ActionType: input.ActionType })), (input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Definition != null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType != null && { NotificationType: input.NotificationType })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2028
2027
  };
2029
2028
  var serializeAws_json1_1CreateBudgetRequest = function (input, context) {
2030
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.Budget !== undefined &&
2031
- input.Budget !== null && { Budget: serializeAws_json1_1Budget(input.Budget, context) })), (input.NotificationsWithSubscribers !== undefined &&
2032
- input.NotificationsWithSubscribers !== null && {
2029
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.Budget != null && { Budget: serializeAws_json1_1Budget(input.Budget, context) })), (input.NotificationsWithSubscribers != null && {
2033
2030
  NotificationsWithSubscribers: serializeAws_json1_1NotificationWithSubscribersList(input.NotificationsWithSubscribers, context),
2034
2031
  }));
2035
2032
  };
2036
2033
  var serializeAws_json1_1CreateNotificationRequest = function (input, context) {
2037
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2038
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers !== undefined &&
2039
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2034
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2040
2035
  };
2041
2036
  var serializeAws_json1_1CreateSubscriberRequest = function (input, context) {
2042
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2043
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber !== undefined &&
2044
- input.Subscriber !== null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2037
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber != null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2045
2038
  };
2046
2039
  var serializeAws_json1_1Definition = function (input, context) {
2047
- return __assign(__assign(__assign({}, (input.IamActionDefinition !== undefined &&
2048
- input.IamActionDefinition !== null && {
2040
+ return __assign(__assign(__assign({}, (input.IamActionDefinition != null && {
2049
2041
  IamActionDefinition: serializeAws_json1_1IamActionDefinition(input.IamActionDefinition, context),
2050
- })), (input.ScpActionDefinition !== undefined &&
2051
- input.ScpActionDefinition !== null && {
2042
+ })), (input.ScpActionDefinition != null && {
2052
2043
  ScpActionDefinition: serializeAws_json1_1ScpActionDefinition(input.ScpActionDefinition, context),
2053
- })), (input.SsmActionDefinition !== undefined &&
2054
- input.SsmActionDefinition !== null && {
2044
+ })), (input.SsmActionDefinition != null && {
2055
2045
  SsmActionDefinition: serializeAws_json1_1SsmActionDefinition(input.SsmActionDefinition, context),
2056
2046
  }));
2057
2047
  };
2058
2048
  var serializeAws_json1_1DeleteBudgetActionRequest = function (input, context) {
2059
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2049
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2060
2050
  };
2061
2051
  var serializeAws_json1_1DeleteBudgetRequest = function (input, context) {
2062
- return __assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2052
+ return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2063
2053
  };
2064
2054
  var serializeAws_json1_1DeleteNotificationRequest = function (input, context) {
2065
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2066
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2055
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2067
2056
  };
2068
2057
  var serializeAws_json1_1DeleteSubscriberRequest = function (input, context) {
2069
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2070
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber !== undefined &&
2071
- input.Subscriber !== null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2058
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber != null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2072
2059
  };
2073
2060
  var serializeAws_json1_1DescribeBudgetActionHistoriesRequest = function (input, context) {
2074
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TimePeriod !== undefined &&
2075
- input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2061
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2076
2062
  };
2077
2063
  var serializeAws_json1_1DescribeBudgetActionRequest = function (input, context) {
2078
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2064
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2079
2065
  };
2080
2066
  var serializeAws_json1_1DescribeBudgetActionsForAccountRequest = function (input, context) {
2081
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2067
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2082
2068
  };
2083
2069
  var serializeAws_json1_1DescribeBudgetActionsForBudgetRequest = function (input, context) {
2084
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2070
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2085
2071
  };
2086
2072
  var serializeAws_json1_1DescribeBudgetNotificationsForAccountRequest = function (input, context) {
2087
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2073
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2088
2074
  };
2089
2075
  var serializeAws_json1_1DescribeBudgetPerformanceHistoryRequest = function (input, context) {
2090
- return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TimePeriod !== undefined &&
2091
- input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2076
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2092
2077
  };
2093
2078
  var serializeAws_json1_1DescribeBudgetRequest = function (input, context) {
2094
- return __assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2079
+ return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2095
2080
  };
2096
2081
  var serializeAws_json1_1DescribeBudgetsRequest = function (input, context) {
2097
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2082
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2098
2083
  };
2099
2084
  var serializeAws_json1_1DescribeNotificationsForBudgetRequest = function (input, context) {
2100
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2085
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2101
2086
  };
2102
2087
  var serializeAws_json1_1DescribeSubscribersForNotificationRequest = function (input, context) {
2103
- return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Notification !== undefined &&
2104
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2088
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2105
2089
  };
2106
2090
  var serializeAws_json1_1DimensionValues = function (input, context) {
2107
2091
  return input
@@ -2114,7 +2098,7 @@ var serializeAws_json1_1DimensionValues = function (input, context) {
2114
2098
  });
2115
2099
  };
2116
2100
  var serializeAws_json1_1ExecuteBudgetActionRequest = function (input, context) {
2117
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.ExecutionType !== undefined && input.ExecutionType !== null && { ExecutionType: input.ExecutionType }));
2101
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.ExecutionType != null && { ExecutionType: input.ExecutionType }));
2118
2102
  };
2119
2103
  var serializeAws_json1_1Groups = function (input, context) {
2120
2104
  return input
@@ -2127,15 +2111,10 @@ var serializeAws_json1_1Groups = function (input, context) {
2127
2111
  });
2128
2112
  };
2129
2113
  var serializeAws_json1_1HistoricalOptions = function (input, context) {
2130
- return __assign(__assign({}, (input.BudgetAdjustmentPeriod !== undefined &&
2131
- input.BudgetAdjustmentPeriod !== null && { BudgetAdjustmentPeriod: input.BudgetAdjustmentPeriod })), (input.LookBackAvailablePeriods !== undefined &&
2132
- input.LookBackAvailablePeriods !== null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }));
2114
+ return __assign(__assign({}, (input.BudgetAdjustmentPeriod != null && { BudgetAdjustmentPeriod: input.BudgetAdjustmentPeriod })), (input.LookBackAvailablePeriods != null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }));
2133
2115
  };
2134
2116
  var serializeAws_json1_1IamActionDefinition = function (input, context) {
2135
- return __assign(__assign(__assign(__assign({}, (input.Groups !== undefined &&
2136
- input.Groups !== null && { Groups: serializeAws_json1_1Groups(input.Groups, context) })), (input.PolicyArn !== undefined && input.PolicyArn !== null && { PolicyArn: input.PolicyArn })), (input.Roles !== undefined &&
2137
- input.Roles !== null && { Roles: serializeAws_json1_1Roles(input.Roles, context) })), (input.Users !== undefined &&
2138
- input.Users !== null && { Users: serializeAws_json1_1Users(input.Users, context) }));
2117
+ return __assign(__assign(__assign(__assign({}, (input.Groups != null && { Groups: serializeAws_json1_1Groups(input.Groups, context) })), (input.PolicyArn != null && { PolicyArn: input.PolicyArn })), (input.Roles != null && { Roles: serializeAws_json1_1Roles(input.Roles, context) })), (input.Users != null && { Users: serializeAws_json1_1Users(input.Users, context) }));
2139
2118
  };
2140
2119
  var serializeAws_json1_1InstanceIds = function (input, context) {
2141
2120
  return input
@@ -2148,15 +2127,10 @@ var serializeAws_json1_1InstanceIds = function (input, context) {
2148
2127
  });
2149
2128
  };
2150
2129
  var serializeAws_json1_1Notification = function (input, context) {
2151
- return __assign(__assign(__assign(__assign(__assign({}, (input.ComparisonOperator !== undefined &&
2152
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.NotificationState !== undefined &&
2153
- input.NotificationState !== null && { NotificationState: input.NotificationState })), (input.NotificationType !== undefined &&
2154
- input.NotificationType !== null && { NotificationType: input.NotificationType })), (input.Threshold !== undefined && input.Threshold !== null && { Threshold: __serializeFloat(input.Threshold) })), (input.ThresholdType !== undefined && input.ThresholdType !== null && { ThresholdType: input.ThresholdType }));
2130
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator })), (input.NotificationState != null && { NotificationState: input.NotificationState })), (input.NotificationType != null && { NotificationType: input.NotificationType })), (input.Threshold != null && { Threshold: __serializeFloat(input.Threshold) })), (input.ThresholdType != null && { ThresholdType: input.ThresholdType }));
2155
2131
  };
2156
2132
  var serializeAws_json1_1NotificationWithSubscribers = function (input, context) {
2157
- return __assign(__assign({}, (input.Notification !== undefined &&
2158
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers !== undefined &&
2159
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2133
+ return __assign(__assign({}, (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2160
2134
  };
2161
2135
  var serializeAws_json1_1NotificationWithSubscribersList = function (input, context) {
2162
2136
  return input
@@ -2189,19 +2163,16 @@ var serializeAws_json1_1Roles = function (input, context) {
2189
2163
  });
2190
2164
  };
2191
2165
  var serializeAws_json1_1ScpActionDefinition = function (input, context) {
2192
- return __assign(__assign({}, (input.PolicyId !== undefined && input.PolicyId !== null && { PolicyId: input.PolicyId })), (input.TargetIds !== undefined &&
2193
- input.TargetIds !== null && { TargetIds: serializeAws_json1_1TargetIds(input.TargetIds, context) }));
2166
+ return __assign(__assign({}, (input.PolicyId != null && { PolicyId: input.PolicyId })), (input.TargetIds != null && { TargetIds: serializeAws_json1_1TargetIds(input.TargetIds, context) }));
2194
2167
  };
2195
2168
  var serializeAws_json1_1Spend = function (input, context) {
2196
- return __assign(__assign({}, (input.Amount !== undefined && input.Amount !== null && { Amount: input.Amount })), (input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }));
2169
+ return __assign(__assign({}, (input.Amount != null && { Amount: input.Amount })), (input.Unit != null && { Unit: input.Unit }));
2197
2170
  };
2198
2171
  var serializeAws_json1_1SsmActionDefinition = function (input, context) {
2199
- return __assign(__assign(__assign({}, (input.ActionSubType !== undefined && input.ActionSubType !== null && { ActionSubType: input.ActionSubType })), (input.InstanceIds !== undefined &&
2200
- input.InstanceIds !== null && { InstanceIds: serializeAws_json1_1InstanceIds(input.InstanceIds, context) })), (input.Region !== undefined && input.Region !== null && { Region: input.Region }));
2172
+ return __assign(__assign(__assign({}, (input.ActionSubType != null && { ActionSubType: input.ActionSubType })), (input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIds(input.InstanceIds, context) })), (input.Region != null && { Region: input.Region }));
2201
2173
  };
2202
2174
  var serializeAws_json1_1Subscriber = function (input, context) {
2203
- return __assign(__assign({}, (input.Address !== undefined && input.Address !== null && { Address: input.Address })), (input.SubscriptionType !== undefined &&
2204
- input.SubscriptionType !== null && { SubscriptionType: input.SubscriptionType }));
2175
+ return __assign(__assign({}, (input.Address != null && { Address: input.Address })), (input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }));
2205
2176
  };
2206
2177
  var serializeAws_json1_1Subscribers = function (input, context) {
2207
2178
  return input
@@ -2224,36 +2195,25 @@ var serializeAws_json1_1TargetIds = function (input, context) {
2224
2195
  });
2225
2196
  };
2226
2197
  var serializeAws_json1_1TimePeriod = function (input, context) {
2227
- return __assign(__assign({}, (input.End !== undefined && input.End !== null && { End: Math.round(input.End.getTime() / 1000) })), (input.Start !== undefined && input.Start !== null && { Start: Math.round(input.Start.getTime() / 1000) }));
2198
+ return __assign(__assign({}, (input.End != null && { End: Math.round(input.End.getTime() / 1000) })), (input.Start != null && { Start: Math.round(input.Start.getTime() / 1000) }));
2228
2199
  };
2229
2200
  var serializeAws_json1_1UpdateBudgetActionRequest = function (input, context) {
2230
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.ActionThreshold !== undefined &&
2231
- input.ActionThreshold !== null && {
2201
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.ActionThreshold != null && {
2232
2202
  ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
2233
- })), (input.ApprovalModel !== undefined && input.ApprovalModel !== null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Definition !== undefined &&
2234
- input.Definition !== null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn !== undefined &&
2235
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType !== undefined &&
2236
- input.NotificationType !== null && { NotificationType: input.NotificationType })), (input.Subscribers !== undefined &&
2237
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2203
+ })), (input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Definition != null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType != null && { NotificationType: input.NotificationType })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2238
2204
  };
2239
2205
  var serializeAws_json1_1UpdateBudgetRequest = function (input, context) {
2240
- return __assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.NewBudget !== undefined &&
2241
- input.NewBudget !== null && { NewBudget: serializeAws_json1_1Budget(input.NewBudget, context) }));
2206
+ return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.NewBudget != null && { NewBudget: serializeAws_json1_1Budget(input.NewBudget, context) }));
2242
2207
  };
2243
2208
  var serializeAws_json1_1UpdateNotificationRequest = function (input, context) {
2244
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.NewNotification !== undefined &&
2245
- input.NewNotification !== null && {
2209
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.NewNotification != null && {
2246
2210
  NewNotification: serializeAws_json1_1Notification(input.NewNotification, context),
2247
- })), (input.OldNotification !== undefined &&
2248
- input.OldNotification !== null && {
2211
+ })), (input.OldNotification != null && {
2249
2212
  OldNotification: serializeAws_json1_1Notification(input.OldNotification, context),
2250
2213
  }));
2251
2214
  };
2252
2215
  var serializeAws_json1_1UpdateSubscriberRequest = function (input, context) {
2253
- return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.NewSubscriber !== undefined &&
2254
- input.NewSubscriber !== null && { NewSubscriber: serializeAws_json1_1Subscriber(input.NewSubscriber, context) })), (input.Notification !== undefined &&
2255
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OldSubscriber !== undefined &&
2256
- input.OldSubscriber !== null && { OldSubscriber: serializeAws_json1_1Subscriber(input.OldSubscriber, context) }));
2216
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.NewSubscriber != null && { NewSubscriber: serializeAws_json1_1Subscriber(input.NewSubscriber, context) })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OldSubscriber != null && { OldSubscriber: serializeAws_json1_1Subscriber(input.OldSubscriber, context) }));
2257
2217
  };
2258
2218
  var serializeAws_json1_1Users = function (input, context) {
2259
2219
  return input
@@ -2273,21 +2233,17 @@ var deserializeAws_json1_1AccessDeniedException = function (output, context) {
2273
2233
  var deserializeAws_json1_1Action = function (output, context) {
2274
2234
  return {
2275
2235
  ActionId: __expectString(output.ActionId),
2276
- ActionThreshold: output.ActionThreshold !== undefined && output.ActionThreshold !== null
2236
+ ActionThreshold: output.ActionThreshold != null
2277
2237
  ? deserializeAws_json1_1ActionThreshold(output.ActionThreshold, context)
2278
2238
  : undefined,
2279
2239
  ActionType: __expectString(output.ActionType),
2280
2240
  ApprovalModel: __expectString(output.ApprovalModel),
2281
2241
  BudgetName: __expectString(output.BudgetName),
2282
- Definition: output.Definition !== undefined && output.Definition !== null
2283
- ? deserializeAws_json1_1Definition(output.Definition, context)
2284
- : undefined,
2242
+ Definition: output.Definition != null ? deserializeAws_json1_1Definition(output.Definition, context) : undefined,
2285
2243
  ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
2286
2244
  NotificationType: __expectString(output.NotificationType),
2287
2245
  Status: __expectString(output.Status),
2288
- Subscribers: output.Subscribers !== undefined && output.Subscribers !== null
2289
- ? deserializeAws_json1_1Subscribers(output.Subscribers, context)
2290
- : undefined,
2246
+ Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
2291
2247
  };
2292
2248
  };
2293
2249
  var deserializeAws_json1_1ActionHistories = function (output, context) {
@@ -2303,21 +2259,17 @@ var deserializeAws_json1_1ActionHistories = function (output, context) {
2303
2259
  };
2304
2260
  var deserializeAws_json1_1ActionHistory = function (output, context) {
2305
2261
  return {
2306
- ActionHistoryDetails: output.ActionHistoryDetails !== undefined && output.ActionHistoryDetails !== null
2262
+ ActionHistoryDetails: output.ActionHistoryDetails != null
2307
2263
  ? deserializeAws_json1_1ActionHistoryDetails(output.ActionHistoryDetails, context)
2308
2264
  : undefined,
2309
2265
  EventType: __expectString(output.EventType),
2310
2266
  Status: __expectString(output.Status),
2311
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
2312
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
2313
- : undefined,
2267
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
2314
2268
  };
2315
2269
  };
2316
2270
  var deserializeAws_json1_1ActionHistoryDetails = function (output, context) {
2317
2271
  return {
2318
- Action: output.Action !== undefined && output.Action !== null
2319
- ? deserializeAws_json1_1Action(output.Action, context)
2320
- : undefined,
2272
+ Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
2321
2273
  Message: __expectString(output.Message),
2322
2274
  };
2323
2275
  };
@@ -2341,56 +2293,40 @@ var deserializeAws_json1_1ActionThreshold = function (output, context) {
2341
2293
  var deserializeAws_json1_1AutoAdjustData = function (output, context) {
2342
2294
  return {
2343
2295
  AutoAdjustType: __expectString(output.AutoAdjustType),
2344
- HistoricalOptions: output.HistoricalOptions !== undefined && output.HistoricalOptions !== null
2296
+ HistoricalOptions: output.HistoricalOptions != null
2345
2297
  ? deserializeAws_json1_1HistoricalOptions(output.HistoricalOptions, context)
2346
2298
  : undefined,
2347
- LastAutoAdjustTime: output.LastAutoAdjustTime !== undefined && output.LastAutoAdjustTime !== null
2299
+ LastAutoAdjustTime: output.LastAutoAdjustTime != null
2348
2300
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAutoAdjustTime)))
2349
2301
  : undefined,
2350
2302
  };
2351
2303
  };
2352
2304
  var deserializeAws_json1_1Budget = function (output, context) {
2353
2305
  return {
2354
- AutoAdjustData: output.AutoAdjustData !== undefined && output.AutoAdjustData !== null
2355
- ? deserializeAws_json1_1AutoAdjustData(output.AutoAdjustData, context)
2356
- : undefined,
2357
- BudgetLimit: output.BudgetLimit !== undefined && output.BudgetLimit !== null
2358
- ? deserializeAws_json1_1Spend(output.BudgetLimit, context)
2359
- : undefined,
2306
+ AutoAdjustData: output.AutoAdjustData != null ? deserializeAws_json1_1AutoAdjustData(output.AutoAdjustData, context) : undefined,
2307
+ BudgetLimit: output.BudgetLimit != null ? deserializeAws_json1_1Spend(output.BudgetLimit, context) : undefined,
2360
2308
  BudgetName: __expectString(output.BudgetName),
2361
2309
  BudgetType: __expectString(output.BudgetType),
2362
- CalculatedSpend: output.CalculatedSpend !== undefined && output.CalculatedSpend !== null
2310
+ CalculatedSpend: output.CalculatedSpend != null
2363
2311
  ? deserializeAws_json1_1CalculatedSpend(output.CalculatedSpend, context)
2364
2312
  : undefined,
2365
- CostFilters: output.CostFilters !== undefined && output.CostFilters !== null
2366
- ? deserializeAws_json1_1CostFilters(output.CostFilters, context)
2367
- : undefined,
2368
- CostTypes: output.CostTypes !== undefined && output.CostTypes !== null
2369
- ? deserializeAws_json1_1CostTypes(output.CostTypes, context)
2370
- : undefined,
2371
- LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
2313
+ CostFilters: output.CostFilters != null ? deserializeAws_json1_1CostFilters(output.CostFilters, context) : undefined,
2314
+ CostTypes: output.CostTypes != null ? deserializeAws_json1_1CostTypes(output.CostTypes, context) : undefined,
2315
+ LastUpdatedTime: output.LastUpdatedTime != null
2372
2316
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
2373
2317
  : undefined,
2374
- PlannedBudgetLimits: output.PlannedBudgetLimits !== undefined && output.PlannedBudgetLimits !== null
2318
+ PlannedBudgetLimits: output.PlannedBudgetLimits != null
2375
2319
  ? deserializeAws_json1_1PlannedBudgetLimits(output.PlannedBudgetLimits, context)
2376
2320
  : undefined,
2377
- TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
2378
- ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context)
2379
- : undefined,
2321
+ TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context) : undefined,
2380
2322
  TimeUnit: __expectString(output.TimeUnit),
2381
2323
  };
2382
2324
  };
2383
2325
  var deserializeAws_json1_1BudgetedAndActualAmounts = function (output, context) {
2384
2326
  return {
2385
- ActualAmount: output.ActualAmount !== undefined && output.ActualAmount !== null
2386
- ? deserializeAws_json1_1Spend(output.ActualAmount, context)
2387
- : undefined,
2388
- BudgetedAmount: output.BudgetedAmount !== undefined && output.BudgetedAmount !== null
2389
- ? deserializeAws_json1_1Spend(output.BudgetedAmount, context)
2390
- : undefined,
2391
- TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
2392
- ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context)
2393
- : undefined,
2327
+ ActualAmount: output.ActualAmount != null ? deserializeAws_json1_1Spend(output.ActualAmount, context) : undefined,
2328
+ BudgetedAmount: output.BudgetedAmount != null ? deserializeAws_json1_1Spend(output.BudgetedAmount, context) : undefined,
2329
+ TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context) : undefined,
2394
2330
  };
2395
2331
  };
2396
2332
  var deserializeAws_json1_1BudgetedAndActualAmountsList = function (output, context) {
@@ -2407,9 +2343,7 @@ var deserializeAws_json1_1BudgetedAndActualAmountsList = function (output, conte
2407
2343
  var deserializeAws_json1_1BudgetNotificationsForAccount = function (output, context) {
2408
2344
  return {
2409
2345
  BudgetName: __expectString(output.BudgetName),
2410
- Notifications: output.Notifications !== undefined && output.Notifications !== null
2411
- ? deserializeAws_json1_1Notifications(output.Notifications, context)
2412
- : undefined,
2346
+ Notifications: output.Notifications != null ? deserializeAws_json1_1Notifications(output.Notifications, context) : undefined,
2413
2347
  };
2414
2348
  };
2415
2349
  var deserializeAws_json1_1BudgetNotificationsForAccountList = function (output, context) {
@@ -2427,15 +2361,11 @@ var deserializeAws_json1_1BudgetPerformanceHistory = function (output, context)
2427
2361
  return {
2428
2362
  BudgetName: __expectString(output.BudgetName),
2429
2363
  BudgetType: __expectString(output.BudgetType),
2430
- BudgetedAndActualAmountsList: output.BudgetedAndActualAmountsList !== undefined && output.BudgetedAndActualAmountsList !== null
2364
+ BudgetedAndActualAmountsList: output.BudgetedAndActualAmountsList != null
2431
2365
  ? deserializeAws_json1_1BudgetedAndActualAmountsList(output.BudgetedAndActualAmountsList, context)
2432
2366
  : undefined,
2433
- CostFilters: output.CostFilters !== undefined && output.CostFilters !== null
2434
- ? deserializeAws_json1_1CostFilters(output.CostFilters, context)
2435
- : undefined,
2436
- CostTypes: output.CostTypes !== undefined && output.CostTypes !== null
2437
- ? deserializeAws_json1_1CostTypes(output.CostTypes, context)
2438
- : undefined,
2367
+ CostFilters: output.CostFilters != null ? deserializeAws_json1_1CostFilters(output.CostFilters, context) : undefined,
2368
+ CostTypes: output.CostTypes != null ? deserializeAws_json1_1CostTypes(output.CostTypes, context) : undefined,
2439
2369
  TimeUnit: __expectString(output.TimeUnit),
2440
2370
  };
2441
2371
  };
@@ -2452,12 +2382,8 @@ var deserializeAws_json1_1Budgets = function (output, context) {
2452
2382
  };
2453
2383
  var deserializeAws_json1_1CalculatedSpend = function (output, context) {
2454
2384
  return {
2455
- ActualSpend: output.ActualSpend !== undefined && output.ActualSpend !== null
2456
- ? deserializeAws_json1_1Spend(output.ActualSpend, context)
2457
- : undefined,
2458
- ForecastedSpend: output.ForecastedSpend !== undefined && output.ForecastedSpend !== null
2459
- ? deserializeAws_json1_1Spend(output.ForecastedSpend, context)
2460
- : undefined,
2385
+ ActualSpend: output.ActualSpend != null ? deserializeAws_json1_1Spend(output.ActualSpend, context) : undefined,
2386
+ ForecastedSpend: output.ForecastedSpend != null ? deserializeAws_json1_1Spend(output.ForecastedSpend, context) : undefined,
2461
2387
  };
2462
2388
  };
2463
2389
  var deserializeAws_json1_1CostFilters = function (output, context) {
@@ -2508,13 +2434,13 @@ var deserializeAws_json1_1CreationLimitExceededException = function (output, con
2508
2434
  };
2509
2435
  var deserializeAws_json1_1Definition = function (output, context) {
2510
2436
  return {
2511
- IamActionDefinition: output.IamActionDefinition !== undefined && output.IamActionDefinition !== null
2437
+ IamActionDefinition: output.IamActionDefinition != null
2512
2438
  ? deserializeAws_json1_1IamActionDefinition(output.IamActionDefinition, context)
2513
2439
  : undefined,
2514
- ScpActionDefinition: output.ScpActionDefinition !== undefined && output.ScpActionDefinition !== null
2440
+ ScpActionDefinition: output.ScpActionDefinition != null
2515
2441
  ? deserializeAws_json1_1ScpActionDefinition(output.ScpActionDefinition, context)
2516
2442
  : undefined,
2517
- SsmActionDefinition: output.SsmActionDefinition !== undefined && output.SsmActionDefinition !== null
2443
+ SsmActionDefinition: output.SsmActionDefinition != null
2518
2444
  ? deserializeAws_json1_1SsmActionDefinition(output.SsmActionDefinition, context)
2519
2445
  : undefined,
2520
2446
  };
@@ -2522,9 +2448,7 @@ var deserializeAws_json1_1Definition = function (output, context) {
2522
2448
  var deserializeAws_json1_1DeleteBudgetActionResponse = function (output, context) {
2523
2449
  return {
2524
2450
  AccountId: __expectString(output.AccountId),
2525
- Action: output.Action !== undefined && output.Action !== null
2526
- ? deserializeAws_json1_1Action(output.Action, context)
2527
- : undefined,
2451
+ Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
2528
2452
  BudgetName: __expectString(output.BudgetName),
2529
2453
  };
2530
2454
  };
@@ -2539,7 +2463,7 @@ var deserializeAws_json1_1DeleteSubscriberResponse = function (output, context)
2539
2463
  };
2540
2464
  var deserializeAws_json1_1DescribeBudgetActionHistoriesResponse = function (output, context) {
2541
2465
  return {
2542
- ActionHistories: output.ActionHistories !== undefined && output.ActionHistories !== null
2466
+ ActionHistories: output.ActionHistories != null
2543
2467
  ? deserializeAws_json1_1ActionHistories(output.ActionHistories, context)
2544
2468
  : undefined,
2545
2469
  NextToken: __expectString(output.NextToken),
@@ -2548,31 +2472,25 @@ var deserializeAws_json1_1DescribeBudgetActionHistoriesResponse = function (outp
2548
2472
  var deserializeAws_json1_1DescribeBudgetActionResponse = function (output, context) {
2549
2473
  return {
2550
2474
  AccountId: __expectString(output.AccountId),
2551
- Action: output.Action !== undefined && output.Action !== null
2552
- ? deserializeAws_json1_1Action(output.Action, context)
2553
- : undefined,
2475
+ Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
2554
2476
  BudgetName: __expectString(output.BudgetName),
2555
2477
  };
2556
2478
  };
2557
2479
  var deserializeAws_json1_1DescribeBudgetActionsForAccountResponse = function (output, context) {
2558
2480
  return {
2559
- Actions: output.Actions !== undefined && output.Actions !== null
2560
- ? deserializeAws_json1_1Actions(output.Actions, context)
2561
- : undefined,
2481
+ Actions: output.Actions != null ? deserializeAws_json1_1Actions(output.Actions, context) : undefined,
2562
2482
  NextToken: __expectString(output.NextToken),
2563
2483
  };
2564
2484
  };
2565
2485
  var deserializeAws_json1_1DescribeBudgetActionsForBudgetResponse = function (output, context) {
2566
2486
  return {
2567
- Actions: output.Actions !== undefined && output.Actions !== null
2568
- ? deserializeAws_json1_1Actions(output.Actions, context)
2569
- : undefined,
2487
+ Actions: output.Actions != null ? deserializeAws_json1_1Actions(output.Actions, context) : undefined,
2570
2488
  NextToken: __expectString(output.NextToken),
2571
2489
  };
2572
2490
  };
2573
2491
  var deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse = function (output, context) {
2574
2492
  return {
2575
- BudgetNotificationsForAccount: output.BudgetNotificationsForAccount !== undefined && output.BudgetNotificationsForAccount !== null
2493
+ BudgetNotificationsForAccount: output.BudgetNotificationsForAccount != null
2576
2494
  ? deserializeAws_json1_1BudgetNotificationsForAccountList(output.BudgetNotificationsForAccount, context)
2577
2495
  : undefined,
2578
2496
  NextToken: __expectString(output.NextToken),
@@ -2580,7 +2498,7 @@ var deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse = functi
2580
2498
  };
2581
2499
  var deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse = function (output, context) {
2582
2500
  return {
2583
- BudgetPerformanceHistory: output.BudgetPerformanceHistory !== undefined && output.BudgetPerformanceHistory !== null
2501
+ BudgetPerformanceHistory: output.BudgetPerformanceHistory != null
2584
2502
  ? deserializeAws_json1_1BudgetPerformanceHistory(output.BudgetPerformanceHistory, context)
2585
2503
  : undefined,
2586
2504
  NextToken: __expectString(output.NextToken),
@@ -2588,33 +2506,25 @@ var deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse = function (o
2588
2506
  };
2589
2507
  var deserializeAws_json1_1DescribeBudgetResponse = function (output, context) {
2590
2508
  return {
2591
- Budget: output.Budget !== undefined && output.Budget !== null
2592
- ? deserializeAws_json1_1Budget(output.Budget, context)
2593
- : undefined,
2509
+ Budget: output.Budget != null ? deserializeAws_json1_1Budget(output.Budget, context) : undefined,
2594
2510
  };
2595
2511
  };
2596
2512
  var deserializeAws_json1_1DescribeBudgetsResponse = function (output, context) {
2597
2513
  return {
2598
- Budgets: output.Budgets !== undefined && output.Budgets !== null
2599
- ? deserializeAws_json1_1Budgets(output.Budgets, context)
2600
- : undefined,
2514
+ Budgets: output.Budgets != null ? deserializeAws_json1_1Budgets(output.Budgets, context) : undefined,
2601
2515
  NextToken: __expectString(output.NextToken),
2602
2516
  };
2603
2517
  };
2604
2518
  var deserializeAws_json1_1DescribeNotificationsForBudgetResponse = function (output, context) {
2605
2519
  return {
2606
2520
  NextToken: __expectString(output.NextToken),
2607
- Notifications: output.Notifications !== undefined && output.Notifications !== null
2608
- ? deserializeAws_json1_1Notifications(output.Notifications, context)
2609
- : undefined,
2521
+ Notifications: output.Notifications != null ? deserializeAws_json1_1Notifications(output.Notifications, context) : undefined,
2610
2522
  };
2611
2523
  };
2612
2524
  var deserializeAws_json1_1DescribeSubscribersForNotificationResponse = function (output, context) {
2613
2525
  return {
2614
2526
  NextToken: __expectString(output.NextToken),
2615
- Subscribers: output.Subscribers !== undefined && output.Subscribers !== null
2616
- ? deserializeAws_json1_1Subscribers(output.Subscribers, context)
2617
- : undefined,
2527
+ Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
2618
2528
  };
2619
2529
  };
2620
2530
  var deserializeAws_json1_1DimensionValues = function (output, context) {
@@ -2665,16 +2575,10 @@ var deserializeAws_json1_1HistoricalOptions = function (output, context) {
2665
2575
  };
2666
2576
  var deserializeAws_json1_1IamActionDefinition = function (output, context) {
2667
2577
  return {
2668
- Groups: output.Groups !== undefined && output.Groups !== null
2669
- ? deserializeAws_json1_1Groups(output.Groups, context)
2670
- : undefined,
2578
+ Groups: output.Groups != null ? deserializeAws_json1_1Groups(output.Groups, context) : undefined,
2671
2579
  PolicyArn: __expectString(output.PolicyArn),
2672
- Roles: output.Roles !== undefined && output.Roles !== null
2673
- ? deserializeAws_json1_1Roles(output.Roles, context)
2674
- : undefined,
2675
- Users: output.Users !== undefined && output.Users !== null
2676
- ? deserializeAws_json1_1Users(output.Users, context)
2677
- : undefined,
2580
+ Roles: output.Roles != null ? deserializeAws_json1_1Roles(output.Roles, context) : undefined,
2581
+ Users: output.Users != null ? deserializeAws_json1_1Users(output.Users, context) : undefined,
2678
2582
  };
2679
2583
  };
2680
2584
  var deserializeAws_json1_1InstanceIds = function (output, context) {
@@ -2757,9 +2661,7 @@ var deserializeAws_json1_1Roles = function (output, context) {
2757
2661
  var deserializeAws_json1_1ScpActionDefinition = function (output, context) {
2758
2662
  return {
2759
2663
  PolicyId: __expectString(output.PolicyId),
2760
- TargetIds: output.TargetIds !== undefined && output.TargetIds !== null
2761
- ? deserializeAws_json1_1TargetIds(output.TargetIds, context)
2762
- : undefined,
2664
+ TargetIds: output.TargetIds != null ? deserializeAws_json1_1TargetIds(output.TargetIds, context) : undefined,
2763
2665
  };
2764
2666
  };
2765
2667
  var deserializeAws_json1_1Spend = function (output, context) {
@@ -2771,9 +2673,7 @@ var deserializeAws_json1_1Spend = function (output, context) {
2771
2673
  var deserializeAws_json1_1SsmActionDefinition = function (output, context) {
2772
2674
  return {
2773
2675
  ActionSubType: __expectString(output.ActionSubType),
2774
- InstanceIds: output.InstanceIds !== undefined && output.InstanceIds !== null
2775
- ? deserializeAws_json1_1InstanceIds(output.InstanceIds, context)
2776
- : undefined,
2676
+ InstanceIds: output.InstanceIds != null ? deserializeAws_json1_1InstanceIds(output.InstanceIds, context) : undefined,
2777
2677
  Region: __expectString(output.Region),
2778
2678
  };
2779
2679
  };
@@ -2812,24 +2712,16 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
2812
2712
  };
2813
2713
  var deserializeAws_json1_1TimePeriod = function (output, context) {
2814
2714
  return {
2815
- End: output.End !== undefined && output.End !== null
2816
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.End)))
2817
- : undefined,
2818
- Start: output.Start !== undefined && output.Start !== null
2819
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Start)))
2820
- : undefined,
2715
+ End: output.End != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.End))) : undefined,
2716
+ Start: output.Start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Start))) : undefined,
2821
2717
  };
2822
2718
  };
2823
2719
  var deserializeAws_json1_1UpdateBudgetActionResponse = function (output, context) {
2824
2720
  return {
2825
2721
  AccountId: __expectString(output.AccountId),
2826
2722
  BudgetName: __expectString(output.BudgetName),
2827
- NewAction: output.NewAction !== undefined && output.NewAction !== null
2828
- ? deserializeAws_json1_1Action(output.NewAction, context)
2829
- : undefined,
2830
- OldAction: output.OldAction !== undefined && output.OldAction !== null
2831
- ? deserializeAws_json1_1Action(output.OldAction, context)
2832
- : undefined,
2723
+ NewAction: output.NewAction != null ? deserializeAws_json1_1Action(output.NewAction, context) : undefined,
2724
+ OldAction: output.OldAction != null ? deserializeAws_json1_1Action(output.OldAction, context) : undefined,
2833
2725
  };
2834
2726
  };
2835
2727
  var deserializeAws_json1_1UpdateBudgetResponse = function (output, context) {
@@ -2926,5 +2818,4 @@ var loadRestJsonErrorCode = function (output, data) {
2926
2818
  if (data["__type"] !== undefined) {
2927
2819
  return sanitizeErrorCode(data["__type"]);
2928
2820
  }
2929
- return "";
2930
2821
  };