@aws-sdk/client-cost-explorer 3.52.0 → 3.53.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CostExplorerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +145 -4
- package/dist-cjs/protocols/Aws_json1_1.js +314 -882
- package/dist-es/index.js +1 -0
- package/dist-es/models/CostExplorerServiceException.js +12 -0
- package/dist-es/models/models_0.js +132 -1
- package/dist-es/protocols/Aws_json1_1.js +637 -983
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CostExplorerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -31
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CostExplorerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +52 -31
- package/package.json +25 -25
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1GetSavingsPlansCoverageCommand = exports.deseriali
|
|
|
4
4
|
exports.deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.deserializeAws_json1_1UpdateAnomalyMonitorCommand = exports.deserializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.deserializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.deserializeAws_json1_1GetUsageForecastCommand = exports.deserializeAws_json1_1GetTagsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const CostExplorerServiceException_1 = require("../models/CostExplorerServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_json1_1CreateAnomalyMonitorCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -329,27 +331,16 @@ const deserializeAws_json1_1CreateAnomalyMonitorCommandError = async (output, co
|
|
|
329
331
|
switch (errorCode) {
|
|
330
332
|
case "LimitExceededException":
|
|
331
333
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
332
|
-
|
|
333
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
334
|
-
name: errorCode,
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
};
|
|
337
|
-
break;
|
|
334
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
338
335
|
default:
|
|
339
336
|
const parsedBody = parsedOutput.body;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
...parsedBody,
|
|
343
|
-
name: `${errorCode}`,
|
|
344
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
337
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
338
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
345
339
|
$fault: "client",
|
|
346
340
|
$metadata: deserializeMetadata(output),
|
|
347
|
-
};
|
|
341
|
+
});
|
|
342
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
348
343
|
}
|
|
349
|
-
const message = response.message || response.Message || errorCode;
|
|
350
|
-
response.message = message;
|
|
351
|
-
delete response.Message;
|
|
352
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
353
344
|
};
|
|
354
345
|
const deserializeAws_json1_1CreateAnomalySubscriptionCommand = async (output, context) => {
|
|
355
346
|
if (output.statusCode >= 300) {
|
|
@@ -376,35 +367,19 @@ const deserializeAws_json1_1CreateAnomalySubscriptionCommandError = async (outpu
|
|
|
376
367
|
switch (errorCode) {
|
|
377
368
|
case "LimitExceededException":
|
|
378
369
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
379
|
-
|
|
380
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
381
|
-
name: errorCode,
|
|
382
|
-
$metadata: deserializeMetadata(output),
|
|
383
|
-
};
|
|
384
|
-
break;
|
|
370
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
385
371
|
case "UnknownMonitorException":
|
|
386
372
|
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
387
|
-
|
|
388
|
-
...(await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)),
|
|
389
|
-
name: errorCode,
|
|
390
|
-
$metadata: deserializeMetadata(output),
|
|
391
|
-
};
|
|
392
|
-
break;
|
|
373
|
+
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
393
374
|
default:
|
|
394
375
|
const parsedBody = parsedOutput.body;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
...parsedBody,
|
|
398
|
-
name: `${errorCode}`,
|
|
399
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
376
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
377
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
400
378
|
$fault: "client",
|
|
401
379
|
$metadata: deserializeMetadata(output),
|
|
402
|
-
};
|
|
380
|
+
});
|
|
381
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
403
382
|
}
|
|
404
|
-
const message = response.message || response.Message || errorCode;
|
|
405
|
-
response.message = message;
|
|
406
|
-
delete response.Message;
|
|
407
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
408
383
|
};
|
|
409
384
|
const deserializeAws_json1_1CreateCostCategoryDefinitionCommand = async (output, context) => {
|
|
410
385
|
if (output.statusCode >= 300) {
|
|
@@ -431,35 +406,19 @@ const deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = async (ou
|
|
|
431
406
|
switch (errorCode) {
|
|
432
407
|
case "LimitExceededException":
|
|
433
408
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
434
|
-
|
|
435
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
436
|
-
name: errorCode,
|
|
437
|
-
$metadata: deserializeMetadata(output),
|
|
438
|
-
};
|
|
439
|
-
break;
|
|
409
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
440
410
|
case "ServiceQuotaExceededException":
|
|
441
411
|
case "com.amazonaws.costexplorer#ServiceQuotaExceededException":
|
|
442
|
-
|
|
443
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
444
|
-
name: errorCode,
|
|
445
|
-
$metadata: deserializeMetadata(output),
|
|
446
|
-
};
|
|
447
|
-
break;
|
|
412
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
448
413
|
default:
|
|
449
414
|
const parsedBody = parsedOutput.body;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
...parsedBody,
|
|
453
|
-
name: `${errorCode}`,
|
|
454
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
415
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
416
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
455
417
|
$fault: "client",
|
|
456
418
|
$metadata: deserializeMetadata(output),
|
|
457
|
-
};
|
|
419
|
+
});
|
|
420
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
458
421
|
}
|
|
459
|
-
const message = response.message || response.Message || errorCode;
|
|
460
|
-
response.message = message;
|
|
461
|
-
delete response.Message;
|
|
462
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
463
422
|
};
|
|
464
423
|
const deserializeAws_json1_1DeleteAnomalyMonitorCommand = async (output, context) => {
|
|
465
424
|
if (output.statusCode >= 300) {
|
|
@@ -486,35 +445,19 @@ const deserializeAws_json1_1DeleteAnomalyMonitorCommandError = async (output, co
|
|
|
486
445
|
switch (errorCode) {
|
|
487
446
|
case "LimitExceededException":
|
|
488
447
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
489
|
-
|
|
490
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
491
|
-
name: errorCode,
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
};
|
|
494
|
-
break;
|
|
448
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
495
449
|
case "UnknownMonitorException":
|
|
496
450
|
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
497
|
-
|
|
498
|
-
...(await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)),
|
|
499
|
-
name: errorCode,
|
|
500
|
-
$metadata: deserializeMetadata(output),
|
|
501
|
-
};
|
|
502
|
-
break;
|
|
451
|
+
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
503
452
|
default:
|
|
504
453
|
const parsedBody = parsedOutput.body;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
...parsedBody,
|
|
508
|
-
name: `${errorCode}`,
|
|
509
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
454
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
455
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
510
456
|
$fault: "client",
|
|
511
457
|
$metadata: deserializeMetadata(output),
|
|
512
|
-
};
|
|
458
|
+
});
|
|
459
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
513
460
|
}
|
|
514
|
-
const message = response.message || response.Message || errorCode;
|
|
515
|
-
response.message = message;
|
|
516
|
-
delete response.Message;
|
|
517
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
518
461
|
};
|
|
519
462
|
const deserializeAws_json1_1DeleteAnomalySubscriptionCommand = async (output, context) => {
|
|
520
463
|
if (output.statusCode >= 300) {
|
|
@@ -541,35 +484,19 @@ const deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = async (outpu
|
|
|
541
484
|
switch (errorCode) {
|
|
542
485
|
case "LimitExceededException":
|
|
543
486
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
544
|
-
|
|
545
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
546
|
-
name: errorCode,
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
};
|
|
549
|
-
break;
|
|
487
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
550
488
|
case "UnknownSubscriptionException":
|
|
551
489
|
case "com.amazonaws.costexplorer#UnknownSubscriptionException":
|
|
552
|
-
|
|
553
|
-
...(await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context)),
|
|
554
|
-
name: errorCode,
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
};
|
|
557
|
-
break;
|
|
490
|
+
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
558
491
|
default:
|
|
559
492
|
const parsedBody = parsedOutput.body;
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
...parsedBody,
|
|
563
|
-
name: `${errorCode}`,
|
|
564
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
493
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
494
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
565
495
|
$fault: "client",
|
|
566
496
|
$metadata: deserializeMetadata(output),
|
|
567
|
-
};
|
|
497
|
+
});
|
|
498
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
568
499
|
}
|
|
569
|
-
const message = response.message || response.Message || errorCode;
|
|
570
|
-
response.message = message;
|
|
571
|
-
delete response.Message;
|
|
572
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
573
500
|
};
|
|
574
501
|
const deserializeAws_json1_1DeleteCostCategoryDefinitionCommand = async (output, context) => {
|
|
575
502
|
if (output.statusCode >= 300) {
|
|
@@ -596,35 +523,19 @@ const deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = async (ou
|
|
|
596
523
|
switch (errorCode) {
|
|
597
524
|
case "LimitExceededException":
|
|
598
525
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
599
|
-
|
|
600
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
601
|
-
name: errorCode,
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
};
|
|
604
|
-
break;
|
|
526
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
605
527
|
case "ResourceNotFoundException":
|
|
606
528
|
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
607
|
-
|
|
608
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
609
|
-
name: errorCode,
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
};
|
|
612
|
-
break;
|
|
529
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
613
530
|
default:
|
|
614
531
|
const parsedBody = parsedOutput.body;
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
...parsedBody,
|
|
618
|
-
name: `${errorCode}`,
|
|
619
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
532
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
533
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
620
534
|
$fault: "client",
|
|
621
535
|
$metadata: deserializeMetadata(output),
|
|
622
|
-
};
|
|
536
|
+
});
|
|
537
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
623
538
|
}
|
|
624
|
-
const message = response.message || response.Message || errorCode;
|
|
625
|
-
response.message = message;
|
|
626
|
-
delete response.Message;
|
|
627
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
628
539
|
};
|
|
629
540
|
const deserializeAws_json1_1DescribeCostCategoryDefinitionCommand = async (output, context) => {
|
|
630
541
|
if (output.statusCode >= 300) {
|
|
@@ -651,35 +562,19 @@ const deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = async (
|
|
|
651
562
|
switch (errorCode) {
|
|
652
563
|
case "LimitExceededException":
|
|
653
564
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
654
|
-
|
|
655
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
656
|
-
name: errorCode,
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
};
|
|
659
|
-
break;
|
|
565
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
660
566
|
case "ResourceNotFoundException":
|
|
661
567
|
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
662
|
-
|
|
663
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
664
|
-
name: errorCode,
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
};
|
|
667
|
-
break;
|
|
568
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
668
569
|
default:
|
|
669
570
|
const parsedBody = parsedOutput.body;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
...parsedBody,
|
|
673
|
-
name: `${errorCode}`,
|
|
674
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
571
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
572
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
675
573
|
$fault: "client",
|
|
676
574
|
$metadata: deserializeMetadata(output),
|
|
677
|
-
};
|
|
575
|
+
});
|
|
576
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
678
577
|
}
|
|
679
|
-
const message = response.message || response.Message || errorCode;
|
|
680
|
-
response.message = message;
|
|
681
|
-
delete response.Message;
|
|
682
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
683
578
|
};
|
|
684
579
|
const deserializeAws_json1_1GetAnomaliesCommand = async (output, context) => {
|
|
685
580
|
if (output.statusCode >= 300) {
|
|
@@ -706,35 +601,19 @@ const deserializeAws_json1_1GetAnomaliesCommandError = async (output, context) =
|
|
|
706
601
|
switch (errorCode) {
|
|
707
602
|
case "InvalidNextTokenException":
|
|
708
603
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
709
|
-
|
|
710
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
711
|
-
name: errorCode,
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
};
|
|
714
|
-
break;
|
|
604
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
715
605
|
case "LimitExceededException":
|
|
716
606
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
717
|
-
|
|
718
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
719
|
-
name: errorCode,
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
};
|
|
722
|
-
break;
|
|
607
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
723
608
|
default:
|
|
724
609
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
...parsedBody,
|
|
728
|
-
name: `${errorCode}`,
|
|
729
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
610
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
611
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
730
612
|
$fault: "client",
|
|
731
613
|
$metadata: deserializeMetadata(output),
|
|
732
|
-
};
|
|
614
|
+
});
|
|
615
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
733
616
|
}
|
|
734
|
-
const message = response.message || response.Message || errorCode;
|
|
735
|
-
response.message = message;
|
|
736
|
-
delete response.Message;
|
|
737
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
738
617
|
};
|
|
739
618
|
const deserializeAws_json1_1GetAnomalyMonitorsCommand = async (output, context) => {
|
|
740
619
|
if (output.statusCode >= 300) {
|
|
@@ -761,43 +640,22 @@ const deserializeAws_json1_1GetAnomalyMonitorsCommandError = async (output, cont
|
|
|
761
640
|
switch (errorCode) {
|
|
762
641
|
case "InvalidNextTokenException":
|
|
763
642
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
764
|
-
|
|
765
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
766
|
-
name: errorCode,
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
};
|
|
769
|
-
break;
|
|
643
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
770
644
|
case "LimitExceededException":
|
|
771
645
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
772
|
-
|
|
773
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
774
|
-
name: errorCode,
|
|
775
|
-
$metadata: deserializeMetadata(output),
|
|
776
|
-
};
|
|
777
|
-
break;
|
|
646
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
778
647
|
case "UnknownMonitorException":
|
|
779
648
|
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
780
|
-
|
|
781
|
-
...(await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)),
|
|
782
|
-
name: errorCode,
|
|
783
|
-
$metadata: deserializeMetadata(output),
|
|
784
|
-
};
|
|
785
|
-
break;
|
|
649
|
+
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
786
650
|
default:
|
|
787
651
|
const parsedBody = parsedOutput.body;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
...parsedBody,
|
|
791
|
-
name: `${errorCode}`,
|
|
792
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
652
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
653
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
793
654
|
$fault: "client",
|
|
794
655
|
$metadata: deserializeMetadata(output),
|
|
795
|
-
};
|
|
656
|
+
});
|
|
657
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
796
658
|
}
|
|
797
|
-
const message = response.message || response.Message || errorCode;
|
|
798
|
-
response.message = message;
|
|
799
|
-
delete response.Message;
|
|
800
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
801
659
|
};
|
|
802
660
|
const deserializeAws_json1_1GetAnomalySubscriptionsCommand = async (output, context) => {
|
|
803
661
|
if (output.statusCode >= 300) {
|
|
@@ -824,43 +682,22 @@ const deserializeAws_json1_1GetAnomalySubscriptionsCommandError = async (output,
|
|
|
824
682
|
switch (errorCode) {
|
|
825
683
|
case "InvalidNextTokenException":
|
|
826
684
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
827
|
-
|
|
828
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
829
|
-
name: errorCode,
|
|
830
|
-
$metadata: deserializeMetadata(output),
|
|
831
|
-
};
|
|
832
|
-
break;
|
|
685
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
833
686
|
case "LimitExceededException":
|
|
834
687
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
835
|
-
|
|
836
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
837
|
-
name: errorCode,
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
};
|
|
840
|
-
break;
|
|
688
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
841
689
|
case "UnknownSubscriptionException":
|
|
842
690
|
case "com.amazonaws.costexplorer#UnknownSubscriptionException":
|
|
843
|
-
|
|
844
|
-
...(await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context)),
|
|
845
|
-
name: errorCode,
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
};
|
|
848
|
-
break;
|
|
691
|
+
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
849
692
|
default:
|
|
850
693
|
const parsedBody = parsedOutput.body;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
...parsedBody,
|
|
854
|
-
name: `${errorCode}`,
|
|
855
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
694
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
695
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
856
696
|
$fault: "client",
|
|
857
697
|
$metadata: deserializeMetadata(output),
|
|
858
|
-
};
|
|
698
|
+
});
|
|
699
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
859
700
|
}
|
|
860
|
-
const message = response.message || response.Message || errorCode;
|
|
861
|
-
response.message = message;
|
|
862
|
-
delete response.Message;
|
|
863
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
864
701
|
};
|
|
865
702
|
const deserializeAws_json1_1GetCostAndUsageCommand = async (output, context) => {
|
|
866
703
|
if (output.statusCode >= 300) {
|
|
@@ -887,59 +724,28 @@ const deserializeAws_json1_1GetCostAndUsageCommandError = async (output, context
|
|
|
887
724
|
switch (errorCode) {
|
|
888
725
|
case "BillExpirationException":
|
|
889
726
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
890
|
-
|
|
891
|
-
...(await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)),
|
|
892
|
-
name: errorCode,
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
};
|
|
895
|
-
break;
|
|
727
|
+
throw await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context);
|
|
896
728
|
case "DataUnavailableException":
|
|
897
729
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
898
|
-
|
|
899
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
900
|
-
name: errorCode,
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
};
|
|
903
|
-
break;
|
|
730
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
904
731
|
case "InvalidNextTokenException":
|
|
905
732
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
906
|
-
|
|
907
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
908
|
-
name: errorCode,
|
|
909
|
-
$metadata: deserializeMetadata(output),
|
|
910
|
-
};
|
|
911
|
-
break;
|
|
733
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
912
734
|
case "LimitExceededException":
|
|
913
735
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
914
|
-
|
|
915
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
916
|
-
name: errorCode,
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
};
|
|
919
|
-
break;
|
|
736
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
920
737
|
case "RequestChangedException":
|
|
921
738
|
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
922
|
-
|
|
923
|
-
...(await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)),
|
|
924
|
-
name: errorCode,
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
};
|
|
927
|
-
break;
|
|
739
|
+
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
928
740
|
default:
|
|
929
741
|
const parsedBody = parsedOutput.body;
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
...parsedBody,
|
|
933
|
-
name: `${errorCode}`,
|
|
934
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
742
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
743
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
935
744
|
$fault: "client",
|
|
936
745
|
$metadata: deserializeMetadata(output),
|
|
937
|
-
};
|
|
746
|
+
});
|
|
747
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
938
748
|
}
|
|
939
|
-
const message = response.message || response.Message || errorCode;
|
|
940
|
-
response.message = message;
|
|
941
|
-
delete response.Message;
|
|
942
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
943
749
|
};
|
|
944
750
|
const deserializeAws_json1_1GetCostAndUsageWithResourcesCommand = async (output, context) => {
|
|
945
751
|
if (output.statusCode >= 300) {
|
|
@@ -966,59 +772,28 @@ const deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = async (ou
|
|
|
966
772
|
switch (errorCode) {
|
|
967
773
|
case "BillExpirationException":
|
|
968
774
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
969
|
-
|
|
970
|
-
...(await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)),
|
|
971
|
-
name: errorCode,
|
|
972
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
-
};
|
|
974
|
-
break;
|
|
775
|
+
throw await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context);
|
|
975
776
|
case "DataUnavailableException":
|
|
976
777
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
977
|
-
|
|
978
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
979
|
-
name: errorCode,
|
|
980
|
-
$metadata: deserializeMetadata(output),
|
|
981
|
-
};
|
|
982
|
-
break;
|
|
778
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
983
779
|
case "InvalidNextTokenException":
|
|
984
780
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
985
|
-
|
|
986
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
987
|
-
name: errorCode,
|
|
988
|
-
$metadata: deserializeMetadata(output),
|
|
989
|
-
};
|
|
990
|
-
break;
|
|
781
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
991
782
|
case "LimitExceededException":
|
|
992
783
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
993
|
-
|
|
994
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
995
|
-
name: errorCode,
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
};
|
|
998
|
-
break;
|
|
784
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
999
785
|
case "RequestChangedException":
|
|
1000
786
|
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
1001
|
-
|
|
1002
|
-
...(await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)),
|
|
1003
|
-
name: errorCode,
|
|
1004
|
-
$metadata: deserializeMetadata(output),
|
|
1005
|
-
};
|
|
1006
|
-
break;
|
|
787
|
+
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
1007
788
|
default:
|
|
1008
789
|
const parsedBody = parsedOutput.body;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
...parsedBody,
|
|
1012
|
-
name: `${errorCode}`,
|
|
1013
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
790
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
791
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1014
792
|
$fault: "client",
|
|
1015
793
|
$metadata: deserializeMetadata(output),
|
|
1016
|
-
};
|
|
794
|
+
});
|
|
795
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1017
796
|
}
|
|
1018
|
-
const message = response.message || response.Message || errorCode;
|
|
1019
|
-
response.message = message;
|
|
1020
|
-
delete response.Message;
|
|
1021
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1022
797
|
};
|
|
1023
798
|
const deserializeAws_json1_1GetCostCategoriesCommand = async (output, context) => {
|
|
1024
799
|
if (output.statusCode >= 300) {
|
|
@@ -1045,59 +820,28 @@ const deserializeAws_json1_1GetCostCategoriesCommandError = async (output, conte
|
|
|
1045
820
|
switch (errorCode) {
|
|
1046
821
|
case "BillExpirationException":
|
|
1047
822
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
1048
|
-
|
|
1049
|
-
...(await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)),
|
|
1050
|
-
name: errorCode,
|
|
1051
|
-
$metadata: deserializeMetadata(output),
|
|
1052
|
-
};
|
|
1053
|
-
break;
|
|
823
|
+
throw await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context);
|
|
1054
824
|
case "DataUnavailableException":
|
|
1055
825
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1056
|
-
|
|
1057
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1058
|
-
name: errorCode,
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
1061
|
-
break;
|
|
826
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1062
827
|
case "InvalidNextTokenException":
|
|
1063
828
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1064
|
-
|
|
1065
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1066
|
-
name: errorCode,
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
1069
|
-
break;
|
|
829
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1070
830
|
case "LimitExceededException":
|
|
1071
831
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1072
|
-
|
|
1073
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1074
|
-
name: errorCode,
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
};
|
|
1077
|
-
break;
|
|
832
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1078
833
|
case "RequestChangedException":
|
|
1079
834
|
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
1080
|
-
|
|
1081
|
-
...(await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)),
|
|
1082
|
-
name: errorCode,
|
|
1083
|
-
$metadata: deserializeMetadata(output),
|
|
1084
|
-
};
|
|
1085
|
-
break;
|
|
835
|
+
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
1086
836
|
default:
|
|
1087
837
|
const parsedBody = parsedOutput.body;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
...parsedBody,
|
|
1091
|
-
name: `${errorCode}`,
|
|
1092
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
838
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
839
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1093
840
|
$fault: "client",
|
|
1094
841
|
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
842
|
+
});
|
|
843
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1096
844
|
}
|
|
1097
|
-
const message = response.message || response.Message || errorCode;
|
|
1098
|
-
response.message = message;
|
|
1099
|
-
delete response.Message;
|
|
1100
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1101
845
|
};
|
|
1102
846
|
const deserializeAws_json1_1GetCostForecastCommand = async (output, context) => {
|
|
1103
847
|
if (output.statusCode >= 300) {
|
|
@@ -1124,35 +868,19 @@ const deserializeAws_json1_1GetCostForecastCommandError = async (output, context
|
|
|
1124
868
|
switch (errorCode) {
|
|
1125
869
|
case "DataUnavailableException":
|
|
1126
870
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1127
|
-
|
|
1128
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1129
|
-
name: errorCode,
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
1132
|
-
break;
|
|
871
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1133
872
|
case "LimitExceededException":
|
|
1134
873
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1135
|
-
|
|
1136
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1137
|
-
name: errorCode,
|
|
1138
|
-
$metadata: deserializeMetadata(output),
|
|
1139
|
-
};
|
|
1140
|
-
break;
|
|
874
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1141
875
|
default:
|
|
1142
876
|
const parsedBody = parsedOutput.body;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
...parsedBody,
|
|
1146
|
-
name: `${errorCode}`,
|
|
1147
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
877
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
878
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1148
879
|
$fault: "client",
|
|
1149
880
|
$metadata: deserializeMetadata(output),
|
|
1150
|
-
};
|
|
881
|
+
});
|
|
882
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1151
883
|
}
|
|
1152
|
-
const message = response.message || response.Message || errorCode;
|
|
1153
|
-
response.message = message;
|
|
1154
|
-
delete response.Message;
|
|
1155
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1156
884
|
};
|
|
1157
885
|
const deserializeAws_json1_1GetDimensionValuesCommand = async (output, context) => {
|
|
1158
886
|
if (output.statusCode >= 300) {
|
|
@@ -1179,59 +907,28 @@ const deserializeAws_json1_1GetDimensionValuesCommandError = async (output, cont
|
|
|
1179
907
|
switch (errorCode) {
|
|
1180
908
|
case "BillExpirationException":
|
|
1181
909
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
1182
|
-
|
|
1183
|
-
...(await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)),
|
|
1184
|
-
name: errorCode,
|
|
1185
|
-
$metadata: deserializeMetadata(output),
|
|
1186
|
-
};
|
|
1187
|
-
break;
|
|
910
|
+
throw await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context);
|
|
1188
911
|
case "DataUnavailableException":
|
|
1189
912
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1190
|
-
|
|
1191
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1192
|
-
name: errorCode,
|
|
1193
|
-
$metadata: deserializeMetadata(output),
|
|
1194
|
-
};
|
|
1195
|
-
break;
|
|
913
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1196
914
|
case "InvalidNextTokenException":
|
|
1197
915
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1198
|
-
|
|
1199
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1200
|
-
name: errorCode,
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
1203
|
-
break;
|
|
916
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1204
917
|
case "LimitExceededException":
|
|
1205
918
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1206
|
-
|
|
1207
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
919
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1212
920
|
case "RequestChangedException":
|
|
1213
921
|
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
1214
|
-
|
|
1215
|
-
...(await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)),
|
|
1216
|
-
name: errorCode,
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1219
|
-
break;
|
|
922
|
+
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
1220
923
|
default:
|
|
1221
924
|
const parsedBody = parsedOutput.body;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
...parsedBody,
|
|
1225
|
-
name: `${errorCode}`,
|
|
1226
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
925
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
926
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1227
927
|
$fault: "client",
|
|
1228
928
|
$metadata: deserializeMetadata(output),
|
|
1229
|
-
};
|
|
929
|
+
});
|
|
930
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1230
931
|
}
|
|
1231
|
-
const message = response.message || response.Message || errorCode;
|
|
1232
|
-
response.message = message;
|
|
1233
|
-
delete response.Message;
|
|
1234
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1235
932
|
};
|
|
1236
933
|
const deserializeAws_json1_1GetReservationCoverageCommand = async (output, context) => {
|
|
1237
934
|
if (output.statusCode >= 300) {
|
|
@@ -1258,43 +955,22 @@ const deserializeAws_json1_1GetReservationCoverageCommandError = async (output,
|
|
|
1258
955
|
switch (errorCode) {
|
|
1259
956
|
case "DataUnavailableException":
|
|
1260
957
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1261
|
-
|
|
1262
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1263
|
-
name: errorCode,
|
|
1264
|
-
$metadata: deserializeMetadata(output),
|
|
1265
|
-
};
|
|
1266
|
-
break;
|
|
958
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1267
959
|
case "InvalidNextTokenException":
|
|
1268
960
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1269
|
-
|
|
1270
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1271
|
-
name: errorCode,
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
break;
|
|
961
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1275
962
|
case "LimitExceededException":
|
|
1276
963
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1277
|
-
|
|
1278
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1279
|
-
name: errorCode,
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
};
|
|
1282
|
-
break;
|
|
964
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1283
965
|
default:
|
|
1284
966
|
const parsedBody = parsedOutput.body;
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
...parsedBody,
|
|
1288
|
-
name: `${errorCode}`,
|
|
1289
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
967
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
968
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1290
969
|
$fault: "client",
|
|
1291
970
|
$metadata: deserializeMetadata(output),
|
|
1292
|
-
};
|
|
971
|
+
});
|
|
972
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1293
973
|
}
|
|
1294
|
-
const message = response.message || response.Message || errorCode;
|
|
1295
|
-
response.message = message;
|
|
1296
|
-
delete response.Message;
|
|
1297
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1298
974
|
};
|
|
1299
975
|
const deserializeAws_json1_1GetReservationPurchaseRecommendationCommand = async (output, context) => {
|
|
1300
976
|
if (output.statusCode >= 300) {
|
|
@@ -1321,43 +997,22 @@ const deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = a
|
|
|
1321
997
|
switch (errorCode) {
|
|
1322
998
|
case "DataUnavailableException":
|
|
1323
999
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1324
|
-
|
|
1325
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1326
|
-
name: errorCode,
|
|
1327
|
-
$metadata: deserializeMetadata(output),
|
|
1328
|
-
};
|
|
1329
|
-
break;
|
|
1000
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1330
1001
|
case "InvalidNextTokenException":
|
|
1331
1002
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1332
|
-
|
|
1333
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1334
|
-
name: errorCode,
|
|
1335
|
-
$metadata: deserializeMetadata(output),
|
|
1336
|
-
};
|
|
1337
|
-
break;
|
|
1003
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1338
1004
|
case "LimitExceededException":
|
|
1339
1005
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1340
|
-
|
|
1341
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1342
|
-
name: errorCode,
|
|
1343
|
-
$metadata: deserializeMetadata(output),
|
|
1344
|
-
};
|
|
1345
|
-
break;
|
|
1006
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1346
1007
|
default:
|
|
1347
1008
|
const parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
...parsedBody,
|
|
1351
|
-
name: `${errorCode}`,
|
|
1352
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1009
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1010
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1353
1011
|
$fault: "client",
|
|
1354
1012
|
$metadata: deserializeMetadata(output),
|
|
1355
|
-
};
|
|
1013
|
+
});
|
|
1014
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1356
1015
|
}
|
|
1357
|
-
const message = response.message || response.Message || errorCode;
|
|
1358
|
-
response.message = message;
|
|
1359
|
-
delete response.Message;
|
|
1360
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1361
1016
|
};
|
|
1362
1017
|
const deserializeAws_json1_1GetReservationUtilizationCommand = async (output, context) => {
|
|
1363
1018
|
if (output.statusCode >= 300) {
|
|
@@ -1384,43 +1039,22 @@ const deserializeAws_json1_1GetReservationUtilizationCommandError = async (outpu
|
|
|
1384
1039
|
switch (errorCode) {
|
|
1385
1040
|
case "DataUnavailableException":
|
|
1386
1041
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1387
|
-
|
|
1388
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1389
|
-
name: errorCode,
|
|
1390
|
-
$metadata: deserializeMetadata(output),
|
|
1391
|
-
};
|
|
1392
|
-
break;
|
|
1042
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1393
1043
|
case "InvalidNextTokenException":
|
|
1394
1044
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1395
|
-
|
|
1396
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1397
|
-
name: errorCode,
|
|
1398
|
-
$metadata: deserializeMetadata(output),
|
|
1399
|
-
};
|
|
1400
|
-
break;
|
|
1045
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1401
1046
|
case "LimitExceededException":
|
|
1402
1047
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1403
|
-
|
|
1404
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1405
|
-
name: errorCode,
|
|
1406
|
-
$metadata: deserializeMetadata(output),
|
|
1407
|
-
};
|
|
1408
|
-
break;
|
|
1048
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1409
1049
|
default:
|
|
1410
1050
|
const parsedBody = parsedOutput.body;
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
...parsedBody,
|
|
1414
|
-
name: `${errorCode}`,
|
|
1415
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1051
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1052
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1416
1053
|
$fault: "client",
|
|
1417
1054
|
$metadata: deserializeMetadata(output),
|
|
1418
|
-
};
|
|
1055
|
+
});
|
|
1056
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1419
1057
|
}
|
|
1420
|
-
const message = response.message || response.Message || errorCode;
|
|
1421
|
-
response.message = message;
|
|
1422
|
-
delete response.Message;
|
|
1423
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1424
1058
|
};
|
|
1425
1059
|
const deserializeAws_json1_1GetRightsizingRecommendationCommand = async (output, context) => {
|
|
1426
1060
|
if (output.statusCode >= 300) {
|
|
@@ -1447,35 +1081,19 @@ const deserializeAws_json1_1GetRightsizingRecommendationCommandError = async (ou
|
|
|
1447
1081
|
switch (errorCode) {
|
|
1448
1082
|
case "InvalidNextTokenException":
|
|
1449
1083
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1450
|
-
|
|
1451
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1452
|
-
name: errorCode,
|
|
1453
|
-
$metadata: deserializeMetadata(output),
|
|
1454
|
-
};
|
|
1455
|
-
break;
|
|
1084
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1456
1085
|
case "LimitExceededException":
|
|
1457
1086
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1458
|
-
|
|
1459
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1460
|
-
name: errorCode,
|
|
1461
|
-
$metadata: deserializeMetadata(output),
|
|
1462
|
-
};
|
|
1463
|
-
break;
|
|
1087
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1464
1088
|
default:
|
|
1465
1089
|
const parsedBody = parsedOutput.body;
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
...parsedBody,
|
|
1469
|
-
name: `${errorCode}`,
|
|
1470
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1090
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1091
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1471
1092
|
$fault: "client",
|
|
1472
1093
|
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1094
|
+
});
|
|
1095
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1474
1096
|
}
|
|
1475
|
-
const message = response.message || response.Message || errorCode;
|
|
1476
|
-
response.message = message;
|
|
1477
|
-
delete response.Message;
|
|
1478
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1479
1097
|
};
|
|
1480
1098
|
const deserializeAws_json1_1GetSavingsPlansCoverageCommand = async (output, context) => {
|
|
1481
1099
|
if (output.statusCode >= 300) {
|
|
@@ -1502,43 +1120,22 @@ const deserializeAws_json1_1GetSavingsPlansCoverageCommandError = async (output,
|
|
|
1502
1120
|
switch (errorCode) {
|
|
1503
1121
|
case "DataUnavailableException":
|
|
1504
1122
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1505
|
-
|
|
1506
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1507
|
-
name: errorCode,
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
break;
|
|
1123
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1511
1124
|
case "InvalidNextTokenException":
|
|
1512
1125
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1126
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1519
1127
|
case "LimitExceededException":
|
|
1520
1128
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1521
|
-
|
|
1522
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1129
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1527
1130
|
default:
|
|
1528
1131
|
const parsedBody = parsedOutput.body;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
...parsedBody,
|
|
1532
|
-
name: `${errorCode}`,
|
|
1533
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1132
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1133
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
1134
|
$fault: "client",
|
|
1535
1135
|
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1136
|
+
});
|
|
1137
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1537
1138
|
}
|
|
1538
|
-
const message = response.message || response.Message || errorCode;
|
|
1539
|
-
response.message = message;
|
|
1540
|
-
delete response.Message;
|
|
1541
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1542
1139
|
};
|
|
1543
1140
|
const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = async (output, context) => {
|
|
1544
1141
|
if (output.statusCode >= 300) {
|
|
@@ -1565,35 +1162,19 @@ const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError =
|
|
|
1565
1162
|
switch (errorCode) {
|
|
1566
1163
|
case "InvalidNextTokenException":
|
|
1567
1164
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1568
|
-
|
|
1569
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1570
|
-
name: errorCode,
|
|
1571
|
-
$metadata: deserializeMetadata(output),
|
|
1572
|
-
};
|
|
1573
|
-
break;
|
|
1165
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1574
1166
|
case "LimitExceededException":
|
|
1575
1167
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1576
|
-
|
|
1577
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1578
|
-
name: errorCode,
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1581
|
-
break;
|
|
1168
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1582
1169
|
default:
|
|
1583
1170
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
...parsedBody,
|
|
1587
|
-
name: `${errorCode}`,
|
|
1588
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1171
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1172
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1589
1173
|
$fault: "client",
|
|
1590
1174
|
$metadata: deserializeMetadata(output),
|
|
1591
|
-
};
|
|
1175
|
+
});
|
|
1176
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1592
1177
|
}
|
|
1593
|
-
const message = response.message || response.Message || errorCode;
|
|
1594
|
-
response.message = message;
|
|
1595
|
-
delete response.Message;
|
|
1596
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1597
1178
|
};
|
|
1598
1179
|
const deserializeAws_json1_1GetSavingsPlansUtilizationCommand = async (output, context) => {
|
|
1599
1180
|
if (output.statusCode >= 300) {
|
|
@@ -1620,35 +1201,19 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = async (outp
|
|
|
1620
1201
|
switch (errorCode) {
|
|
1621
1202
|
case "DataUnavailableException":
|
|
1622
1203
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1623
|
-
|
|
1624
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1625
|
-
name: errorCode,
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
};
|
|
1628
|
-
break;
|
|
1204
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1629
1205
|
case "LimitExceededException":
|
|
1630
1206
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1631
|
-
|
|
1632
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1633
|
-
name: errorCode,
|
|
1634
|
-
$metadata: deserializeMetadata(output),
|
|
1635
|
-
};
|
|
1636
|
-
break;
|
|
1207
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1637
1208
|
default:
|
|
1638
1209
|
const parsedBody = parsedOutput.body;
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
...parsedBody,
|
|
1642
|
-
name: `${errorCode}`,
|
|
1643
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1210
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1211
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1644
1212
|
$fault: "client",
|
|
1645
1213
|
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1214
|
+
});
|
|
1215
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1647
1216
|
}
|
|
1648
|
-
const message = response.message || response.Message || errorCode;
|
|
1649
|
-
response.message = message;
|
|
1650
|
-
delete response.Message;
|
|
1651
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1652
1217
|
};
|
|
1653
1218
|
const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = async (output, context) => {
|
|
1654
1219
|
if (output.statusCode >= 300) {
|
|
@@ -1675,43 +1240,22 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = asyn
|
|
|
1675
1240
|
switch (errorCode) {
|
|
1676
1241
|
case "DataUnavailableException":
|
|
1677
1242
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1678
|
-
|
|
1679
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1680
|
-
name: errorCode,
|
|
1681
|
-
$metadata: deserializeMetadata(output),
|
|
1682
|
-
};
|
|
1683
|
-
break;
|
|
1243
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1684
1244
|
case "InvalidNextTokenException":
|
|
1685
1245
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1686
|
-
|
|
1687
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1688
|
-
name: errorCode,
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
};
|
|
1691
|
-
break;
|
|
1246
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1692
1247
|
case "LimitExceededException":
|
|
1693
1248
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1694
|
-
|
|
1695
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1696
|
-
name: errorCode,
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
};
|
|
1699
|
-
break;
|
|
1249
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1700
1250
|
default:
|
|
1701
1251
|
const parsedBody = parsedOutput.body;
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
...parsedBody,
|
|
1705
|
-
name: `${errorCode}`,
|
|
1706
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1252
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1253
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1707
1254
|
$fault: "client",
|
|
1708
1255
|
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1256
|
+
});
|
|
1257
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1710
1258
|
}
|
|
1711
|
-
const message = response.message || response.Message || errorCode;
|
|
1712
|
-
response.message = message;
|
|
1713
|
-
delete response.Message;
|
|
1714
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1715
1259
|
};
|
|
1716
1260
|
const deserializeAws_json1_1GetTagsCommand = async (output, context) => {
|
|
1717
1261
|
if (output.statusCode >= 300) {
|
|
@@ -1738,59 +1282,28 @@ const deserializeAws_json1_1GetTagsCommandError = async (output, context) => {
|
|
|
1738
1282
|
switch (errorCode) {
|
|
1739
1283
|
case "BillExpirationException":
|
|
1740
1284
|
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
1741
|
-
|
|
1742
|
-
...(await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)),
|
|
1743
|
-
name: errorCode,
|
|
1744
|
-
$metadata: deserializeMetadata(output),
|
|
1745
|
-
};
|
|
1746
|
-
break;
|
|
1285
|
+
throw await deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context);
|
|
1747
1286
|
case "DataUnavailableException":
|
|
1748
1287
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1749
|
-
|
|
1750
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1751
|
-
name: errorCode,
|
|
1752
|
-
$metadata: deserializeMetadata(output),
|
|
1753
|
-
};
|
|
1754
|
-
break;
|
|
1288
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1755
1289
|
case "InvalidNextTokenException":
|
|
1756
1290
|
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1757
|
-
|
|
1758
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1759
|
-
name: errorCode,
|
|
1760
|
-
$metadata: deserializeMetadata(output),
|
|
1761
|
-
};
|
|
1762
|
-
break;
|
|
1291
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1763
1292
|
case "LimitExceededException":
|
|
1764
1293
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1765
|
-
|
|
1766
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1767
|
-
name: errorCode,
|
|
1768
|
-
$metadata: deserializeMetadata(output),
|
|
1769
|
-
};
|
|
1770
|
-
break;
|
|
1294
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1771
1295
|
case "RequestChangedException":
|
|
1772
1296
|
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
1773
|
-
|
|
1774
|
-
...(await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)),
|
|
1775
|
-
name: errorCode,
|
|
1776
|
-
$metadata: deserializeMetadata(output),
|
|
1777
|
-
};
|
|
1778
|
-
break;
|
|
1297
|
+
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
1779
1298
|
default:
|
|
1780
1299
|
const parsedBody = parsedOutput.body;
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
...parsedBody,
|
|
1784
|
-
name: `${errorCode}`,
|
|
1785
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1300
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1301
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1786
1302
|
$fault: "client",
|
|
1787
1303
|
$metadata: deserializeMetadata(output),
|
|
1788
|
-
};
|
|
1304
|
+
});
|
|
1305
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1789
1306
|
}
|
|
1790
|
-
const message = response.message || response.Message || errorCode;
|
|
1791
|
-
response.message = message;
|
|
1792
|
-
delete response.Message;
|
|
1793
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1794
1307
|
};
|
|
1795
1308
|
const deserializeAws_json1_1GetUsageForecastCommand = async (output, context) => {
|
|
1796
1309
|
if (output.statusCode >= 300) {
|
|
@@ -1817,43 +1330,22 @@ const deserializeAws_json1_1GetUsageForecastCommandError = async (output, contex
|
|
|
1817
1330
|
switch (errorCode) {
|
|
1818
1331
|
case "DataUnavailableException":
|
|
1819
1332
|
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1820
|
-
|
|
1821
|
-
...(await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)),
|
|
1822
|
-
name: errorCode,
|
|
1823
|
-
$metadata: deserializeMetadata(output),
|
|
1824
|
-
};
|
|
1825
|
-
break;
|
|
1333
|
+
throw await deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context);
|
|
1826
1334
|
case "LimitExceededException":
|
|
1827
1335
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1828
|
-
|
|
1829
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1830
|
-
name: errorCode,
|
|
1831
|
-
$metadata: deserializeMetadata(output),
|
|
1832
|
-
};
|
|
1833
|
-
break;
|
|
1336
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1834
1337
|
case "UnresolvableUsageUnitException":
|
|
1835
1338
|
case "com.amazonaws.costexplorer#UnresolvableUsageUnitException":
|
|
1836
|
-
|
|
1837
|
-
...(await deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse(parsedOutput, context)),
|
|
1838
|
-
name: errorCode,
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
};
|
|
1841
|
-
break;
|
|
1339
|
+
throw await deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse(parsedOutput, context);
|
|
1842
1340
|
default:
|
|
1843
1341
|
const parsedBody = parsedOutput.body;
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
...parsedBody,
|
|
1847
|
-
name: `${errorCode}`,
|
|
1848
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1342
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1343
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1849
1344
|
$fault: "client",
|
|
1850
1345
|
$metadata: deserializeMetadata(output),
|
|
1851
|
-
};
|
|
1346
|
+
});
|
|
1347
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1852
1348
|
}
|
|
1853
|
-
const message = response.message || response.Message || errorCode;
|
|
1854
|
-
response.message = message;
|
|
1855
|
-
delete response.Message;
|
|
1856
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1857
1349
|
};
|
|
1858
1350
|
const deserializeAws_json1_1ListCostCategoryDefinitionsCommand = async (output, context) => {
|
|
1859
1351
|
if (output.statusCode >= 300) {
|
|
@@ -1880,27 +1372,16 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = async (out
|
|
|
1880
1372
|
switch (errorCode) {
|
|
1881
1373
|
case "LimitExceededException":
|
|
1882
1374
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1883
|
-
|
|
1884
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1885
|
-
name: errorCode,
|
|
1886
|
-
$metadata: deserializeMetadata(output),
|
|
1887
|
-
};
|
|
1888
|
-
break;
|
|
1375
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1889
1376
|
default:
|
|
1890
1377
|
const parsedBody = parsedOutput.body;
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
...parsedBody,
|
|
1894
|
-
name: `${errorCode}`,
|
|
1895
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1378
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1379
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1896
1380
|
$fault: "client",
|
|
1897
1381
|
$metadata: deserializeMetadata(output),
|
|
1898
|
-
};
|
|
1382
|
+
});
|
|
1383
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1899
1384
|
}
|
|
1900
|
-
const message = response.message || response.Message || errorCode;
|
|
1901
|
-
response.message = message;
|
|
1902
|
-
delete response.Message;
|
|
1903
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1904
1385
|
};
|
|
1905
1386
|
const deserializeAws_json1_1ProvideAnomalyFeedbackCommand = async (output, context) => {
|
|
1906
1387
|
if (output.statusCode >= 300) {
|
|
@@ -1927,27 +1408,16 @@ const deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = async (output,
|
|
|
1927
1408
|
switch (errorCode) {
|
|
1928
1409
|
case "LimitExceededException":
|
|
1929
1410
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1930
|
-
|
|
1931
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1932
|
-
name: errorCode,
|
|
1933
|
-
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
1935
|
-
break;
|
|
1411
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1936
1412
|
default:
|
|
1937
1413
|
const parsedBody = parsedOutput.body;
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
...parsedBody,
|
|
1941
|
-
name: `${errorCode}`,
|
|
1942
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1414
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1415
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1943
1416
|
$fault: "client",
|
|
1944
1417
|
$metadata: deserializeMetadata(output),
|
|
1945
|
-
};
|
|
1418
|
+
});
|
|
1419
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1946
1420
|
}
|
|
1947
|
-
const message = response.message || response.Message || errorCode;
|
|
1948
|
-
response.message = message;
|
|
1949
|
-
delete response.Message;
|
|
1950
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1951
1421
|
};
|
|
1952
1422
|
const deserializeAws_json1_1UpdateAnomalyMonitorCommand = async (output, context) => {
|
|
1953
1423
|
if (output.statusCode >= 300) {
|
|
@@ -1974,35 +1444,19 @@ const deserializeAws_json1_1UpdateAnomalyMonitorCommandError = async (output, co
|
|
|
1974
1444
|
switch (errorCode) {
|
|
1975
1445
|
case "LimitExceededException":
|
|
1976
1446
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1977
|
-
|
|
1978
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1979
|
-
name: errorCode,
|
|
1980
|
-
$metadata: deserializeMetadata(output),
|
|
1981
|
-
};
|
|
1982
|
-
break;
|
|
1447
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1983
1448
|
case "UnknownMonitorException":
|
|
1984
1449
|
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
1985
|
-
|
|
1986
|
-
...(await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)),
|
|
1987
|
-
name: errorCode,
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
};
|
|
1990
|
-
break;
|
|
1450
|
+
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
1991
1451
|
default:
|
|
1992
1452
|
const parsedBody = parsedOutput.body;
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
...parsedBody,
|
|
1996
|
-
name: `${errorCode}`,
|
|
1997
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1453
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1454
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1998
1455
|
$fault: "client",
|
|
1999
1456
|
$metadata: deserializeMetadata(output),
|
|
2000
|
-
};
|
|
1457
|
+
});
|
|
1458
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2001
1459
|
}
|
|
2002
|
-
const message = response.message || response.Message || errorCode;
|
|
2003
|
-
response.message = message;
|
|
2004
|
-
delete response.Message;
|
|
2005
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2006
1460
|
};
|
|
2007
1461
|
const deserializeAws_json1_1UpdateAnomalySubscriptionCommand = async (output, context) => {
|
|
2008
1462
|
if (output.statusCode >= 300) {
|
|
@@ -2029,43 +1483,22 @@ const deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = async (outpu
|
|
|
2029
1483
|
switch (errorCode) {
|
|
2030
1484
|
case "LimitExceededException":
|
|
2031
1485
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
2032
|
-
|
|
2033
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2034
|
-
name: errorCode,
|
|
2035
|
-
$metadata: deserializeMetadata(output),
|
|
2036
|
-
};
|
|
2037
|
-
break;
|
|
1486
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2038
1487
|
case "UnknownMonitorException":
|
|
2039
1488
|
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
2040
|
-
|
|
2041
|
-
...(await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)),
|
|
2042
|
-
name: errorCode,
|
|
2043
|
-
$metadata: deserializeMetadata(output),
|
|
2044
|
-
};
|
|
2045
|
-
break;
|
|
1489
|
+
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
2046
1490
|
case "UnknownSubscriptionException":
|
|
2047
1491
|
case "com.amazonaws.costexplorer#UnknownSubscriptionException":
|
|
2048
|
-
|
|
2049
|
-
...(await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context)),
|
|
2050
|
-
name: errorCode,
|
|
2051
|
-
$metadata: deserializeMetadata(output),
|
|
2052
|
-
};
|
|
2053
|
-
break;
|
|
1492
|
+
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
2054
1493
|
default:
|
|
2055
1494
|
const parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
...parsedBody,
|
|
2059
|
-
name: `${errorCode}`,
|
|
2060
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1495
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1496
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2061
1497
|
$fault: "client",
|
|
2062
1498
|
$metadata: deserializeMetadata(output),
|
|
2063
|
-
};
|
|
1499
|
+
});
|
|
1500
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2064
1501
|
}
|
|
2065
|
-
const message = response.message || response.Message || errorCode;
|
|
2066
|
-
response.message = message;
|
|
2067
|
-
delete response.Message;
|
|
2068
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2069
1502
|
};
|
|
2070
1503
|
const deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = async (output, context) => {
|
|
2071
1504
|
if (output.statusCode >= 300) {
|
|
@@ -2092,153 +1525,112 @@ const deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = async (ou
|
|
|
2092
1525
|
switch (errorCode) {
|
|
2093
1526
|
case "LimitExceededException":
|
|
2094
1527
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
2095
|
-
|
|
2096
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2097
|
-
name: errorCode,
|
|
2098
|
-
$metadata: deserializeMetadata(output),
|
|
2099
|
-
};
|
|
2100
|
-
break;
|
|
1528
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2101
1529
|
case "ResourceNotFoundException":
|
|
2102
1530
|
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
2103
|
-
|
|
2104
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2105
|
-
name: errorCode,
|
|
2106
|
-
$metadata: deserializeMetadata(output),
|
|
2107
|
-
};
|
|
2108
|
-
break;
|
|
1531
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2109
1532
|
case "ServiceQuotaExceededException":
|
|
2110
1533
|
case "com.amazonaws.costexplorer#ServiceQuotaExceededException":
|
|
2111
|
-
|
|
2112
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2113
|
-
name: errorCode,
|
|
2114
|
-
$metadata: deserializeMetadata(output),
|
|
2115
|
-
};
|
|
2116
|
-
break;
|
|
1534
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2117
1535
|
default:
|
|
2118
1536
|
const parsedBody = parsedOutput.body;
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
...parsedBody,
|
|
2122
|
-
name: `${errorCode}`,
|
|
2123
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1537
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1538
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2124
1539
|
$fault: "client",
|
|
2125
1540
|
$metadata: deserializeMetadata(output),
|
|
2126
|
-
};
|
|
1541
|
+
});
|
|
1542
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2127
1543
|
}
|
|
2128
|
-
const message = response.message || response.Message || errorCode;
|
|
2129
|
-
response.message = message;
|
|
2130
|
-
delete response.Message;
|
|
2131
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2132
1544
|
};
|
|
2133
1545
|
const deserializeAws_json1_1BillExpirationExceptionResponse = async (parsedOutput, context) => {
|
|
2134
1546
|
const body = parsedOutput.body;
|
|
2135
1547
|
const deserialized = deserializeAws_json1_1BillExpirationException(body, context);
|
|
2136
|
-
const
|
|
2137
|
-
name: "BillExpirationException",
|
|
2138
|
-
$fault: "client",
|
|
1548
|
+
const exception = new models_0_1.BillExpirationException({
|
|
2139
1549
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2140
1550
|
...deserialized,
|
|
2141
|
-
};
|
|
2142
|
-
return
|
|
1551
|
+
});
|
|
1552
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2143
1553
|
};
|
|
2144
1554
|
const deserializeAws_json1_1DataUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
2145
1555
|
const body = parsedOutput.body;
|
|
2146
1556
|
const deserialized = deserializeAws_json1_1DataUnavailableException(body, context);
|
|
2147
|
-
const
|
|
2148
|
-
name: "DataUnavailableException",
|
|
2149
|
-
$fault: "client",
|
|
1557
|
+
const exception = new models_0_1.DataUnavailableException({
|
|
2150
1558
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2151
1559
|
...deserialized,
|
|
2152
|
-
};
|
|
2153
|
-
return
|
|
1560
|
+
});
|
|
1561
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2154
1562
|
};
|
|
2155
1563
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
2156
1564
|
const body = parsedOutput.body;
|
|
2157
1565
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
2158
|
-
const
|
|
2159
|
-
name: "InvalidNextTokenException",
|
|
2160
|
-
$fault: "client",
|
|
1566
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
2161
1567
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2162
1568
|
...deserialized,
|
|
2163
|
-
};
|
|
2164
|
-
return
|
|
1569
|
+
});
|
|
1570
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2165
1571
|
};
|
|
2166
1572
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2167
1573
|
const body = parsedOutput.body;
|
|
2168
1574
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2169
|
-
const
|
|
2170
|
-
name: "LimitExceededException",
|
|
2171
|
-
$fault: "client",
|
|
1575
|
+
const exception = new models_0_1.LimitExceededException({
|
|
2172
1576
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2173
1577
|
...deserialized,
|
|
2174
|
-
};
|
|
2175
|
-
return
|
|
1578
|
+
});
|
|
1579
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2176
1580
|
};
|
|
2177
1581
|
const deserializeAws_json1_1RequestChangedExceptionResponse = async (parsedOutput, context) => {
|
|
2178
1582
|
const body = parsedOutput.body;
|
|
2179
1583
|
const deserialized = deserializeAws_json1_1RequestChangedException(body, context);
|
|
2180
|
-
const
|
|
2181
|
-
name: "RequestChangedException",
|
|
2182
|
-
$fault: "client",
|
|
1584
|
+
const exception = new models_0_1.RequestChangedException({
|
|
2183
1585
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2184
1586
|
...deserialized,
|
|
2185
|
-
};
|
|
2186
|
-
return
|
|
1587
|
+
});
|
|
1588
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2187
1589
|
};
|
|
2188
1590
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2189
1591
|
const body = parsedOutput.body;
|
|
2190
1592
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2191
|
-
const
|
|
2192
|
-
name: "ResourceNotFoundException",
|
|
2193
|
-
$fault: "client",
|
|
1593
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2194
1594
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2195
1595
|
...deserialized,
|
|
2196
|
-
};
|
|
2197
|
-
return
|
|
1596
|
+
});
|
|
1597
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2198
1598
|
};
|
|
2199
1599
|
const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2200
1600
|
const body = parsedOutput.body;
|
|
2201
1601
|
const deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
2202
|
-
const
|
|
2203
|
-
name: "ServiceQuotaExceededException",
|
|
2204
|
-
$fault: "client",
|
|
1602
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2205
1603
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2206
1604
|
...deserialized,
|
|
2207
|
-
};
|
|
2208
|
-
return
|
|
1605
|
+
});
|
|
1606
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2209
1607
|
};
|
|
2210
1608
|
const deserializeAws_json1_1UnknownMonitorExceptionResponse = async (parsedOutput, context) => {
|
|
2211
1609
|
const body = parsedOutput.body;
|
|
2212
1610
|
const deserialized = deserializeAws_json1_1UnknownMonitorException(body, context);
|
|
2213
|
-
const
|
|
2214
|
-
name: "UnknownMonitorException",
|
|
2215
|
-
$fault: "client",
|
|
1611
|
+
const exception = new models_0_1.UnknownMonitorException({
|
|
2216
1612
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2217
1613
|
...deserialized,
|
|
2218
|
-
};
|
|
2219
|
-
return
|
|
1614
|
+
});
|
|
1615
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2220
1616
|
};
|
|
2221
1617
|
const deserializeAws_json1_1UnknownSubscriptionExceptionResponse = async (parsedOutput, context) => {
|
|
2222
1618
|
const body = parsedOutput.body;
|
|
2223
1619
|
const deserialized = deserializeAws_json1_1UnknownSubscriptionException(body, context);
|
|
2224
|
-
const
|
|
2225
|
-
name: "UnknownSubscriptionException",
|
|
2226
|
-
$fault: "client",
|
|
1620
|
+
const exception = new models_0_1.UnknownSubscriptionException({
|
|
2227
1621
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2228
1622
|
...deserialized,
|
|
2229
|
-
};
|
|
2230
|
-
return
|
|
1623
|
+
});
|
|
1624
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2231
1625
|
};
|
|
2232
1626
|
const deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse = async (parsedOutput, context) => {
|
|
2233
1627
|
const body = parsedOutput.body;
|
|
2234
1628
|
const deserialized = deserializeAws_json1_1UnresolvableUsageUnitException(body, context);
|
|
2235
|
-
const
|
|
2236
|
-
name: "UnresolvableUsageUnitException",
|
|
2237
|
-
$fault: "client",
|
|
1629
|
+
const exception = new models_0_1.UnresolvableUsageUnitException({
|
|
2238
1630
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2239
1631
|
...deserialized,
|
|
2240
|
-
};
|
|
2241
|
-
return
|
|
1632
|
+
});
|
|
1633
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2242
1634
|
};
|
|
2243
1635
|
const serializeAws_json1_1AnomalyDateInterval = (input, context) => {
|
|
2244
1636
|
return {
|
|
@@ -2914,7 +2306,7 @@ const serializeAws_json1_1Values = (input, context) => {
|
|
|
2914
2306
|
});
|
|
2915
2307
|
};
|
|
2916
2308
|
const deserializeAws_json1_1Anomalies = (output, context) => {
|
|
2917
|
-
|
|
2309
|
+
const retVal = (output || [])
|
|
2918
2310
|
.filter((e) => e != null)
|
|
2919
2311
|
.map((entry) => {
|
|
2920
2312
|
if (entry === null) {
|
|
@@ -2922,6 +2314,7 @@ const deserializeAws_json1_1Anomalies = (output, context) => {
|
|
|
2922
2314
|
}
|
|
2923
2315
|
return deserializeAws_json1_1Anomaly(entry, context);
|
|
2924
2316
|
});
|
|
2317
|
+
return retVal;
|
|
2925
2318
|
};
|
|
2926
2319
|
const deserializeAws_json1_1Anomaly = (output, context) => {
|
|
2927
2320
|
return {
|
|
@@ -2958,7 +2351,7 @@ const deserializeAws_json1_1AnomalyMonitor = (output, context) => {
|
|
|
2958
2351
|
};
|
|
2959
2352
|
};
|
|
2960
2353
|
const deserializeAws_json1_1AnomalyMonitors = (output, context) => {
|
|
2961
|
-
|
|
2354
|
+
const retVal = (output || [])
|
|
2962
2355
|
.filter((e) => e != null)
|
|
2963
2356
|
.map((entry) => {
|
|
2964
2357
|
if (entry === null) {
|
|
@@ -2966,6 +2359,7 @@ const deserializeAws_json1_1AnomalyMonitors = (output, context) => {
|
|
|
2966
2359
|
}
|
|
2967
2360
|
return deserializeAws_json1_1AnomalyMonitor(entry, context);
|
|
2968
2361
|
});
|
|
2362
|
+
return retVal;
|
|
2969
2363
|
};
|
|
2970
2364
|
const deserializeAws_json1_1AnomalyScore = (output, context) => {
|
|
2971
2365
|
return {
|
|
@@ -2989,7 +2383,7 @@ const deserializeAws_json1_1AnomalySubscription = (output, context) => {
|
|
|
2989
2383
|
};
|
|
2990
2384
|
};
|
|
2991
2385
|
const deserializeAws_json1_1AnomalySubscriptions = (output, context) => {
|
|
2992
|
-
|
|
2386
|
+
const retVal = (output || [])
|
|
2993
2387
|
.filter((e) => e != null)
|
|
2994
2388
|
.map((entry) => {
|
|
2995
2389
|
if (entry === null) {
|
|
@@ -2997,6 +2391,7 @@ const deserializeAws_json1_1AnomalySubscriptions = (output, context) => {
|
|
|
2997
2391
|
}
|
|
2998
2392
|
return deserializeAws_json1_1AnomalySubscription(entry, context);
|
|
2999
2393
|
});
|
|
2394
|
+
return retVal;
|
|
3000
2395
|
};
|
|
3001
2396
|
const deserializeAws_json1_1Attributes = (output, context) => {
|
|
3002
2397
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3040,7 +2435,7 @@ const deserializeAws_json1_1CostCategoryInheritedValueDimension = (output, conte
|
|
|
3040
2435
|
};
|
|
3041
2436
|
};
|
|
3042
2437
|
const deserializeAws_json1_1CostCategoryNamesList = (output, context) => {
|
|
3043
|
-
|
|
2438
|
+
const retVal = (output || [])
|
|
3044
2439
|
.filter((e) => e != null)
|
|
3045
2440
|
.map((entry) => {
|
|
3046
2441
|
if (entry === null) {
|
|
@@ -3048,6 +2443,7 @@ const deserializeAws_json1_1CostCategoryNamesList = (output, context) => {
|
|
|
3048
2443
|
}
|
|
3049
2444
|
return smithy_client_1.expectString(entry);
|
|
3050
2445
|
});
|
|
2446
|
+
return retVal;
|
|
3051
2447
|
};
|
|
3052
2448
|
const deserializeAws_json1_1CostCategoryProcessingStatus = (output, context) => {
|
|
3053
2449
|
return {
|
|
@@ -3056,7 +2452,7 @@ const deserializeAws_json1_1CostCategoryProcessingStatus = (output, context) =>
|
|
|
3056
2452
|
};
|
|
3057
2453
|
};
|
|
3058
2454
|
const deserializeAws_json1_1CostCategoryProcessingStatusList = (output, context) => {
|
|
3059
|
-
|
|
2455
|
+
const retVal = (output || [])
|
|
3060
2456
|
.filter((e) => e != null)
|
|
3061
2457
|
.map((entry) => {
|
|
3062
2458
|
if (entry === null) {
|
|
@@ -3064,6 +2460,7 @@ const deserializeAws_json1_1CostCategoryProcessingStatusList = (output, context)
|
|
|
3064
2460
|
}
|
|
3065
2461
|
return deserializeAws_json1_1CostCategoryProcessingStatus(entry, context);
|
|
3066
2462
|
});
|
|
2463
|
+
return retVal;
|
|
3067
2464
|
};
|
|
3068
2465
|
const deserializeAws_json1_1CostCategoryReference = (output, context) => {
|
|
3069
2466
|
return {
|
|
@@ -3082,7 +2479,7 @@ const deserializeAws_json1_1CostCategoryReference = (output, context) => {
|
|
|
3082
2479
|
};
|
|
3083
2480
|
};
|
|
3084
2481
|
const deserializeAws_json1_1CostCategoryReferencesList = (output, context) => {
|
|
3085
|
-
|
|
2482
|
+
const retVal = (output || [])
|
|
3086
2483
|
.filter((e) => e != null)
|
|
3087
2484
|
.map((entry) => {
|
|
3088
2485
|
if (entry === null) {
|
|
@@ -3090,6 +2487,7 @@ const deserializeAws_json1_1CostCategoryReferencesList = (output, context) => {
|
|
|
3090
2487
|
}
|
|
3091
2488
|
return deserializeAws_json1_1CostCategoryReference(entry, context);
|
|
3092
2489
|
});
|
|
2490
|
+
return retVal;
|
|
3093
2491
|
};
|
|
3094
2492
|
const deserializeAws_json1_1CostCategoryRule = (output, context) => {
|
|
3095
2493
|
return {
|
|
@@ -3104,7 +2502,7 @@ const deserializeAws_json1_1CostCategoryRule = (output, context) => {
|
|
|
3104
2502
|
};
|
|
3105
2503
|
};
|
|
3106
2504
|
const deserializeAws_json1_1CostCategoryRulesList = (output, context) => {
|
|
3107
|
-
|
|
2505
|
+
const retVal = (output || [])
|
|
3108
2506
|
.filter((e) => e != null)
|
|
3109
2507
|
.map((entry) => {
|
|
3110
2508
|
if (entry === null) {
|
|
@@ -3112,6 +2510,7 @@ const deserializeAws_json1_1CostCategoryRulesList = (output, context) => {
|
|
|
3112
2510
|
}
|
|
3113
2511
|
return deserializeAws_json1_1CostCategoryRule(entry, context);
|
|
3114
2512
|
});
|
|
2513
|
+
return retVal;
|
|
3115
2514
|
};
|
|
3116
2515
|
const deserializeAws_json1_1CostCategorySplitChargeRule = (output, context) => {
|
|
3117
2516
|
return {
|
|
@@ -3134,7 +2533,7 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleParameter = (output, cont
|
|
|
3134
2533
|
};
|
|
3135
2534
|
};
|
|
3136
2535
|
const deserializeAws_json1_1CostCategorySplitChargeRuleParametersList = (output, context) => {
|
|
3137
|
-
|
|
2536
|
+
const retVal = (output || [])
|
|
3138
2537
|
.filter((e) => e != null)
|
|
3139
2538
|
.map((entry) => {
|
|
3140
2539
|
if (entry === null) {
|
|
@@ -3142,9 +2541,10 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleParametersList = (output,
|
|
|
3142
2541
|
}
|
|
3143
2542
|
return deserializeAws_json1_1CostCategorySplitChargeRuleParameter(entry, context);
|
|
3144
2543
|
});
|
|
2544
|
+
return retVal;
|
|
3145
2545
|
};
|
|
3146
2546
|
const deserializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList = (output, context) => {
|
|
3147
|
-
|
|
2547
|
+
const retVal = (output || [])
|
|
3148
2548
|
.filter((e) => e != null)
|
|
3149
2549
|
.map((entry) => {
|
|
3150
2550
|
if (entry === null) {
|
|
@@ -3152,9 +2552,10 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList = (ou
|
|
|
3152
2552
|
}
|
|
3153
2553
|
return smithy_client_1.expectString(entry);
|
|
3154
2554
|
});
|
|
2555
|
+
return retVal;
|
|
3155
2556
|
};
|
|
3156
2557
|
const deserializeAws_json1_1CostCategorySplitChargeRulesList = (output, context) => {
|
|
3157
|
-
|
|
2558
|
+
const retVal = (output || [])
|
|
3158
2559
|
.filter((e) => e != null)
|
|
3159
2560
|
.map((entry) => {
|
|
3160
2561
|
if (entry === null) {
|
|
@@ -3162,9 +2563,10 @@ const deserializeAws_json1_1CostCategorySplitChargeRulesList = (output, context)
|
|
|
3162
2563
|
}
|
|
3163
2564
|
return deserializeAws_json1_1CostCategorySplitChargeRule(entry, context);
|
|
3164
2565
|
});
|
|
2566
|
+
return retVal;
|
|
3165
2567
|
};
|
|
3166
2568
|
const deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList = (output, context) => {
|
|
3167
|
-
|
|
2569
|
+
const retVal = (output || [])
|
|
3168
2570
|
.filter((e) => e != null)
|
|
3169
2571
|
.map((entry) => {
|
|
3170
2572
|
if (entry === null) {
|
|
@@ -3172,6 +2574,7 @@ const deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList = (output, co
|
|
|
3172
2574
|
}
|
|
3173
2575
|
return smithy_client_1.expectString(entry);
|
|
3174
2576
|
});
|
|
2577
|
+
return retVal;
|
|
3175
2578
|
};
|
|
3176
2579
|
const deserializeAws_json1_1CostCategoryValues = (output, context) => {
|
|
3177
2580
|
return {
|
|
@@ -3185,7 +2588,7 @@ const deserializeAws_json1_1CostCategoryValues = (output, context) => {
|
|
|
3185
2588
|
};
|
|
3186
2589
|
};
|
|
3187
2590
|
const deserializeAws_json1_1CostCategoryValuesList = (output, context) => {
|
|
3188
|
-
|
|
2591
|
+
const retVal = (output || [])
|
|
3189
2592
|
.filter((e) => e != null)
|
|
3190
2593
|
.map((entry) => {
|
|
3191
2594
|
if (entry === null) {
|
|
@@ -3193,6 +2596,7 @@ const deserializeAws_json1_1CostCategoryValuesList = (output, context) => {
|
|
|
3193
2596
|
}
|
|
3194
2597
|
return smithy_client_1.expectString(entry);
|
|
3195
2598
|
});
|
|
2599
|
+
return retVal;
|
|
3196
2600
|
};
|
|
3197
2601
|
const deserializeAws_json1_1Coverage = (output, context) => {
|
|
3198
2602
|
return {
|
|
@@ -3242,7 +2646,7 @@ const deserializeAws_json1_1CoverageNormalizedUnits = (output, context) => {
|
|
|
3242
2646
|
};
|
|
3243
2647
|
};
|
|
3244
2648
|
const deserializeAws_json1_1CoveragesByTime = (output, context) => {
|
|
3245
|
-
|
|
2649
|
+
const retVal = (output || [])
|
|
3246
2650
|
.filter((e) => e != null)
|
|
3247
2651
|
.map((entry) => {
|
|
3248
2652
|
if (entry === null) {
|
|
@@ -3250,6 +2654,7 @@ const deserializeAws_json1_1CoveragesByTime = (output, context) => {
|
|
|
3250
2654
|
}
|
|
3251
2655
|
return deserializeAws_json1_1CoverageByTime(entry, context);
|
|
3252
2656
|
});
|
|
2657
|
+
return retVal;
|
|
3253
2658
|
};
|
|
3254
2659
|
const deserializeAws_json1_1CreateAnomalyMonitorResponse = (output, context) => {
|
|
3255
2660
|
return {
|
|
@@ -3338,7 +2743,7 @@ const deserializeAws_json1_1DimensionValuesWithAttributes = (output, context) =>
|
|
|
3338
2743
|
};
|
|
3339
2744
|
};
|
|
3340
2745
|
const deserializeAws_json1_1DimensionValuesWithAttributesList = (output, context) => {
|
|
3341
|
-
|
|
2746
|
+
const retVal = (output || [])
|
|
3342
2747
|
.filter((e) => e != null)
|
|
3343
2748
|
.map((entry) => {
|
|
3344
2749
|
if (entry === null) {
|
|
@@ -3346,6 +2751,7 @@ const deserializeAws_json1_1DimensionValuesWithAttributesList = (output, context
|
|
|
3346
2751
|
}
|
|
3347
2752
|
return deserializeAws_json1_1DimensionValuesWithAttributes(entry, context);
|
|
3348
2753
|
});
|
|
2754
|
+
return retVal;
|
|
3349
2755
|
};
|
|
3350
2756
|
const deserializeAws_json1_1DiskResourceUtilization = (output, context) => {
|
|
3351
2757
|
return {
|
|
@@ -3449,7 +2855,7 @@ const deserializeAws_json1_1Expression = (output, context) => {
|
|
|
3449
2855
|
};
|
|
3450
2856
|
};
|
|
3451
2857
|
const deserializeAws_json1_1Expressions = (output, context) => {
|
|
3452
|
-
|
|
2858
|
+
const retVal = (output || [])
|
|
3453
2859
|
.filter((e) => e != null)
|
|
3454
2860
|
.map((entry) => {
|
|
3455
2861
|
if (entry === null) {
|
|
@@ -3457,9 +2863,10 @@ const deserializeAws_json1_1Expressions = (output, context) => {
|
|
|
3457
2863
|
}
|
|
3458
2864
|
return deserializeAws_json1_1Expression(entry, context);
|
|
3459
2865
|
});
|
|
2866
|
+
return retVal;
|
|
3460
2867
|
};
|
|
3461
2868
|
const deserializeAws_json1_1FindingReasonCodes = (output, context) => {
|
|
3462
|
-
|
|
2869
|
+
const retVal = (output || [])
|
|
3463
2870
|
.filter((e) => e != null)
|
|
3464
2871
|
.map((entry) => {
|
|
3465
2872
|
if (entry === null) {
|
|
@@ -3467,6 +2874,7 @@ const deserializeAws_json1_1FindingReasonCodes = (output, context) => {
|
|
|
3467
2874
|
}
|
|
3468
2875
|
return smithy_client_1.expectString(entry);
|
|
3469
2876
|
});
|
|
2877
|
+
return retVal;
|
|
3470
2878
|
};
|
|
3471
2879
|
const deserializeAws_json1_1ForecastResult = (output, context) => {
|
|
3472
2880
|
return {
|
|
@@ -3479,7 +2887,7 @@ const deserializeAws_json1_1ForecastResult = (output, context) => {
|
|
|
3479
2887
|
};
|
|
3480
2888
|
};
|
|
3481
2889
|
const deserializeAws_json1_1ForecastResultsByTime = (output, context) => {
|
|
3482
|
-
|
|
2890
|
+
const retVal = (output || [])
|
|
3483
2891
|
.filter((e) => e != null)
|
|
3484
2892
|
.map((entry) => {
|
|
3485
2893
|
if (entry === null) {
|
|
@@ -3487,6 +2895,7 @@ const deserializeAws_json1_1ForecastResultsByTime = (output, context) => {
|
|
|
3487
2895
|
}
|
|
3488
2896
|
return deserializeAws_json1_1ForecastResult(entry, context);
|
|
3489
2897
|
});
|
|
2898
|
+
return retVal;
|
|
3490
2899
|
};
|
|
3491
2900
|
const deserializeAws_json1_1GetAnomaliesResponse = (output, context) => {
|
|
3492
2901
|
return {
|
|
@@ -3701,7 +3110,7 @@ const deserializeAws_json1_1GroupDefinition = (output, context) => {
|
|
|
3701
3110
|
};
|
|
3702
3111
|
};
|
|
3703
3112
|
const deserializeAws_json1_1GroupDefinitions = (output, context) => {
|
|
3704
|
-
|
|
3113
|
+
const retVal = (output || [])
|
|
3705
3114
|
.filter((e) => e != null)
|
|
3706
3115
|
.map((entry) => {
|
|
3707
3116
|
if (entry === null) {
|
|
@@ -3709,9 +3118,10 @@ const deserializeAws_json1_1GroupDefinitions = (output, context) => {
|
|
|
3709
3118
|
}
|
|
3710
3119
|
return deserializeAws_json1_1GroupDefinition(entry, context);
|
|
3711
3120
|
});
|
|
3121
|
+
return retVal;
|
|
3712
3122
|
};
|
|
3713
3123
|
const deserializeAws_json1_1Groups = (output, context) => {
|
|
3714
|
-
|
|
3124
|
+
const retVal = (output || [])
|
|
3715
3125
|
.filter((e) => e != null)
|
|
3716
3126
|
.map((entry) => {
|
|
3717
3127
|
if (entry === null) {
|
|
@@ -3719,6 +3129,7 @@ const deserializeAws_json1_1Groups = (output, context) => {
|
|
|
3719
3129
|
}
|
|
3720
3130
|
return deserializeAws_json1_1Group(entry, context);
|
|
3721
3131
|
});
|
|
3132
|
+
return retVal;
|
|
3722
3133
|
};
|
|
3723
3134
|
const deserializeAws_json1_1Impact = (output, context) => {
|
|
3724
3135
|
return {
|
|
@@ -3751,7 +3162,7 @@ const deserializeAws_json1_1InvalidNextTokenException = (output, context) => {
|
|
|
3751
3162
|
};
|
|
3752
3163
|
};
|
|
3753
3164
|
const deserializeAws_json1_1Keys = (output, context) => {
|
|
3754
|
-
|
|
3165
|
+
const retVal = (output || [])
|
|
3755
3166
|
.filter((e) => e != null)
|
|
3756
3167
|
.map((entry) => {
|
|
3757
3168
|
if (entry === null) {
|
|
@@ -3759,6 +3170,7 @@ const deserializeAws_json1_1Keys = (output, context) => {
|
|
|
3759
3170
|
}
|
|
3760
3171
|
return smithy_client_1.expectString(entry);
|
|
3761
3172
|
});
|
|
3173
|
+
return retVal;
|
|
3762
3174
|
};
|
|
3763
3175
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
3764
3176
|
return {
|
|
@@ -3774,7 +3186,7 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsResponse = (output, conte
|
|
|
3774
3186
|
};
|
|
3775
3187
|
};
|
|
3776
3188
|
const deserializeAws_json1_1MatchOptions = (output, context) => {
|
|
3777
|
-
|
|
3189
|
+
const retVal = (output || [])
|
|
3778
3190
|
.filter((e) => e != null)
|
|
3779
3191
|
.map((entry) => {
|
|
3780
3192
|
if (entry === null) {
|
|
@@ -3782,6 +3194,7 @@ const deserializeAws_json1_1MatchOptions = (output, context) => {
|
|
|
3782
3194
|
}
|
|
3783
3195
|
return smithy_client_1.expectString(entry);
|
|
3784
3196
|
});
|
|
3197
|
+
return retVal;
|
|
3785
3198
|
};
|
|
3786
3199
|
const deserializeAws_json1_1Metrics = (output, context) => {
|
|
3787
3200
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3808,7 +3221,7 @@ const deserializeAws_json1_1ModifyRecommendationDetail = (output, context) => {
|
|
|
3808
3221
|
};
|
|
3809
3222
|
};
|
|
3810
3223
|
const deserializeAws_json1_1MonitorArnList = (output, context) => {
|
|
3811
|
-
|
|
3224
|
+
const retVal = (output || [])
|
|
3812
3225
|
.filter((e) => e != null)
|
|
3813
3226
|
.map((entry) => {
|
|
3814
3227
|
if (entry === null) {
|
|
@@ -3816,6 +3229,7 @@ const deserializeAws_json1_1MonitorArnList = (output, context) => {
|
|
|
3816
3229
|
}
|
|
3817
3230
|
return smithy_client_1.expectString(entry);
|
|
3818
3231
|
});
|
|
3232
|
+
return retVal;
|
|
3819
3233
|
};
|
|
3820
3234
|
const deserializeAws_json1_1NetworkResourceUtilization = (output, context) => {
|
|
3821
3235
|
return {
|
|
@@ -3826,7 +3240,7 @@ const deserializeAws_json1_1NetworkResourceUtilization = (output, context) => {
|
|
|
3826
3240
|
};
|
|
3827
3241
|
};
|
|
3828
3242
|
const deserializeAws_json1_1PlatformDifferences = (output, context) => {
|
|
3829
|
-
|
|
3243
|
+
const retVal = (output || [])
|
|
3830
3244
|
.filter((e) => e != null)
|
|
3831
3245
|
.map((entry) => {
|
|
3832
3246
|
if (entry === null) {
|
|
@@ -3834,6 +3248,7 @@ const deserializeAws_json1_1PlatformDifferences = (output, context) => {
|
|
|
3834
3248
|
}
|
|
3835
3249
|
return smithy_client_1.expectString(entry);
|
|
3836
3250
|
});
|
|
3251
|
+
return retVal;
|
|
3837
3252
|
};
|
|
3838
3253
|
const deserializeAws_json1_1ProvideAnomalyFeedbackResponse = (output, context) => {
|
|
3839
3254
|
return {
|
|
@@ -3899,7 +3314,7 @@ const deserializeAws_json1_1ReservationCoverageGroup = (output, context) => {
|
|
|
3899
3314
|
};
|
|
3900
3315
|
};
|
|
3901
3316
|
const deserializeAws_json1_1ReservationCoverageGroups = (output, context) => {
|
|
3902
|
-
|
|
3317
|
+
const retVal = (output || [])
|
|
3903
3318
|
.filter((e) => e != null)
|
|
3904
3319
|
.map((entry) => {
|
|
3905
3320
|
if (entry === null) {
|
|
@@ -3907,6 +3322,7 @@ const deserializeAws_json1_1ReservationCoverageGroups = (output, context) => {
|
|
|
3907
3322
|
}
|
|
3908
3323
|
return deserializeAws_json1_1ReservationCoverageGroup(entry, context);
|
|
3909
3324
|
});
|
|
3325
|
+
return retVal;
|
|
3910
3326
|
};
|
|
3911
3327
|
const deserializeAws_json1_1ReservationPurchaseRecommendation = (output, context) => {
|
|
3912
3328
|
return {
|
|
@@ -3951,7 +3367,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendationDetail = (output, c
|
|
|
3951
3367
|
};
|
|
3952
3368
|
};
|
|
3953
3369
|
const deserializeAws_json1_1ReservationPurchaseRecommendationDetails = (output, context) => {
|
|
3954
|
-
|
|
3370
|
+
const retVal = (output || [])
|
|
3955
3371
|
.filter((e) => e != null)
|
|
3956
3372
|
.map((entry) => {
|
|
3957
3373
|
if (entry === null) {
|
|
@@ -3959,6 +3375,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendationDetails = (output,
|
|
|
3959
3375
|
}
|
|
3960
3376
|
return deserializeAws_json1_1ReservationPurchaseRecommendationDetail(entry, context);
|
|
3961
3377
|
});
|
|
3378
|
+
return retVal;
|
|
3962
3379
|
};
|
|
3963
3380
|
const deserializeAws_json1_1ReservationPurchaseRecommendationMetadata = (output, context) => {
|
|
3964
3381
|
return {
|
|
@@ -3967,7 +3384,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendationMetadata = (output,
|
|
|
3967
3384
|
};
|
|
3968
3385
|
};
|
|
3969
3386
|
const deserializeAws_json1_1ReservationPurchaseRecommendations = (output, context) => {
|
|
3970
|
-
|
|
3387
|
+
const retVal = (output || [])
|
|
3971
3388
|
.filter((e) => e != null)
|
|
3972
3389
|
.map((entry) => {
|
|
3973
3390
|
if (entry === null) {
|
|
@@ -3975,6 +3392,7 @@ const deserializeAws_json1_1ReservationPurchaseRecommendations = (output, contex
|
|
|
3975
3392
|
}
|
|
3976
3393
|
return deserializeAws_json1_1ReservationPurchaseRecommendation(entry, context);
|
|
3977
3394
|
});
|
|
3395
|
+
return retVal;
|
|
3978
3396
|
};
|
|
3979
3397
|
const deserializeAws_json1_1ReservationPurchaseRecommendationSummary = (output, context) => {
|
|
3980
3398
|
return {
|
|
@@ -3996,7 +3414,7 @@ const deserializeAws_json1_1ReservationUtilizationGroup = (output, context) => {
|
|
|
3996
3414
|
};
|
|
3997
3415
|
};
|
|
3998
3416
|
const deserializeAws_json1_1ReservationUtilizationGroups = (output, context) => {
|
|
3999
|
-
|
|
3417
|
+
const retVal = (output || [])
|
|
4000
3418
|
.filter((e) => e != null)
|
|
4001
3419
|
.map((entry) => {
|
|
4002
3420
|
if (entry === null) {
|
|
@@ -4004,6 +3422,7 @@ const deserializeAws_json1_1ReservationUtilizationGroups = (output, context) =>
|
|
|
4004
3422
|
}
|
|
4005
3423
|
return deserializeAws_json1_1ReservationUtilizationGroup(entry, context);
|
|
4006
3424
|
});
|
|
3425
|
+
return retVal;
|
|
4007
3426
|
};
|
|
4008
3427
|
const deserializeAws_json1_1ResourceDetails = (output, context) => {
|
|
4009
3428
|
return {
|
|
@@ -4039,7 +3458,7 @@ const deserializeAws_json1_1ResultByTime = (output, context) => {
|
|
|
4039
3458
|
};
|
|
4040
3459
|
};
|
|
4041
3460
|
const deserializeAws_json1_1ResultsByTime = (output, context) => {
|
|
4042
|
-
|
|
3461
|
+
const retVal = (output || [])
|
|
4043
3462
|
.filter((e) => e != null)
|
|
4044
3463
|
.map((entry) => {
|
|
4045
3464
|
if (entry === null) {
|
|
@@ -4047,6 +3466,7 @@ const deserializeAws_json1_1ResultsByTime = (output, context) => {
|
|
|
4047
3466
|
}
|
|
4048
3467
|
return deserializeAws_json1_1ResultByTime(entry, context);
|
|
4049
3468
|
});
|
|
3469
|
+
return retVal;
|
|
4050
3470
|
};
|
|
4051
3471
|
const deserializeAws_json1_1RightsizingRecommendation = (output, context) => {
|
|
4052
3472
|
return {
|
|
@@ -4073,7 +3493,7 @@ const deserializeAws_json1_1RightsizingRecommendationConfiguration = (output, co
|
|
|
4073
3493
|
};
|
|
4074
3494
|
};
|
|
4075
3495
|
const deserializeAws_json1_1RightsizingRecommendationList = (output, context) => {
|
|
4076
|
-
|
|
3496
|
+
const retVal = (output || [])
|
|
4077
3497
|
.filter((e) => e != null)
|
|
4078
3498
|
.map((entry) => {
|
|
4079
3499
|
if (entry === null) {
|
|
@@ -4081,6 +3501,7 @@ const deserializeAws_json1_1RightsizingRecommendationList = (output, context) =>
|
|
|
4081
3501
|
}
|
|
4082
3502
|
return deserializeAws_json1_1RightsizingRecommendation(entry, context);
|
|
4083
3503
|
});
|
|
3504
|
+
return retVal;
|
|
4084
3505
|
};
|
|
4085
3506
|
const deserializeAws_json1_1RightsizingRecommendationMetadata = (output, context) => {
|
|
4086
3507
|
return {
|
|
@@ -4107,7 +3528,7 @@ const deserializeAws_json1_1RootCause = (output, context) => {
|
|
|
4107
3528
|
};
|
|
4108
3529
|
};
|
|
4109
3530
|
const deserializeAws_json1_1RootCauses = (output, context) => {
|
|
4110
|
-
|
|
3531
|
+
const retVal = (output || [])
|
|
4111
3532
|
.filter((e) => e != null)
|
|
4112
3533
|
.map((entry) => {
|
|
4113
3534
|
if (entry === null) {
|
|
@@ -4115,6 +3536,7 @@ const deserializeAws_json1_1RootCauses = (output, context) => {
|
|
|
4115
3536
|
}
|
|
4116
3537
|
return deserializeAws_json1_1RootCause(entry, context);
|
|
4117
3538
|
});
|
|
3539
|
+
return retVal;
|
|
4118
3540
|
};
|
|
4119
3541
|
const deserializeAws_json1_1SavingsPlansAmortizedCommitment = (output, context) => {
|
|
4120
3542
|
return {
|
|
@@ -4145,7 +3567,7 @@ const deserializeAws_json1_1SavingsPlansCoverageData = (output, context) => {
|
|
|
4145
3567
|
};
|
|
4146
3568
|
};
|
|
4147
3569
|
const deserializeAws_json1_1SavingsPlansCoverages = (output, context) => {
|
|
4148
|
-
|
|
3570
|
+
const retVal = (output || [])
|
|
4149
3571
|
.filter((e) => e != null)
|
|
4150
3572
|
.map((entry) => {
|
|
4151
3573
|
if (entry === null) {
|
|
@@ -4153,6 +3575,7 @@ const deserializeAws_json1_1SavingsPlansCoverages = (output, context) => {
|
|
|
4153
3575
|
}
|
|
4154
3576
|
return deserializeAws_json1_1SavingsPlansCoverage(entry, context);
|
|
4155
3577
|
});
|
|
3578
|
+
return retVal;
|
|
4156
3579
|
};
|
|
4157
3580
|
const deserializeAws_json1_1SavingsPlansDetails = (output, context) => {
|
|
4158
3581
|
return {
|
|
@@ -4201,7 +3624,7 @@ const deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetail = (output,
|
|
|
4201
3624
|
};
|
|
4202
3625
|
};
|
|
4203
3626
|
const deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetailList = (output, context) => {
|
|
4204
|
-
|
|
3627
|
+
const retVal = (output || [])
|
|
4205
3628
|
.filter((e) => e != null)
|
|
4206
3629
|
.map((entry) => {
|
|
4207
3630
|
if (entry === null) {
|
|
@@ -4209,6 +3632,7 @@ const deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetailList = (outp
|
|
|
4209
3632
|
}
|
|
4210
3633
|
return deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetail(entry, context);
|
|
4211
3634
|
});
|
|
3635
|
+
return retVal;
|
|
4212
3636
|
};
|
|
4213
3637
|
const deserializeAws_json1_1SavingsPlansPurchaseRecommendationMetadata = (output, context) => {
|
|
4214
3638
|
return {
|
|
@@ -4293,7 +3717,7 @@ const deserializeAws_json1_1SavingsPlansUtilizationDetail = (output, context) =>
|
|
|
4293
3717
|
};
|
|
4294
3718
|
};
|
|
4295
3719
|
const deserializeAws_json1_1SavingsPlansUtilizationDetails = (output, context) => {
|
|
4296
|
-
|
|
3720
|
+
const retVal = (output || [])
|
|
4297
3721
|
.filter((e) => e != null)
|
|
4298
3722
|
.map((entry) => {
|
|
4299
3723
|
if (entry === null) {
|
|
@@ -4301,9 +3725,10 @@ const deserializeAws_json1_1SavingsPlansUtilizationDetails = (output, context) =
|
|
|
4301
3725
|
}
|
|
4302
3726
|
return deserializeAws_json1_1SavingsPlansUtilizationDetail(entry, context);
|
|
4303
3727
|
});
|
|
3728
|
+
return retVal;
|
|
4304
3729
|
};
|
|
4305
3730
|
const deserializeAws_json1_1SavingsPlansUtilizationsByTime = (output, context) => {
|
|
4306
|
-
|
|
3731
|
+
const retVal = (output || [])
|
|
4307
3732
|
.filter((e) => e != null)
|
|
4308
3733
|
.map((entry) => {
|
|
4309
3734
|
if (entry === null) {
|
|
@@ -4311,6 +3736,7 @@ const deserializeAws_json1_1SavingsPlansUtilizationsByTime = (output, context) =
|
|
|
4311
3736
|
}
|
|
4312
3737
|
return deserializeAws_json1_1SavingsPlansUtilizationByTime(entry, context);
|
|
4313
3738
|
});
|
|
3739
|
+
return retVal;
|
|
4314
3740
|
};
|
|
4315
3741
|
const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) => {
|
|
4316
3742
|
return {
|
|
@@ -4332,7 +3758,7 @@ const deserializeAws_json1_1Subscriber = (output, context) => {
|
|
|
4332
3758
|
};
|
|
4333
3759
|
};
|
|
4334
3760
|
const deserializeAws_json1_1Subscribers = (output, context) => {
|
|
4335
|
-
|
|
3761
|
+
const retVal = (output || [])
|
|
4336
3762
|
.filter((e) => e != null)
|
|
4337
3763
|
.map((entry) => {
|
|
4338
3764
|
if (entry === null) {
|
|
@@ -4340,9 +3766,10 @@ const deserializeAws_json1_1Subscribers = (output, context) => {
|
|
|
4340
3766
|
}
|
|
4341
3767
|
return deserializeAws_json1_1Subscriber(entry, context);
|
|
4342
3768
|
});
|
|
3769
|
+
return retVal;
|
|
4343
3770
|
};
|
|
4344
3771
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
4345
|
-
|
|
3772
|
+
const retVal = (output || [])
|
|
4346
3773
|
.filter((e) => e != null)
|
|
4347
3774
|
.map((entry) => {
|
|
4348
3775
|
if (entry === null) {
|
|
@@ -4350,6 +3777,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
4350
3777
|
}
|
|
4351
3778
|
return smithy_client_1.expectString(entry);
|
|
4352
3779
|
});
|
|
3780
|
+
return retVal;
|
|
4353
3781
|
};
|
|
4354
3782
|
const deserializeAws_json1_1TagValues = (output, context) => {
|
|
4355
3783
|
return {
|
|
@@ -4363,7 +3791,7 @@ const deserializeAws_json1_1TagValues = (output, context) => {
|
|
|
4363
3791
|
};
|
|
4364
3792
|
};
|
|
4365
3793
|
const deserializeAws_json1_1TagValuesList = (output, context) => {
|
|
4366
|
-
|
|
3794
|
+
const retVal = (output || [])
|
|
4367
3795
|
.filter((e) => e != null)
|
|
4368
3796
|
.map((entry) => {
|
|
4369
3797
|
if (entry === null) {
|
|
@@ -4371,6 +3799,7 @@ const deserializeAws_json1_1TagValuesList = (output, context) => {
|
|
|
4371
3799
|
}
|
|
4372
3800
|
return deserializeAws_json1_1TagValues(entry, context);
|
|
4373
3801
|
});
|
|
3802
|
+
return retVal;
|
|
4374
3803
|
};
|
|
4375
3804
|
const deserializeAws_json1_1TargetInstance = (output, context) => {
|
|
4376
3805
|
return {
|
|
@@ -4390,7 +3819,7 @@ const deserializeAws_json1_1TargetInstance = (output, context) => {
|
|
|
4390
3819
|
};
|
|
4391
3820
|
};
|
|
4392
3821
|
const deserializeAws_json1_1TargetInstancesList = (output, context) => {
|
|
4393
|
-
|
|
3822
|
+
const retVal = (output || [])
|
|
4394
3823
|
.filter((e) => e != null)
|
|
4395
3824
|
.map((entry) => {
|
|
4396
3825
|
if (entry === null) {
|
|
@@ -4398,6 +3827,7 @@ const deserializeAws_json1_1TargetInstancesList = (output, context) => {
|
|
|
4398
3827
|
}
|
|
4399
3828
|
return deserializeAws_json1_1TargetInstance(entry, context);
|
|
4400
3829
|
});
|
|
3830
|
+
return retVal;
|
|
4401
3831
|
};
|
|
4402
3832
|
const deserializeAws_json1_1TerminateRecommendationDetail = (output, context) => {
|
|
4403
3833
|
return {
|
|
@@ -4450,7 +3880,7 @@ const deserializeAws_json1_1UtilizationByTime = (output, context) => {
|
|
|
4450
3880
|
};
|
|
4451
3881
|
};
|
|
4452
3882
|
const deserializeAws_json1_1UtilizationsByTime = (output, context) => {
|
|
4453
|
-
|
|
3883
|
+
const retVal = (output || [])
|
|
4454
3884
|
.filter((e) => e != null)
|
|
4455
3885
|
.map((entry) => {
|
|
4456
3886
|
if (entry === null) {
|
|
@@ -4458,9 +3888,10 @@ const deserializeAws_json1_1UtilizationsByTime = (output, context) => {
|
|
|
4458
3888
|
}
|
|
4459
3889
|
return deserializeAws_json1_1UtilizationByTime(entry, context);
|
|
4460
3890
|
});
|
|
3891
|
+
return retVal;
|
|
4461
3892
|
};
|
|
4462
3893
|
const deserializeAws_json1_1Values = (output, context) => {
|
|
4463
|
-
|
|
3894
|
+
const retVal = (output || [])
|
|
4464
3895
|
.filter((e) => e != null)
|
|
4465
3896
|
.map((entry) => {
|
|
4466
3897
|
if (entry === null) {
|
|
@@ -4468,6 +3899,7 @@ const deserializeAws_json1_1Values = (output, context) => {
|
|
|
4468
3899
|
}
|
|
4469
3900
|
return smithy_client_1.expectString(entry);
|
|
4470
3901
|
});
|
|
3902
|
+
return retVal;
|
|
4471
3903
|
};
|
|
4472
3904
|
const deserializeMetadata = (output) => {
|
|
4473
3905
|
var _a;
|