@aws-sdk/client-budgets 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +315 -424
- package/dist-es/protocols/Aws_json1_1.js +212 -321
- package/package.json +26 -26
|
@@ -255,8 +255,7 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) =
|
|
|
255
255
|
body: await parseBody(output.body, context),
|
|
256
256
|
};
|
|
257
257
|
let response;
|
|
258
|
-
|
|
259
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
259
|
switch (errorCode) {
|
|
261
260
|
case "AccessDeniedException":
|
|
262
261
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -278,10 +277,12 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) =
|
|
|
278
277
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
279
278
|
default:
|
|
280
279
|
const parsedBody = parsedOutput.body;
|
|
280
|
+
const $metadata = deserializeMetadata(output);
|
|
281
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
281
282
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
282
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
283
284
|
$fault: "client",
|
|
284
|
-
$metadata
|
|
285
|
+
$metadata,
|
|
285
286
|
});
|
|
286
287
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
287
288
|
}
|
|
@@ -306,8 +307,7 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, cont
|
|
|
306
307
|
body: await parseBody(output.body, context),
|
|
307
308
|
};
|
|
308
309
|
let response;
|
|
309
|
-
|
|
310
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
310
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
311
311
|
switch (errorCode) {
|
|
312
312
|
case "AccessDeniedException":
|
|
313
313
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -332,10 +332,12 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, cont
|
|
|
332
332
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
333
333
|
default:
|
|
334
334
|
const parsedBody = parsedOutput.body;
|
|
335
|
+
const $metadata = deserializeMetadata(output);
|
|
336
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
335
337
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
336
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
338
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
337
339
|
$fault: "client",
|
|
338
|
-
$metadata
|
|
340
|
+
$metadata,
|
|
339
341
|
});
|
|
340
342
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
341
343
|
}
|
|
@@ -360,8 +362,7 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (output, cont
|
|
|
360
362
|
body: await parseBody(output.body, context),
|
|
361
363
|
};
|
|
362
364
|
let response;
|
|
363
|
-
|
|
364
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
365
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
365
366
|
switch (errorCode) {
|
|
366
367
|
case "AccessDeniedException":
|
|
367
368
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -386,10 +387,12 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (output, cont
|
|
|
386
387
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
387
388
|
default:
|
|
388
389
|
const parsedBody = parsedOutput.body;
|
|
390
|
+
const $metadata = deserializeMetadata(output);
|
|
391
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
389
392
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
390
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
393
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
391
394
|
$fault: "client",
|
|
392
|
-
$metadata
|
|
395
|
+
$metadata,
|
|
393
396
|
});
|
|
394
397
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
395
398
|
}
|
|
@@ -414,8 +417,7 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (output, contex
|
|
|
414
417
|
body: await parseBody(output.body, context),
|
|
415
418
|
};
|
|
416
419
|
let response;
|
|
417
|
-
|
|
418
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
421
|
switch (errorCode) {
|
|
420
422
|
case "AccessDeniedException":
|
|
421
423
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -440,10 +442,12 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (output, contex
|
|
|
440
442
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
441
443
|
default:
|
|
442
444
|
const parsedBody = parsedOutput.body;
|
|
445
|
+
const $metadata = deserializeMetadata(output);
|
|
446
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
443
447
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
444
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
445
449
|
$fault: "client",
|
|
446
|
-
$metadata
|
|
450
|
+
$metadata,
|
|
447
451
|
});
|
|
448
452
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
449
453
|
}
|
|
@@ -468,8 +472,7 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) =
|
|
|
468
472
|
body: await parseBody(output.body, context),
|
|
469
473
|
};
|
|
470
474
|
let response;
|
|
471
|
-
|
|
472
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
476
|
switch (errorCode) {
|
|
474
477
|
case "AccessDeniedException":
|
|
475
478
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -488,10 +491,12 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) =
|
|
|
488
491
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
489
492
|
default:
|
|
490
493
|
const parsedBody = parsedOutput.body;
|
|
494
|
+
const $metadata = deserializeMetadata(output);
|
|
495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
491
496
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
492
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
493
498
|
$fault: "client",
|
|
494
|
-
$metadata
|
|
499
|
+
$metadata,
|
|
495
500
|
});
|
|
496
501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
497
502
|
}
|
|
@@ -516,8 +521,7 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, cont
|
|
|
516
521
|
body: await parseBody(output.body, context),
|
|
517
522
|
};
|
|
518
523
|
let response;
|
|
519
|
-
|
|
520
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
525
|
switch (errorCode) {
|
|
522
526
|
case "AccessDeniedException":
|
|
523
527
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -539,10 +543,12 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, cont
|
|
|
539
543
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
540
544
|
default:
|
|
541
545
|
const parsedBody = parsedOutput.body;
|
|
546
|
+
const $metadata = deserializeMetadata(output);
|
|
547
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
542
548
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
549
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
544
550
|
$fault: "client",
|
|
545
|
-
$metadata
|
|
551
|
+
$metadata,
|
|
546
552
|
});
|
|
547
553
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
548
554
|
}
|
|
@@ -567,8 +573,7 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (output, cont
|
|
|
567
573
|
body: await parseBody(output.body, context),
|
|
568
574
|
};
|
|
569
575
|
let response;
|
|
570
|
-
|
|
571
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
572
577
|
switch (errorCode) {
|
|
573
578
|
case "AccessDeniedException":
|
|
574
579
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -587,10 +592,12 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (output, cont
|
|
|
587
592
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
588
593
|
default:
|
|
589
594
|
const parsedBody = parsedOutput.body;
|
|
595
|
+
const $metadata = deserializeMetadata(output);
|
|
596
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
590
597
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
591
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
598
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
592
599
|
$fault: "client",
|
|
593
|
-
$metadata
|
|
600
|
+
$metadata,
|
|
594
601
|
});
|
|
595
602
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
596
603
|
}
|
|
@@ -615,8 +622,7 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, contex
|
|
|
615
622
|
body: await parseBody(output.body, context),
|
|
616
623
|
};
|
|
617
624
|
let response;
|
|
618
|
-
|
|
619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
626
|
switch (errorCode) {
|
|
621
627
|
case "AccessDeniedException":
|
|
622
628
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -635,10 +641,12 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, contex
|
|
|
635
641
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
636
642
|
default:
|
|
637
643
|
const parsedBody = parsedOutput.body;
|
|
644
|
+
const $metadata = deserializeMetadata(output);
|
|
645
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
638
646
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
647
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
640
648
|
$fault: "client",
|
|
641
|
-
$metadata
|
|
649
|
+
$metadata,
|
|
642
650
|
});
|
|
643
651
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
644
652
|
}
|
|
@@ -663,8 +671,7 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context)
|
|
|
663
671
|
body: await parseBody(output.body, context),
|
|
664
672
|
};
|
|
665
673
|
let response;
|
|
666
|
-
|
|
667
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
675
|
switch (errorCode) {
|
|
669
676
|
case "AccessDeniedException":
|
|
670
677
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -683,10 +690,12 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context)
|
|
|
683
690
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
684
691
|
default:
|
|
685
692
|
const parsedBody = parsedOutput.body;
|
|
693
|
+
const $metadata = deserializeMetadata(output);
|
|
694
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
686
695
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
688
697
|
$fault: "client",
|
|
689
|
-
$metadata
|
|
698
|
+
$metadata,
|
|
690
699
|
});
|
|
691
700
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
692
701
|
}
|
|
@@ -711,8 +720,7 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, co
|
|
|
711
720
|
body: await parseBody(output.body, context),
|
|
712
721
|
};
|
|
713
722
|
let response;
|
|
714
|
-
|
|
715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
724
|
switch (errorCode) {
|
|
717
725
|
case "AccessDeniedException":
|
|
718
726
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -731,10 +739,12 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, co
|
|
|
731
739
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
732
740
|
default:
|
|
733
741
|
const parsedBody = parsedOutput.body;
|
|
742
|
+
const $metadata = deserializeMetadata(output);
|
|
743
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
734
744
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
735
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
745
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
736
746
|
$fault: "client",
|
|
737
|
-
$metadata
|
|
747
|
+
$metadata,
|
|
738
748
|
});
|
|
739
749
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
740
750
|
}
|
|
@@ -759,8 +769,7 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (o
|
|
|
759
769
|
body: await parseBody(output.body, context),
|
|
760
770
|
};
|
|
761
771
|
let response;
|
|
762
|
-
|
|
763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
773
|
switch (errorCode) {
|
|
765
774
|
case "AccessDeniedException":
|
|
766
775
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -782,10 +791,12 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (o
|
|
|
782
791
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
783
792
|
default:
|
|
784
793
|
const parsedBody = parsedOutput.body;
|
|
794
|
+
const $metadata = deserializeMetadata(output);
|
|
795
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
785
796
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
786
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
797
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
787
798
|
$fault: "client",
|
|
788
|
-
$metadata
|
|
799
|
+
$metadata,
|
|
789
800
|
});
|
|
790
801
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
791
802
|
}
|
|
@@ -810,8 +821,7 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
|
|
|
810
821
|
body: await parseBody(output.body, context),
|
|
811
822
|
};
|
|
812
823
|
let response;
|
|
813
|
-
|
|
814
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
825
|
switch (errorCode) {
|
|
816
826
|
case "AccessDeniedException":
|
|
817
827
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -830,10 +840,12 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
|
|
|
830
840
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
831
841
|
default:
|
|
832
842
|
const parsedBody = parsedOutput.body;
|
|
843
|
+
const $metadata = deserializeMetadata(output);
|
|
844
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
833
845
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
834
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
846
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
835
847
|
$fault: "client",
|
|
836
|
-
$metadata
|
|
848
|
+
$metadata,
|
|
837
849
|
});
|
|
838
850
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
839
851
|
}
|
|
@@ -858,8 +870,7 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
858
870
|
body: await parseBody(output.body, context),
|
|
859
871
|
};
|
|
860
872
|
let response;
|
|
861
|
-
|
|
862
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
874
|
switch (errorCode) {
|
|
864
875
|
case "AccessDeniedException":
|
|
865
876
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -881,10 +892,12 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
881
892
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
882
893
|
default:
|
|
883
894
|
const parsedBody = parsedOutput.body;
|
|
895
|
+
const $metadata = deserializeMetadata(output);
|
|
896
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
884
897
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
885
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
886
899
|
$fault: "client",
|
|
887
|
-
$metadata
|
|
900
|
+
$metadata,
|
|
888
901
|
});
|
|
889
902
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
890
903
|
}
|
|
@@ -909,8 +922,7 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
|
|
|
909
922
|
body: await parseBody(output.body, context),
|
|
910
923
|
};
|
|
911
924
|
let response;
|
|
912
|
-
|
|
913
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
926
|
switch (errorCode) {
|
|
915
927
|
case "AccessDeniedException":
|
|
916
928
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -935,10 +947,12 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
|
|
|
935
947
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
936
948
|
default:
|
|
937
949
|
const parsedBody = parsedOutput.body;
|
|
950
|
+
const $metadata = deserializeMetadata(output);
|
|
951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
938
952
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
939
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
940
954
|
$fault: "client",
|
|
941
|
-
$metadata
|
|
955
|
+
$metadata,
|
|
942
956
|
});
|
|
943
957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
944
958
|
}
|
|
@@ -963,8 +977,7 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
|
|
|
963
977
|
body: await parseBody(output.body, context),
|
|
964
978
|
};
|
|
965
979
|
let response;
|
|
966
|
-
|
|
967
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
981
|
switch (errorCode) {
|
|
969
982
|
case "AccessDeniedException":
|
|
970
983
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -989,10 +1002,12 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
|
|
|
989
1002
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
990
1003
|
default:
|
|
991
1004
|
const parsedBody = parsedOutput.body;
|
|
1005
|
+
const $metadata = deserializeMetadata(output);
|
|
1006
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
992
1007
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
993
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1008
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
994
1009
|
$fault: "client",
|
|
995
|
-
$metadata
|
|
1010
|
+
$metadata,
|
|
996
1011
|
});
|
|
997
1012
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
998
1013
|
}
|
|
@@ -1017,8 +1032,7 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context
|
|
|
1017
1032
|
body: await parseBody(output.body, context),
|
|
1018
1033
|
};
|
|
1019
1034
|
let response;
|
|
1020
|
-
|
|
1021
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
1036
|
switch (errorCode) {
|
|
1023
1037
|
case "AccessDeniedException":
|
|
1024
1038
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1043,10 +1057,12 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context
|
|
|
1043
1057
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1044
1058
|
default:
|
|
1045
1059
|
const parsedBody = parsedOutput.body;
|
|
1060
|
+
const $metadata = deserializeMetadata(output);
|
|
1061
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1046
1062
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1063
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1048
1064
|
$fault: "client",
|
|
1049
|
-
$metadata
|
|
1065
|
+
$metadata,
|
|
1050
1066
|
});
|
|
1051
1067
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1052
1068
|
}
|
|
@@ -1071,8 +1087,7 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
|
|
|
1071
1087
|
body: await parseBody(output.body, context),
|
|
1072
1088
|
};
|
|
1073
1089
|
let response;
|
|
1074
|
-
|
|
1075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
1091
|
switch (errorCode) {
|
|
1077
1092
|
case "AccessDeniedException":
|
|
1078
1093
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1097,10 +1112,12 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
|
|
|
1097
1112
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1098
1113
|
default:
|
|
1099
1114
|
const parsedBody = parsedOutput.body;
|
|
1115
|
+
const $metadata = deserializeMetadata(output);
|
|
1116
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1100
1117
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1118
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1102
1119
|
$fault: "client",
|
|
1103
|
-
$metadata
|
|
1120
|
+
$metadata,
|
|
1104
1121
|
});
|
|
1105
1122
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1106
1123
|
}
|
|
@@ -1125,8 +1142,7 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
|
|
|
1125
1142
|
body: await parseBody(output.body, context),
|
|
1126
1143
|
};
|
|
1127
1144
|
let response;
|
|
1128
|
-
|
|
1129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1146
|
switch (errorCode) {
|
|
1131
1147
|
case "AccessDeniedException":
|
|
1132
1148
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1151,10 +1167,12 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
|
|
|
1151
1167
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1152
1168
|
default:
|
|
1153
1169
|
const parsedBody = parsedOutput.body;
|
|
1170
|
+
const $metadata = deserializeMetadata(output);
|
|
1171
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1154
1172
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1173
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1156
1174
|
$fault: "client",
|
|
1157
|
-
$metadata
|
|
1175
|
+
$metadata,
|
|
1158
1176
|
});
|
|
1159
1177
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1160
1178
|
}
|
|
@@ -1179,8 +1197,7 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, con
|
|
|
1179
1197
|
body: await parseBody(output.body, context),
|
|
1180
1198
|
};
|
|
1181
1199
|
let response;
|
|
1182
|
-
|
|
1183
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
1201
|
switch (errorCode) {
|
|
1185
1202
|
case "AccessDeniedException":
|
|
1186
1203
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1202,10 +1219,12 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, con
|
|
|
1202
1219
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1203
1220
|
default:
|
|
1204
1221
|
const parsedBody = parsedOutput.body;
|
|
1222
|
+
const $metadata = deserializeMetadata(output);
|
|
1223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1205
1224
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1207
1226
|
$fault: "client",
|
|
1208
|
-
$metadata
|
|
1227
|
+
$metadata,
|
|
1209
1228
|
});
|
|
1210
1229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1211
1230
|
}
|
|
@@ -1230,8 +1249,7 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) =
|
|
|
1230
1249
|
body: await parseBody(output.body, context),
|
|
1231
1250
|
};
|
|
1232
1251
|
let response;
|
|
1233
|
-
|
|
1234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
1253
|
switch (errorCode) {
|
|
1236
1254
|
case "AccessDeniedException":
|
|
1237
1255
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1250,10 +1268,12 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) =
|
|
|
1250
1268
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1251
1269
|
default:
|
|
1252
1270
|
const parsedBody = parsedOutput.body;
|
|
1271
|
+
const $metadata = deserializeMetadata(output);
|
|
1272
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1253
1273
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1274
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1255
1275
|
$fault: "client",
|
|
1256
|
-
$metadata
|
|
1276
|
+
$metadata,
|
|
1257
1277
|
});
|
|
1258
1278
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1259
1279
|
}
|
|
@@ -1278,8 +1298,7 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, cont
|
|
|
1278
1298
|
body: await parseBody(output.body, context),
|
|
1279
1299
|
};
|
|
1280
1300
|
let response;
|
|
1281
|
-
|
|
1282
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
1302
|
switch (errorCode) {
|
|
1284
1303
|
case "AccessDeniedException":
|
|
1285
1304
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1301,10 +1320,12 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, cont
|
|
|
1301
1320
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1302
1321
|
default:
|
|
1303
1322
|
const parsedBody = parsedOutput.body;
|
|
1323
|
+
const $metadata = deserializeMetadata(output);
|
|
1324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1304
1325
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1305
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1306
1327
|
$fault: "client",
|
|
1307
|
-
$metadata
|
|
1328
|
+
$metadata,
|
|
1308
1329
|
});
|
|
1309
1330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1310
1331
|
}
|
|
@@ -1329,8 +1350,7 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (output, cont
|
|
|
1329
1350
|
body: await parseBody(output.body, context),
|
|
1330
1351
|
};
|
|
1331
1352
|
let response;
|
|
1332
|
-
|
|
1333
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1354
|
switch (errorCode) {
|
|
1335
1355
|
case "AccessDeniedException":
|
|
1336
1356
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1352,10 +1372,12 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (output, cont
|
|
|
1352
1372
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1353
1373
|
default:
|
|
1354
1374
|
const parsedBody = parsedOutput.body;
|
|
1375
|
+
const $metadata = deserializeMetadata(output);
|
|
1376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1355
1377
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1356
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1357
1379
|
$fault: "client",
|
|
1358
|
-
$metadata
|
|
1380
|
+
$metadata,
|
|
1359
1381
|
});
|
|
1360
1382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1361
1383
|
}
|
|
@@ -1380,8 +1402,7 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, contex
|
|
|
1380
1402
|
body: await parseBody(output.body, context),
|
|
1381
1403
|
};
|
|
1382
1404
|
let response;
|
|
1383
|
-
|
|
1384
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
1406
|
switch (errorCode) {
|
|
1386
1407
|
case "AccessDeniedException":
|
|
1387
1408
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
@@ -1403,10 +1424,12 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, contex
|
|
|
1403
1424
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1404
1425
|
default:
|
|
1405
1426
|
const parsedBody = parsedOutput.body;
|
|
1427
|
+
const $metadata = deserializeMetadata(output);
|
|
1428
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1406
1429
|
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1408
1431
|
$fault: "client",
|
|
1409
|
-
$metadata
|
|
1432
|
+
$metadata,
|
|
1410
1433
|
});
|
|
1411
1434
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1412
1435
|
}
|
|
@@ -1503,61 +1526,48 @@ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, c
|
|
|
1503
1526
|
};
|
|
1504
1527
|
const serializeAws_json1_1ActionThreshold = (input, context) => {
|
|
1505
1528
|
return {
|
|
1506
|
-
...(input.ActionThresholdType
|
|
1507
|
-
|
|
1508
|
-
...(input.ActionThresholdValue !== undefined &&
|
|
1509
|
-
input.ActionThresholdValue !== null && { ActionThresholdValue: (0, smithy_client_1.serializeFloat)(input.ActionThresholdValue) }),
|
|
1529
|
+
...(input.ActionThresholdType != null && { ActionThresholdType: input.ActionThresholdType }),
|
|
1530
|
+
...(input.ActionThresholdValue != null && { ActionThresholdValue: (0, smithy_client_1.serializeFloat)(input.ActionThresholdValue) }),
|
|
1510
1531
|
};
|
|
1511
1532
|
};
|
|
1512
1533
|
const serializeAws_json1_1AutoAdjustData = (input, context) => {
|
|
1513
1534
|
return {
|
|
1514
|
-
...(input.AutoAdjustType
|
|
1515
|
-
|
|
1516
|
-
...(input.HistoricalOptions !== undefined &&
|
|
1517
|
-
input.HistoricalOptions !== null && {
|
|
1535
|
+
...(input.AutoAdjustType != null && { AutoAdjustType: input.AutoAdjustType }),
|
|
1536
|
+
...(input.HistoricalOptions != null && {
|
|
1518
1537
|
HistoricalOptions: serializeAws_json1_1HistoricalOptions(input.HistoricalOptions, context),
|
|
1519
1538
|
}),
|
|
1520
|
-
...(input.LastAutoAdjustTime
|
|
1521
|
-
input.LastAutoAdjustTime !== null && {
|
|
1539
|
+
...(input.LastAutoAdjustTime != null && {
|
|
1522
1540
|
LastAutoAdjustTime: Math.round(input.LastAutoAdjustTime.getTime() / 1000),
|
|
1523
1541
|
}),
|
|
1524
1542
|
};
|
|
1525
1543
|
};
|
|
1526
1544
|
const serializeAws_json1_1Budget = (input, context) => {
|
|
1527
1545
|
return {
|
|
1528
|
-
...(input.AutoAdjustData
|
|
1529
|
-
input.AutoAdjustData !== null && {
|
|
1546
|
+
...(input.AutoAdjustData != null && {
|
|
1530
1547
|
AutoAdjustData: serializeAws_json1_1AutoAdjustData(input.AutoAdjustData, context),
|
|
1531
1548
|
}),
|
|
1532
|
-
...(input.BudgetLimit
|
|
1533
|
-
|
|
1534
|
-
...(input.
|
|
1535
|
-
...(input.
|
|
1536
|
-
...(input.CalculatedSpend !== undefined &&
|
|
1537
|
-
input.CalculatedSpend !== null && {
|
|
1549
|
+
...(input.BudgetLimit != null && { BudgetLimit: serializeAws_json1_1Spend(input.BudgetLimit, context) }),
|
|
1550
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1551
|
+
...(input.BudgetType != null && { BudgetType: input.BudgetType }),
|
|
1552
|
+
...(input.CalculatedSpend != null && {
|
|
1538
1553
|
CalculatedSpend: serializeAws_json1_1CalculatedSpend(input.CalculatedSpend, context),
|
|
1539
1554
|
}),
|
|
1540
|
-
...(input.CostFilters
|
|
1541
|
-
|
|
1542
|
-
...(input.
|
|
1543
|
-
|
|
1544
|
-
...(input.LastUpdatedTime !== undefined &&
|
|
1545
|
-
input.LastUpdatedTime !== null && { LastUpdatedTime: Math.round(input.LastUpdatedTime.getTime() / 1000) }),
|
|
1546
|
-
...(input.PlannedBudgetLimits !== undefined &&
|
|
1547
|
-
input.PlannedBudgetLimits !== null && {
|
|
1555
|
+
...(input.CostFilters != null && { CostFilters: serializeAws_json1_1CostFilters(input.CostFilters, context) }),
|
|
1556
|
+
...(input.CostTypes != null && { CostTypes: serializeAws_json1_1CostTypes(input.CostTypes, context) }),
|
|
1557
|
+
...(input.LastUpdatedTime != null && { LastUpdatedTime: Math.round(input.LastUpdatedTime.getTime() / 1000) }),
|
|
1558
|
+
...(input.PlannedBudgetLimits != null && {
|
|
1548
1559
|
PlannedBudgetLimits: serializeAws_json1_1PlannedBudgetLimits(input.PlannedBudgetLimits, context),
|
|
1549
1560
|
}),
|
|
1550
|
-
...(input.TimePeriod
|
|
1551
|
-
|
|
1552
|
-
...(input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit }),
|
|
1561
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }),
|
|
1562
|
+
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1553
1563
|
};
|
|
1554
1564
|
};
|
|
1555
1565
|
const serializeAws_json1_1CalculatedSpend = (input, context) => {
|
|
1556
1566
|
return {
|
|
1557
|
-
...(input.ActualSpend
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1567
|
+
...(input.ActualSpend != null && { ActualSpend: serializeAws_json1_1Spend(input.ActualSpend, context) }),
|
|
1568
|
+
...(input.ForecastedSpend != null && {
|
|
1569
|
+
ForecastedSpend: serializeAws_json1_1Spend(input.ForecastedSpend, context),
|
|
1570
|
+
}),
|
|
1561
1571
|
};
|
|
1562
1572
|
};
|
|
1563
1573
|
const serializeAws_json1_1CostFilters = (input, context) => {
|
|
@@ -1573,202 +1583,176 @@ const serializeAws_json1_1CostFilters = (input, context) => {
|
|
|
1573
1583
|
};
|
|
1574
1584
|
const serializeAws_json1_1CostTypes = (input, context) => {
|
|
1575
1585
|
return {
|
|
1576
|
-
...(input.IncludeCredit
|
|
1577
|
-
...(input.IncludeDiscount
|
|
1578
|
-
|
|
1579
|
-
...(input.
|
|
1580
|
-
|
|
1581
|
-
...(input.
|
|
1582
|
-
|
|
1583
|
-
...(input.
|
|
1584
|
-
...(input.
|
|
1585
|
-
|
|
1586
|
-
...(input.
|
|
1587
|
-
input.IncludeSupport !== null && { IncludeSupport: input.IncludeSupport }),
|
|
1588
|
-
...(input.IncludeTax !== undefined && input.IncludeTax !== null && { IncludeTax: input.IncludeTax }),
|
|
1589
|
-
...(input.IncludeUpfront !== undefined &&
|
|
1590
|
-
input.IncludeUpfront !== null && { IncludeUpfront: input.IncludeUpfront }),
|
|
1591
|
-
...(input.UseAmortized !== undefined && input.UseAmortized !== null && { UseAmortized: input.UseAmortized }),
|
|
1592
|
-
...(input.UseBlended !== undefined && input.UseBlended !== null && { UseBlended: input.UseBlended }),
|
|
1586
|
+
...(input.IncludeCredit != null && { IncludeCredit: input.IncludeCredit }),
|
|
1587
|
+
...(input.IncludeDiscount != null && { IncludeDiscount: input.IncludeDiscount }),
|
|
1588
|
+
...(input.IncludeOtherSubscription != null && { IncludeOtherSubscription: input.IncludeOtherSubscription }),
|
|
1589
|
+
...(input.IncludeRecurring != null && { IncludeRecurring: input.IncludeRecurring }),
|
|
1590
|
+
...(input.IncludeRefund != null && { IncludeRefund: input.IncludeRefund }),
|
|
1591
|
+
...(input.IncludeSubscription != null && { IncludeSubscription: input.IncludeSubscription }),
|
|
1592
|
+
...(input.IncludeSupport != null && { IncludeSupport: input.IncludeSupport }),
|
|
1593
|
+
...(input.IncludeTax != null && { IncludeTax: input.IncludeTax }),
|
|
1594
|
+
...(input.IncludeUpfront != null && { IncludeUpfront: input.IncludeUpfront }),
|
|
1595
|
+
...(input.UseAmortized != null && { UseAmortized: input.UseAmortized }),
|
|
1596
|
+
...(input.UseBlended != null && { UseBlended: input.UseBlended }),
|
|
1593
1597
|
};
|
|
1594
1598
|
};
|
|
1595
1599
|
const serializeAws_json1_1CreateBudgetActionRequest = (input, context) => {
|
|
1596
1600
|
return {
|
|
1597
|
-
...(input.AccountId
|
|
1598
|
-
...(input.ActionThreshold
|
|
1599
|
-
input.ActionThreshold !== null && {
|
|
1601
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1602
|
+
...(input.ActionThreshold != null && {
|
|
1600
1603
|
ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
|
|
1601
1604
|
}),
|
|
1602
|
-
...(input.ActionType
|
|
1603
|
-
...(input.ApprovalModel
|
|
1604
|
-
...(input.BudgetName
|
|
1605
|
-
...(input.Definition
|
|
1606
|
-
|
|
1607
|
-
...(input.
|
|
1608
|
-
|
|
1609
|
-
...(input.NotificationType !== undefined &&
|
|
1610
|
-
input.NotificationType !== null && { NotificationType: input.NotificationType }),
|
|
1611
|
-
...(input.Subscribers !== undefined &&
|
|
1612
|
-
input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1605
|
+
...(input.ActionType != null && { ActionType: input.ActionType }),
|
|
1606
|
+
...(input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel }),
|
|
1607
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1608
|
+
...(input.Definition != null && { Definition: serializeAws_json1_1Definition(input.Definition, context) }),
|
|
1609
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
1610
|
+
...(input.NotificationType != null && { NotificationType: input.NotificationType }),
|
|
1611
|
+
...(input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1613
1612
|
};
|
|
1614
1613
|
};
|
|
1615
1614
|
const serializeAws_json1_1CreateBudgetRequest = (input, context) => {
|
|
1616
1615
|
return {
|
|
1617
|
-
...(input.AccountId
|
|
1618
|
-
...(input.Budget
|
|
1619
|
-
|
|
1620
|
-
...(input.NotificationsWithSubscribers !== undefined &&
|
|
1621
|
-
input.NotificationsWithSubscribers !== null && {
|
|
1616
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1617
|
+
...(input.Budget != null && { Budget: serializeAws_json1_1Budget(input.Budget, context) }),
|
|
1618
|
+
...(input.NotificationsWithSubscribers != null && {
|
|
1622
1619
|
NotificationsWithSubscribers: serializeAws_json1_1NotificationWithSubscribersList(input.NotificationsWithSubscribers, context),
|
|
1623
1620
|
}),
|
|
1624
1621
|
};
|
|
1625
1622
|
};
|
|
1626
1623
|
const serializeAws_json1_1CreateNotificationRequest = (input, context) => {
|
|
1627
1624
|
return {
|
|
1628
|
-
...(input.AccountId
|
|
1629
|
-
...(input.BudgetName
|
|
1630
|
-
...(input.Notification
|
|
1631
|
-
|
|
1632
|
-
...(input.Subscribers !== undefined &&
|
|
1633
|
-
input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1625
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1626
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1627
|
+
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1628
|
+
...(input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1634
1629
|
};
|
|
1635
1630
|
};
|
|
1636
1631
|
const serializeAws_json1_1CreateSubscriberRequest = (input, context) => {
|
|
1637
1632
|
return {
|
|
1638
|
-
...(input.AccountId
|
|
1639
|
-
...(input.BudgetName
|
|
1640
|
-
...(input.Notification
|
|
1641
|
-
|
|
1642
|
-
...(input.Subscriber !== undefined &&
|
|
1643
|
-
input.Subscriber !== null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }),
|
|
1633
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1634
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1635
|
+
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1636
|
+
...(input.Subscriber != null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }),
|
|
1644
1637
|
};
|
|
1645
1638
|
};
|
|
1646
1639
|
const serializeAws_json1_1Definition = (input, context) => {
|
|
1647
1640
|
return {
|
|
1648
|
-
...(input.IamActionDefinition
|
|
1649
|
-
input.IamActionDefinition !== null && {
|
|
1641
|
+
...(input.IamActionDefinition != null && {
|
|
1650
1642
|
IamActionDefinition: serializeAws_json1_1IamActionDefinition(input.IamActionDefinition, context),
|
|
1651
1643
|
}),
|
|
1652
|
-
...(input.ScpActionDefinition
|
|
1653
|
-
input.ScpActionDefinition !== null && {
|
|
1644
|
+
...(input.ScpActionDefinition != null && {
|
|
1654
1645
|
ScpActionDefinition: serializeAws_json1_1ScpActionDefinition(input.ScpActionDefinition, context),
|
|
1655
1646
|
}),
|
|
1656
|
-
...(input.SsmActionDefinition
|
|
1657
|
-
input.SsmActionDefinition !== null && {
|
|
1647
|
+
...(input.SsmActionDefinition != null && {
|
|
1658
1648
|
SsmActionDefinition: serializeAws_json1_1SsmActionDefinition(input.SsmActionDefinition, context),
|
|
1659
1649
|
}),
|
|
1660
1650
|
};
|
|
1661
1651
|
};
|
|
1662
1652
|
const serializeAws_json1_1DeleteBudgetActionRequest = (input, context) => {
|
|
1663
1653
|
return {
|
|
1664
|
-
...(input.AccountId
|
|
1665
|
-
...(input.ActionId
|
|
1666
|
-
...(input.BudgetName
|
|
1654
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1655
|
+
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1656
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1667
1657
|
};
|
|
1668
1658
|
};
|
|
1669
1659
|
const serializeAws_json1_1DeleteBudgetRequest = (input, context) => {
|
|
1670
1660
|
return {
|
|
1671
|
-
...(input.AccountId
|
|
1672
|
-
...(input.BudgetName
|
|
1661
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1662
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1673
1663
|
};
|
|
1674
1664
|
};
|
|
1675
1665
|
const serializeAws_json1_1DeleteNotificationRequest = (input, context) => {
|
|
1676
1666
|
return {
|
|
1677
|
-
...(input.AccountId
|
|
1678
|
-
...(input.BudgetName
|
|
1679
|
-
...(input.Notification
|
|
1680
|
-
input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1667
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1668
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1669
|
+
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1681
1670
|
};
|
|
1682
1671
|
};
|
|
1683
1672
|
const serializeAws_json1_1DeleteSubscriberRequest = (input, context) => {
|
|
1684
1673
|
return {
|
|
1685
|
-
...(input.AccountId
|
|
1686
|
-
...(input.BudgetName
|
|
1687
|
-
...(input.Notification
|
|
1688
|
-
|
|
1689
|
-
...(input.Subscriber !== undefined &&
|
|
1690
|
-
input.Subscriber !== null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }),
|
|
1674
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1675
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1676
|
+
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1677
|
+
...(input.Subscriber != null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }),
|
|
1691
1678
|
};
|
|
1692
1679
|
};
|
|
1693
1680
|
const serializeAws_json1_1DescribeBudgetActionHistoriesRequest = (input, context) => {
|
|
1694
1681
|
return {
|
|
1695
|
-
...(input.AccountId
|
|
1696
|
-
...(input.ActionId
|
|
1697
|
-
...(input.BudgetName
|
|
1698
|
-
...(input.MaxResults
|
|
1699
|
-
...(input.NextToken
|
|
1700
|
-
...(input.TimePeriod
|
|
1701
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }),
|
|
1682
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1683
|
+
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1684
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1685
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1686
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1687
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }),
|
|
1702
1688
|
};
|
|
1703
1689
|
};
|
|
1704
1690
|
const serializeAws_json1_1DescribeBudgetActionRequest = (input, context) => {
|
|
1705
1691
|
return {
|
|
1706
|
-
...(input.AccountId
|
|
1707
|
-
...(input.ActionId
|
|
1708
|
-
...(input.BudgetName
|
|
1692
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1693
|
+
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1694
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1709
1695
|
};
|
|
1710
1696
|
};
|
|
1711
1697
|
const serializeAws_json1_1DescribeBudgetActionsForAccountRequest = (input, context) => {
|
|
1712
1698
|
return {
|
|
1713
|
-
...(input.AccountId
|
|
1714
|
-
...(input.MaxResults
|
|
1715
|
-
...(input.NextToken
|
|
1699
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1700
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1701
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1716
1702
|
};
|
|
1717
1703
|
};
|
|
1718
1704
|
const serializeAws_json1_1DescribeBudgetActionsForBudgetRequest = (input, context) => {
|
|
1719
1705
|
return {
|
|
1720
|
-
...(input.AccountId
|
|
1721
|
-
...(input.BudgetName
|
|
1722
|
-
...(input.MaxResults
|
|
1723
|
-
...(input.NextToken
|
|
1706
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1707
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1708
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1709
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1724
1710
|
};
|
|
1725
1711
|
};
|
|
1726
1712
|
const serializeAws_json1_1DescribeBudgetNotificationsForAccountRequest = (input, context) => {
|
|
1727
1713
|
return {
|
|
1728
|
-
...(input.AccountId
|
|
1729
|
-
...(input.MaxResults
|
|
1730
|
-
...(input.NextToken
|
|
1714
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1715
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1716
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1731
1717
|
};
|
|
1732
1718
|
};
|
|
1733
1719
|
const serializeAws_json1_1DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
1734
1720
|
return {
|
|
1735
|
-
...(input.AccountId
|
|
1736
|
-
...(input.BudgetName
|
|
1737
|
-
...(input.MaxResults
|
|
1738
|
-
...(input.NextToken
|
|
1739
|
-
...(input.TimePeriod
|
|
1740
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }),
|
|
1721
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1722
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1723
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1724
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1725
|
+
...(input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }),
|
|
1741
1726
|
};
|
|
1742
1727
|
};
|
|
1743
1728
|
const serializeAws_json1_1DescribeBudgetRequest = (input, context) => {
|
|
1744
1729
|
return {
|
|
1745
|
-
...(input.AccountId
|
|
1746
|
-
...(input.BudgetName
|
|
1730
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1731
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1747
1732
|
};
|
|
1748
1733
|
};
|
|
1749
1734
|
const serializeAws_json1_1DescribeBudgetsRequest = (input, context) => {
|
|
1750
1735
|
return {
|
|
1751
|
-
...(input.AccountId
|
|
1752
|
-
...(input.MaxResults
|
|
1753
|
-
...(input.NextToken
|
|
1736
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1737
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1738
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1754
1739
|
};
|
|
1755
1740
|
};
|
|
1756
1741
|
const serializeAws_json1_1DescribeNotificationsForBudgetRequest = (input, context) => {
|
|
1757
1742
|
return {
|
|
1758
|
-
...(input.AccountId
|
|
1759
|
-
...(input.BudgetName
|
|
1760
|
-
...(input.MaxResults
|
|
1761
|
-
...(input.NextToken
|
|
1743
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1744
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1745
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1746
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1762
1747
|
};
|
|
1763
1748
|
};
|
|
1764
1749
|
const serializeAws_json1_1DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
1765
1750
|
return {
|
|
1766
|
-
...(input.AccountId
|
|
1767
|
-
...(input.BudgetName
|
|
1768
|
-
...(input.MaxResults
|
|
1769
|
-
...(input.NextToken
|
|
1770
|
-
...(input.Notification
|
|
1771
|
-
input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1751
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1752
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1753
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1754
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1755
|
+
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1772
1756
|
};
|
|
1773
1757
|
};
|
|
1774
1758
|
const serializeAws_json1_1DimensionValues = (input, context) => {
|
|
@@ -1783,10 +1767,10 @@ const serializeAws_json1_1DimensionValues = (input, context) => {
|
|
|
1783
1767
|
};
|
|
1784
1768
|
const serializeAws_json1_1ExecuteBudgetActionRequest = (input, context) => {
|
|
1785
1769
|
return {
|
|
1786
|
-
...(input.AccountId
|
|
1787
|
-
...(input.ActionId
|
|
1788
|
-
...(input.BudgetName
|
|
1789
|
-
...(input.ExecutionType
|
|
1770
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1771
|
+
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1772
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1773
|
+
...(input.ExecutionType != null && { ExecutionType: input.ExecutionType }),
|
|
1790
1774
|
};
|
|
1791
1775
|
};
|
|
1792
1776
|
const serializeAws_json1_1Groups = (input, context) => {
|
|
@@ -1801,21 +1785,16 @@ const serializeAws_json1_1Groups = (input, context) => {
|
|
|
1801
1785
|
};
|
|
1802
1786
|
const serializeAws_json1_1HistoricalOptions = (input, context) => {
|
|
1803
1787
|
return {
|
|
1804
|
-
...(input.BudgetAdjustmentPeriod
|
|
1805
|
-
|
|
1806
|
-
...(input.LookBackAvailablePeriods !== undefined &&
|
|
1807
|
-
input.LookBackAvailablePeriods !== null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }),
|
|
1788
|
+
...(input.BudgetAdjustmentPeriod != null && { BudgetAdjustmentPeriod: input.BudgetAdjustmentPeriod }),
|
|
1789
|
+
...(input.LookBackAvailablePeriods != null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }),
|
|
1808
1790
|
};
|
|
1809
1791
|
};
|
|
1810
1792
|
const serializeAws_json1_1IamActionDefinition = (input, context) => {
|
|
1811
1793
|
return {
|
|
1812
|
-
...(input.Groups
|
|
1813
|
-
|
|
1814
|
-
...(input.
|
|
1815
|
-
...(input.
|
|
1816
|
-
input.Roles !== null && { Roles: serializeAws_json1_1Roles(input.Roles, context) }),
|
|
1817
|
-
...(input.Users !== undefined &&
|
|
1818
|
-
input.Users !== null && { Users: serializeAws_json1_1Users(input.Users, context) }),
|
|
1794
|
+
...(input.Groups != null && { Groups: serializeAws_json1_1Groups(input.Groups, context) }),
|
|
1795
|
+
...(input.PolicyArn != null && { PolicyArn: input.PolicyArn }),
|
|
1796
|
+
...(input.Roles != null && { Roles: serializeAws_json1_1Roles(input.Roles, context) }),
|
|
1797
|
+
...(input.Users != null && { Users: serializeAws_json1_1Users(input.Users, context) }),
|
|
1819
1798
|
};
|
|
1820
1799
|
};
|
|
1821
1800
|
const serializeAws_json1_1InstanceIds = (input, context) => {
|
|
@@ -1830,22 +1809,17 @@ const serializeAws_json1_1InstanceIds = (input, context) => {
|
|
|
1830
1809
|
};
|
|
1831
1810
|
const serializeAws_json1_1Notification = (input, context) => {
|
|
1832
1811
|
return {
|
|
1833
|
-
...(input.ComparisonOperator
|
|
1834
|
-
|
|
1835
|
-
...(input.
|
|
1836
|
-
|
|
1837
|
-
...(input.
|
|
1838
|
-
input.NotificationType !== null && { NotificationType: input.NotificationType }),
|
|
1839
|
-
...(input.Threshold !== undefined && input.Threshold !== null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
1840
|
-
...(input.ThresholdType !== undefined && input.ThresholdType !== null && { ThresholdType: input.ThresholdType }),
|
|
1812
|
+
...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
|
|
1813
|
+
...(input.NotificationState != null && { NotificationState: input.NotificationState }),
|
|
1814
|
+
...(input.NotificationType != null && { NotificationType: input.NotificationType }),
|
|
1815
|
+
...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
1816
|
+
...(input.ThresholdType != null && { ThresholdType: input.ThresholdType }),
|
|
1841
1817
|
};
|
|
1842
1818
|
};
|
|
1843
1819
|
const serializeAws_json1_1NotificationWithSubscribers = (input, context) => {
|
|
1844
1820
|
return {
|
|
1845
|
-
...(input.Notification
|
|
1846
|
-
|
|
1847
|
-
...(input.Subscribers !== undefined &&
|
|
1848
|
-
input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1821
|
+
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1822
|
+
...(input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1849
1823
|
};
|
|
1850
1824
|
};
|
|
1851
1825
|
const serializeAws_json1_1NotificationWithSubscribersList = (input, context) => {
|
|
@@ -1881,30 +1855,27 @@ const serializeAws_json1_1Roles = (input, context) => {
|
|
|
1881
1855
|
};
|
|
1882
1856
|
const serializeAws_json1_1ScpActionDefinition = (input, context) => {
|
|
1883
1857
|
return {
|
|
1884
|
-
...(input.PolicyId
|
|
1885
|
-
...(input.TargetIds
|
|
1886
|
-
input.TargetIds !== null && { TargetIds: serializeAws_json1_1TargetIds(input.TargetIds, context) }),
|
|
1858
|
+
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
1859
|
+
...(input.TargetIds != null && { TargetIds: serializeAws_json1_1TargetIds(input.TargetIds, context) }),
|
|
1887
1860
|
};
|
|
1888
1861
|
};
|
|
1889
1862
|
const serializeAws_json1_1Spend = (input, context) => {
|
|
1890
1863
|
return {
|
|
1891
|
-
...(input.Amount
|
|
1892
|
-
...(input.Unit
|
|
1864
|
+
...(input.Amount != null && { Amount: input.Amount }),
|
|
1865
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
1893
1866
|
};
|
|
1894
1867
|
};
|
|
1895
1868
|
const serializeAws_json1_1SsmActionDefinition = (input, context) => {
|
|
1896
1869
|
return {
|
|
1897
|
-
...(input.ActionSubType
|
|
1898
|
-
...(input.InstanceIds
|
|
1899
|
-
|
|
1900
|
-
...(input.Region !== undefined && input.Region !== null && { Region: input.Region }),
|
|
1870
|
+
...(input.ActionSubType != null && { ActionSubType: input.ActionSubType }),
|
|
1871
|
+
...(input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIds(input.InstanceIds, context) }),
|
|
1872
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1901
1873
|
};
|
|
1902
1874
|
};
|
|
1903
1875
|
const serializeAws_json1_1Subscriber = (input, context) => {
|
|
1904
1876
|
return {
|
|
1905
|
-
...(input.Address
|
|
1906
|
-
...(input.SubscriptionType
|
|
1907
|
-
input.SubscriptionType !== null && { SubscriptionType: input.SubscriptionType }),
|
|
1877
|
+
...(input.Address != null && { Address: input.Address }),
|
|
1878
|
+
...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
|
|
1908
1879
|
};
|
|
1909
1880
|
};
|
|
1910
1881
|
const serializeAws_json1_1Subscribers = (input, context) => {
|
|
@@ -1929,61 +1900,50 @@ const serializeAws_json1_1TargetIds = (input, context) => {
|
|
|
1929
1900
|
};
|
|
1930
1901
|
const serializeAws_json1_1TimePeriod = (input, context) => {
|
|
1931
1902
|
return {
|
|
1932
|
-
...(input.End
|
|
1933
|
-
...(input.Start
|
|
1903
|
+
...(input.End != null && { End: Math.round(input.End.getTime() / 1000) }),
|
|
1904
|
+
...(input.Start != null && { Start: Math.round(input.Start.getTime() / 1000) }),
|
|
1934
1905
|
};
|
|
1935
1906
|
};
|
|
1936
1907
|
const serializeAws_json1_1UpdateBudgetActionRequest = (input, context) => {
|
|
1937
1908
|
return {
|
|
1938
|
-
...(input.AccountId
|
|
1939
|
-
...(input.ActionId
|
|
1940
|
-
...(input.ActionThreshold
|
|
1941
|
-
input.ActionThreshold !== null && {
|
|
1909
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1910
|
+
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1911
|
+
...(input.ActionThreshold != null && {
|
|
1942
1912
|
ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
|
|
1943
1913
|
}),
|
|
1944
|
-
...(input.ApprovalModel
|
|
1945
|
-
...(input.BudgetName
|
|
1946
|
-
...(input.Definition
|
|
1947
|
-
|
|
1948
|
-
...(input.
|
|
1949
|
-
|
|
1950
|
-
...(input.NotificationType !== undefined &&
|
|
1951
|
-
input.NotificationType !== null && { NotificationType: input.NotificationType }),
|
|
1952
|
-
...(input.Subscribers !== undefined &&
|
|
1953
|
-
input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1914
|
+
...(input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel }),
|
|
1915
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1916
|
+
...(input.Definition != null && { Definition: serializeAws_json1_1Definition(input.Definition, context) }),
|
|
1917
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
1918
|
+
...(input.NotificationType != null && { NotificationType: input.NotificationType }),
|
|
1919
|
+
...(input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }),
|
|
1954
1920
|
};
|
|
1955
1921
|
};
|
|
1956
1922
|
const serializeAws_json1_1UpdateBudgetRequest = (input, context) => {
|
|
1957
1923
|
return {
|
|
1958
|
-
...(input.AccountId
|
|
1959
|
-
...(input.NewBudget
|
|
1960
|
-
input.NewBudget !== null && { NewBudget: serializeAws_json1_1Budget(input.NewBudget, context) }),
|
|
1924
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1925
|
+
...(input.NewBudget != null && { NewBudget: serializeAws_json1_1Budget(input.NewBudget, context) }),
|
|
1961
1926
|
};
|
|
1962
1927
|
};
|
|
1963
1928
|
const serializeAws_json1_1UpdateNotificationRequest = (input, context) => {
|
|
1964
1929
|
return {
|
|
1965
|
-
...(input.AccountId
|
|
1966
|
-
...(input.BudgetName
|
|
1967
|
-
...(input.NewNotification
|
|
1968
|
-
input.NewNotification !== null && {
|
|
1930
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1931
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1932
|
+
...(input.NewNotification != null && {
|
|
1969
1933
|
NewNotification: serializeAws_json1_1Notification(input.NewNotification, context),
|
|
1970
1934
|
}),
|
|
1971
|
-
...(input.OldNotification
|
|
1972
|
-
input.OldNotification !== null && {
|
|
1935
|
+
...(input.OldNotification != null && {
|
|
1973
1936
|
OldNotification: serializeAws_json1_1Notification(input.OldNotification, context),
|
|
1974
1937
|
}),
|
|
1975
1938
|
};
|
|
1976
1939
|
};
|
|
1977
1940
|
const serializeAws_json1_1UpdateSubscriberRequest = (input, context) => {
|
|
1978
1941
|
return {
|
|
1979
|
-
...(input.AccountId
|
|
1980
|
-
...(input.BudgetName
|
|
1981
|
-
...(input.NewSubscriber
|
|
1982
|
-
|
|
1983
|
-
...(input.
|
|
1984
|
-
input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1985
|
-
...(input.OldSubscriber !== undefined &&
|
|
1986
|
-
input.OldSubscriber !== null && { OldSubscriber: serializeAws_json1_1Subscriber(input.OldSubscriber, context) }),
|
|
1942
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1943
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1944
|
+
...(input.NewSubscriber != null && { NewSubscriber: serializeAws_json1_1Subscriber(input.NewSubscriber, context) }),
|
|
1945
|
+
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1946
|
+
...(input.OldSubscriber != null && { OldSubscriber: serializeAws_json1_1Subscriber(input.OldSubscriber, context) }),
|
|
1987
1947
|
};
|
|
1988
1948
|
};
|
|
1989
1949
|
const serializeAws_json1_1Users = (input, context) => {
|
|
@@ -2004,21 +1964,17 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
|
2004
1964
|
const deserializeAws_json1_1Action = (output, context) => {
|
|
2005
1965
|
return {
|
|
2006
1966
|
ActionId: (0, smithy_client_1.expectString)(output.ActionId),
|
|
2007
|
-
ActionThreshold: output.ActionThreshold
|
|
1967
|
+
ActionThreshold: output.ActionThreshold != null
|
|
2008
1968
|
? deserializeAws_json1_1ActionThreshold(output.ActionThreshold, context)
|
|
2009
1969
|
: undefined,
|
|
2010
1970
|
ActionType: (0, smithy_client_1.expectString)(output.ActionType),
|
|
2011
1971
|
ApprovalModel: (0, smithy_client_1.expectString)(output.ApprovalModel),
|
|
2012
1972
|
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2013
|
-
Definition: output.Definition
|
|
2014
|
-
? deserializeAws_json1_1Definition(output.Definition, context)
|
|
2015
|
-
: undefined,
|
|
1973
|
+
Definition: output.Definition != null ? deserializeAws_json1_1Definition(output.Definition, context) : undefined,
|
|
2016
1974
|
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
2017
1975
|
NotificationType: (0, smithy_client_1.expectString)(output.NotificationType),
|
|
2018
1976
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2019
|
-
Subscribers: output.Subscribers
|
|
2020
|
-
? deserializeAws_json1_1Subscribers(output.Subscribers, context)
|
|
2021
|
-
: undefined,
|
|
1977
|
+
Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
|
|
2022
1978
|
};
|
|
2023
1979
|
};
|
|
2024
1980
|
const deserializeAws_json1_1ActionHistories = (output, context) => {
|
|
@@ -2034,21 +1990,17 @@ const deserializeAws_json1_1ActionHistories = (output, context) => {
|
|
|
2034
1990
|
};
|
|
2035
1991
|
const deserializeAws_json1_1ActionHistory = (output, context) => {
|
|
2036
1992
|
return {
|
|
2037
|
-
ActionHistoryDetails: output.ActionHistoryDetails
|
|
1993
|
+
ActionHistoryDetails: output.ActionHistoryDetails != null
|
|
2038
1994
|
? deserializeAws_json1_1ActionHistoryDetails(output.ActionHistoryDetails, context)
|
|
2039
1995
|
: undefined,
|
|
2040
1996
|
EventType: (0, smithy_client_1.expectString)(output.EventType),
|
|
2041
1997
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2042
|
-
Timestamp: output.Timestamp
|
|
2043
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
2044
|
-
: undefined,
|
|
1998
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
2045
1999
|
};
|
|
2046
2000
|
};
|
|
2047
2001
|
const deserializeAws_json1_1ActionHistoryDetails = (output, context) => {
|
|
2048
2002
|
return {
|
|
2049
|
-
Action: output.Action
|
|
2050
|
-
? deserializeAws_json1_1Action(output.Action, context)
|
|
2051
|
-
: undefined,
|
|
2003
|
+
Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
|
|
2052
2004
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2053
2005
|
};
|
|
2054
2006
|
};
|
|
@@ -2072,56 +2024,40 @@ const deserializeAws_json1_1ActionThreshold = (output, context) => {
|
|
|
2072
2024
|
const deserializeAws_json1_1AutoAdjustData = (output, context) => {
|
|
2073
2025
|
return {
|
|
2074
2026
|
AutoAdjustType: (0, smithy_client_1.expectString)(output.AutoAdjustType),
|
|
2075
|
-
HistoricalOptions: output.HistoricalOptions
|
|
2027
|
+
HistoricalOptions: output.HistoricalOptions != null
|
|
2076
2028
|
? deserializeAws_json1_1HistoricalOptions(output.HistoricalOptions, context)
|
|
2077
2029
|
: undefined,
|
|
2078
|
-
LastAutoAdjustTime: output.LastAutoAdjustTime
|
|
2030
|
+
LastAutoAdjustTime: output.LastAutoAdjustTime != null
|
|
2079
2031
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAutoAdjustTime)))
|
|
2080
2032
|
: undefined,
|
|
2081
2033
|
};
|
|
2082
2034
|
};
|
|
2083
2035
|
const deserializeAws_json1_1Budget = (output, context) => {
|
|
2084
2036
|
return {
|
|
2085
|
-
AutoAdjustData: output.AutoAdjustData
|
|
2086
|
-
|
|
2087
|
-
: undefined,
|
|
2088
|
-
BudgetLimit: output.BudgetLimit !== undefined && output.BudgetLimit !== null
|
|
2089
|
-
? deserializeAws_json1_1Spend(output.BudgetLimit, context)
|
|
2090
|
-
: undefined,
|
|
2037
|
+
AutoAdjustData: output.AutoAdjustData != null ? deserializeAws_json1_1AutoAdjustData(output.AutoAdjustData, context) : undefined,
|
|
2038
|
+
BudgetLimit: output.BudgetLimit != null ? deserializeAws_json1_1Spend(output.BudgetLimit, context) : undefined,
|
|
2091
2039
|
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2092
2040
|
BudgetType: (0, smithy_client_1.expectString)(output.BudgetType),
|
|
2093
|
-
CalculatedSpend: output.CalculatedSpend
|
|
2041
|
+
CalculatedSpend: output.CalculatedSpend != null
|
|
2094
2042
|
? deserializeAws_json1_1CalculatedSpend(output.CalculatedSpend, context)
|
|
2095
2043
|
: undefined,
|
|
2096
|
-
CostFilters: output.CostFilters
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
CostTypes: output.CostTypes !== undefined && output.CostTypes !== null
|
|
2100
|
-
? deserializeAws_json1_1CostTypes(output.CostTypes, context)
|
|
2101
|
-
: undefined,
|
|
2102
|
-
LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
|
|
2044
|
+
CostFilters: output.CostFilters != null ? deserializeAws_json1_1CostFilters(output.CostFilters, context) : undefined,
|
|
2045
|
+
CostTypes: output.CostTypes != null ? deserializeAws_json1_1CostTypes(output.CostTypes, context) : undefined,
|
|
2046
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2103
2047
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
2104
2048
|
: undefined,
|
|
2105
|
-
PlannedBudgetLimits: output.PlannedBudgetLimits
|
|
2049
|
+
PlannedBudgetLimits: output.PlannedBudgetLimits != null
|
|
2106
2050
|
? deserializeAws_json1_1PlannedBudgetLimits(output.PlannedBudgetLimits, context)
|
|
2107
2051
|
: undefined,
|
|
2108
|
-
TimePeriod: output.TimePeriod
|
|
2109
|
-
? deserializeAws_json1_1TimePeriod(output.TimePeriod, context)
|
|
2110
|
-
: undefined,
|
|
2052
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context) : undefined,
|
|
2111
2053
|
TimeUnit: (0, smithy_client_1.expectString)(output.TimeUnit),
|
|
2112
2054
|
};
|
|
2113
2055
|
};
|
|
2114
2056
|
const deserializeAws_json1_1BudgetedAndActualAmounts = (output, context) => {
|
|
2115
2057
|
return {
|
|
2116
|
-
ActualAmount: output.ActualAmount
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
BudgetedAmount: output.BudgetedAmount !== undefined && output.BudgetedAmount !== null
|
|
2120
|
-
? deserializeAws_json1_1Spend(output.BudgetedAmount, context)
|
|
2121
|
-
: undefined,
|
|
2122
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
2123
|
-
? deserializeAws_json1_1TimePeriod(output.TimePeriod, context)
|
|
2124
|
-
: undefined,
|
|
2058
|
+
ActualAmount: output.ActualAmount != null ? deserializeAws_json1_1Spend(output.ActualAmount, context) : undefined,
|
|
2059
|
+
BudgetedAmount: output.BudgetedAmount != null ? deserializeAws_json1_1Spend(output.BudgetedAmount, context) : undefined,
|
|
2060
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context) : undefined,
|
|
2125
2061
|
};
|
|
2126
2062
|
};
|
|
2127
2063
|
const deserializeAws_json1_1BudgetedAndActualAmountsList = (output, context) => {
|
|
@@ -2138,9 +2074,7 @@ const deserializeAws_json1_1BudgetedAndActualAmountsList = (output, context) =>
|
|
|
2138
2074
|
const deserializeAws_json1_1BudgetNotificationsForAccount = (output, context) => {
|
|
2139
2075
|
return {
|
|
2140
2076
|
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2141
|
-
Notifications: output.Notifications
|
|
2142
|
-
? deserializeAws_json1_1Notifications(output.Notifications, context)
|
|
2143
|
-
: undefined,
|
|
2077
|
+
Notifications: output.Notifications != null ? deserializeAws_json1_1Notifications(output.Notifications, context) : undefined,
|
|
2144
2078
|
};
|
|
2145
2079
|
};
|
|
2146
2080
|
const deserializeAws_json1_1BudgetNotificationsForAccountList = (output, context) => {
|
|
@@ -2158,15 +2092,11 @@ const deserializeAws_json1_1BudgetPerformanceHistory = (output, context) => {
|
|
|
2158
2092
|
return {
|
|
2159
2093
|
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2160
2094
|
BudgetType: (0, smithy_client_1.expectString)(output.BudgetType),
|
|
2161
|
-
BudgetedAndActualAmountsList: output.BudgetedAndActualAmountsList
|
|
2095
|
+
BudgetedAndActualAmountsList: output.BudgetedAndActualAmountsList != null
|
|
2162
2096
|
? deserializeAws_json1_1BudgetedAndActualAmountsList(output.BudgetedAndActualAmountsList, context)
|
|
2163
2097
|
: undefined,
|
|
2164
|
-
CostFilters: output.CostFilters
|
|
2165
|
-
|
|
2166
|
-
: undefined,
|
|
2167
|
-
CostTypes: output.CostTypes !== undefined && output.CostTypes !== null
|
|
2168
|
-
? deserializeAws_json1_1CostTypes(output.CostTypes, context)
|
|
2169
|
-
: undefined,
|
|
2098
|
+
CostFilters: output.CostFilters != null ? deserializeAws_json1_1CostFilters(output.CostFilters, context) : undefined,
|
|
2099
|
+
CostTypes: output.CostTypes != null ? deserializeAws_json1_1CostTypes(output.CostTypes, context) : undefined,
|
|
2170
2100
|
TimeUnit: (0, smithy_client_1.expectString)(output.TimeUnit),
|
|
2171
2101
|
};
|
|
2172
2102
|
};
|
|
@@ -2183,12 +2113,8 @@ const deserializeAws_json1_1Budgets = (output, context) => {
|
|
|
2183
2113
|
};
|
|
2184
2114
|
const deserializeAws_json1_1CalculatedSpend = (output, context) => {
|
|
2185
2115
|
return {
|
|
2186
|
-
ActualSpend: output.ActualSpend
|
|
2187
|
-
|
|
2188
|
-
: undefined,
|
|
2189
|
-
ForecastedSpend: output.ForecastedSpend !== undefined && output.ForecastedSpend !== null
|
|
2190
|
-
? deserializeAws_json1_1Spend(output.ForecastedSpend, context)
|
|
2191
|
-
: undefined,
|
|
2116
|
+
ActualSpend: output.ActualSpend != null ? deserializeAws_json1_1Spend(output.ActualSpend, context) : undefined,
|
|
2117
|
+
ForecastedSpend: output.ForecastedSpend != null ? deserializeAws_json1_1Spend(output.ForecastedSpend, context) : undefined,
|
|
2192
2118
|
};
|
|
2193
2119
|
};
|
|
2194
2120
|
const deserializeAws_json1_1CostFilters = (output, context) => {
|
|
@@ -2240,13 +2166,13 @@ const deserializeAws_json1_1CreationLimitExceededException = (output, context) =
|
|
|
2240
2166
|
};
|
|
2241
2167
|
const deserializeAws_json1_1Definition = (output, context) => {
|
|
2242
2168
|
return {
|
|
2243
|
-
IamActionDefinition: output.IamActionDefinition
|
|
2169
|
+
IamActionDefinition: output.IamActionDefinition != null
|
|
2244
2170
|
? deserializeAws_json1_1IamActionDefinition(output.IamActionDefinition, context)
|
|
2245
2171
|
: undefined,
|
|
2246
|
-
ScpActionDefinition: output.ScpActionDefinition
|
|
2172
|
+
ScpActionDefinition: output.ScpActionDefinition != null
|
|
2247
2173
|
? deserializeAws_json1_1ScpActionDefinition(output.ScpActionDefinition, context)
|
|
2248
2174
|
: undefined,
|
|
2249
|
-
SsmActionDefinition: output.SsmActionDefinition
|
|
2175
|
+
SsmActionDefinition: output.SsmActionDefinition != null
|
|
2250
2176
|
? deserializeAws_json1_1SsmActionDefinition(output.SsmActionDefinition, context)
|
|
2251
2177
|
: undefined,
|
|
2252
2178
|
};
|
|
@@ -2254,9 +2180,7 @@ const deserializeAws_json1_1Definition = (output, context) => {
|
|
|
2254
2180
|
const deserializeAws_json1_1DeleteBudgetActionResponse = (output, context) => {
|
|
2255
2181
|
return {
|
|
2256
2182
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2257
|
-
Action: output.Action
|
|
2258
|
-
? deserializeAws_json1_1Action(output.Action, context)
|
|
2259
|
-
: undefined,
|
|
2183
|
+
Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
|
|
2260
2184
|
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2261
2185
|
};
|
|
2262
2186
|
};
|
|
@@ -2271,7 +2195,7 @@ const deserializeAws_json1_1DeleteSubscriberResponse = (output, context) => {
|
|
|
2271
2195
|
};
|
|
2272
2196
|
const deserializeAws_json1_1DescribeBudgetActionHistoriesResponse = (output, context) => {
|
|
2273
2197
|
return {
|
|
2274
|
-
ActionHistories: output.ActionHistories
|
|
2198
|
+
ActionHistories: output.ActionHistories != null
|
|
2275
2199
|
? deserializeAws_json1_1ActionHistories(output.ActionHistories, context)
|
|
2276
2200
|
: undefined,
|
|
2277
2201
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -2280,31 +2204,25 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesResponse = (output, con
|
|
|
2280
2204
|
const deserializeAws_json1_1DescribeBudgetActionResponse = (output, context) => {
|
|
2281
2205
|
return {
|
|
2282
2206
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2283
|
-
Action: output.Action
|
|
2284
|
-
? deserializeAws_json1_1Action(output.Action, context)
|
|
2285
|
-
: undefined,
|
|
2207
|
+
Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
|
|
2286
2208
|
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2287
2209
|
};
|
|
2288
2210
|
};
|
|
2289
2211
|
const deserializeAws_json1_1DescribeBudgetActionsForAccountResponse = (output, context) => {
|
|
2290
2212
|
return {
|
|
2291
|
-
Actions: output.Actions
|
|
2292
|
-
? deserializeAws_json1_1Actions(output.Actions, context)
|
|
2293
|
-
: undefined,
|
|
2213
|
+
Actions: output.Actions != null ? deserializeAws_json1_1Actions(output.Actions, context) : undefined,
|
|
2294
2214
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2295
2215
|
};
|
|
2296
2216
|
};
|
|
2297
2217
|
const deserializeAws_json1_1DescribeBudgetActionsForBudgetResponse = (output, context) => {
|
|
2298
2218
|
return {
|
|
2299
|
-
Actions: output.Actions
|
|
2300
|
-
? deserializeAws_json1_1Actions(output.Actions, context)
|
|
2301
|
-
: undefined,
|
|
2219
|
+
Actions: output.Actions != null ? deserializeAws_json1_1Actions(output.Actions, context) : undefined,
|
|
2302
2220
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2303
2221
|
};
|
|
2304
2222
|
};
|
|
2305
2223
|
const deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse = (output, context) => {
|
|
2306
2224
|
return {
|
|
2307
|
-
BudgetNotificationsForAccount: output.BudgetNotificationsForAccount
|
|
2225
|
+
BudgetNotificationsForAccount: output.BudgetNotificationsForAccount != null
|
|
2308
2226
|
? deserializeAws_json1_1BudgetNotificationsForAccountList(output.BudgetNotificationsForAccount, context)
|
|
2309
2227
|
: undefined,
|
|
2310
2228
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -2312,7 +2230,7 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse = (out
|
|
|
2312
2230
|
};
|
|
2313
2231
|
const deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse = (output, context) => {
|
|
2314
2232
|
return {
|
|
2315
|
-
BudgetPerformanceHistory: output.BudgetPerformanceHistory
|
|
2233
|
+
BudgetPerformanceHistory: output.BudgetPerformanceHistory != null
|
|
2316
2234
|
? deserializeAws_json1_1BudgetPerformanceHistory(output.BudgetPerformanceHistory, context)
|
|
2317
2235
|
: undefined,
|
|
2318
2236
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -2320,33 +2238,25 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse = (output,
|
|
|
2320
2238
|
};
|
|
2321
2239
|
const deserializeAws_json1_1DescribeBudgetResponse = (output, context) => {
|
|
2322
2240
|
return {
|
|
2323
|
-
Budget: output.Budget
|
|
2324
|
-
? deserializeAws_json1_1Budget(output.Budget, context)
|
|
2325
|
-
: undefined,
|
|
2241
|
+
Budget: output.Budget != null ? deserializeAws_json1_1Budget(output.Budget, context) : undefined,
|
|
2326
2242
|
};
|
|
2327
2243
|
};
|
|
2328
2244
|
const deserializeAws_json1_1DescribeBudgetsResponse = (output, context) => {
|
|
2329
2245
|
return {
|
|
2330
|
-
Budgets: output.Budgets
|
|
2331
|
-
? deserializeAws_json1_1Budgets(output.Budgets, context)
|
|
2332
|
-
: undefined,
|
|
2246
|
+
Budgets: output.Budgets != null ? deserializeAws_json1_1Budgets(output.Budgets, context) : undefined,
|
|
2333
2247
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2334
2248
|
};
|
|
2335
2249
|
};
|
|
2336
2250
|
const deserializeAws_json1_1DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
2337
2251
|
return {
|
|
2338
2252
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2339
|
-
Notifications: output.Notifications
|
|
2340
|
-
? deserializeAws_json1_1Notifications(output.Notifications, context)
|
|
2341
|
-
: undefined,
|
|
2253
|
+
Notifications: output.Notifications != null ? deserializeAws_json1_1Notifications(output.Notifications, context) : undefined,
|
|
2342
2254
|
};
|
|
2343
2255
|
};
|
|
2344
2256
|
const deserializeAws_json1_1DescribeSubscribersForNotificationResponse = (output, context) => {
|
|
2345
2257
|
return {
|
|
2346
2258
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2347
|
-
Subscribers: output.Subscribers
|
|
2348
|
-
? deserializeAws_json1_1Subscribers(output.Subscribers, context)
|
|
2349
|
-
: undefined,
|
|
2259
|
+
Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
|
|
2350
2260
|
};
|
|
2351
2261
|
};
|
|
2352
2262
|
const deserializeAws_json1_1DimensionValues = (output, context) => {
|
|
@@ -2397,16 +2307,10 @@ const deserializeAws_json1_1HistoricalOptions = (output, context) => {
|
|
|
2397
2307
|
};
|
|
2398
2308
|
const deserializeAws_json1_1IamActionDefinition = (output, context) => {
|
|
2399
2309
|
return {
|
|
2400
|
-
Groups: output.Groups
|
|
2401
|
-
? deserializeAws_json1_1Groups(output.Groups, context)
|
|
2402
|
-
: undefined,
|
|
2310
|
+
Groups: output.Groups != null ? deserializeAws_json1_1Groups(output.Groups, context) : undefined,
|
|
2403
2311
|
PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
|
|
2404
|
-
Roles: output.Roles
|
|
2405
|
-
|
|
2406
|
-
: undefined,
|
|
2407
|
-
Users: output.Users !== undefined && output.Users !== null
|
|
2408
|
-
? deserializeAws_json1_1Users(output.Users, context)
|
|
2409
|
-
: undefined,
|
|
2312
|
+
Roles: output.Roles != null ? deserializeAws_json1_1Roles(output.Roles, context) : undefined,
|
|
2313
|
+
Users: output.Users != null ? deserializeAws_json1_1Users(output.Users, context) : undefined,
|
|
2410
2314
|
};
|
|
2411
2315
|
};
|
|
2412
2316
|
const deserializeAws_json1_1InstanceIds = (output, context) => {
|
|
@@ -2490,9 +2394,7 @@ const deserializeAws_json1_1Roles = (output, context) => {
|
|
|
2490
2394
|
const deserializeAws_json1_1ScpActionDefinition = (output, context) => {
|
|
2491
2395
|
return {
|
|
2492
2396
|
PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
|
|
2493
|
-
TargetIds: output.TargetIds
|
|
2494
|
-
? deserializeAws_json1_1TargetIds(output.TargetIds, context)
|
|
2495
|
-
: undefined,
|
|
2397
|
+
TargetIds: output.TargetIds != null ? deserializeAws_json1_1TargetIds(output.TargetIds, context) : undefined,
|
|
2496
2398
|
};
|
|
2497
2399
|
};
|
|
2498
2400
|
const deserializeAws_json1_1Spend = (output, context) => {
|
|
@@ -2504,9 +2406,7 @@ const deserializeAws_json1_1Spend = (output, context) => {
|
|
|
2504
2406
|
const deserializeAws_json1_1SsmActionDefinition = (output, context) => {
|
|
2505
2407
|
return {
|
|
2506
2408
|
ActionSubType: (0, smithy_client_1.expectString)(output.ActionSubType),
|
|
2507
|
-
InstanceIds: output.InstanceIds
|
|
2508
|
-
? deserializeAws_json1_1InstanceIds(output.InstanceIds, context)
|
|
2509
|
-
: undefined,
|
|
2409
|
+
InstanceIds: output.InstanceIds != null ? deserializeAws_json1_1InstanceIds(output.InstanceIds, context) : undefined,
|
|
2510
2410
|
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
2511
2411
|
};
|
|
2512
2412
|
};
|
|
@@ -2545,24 +2445,16 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
2545
2445
|
};
|
|
2546
2446
|
const deserializeAws_json1_1TimePeriod = (output, context) => {
|
|
2547
2447
|
return {
|
|
2548
|
-
End: output.End
|
|
2549
|
-
|
|
2550
|
-
: undefined,
|
|
2551
|
-
Start: output.Start !== undefined && output.Start !== null
|
|
2552
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Start)))
|
|
2553
|
-
: undefined,
|
|
2448
|
+
End: output.End != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.End))) : undefined,
|
|
2449
|
+
Start: output.Start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Start))) : undefined,
|
|
2554
2450
|
};
|
|
2555
2451
|
};
|
|
2556
2452
|
const deserializeAws_json1_1UpdateBudgetActionResponse = (output, context) => {
|
|
2557
2453
|
return {
|
|
2558
2454
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2559
2455
|
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2560
|
-
NewAction: output.NewAction
|
|
2561
|
-
|
|
2562
|
-
: undefined,
|
|
2563
|
-
OldAction: output.OldAction !== undefined && output.OldAction !== null
|
|
2564
|
-
? deserializeAws_json1_1Action(output.OldAction, context)
|
|
2565
|
-
: undefined,
|
|
2456
|
+
NewAction: output.NewAction != null ? deserializeAws_json1_1Action(output.NewAction, context) : undefined,
|
|
2457
|
+
OldAction: output.OldAction != null ? deserializeAws_json1_1Action(output.OldAction, context) : undefined,
|
|
2566
2458
|
};
|
|
2567
2459
|
};
|
|
2568
2460
|
const deserializeAws_json1_1UpdateBudgetResponse = (output, context) => {
|
|
@@ -2647,5 +2539,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2647
2539
|
if (data["__type"] !== undefined) {
|
|
2648
2540
|
return sanitizeErrorCode(data["__type"]);
|
|
2649
2541
|
}
|
|
2650
|
-
return "";
|
|
2651
2542
|
};
|