@aws-sdk/client-budgets 3.112.0 → 3.121.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 +115 -93
- package/dist-es/protocols/Aws_json1_1.js +115 -93
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.112.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.111.0...v3.112.0) (2022-06-16)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
@@ -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
|
}
|
|
@@ -2647,5 +2670,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2647
2670
|
if (data["__type"] !== undefined) {
|
|
2648
2671
|
return sanitizeErrorCode(data["__type"]);
|
|
2649
2672
|
}
|
|
2650
|
-
return "";
|
|
2651
2673
|
};
|