@aws-sdk/client-cost-explorer 3.312.0 → 3.315.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.
@@ -30,28 +30,28 @@ exports.se_CreateCostCategoryDefinitionCommand = se_CreateCostCategoryDefinition
30
30
  const se_DeleteAnomalyMonitorCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("DeleteAnomalyMonitor");
32
32
  let body;
33
- body = JSON.stringify(se_DeleteAnomalyMonitorRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.se_DeleteAnomalyMonitorCommand = se_DeleteAnomalyMonitorCommand;
37
37
  const se_DeleteAnomalySubscriptionCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("DeleteAnomalySubscription");
39
39
  let body;
40
- body = JSON.stringify(se_DeleteAnomalySubscriptionRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
43
  exports.se_DeleteAnomalySubscriptionCommand = se_DeleteAnomalySubscriptionCommand;
44
44
  const se_DeleteCostCategoryDefinitionCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("DeleteCostCategoryDefinition");
46
46
  let body;
47
- body = JSON.stringify(se_DeleteCostCategoryDefinitionRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
50
  exports.se_DeleteCostCategoryDefinitionCommand = se_DeleteCostCategoryDefinitionCommand;
51
51
  const se_DescribeCostCategoryDefinitionCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("DescribeCostCategoryDefinition");
53
53
  let body;
54
- body = JSON.stringify(se_DescribeCostCategoryDefinitionRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
57
  exports.se_DescribeCostCategoryDefinitionCommand = se_DescribeCostCategoryDefinitionCommand;
@@ -65,14 +65,14 @@ exports.se_GetAnomaliesCommand = se_GetAnomaliesCommand;
65
65
  const se_GetAnomalyMonitorsCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("GetAnomalyMonitors");
67
67
  let body;
68
- body = JSON.stringify(se_GetAnomalyMonitorsRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  exports.se_GetAnomalyMonitorsCommand = se_GetAnomalyMonitorsCommand;
72
72
  const se_GetAnomalySubscriptionsCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("GetAnomalySubscriptions");
74
74
  let body;
75
- body = JSON.stringify(se_GetAnomalySubscriptionsRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  exports.se_GetAnomalySubscriptionsCommand = se_GetAnomalySubscriptionsCommand;
@@ -184,63 +184,63 @@ exports.se_GetUsageForecastCommand = se_GetUsageForecastCommand;
184
184
  const se_ListCostAllocationTagsCommand = async (input, context) => {
185
185
  const headers = sharedHeaders("ListCostAllocationTags");
186
186
  let body;
187
- body = JSON.stringify(se_ListCostAllocationTagsRequest(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
188
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
189
189
  };
190
190
  exports.se_ListCostAllocationTagsCommand = se_ListCostAllocationTagsCommand;
191
191
  const se_ListCostCategoryDefinitionsCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("ListCostCategoryDefinitions");
193
193
  let body;
194
- body = JSON.stringify(se_ListCostCategoryDefinitionsRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  exports.se_ListCostCategoryDefinitionsCommand = se_ListCostCategoryDefinitionsCommand;
198
198
  const se_ListSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("ListSavingsPlansPurchaseRecommendationGeneration");
200
200
  let body;
201
- body = JSON.stringify(se_ListSavingsPlansPurchaseRecommendationGenerationRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  exports.se_ListSavingsPlansPurchaseRecommendationGenerationCommand = se_ListSavingsPlansPurchaseRecommendationGenerationCommand;
205
205
  const se_ListTagsForResourceCommand = async (input, context) => {
206
206
  const headers = sharedHeaders("ListTagsForResource");
207
207
  let body;
208
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
209
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
210
  };
211
211
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
212
212
  const se_ProvideAnomalyFeedbackCommand = async (input, context) => {
213
213
  const headers = sharedHeaders("ProvideAnomalyFeedback");
214
214
  let body;
215
- body = JSON.stringify(se_ProvideAnomalyFeedbackRequest(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
217
  };
218
218
  exports.se_ProvideAnomalyFeedbackCommand = se_ProvideAnomalyFeedbackCommand;
219
219
  const se_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
220
220
  const headers = sharedHeaders("StartSavingsPlansPurchaseRecommendationGeneration");
221
221
  let body;
222
- body = JSON.stringify(se_StartSavingsPlansPurchaseRecommendationGenerationRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
223
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
224
  };
225
225
  exports.se_StartSavingsPlansPurchaseRecommendationGenerationCommand = se_StartSavingsPlansPurchaseRecommendationGenerationCommand;
226
226
  const se_TagResourceCommand = async (input, context) => {
227
227
  const headers = sharedHeaders("TagResource");
228
228
  let body;
229
- body = JSON.stringify(se_TagResourceRequest(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
230
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
231
  };
232
232
  exports.se_TagResourceCommand = se_TagResourceCommand;
233
233
  const se_UntagResourceCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("UntagResource");
235
235
  let body;
236
- body = JSON.stringify(se_UntagResourceRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
240
240
  const se_UpdateAnomalyMonitorCommand = async (input, context) => {
241
241
  const headers = sharedHeaders("UpdateAnomalyMonitor");
242
242
  let body;
243
- body = JSON.stringify(se_UpdateAnomalyMonitorRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
244
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
245
  };
246
246
  exports.se_UpdateAnomalyMonitorCommand = se_UpdateAnomalyMonitorCommand;
@@ -254,7 +254,7 @@ exports.se_UpdateAnomalySubscriptionCommand = se_UpdateAnomalySubscriptionComman
254
254
  const se_UpdateCostAllocationTagsStatusCommand = async (input, context) => {
255
255
  const headers = sharedHeaders("UpdateCostAllocationTagsStatus");
256
256
  let body;
257
- body = JSON.stringify(se_UpdateCostAllocationTagsStatusRequest(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
260
  exports.se_UpdateCostAllocationTagsStatusCommand = se_UpdateCostAllocationTagsStatusCommand;
@@ -271,12 +271,12 @@ const de_CreateAnomalyMonitorCommand = async (output, context) => {
271
271
  }
272
272
  const data = await parseBody(output.body, context);
273
273
  let contents = {};
274
- contents = de_CreateAnomalyMonitorResponse(data, context);
274
+ contents = (0, smithy_client_1._json)(data);
275
275
  const response = {
276
276
  $metadata: deserializeMetadata(output),
277
277
  ...contents,
278
278
  };
279
- return Promise.resolve(response);
279
+ return response;
280
280
  };
281
281
  exports.de_CreateAnomalyMonitorCommand = de_CreateAnomalyMonitorCommand;
282
282
  const de_CreateAnomalyMonitorCommandError = async (output, context) => {
@@ -291,10 +291,9 @@ const de_CreateAnomalyMonitorCommandError = async (output, context) => {
291
291
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
292
292
  default:
293
293
  const parsedBody = parsedOutput.body;
294
- (0, smithy_client_1.throwDefaultError)({
294
+ return throwDefaultError({
295
295
  output,
296
296
  parsedBody,
297
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
298
297
  errorCode,
299
298
  });
300
299
  }
@@ -305,12 +304,12 @@ const de_CreateAnomalySubscriptionCommand = async (output, context) => {
305
304
  }
306
305
  const data = await parseBody(output.body, context);
307
306
  let contents = {};
308
- contents = de_CreateAnomalySubscriptionResponse(data, context);
307
+ contents = (0, smithy_client_1._json)(data);
309
308
  const response = {
310
309
  $metadata: deserializeMetadata(output),
311
310
  ...contents,
312
311
  };
313
- return Promise.resolve(response);
312
+ return response;
314
313
  };
315
314
  exports.de_CreateAnomalySubscriptionCommand = de_CreateAnomalySubscriptionCommand;
316
315
  const de_CreateAnomalySubscriptionCommandError = async (output, context) => {
@@ -328,10 +327,9 @@ const de_CreateAnomalySubscriptionCommandError = async (output, context) => {
328
327
  throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
329
328
  default:
330
329
  const parsedBody = parsedOutput.body;
331
- (0, smithy_client_1.throwDefaultError)({
330
+ return throwDefaultError({
332
331
  output,
333
332
  parsedBody,
334
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
335
333
  errorCode,
336
334
  });
337
335
  }
@@ -342,12 +340,12 @@ const de_CreateCostCategoryDefinitionCommand = async (output, context) => {
342
340
  }
343
341
  const data = await parseBody(output.body, context);
344
342
  let contents = {};
345
- contents = de_CreateCostCategoryDefinitionResponse(data, context);
343
+ contents = (0, smithy_client_1._json)(data);
346
344
  const response = {
347
345
  $metadata: deserializeMetadata(output),
348
346
  ...contents,
349
347
  };
350
- return Promise.resolve(response);
348
+ return response;
351
349
  };
352
350
  exports.de_CreateCostCategoryDefinitionCommand = de_CreateCostCategoryDefinitionCommand;
353
351
  const de_CreateCostCategoryDefinitionCommandError = async (output, context) => {
@@ -365,10 +363,9 @@ const de_CreateCostCategoryDefinitionCommandError = async (output, context) => {
365
363
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
366
364
  default:
367
365
  const parsedBody = parsedOutput.body;
368
- (0, smithy_client_1.throwDefaultError)({
366
+ return throwDefaultError({
369
367
  output,
370
368
  parsedBody,
371
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
372
369
  errorCode,
373
370
  });
374
371
  }
@@ -379,12 +376,12 @@ const de_DeleteAnomalyMonitorCommand = async (output, context) => {
379
376
  }
380
377
  const data = await parseBody(output.body, context);
381
378
  let contents = {};
382
- contents = de_DeleteAnomalyMonitorResponse(data, context);
379
+ contents = (0, smithy_client_1._json)(data);
383
380
  const response = {
384
381
  $metadata: deserializeMetadata(output),
385
382
  ...contents,
386
383
  };
387
- return Promise.resolve(response);
384
+ return response;
388
385
  };
389
386
  exports.de_DeleteAnomalyMonitorCommand = de_DeleteAnomalyMonitorCommand;
390
387
  const de_DeleteAnomalyMonitorCommandError = async (output, context) => {
@@ -402,10 +399,9 @@ const de_DeleteAnomalyMonitorCommandError = async (output, context) => {
402
399
  throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
403
400
  default:
404
401
  const parsedBody = parsedOutput.body;
405
- (0, smithy_client_1.throwDefaultError)({
402
+ return throwDefaultError({
406
403
  output,
407
404
  parsedBody,
408
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
409
405
  errorCode,
410
406
  });
411
407
  }
@@ -416,12 +412,12 @@ const de_DeleteAnomalySubscriptionCommand = async (output, context) => {
416
412
  }
417
413
  const data = await parseBody(output.body, context);
418
414
  let contents = {};
419
- contents = de_DeleteAnomalySubscriptionResponse(data, context);
415
+ contents = (0, smithy_client_1._json)(data);
420
416
  const response = {
421
417
  $metadata: deserializeMetadata(output),
422
418
  ...contents,
423
419
  };
424
- return Promise.resolve(response);
420
+ return response;
425
421
  };
426
422
  exports.de_DeleteAnomalySubscriptionCommand = de_DeleteAnomalySubscriptionCommand;
427
423
  const de_DeleteAnomalySubscriptionCommandError = async (output, context) => {
@@ -439,10 +435,9 @@ const de_DeleteAnomalySubscriptionCommandError = async (output, context) => {
439
435
  throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
440
436
  default:
441
437
  const parsedBody = parsedOutput.body;
442
- (0, smithy_client_1.throwDefaultError)({
438
+ return throwDefaultError({
443
439
  output,
444
440
  parsedBody,
445
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
446
441
  errorCode,
447
442
  });
448
443
  }
@@ -453,12 +448,12 @@ const de_DeleteCostCategoryDefinitionCommand = async (output, context) => {
453
448
  }
454
449
  const data = await parseBody(output.body, context);
455
450
  let contents = {};
456
- contents = de_DeleteCostCategoryDefinitionResponse(data, context);
451
+ contents = (0, smithy_client_1._json)(data);
457
452
  const response = {
458
453
  $metadata: deserializeMetadata(output),
459
454
  ...contents,
460
455
  };
461
- return Promise.resolve(response);
456
+ return response;
462
457
  };
463
458
  exports.de_DeleteCostCategoryDefinitionCommand = de_DeleteCostCategoryDefinitionCommand;
464
459
  const de_DeleteCostCategoryDefinitionCommandError = async (output, context) => {
@@ -476,10 +471,9 @@ const de_DeleteCostCategoryDefinitionCommandError = async (output, context) => {
476
471
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
477
472
  default:
478
473
  const parsedBody = parsedOutput.body;
479
- (0, smithy_client_1.throwDefaultError)({
474
+ return throwDefaultError({
480
475
  output,
481
476
  parsedBody,
482
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
483
477
  errorCode,
484
478
  });
485
479
  }
@@ -495,7 +489,7 @@ const de_DescribeCostCategoryDefinitionCommand = async (output, context) => {
495
489
  $metadata: deserializeMetadata(output),
496
490
  ...contents,
497
491
  };
498
- return Promise.resolve(response);
492
+ return response;
499
493
  };
500
494
  exports.de_DescribeCostCategoryDefinitionCommand = de_DescribeCostCategoryDefinitionCommand;
501
495
  const de_DescribeCostCategoryDefinitionCommandError = async (output, context) => {
@@ -513,10 +507,9 @@ const de_DescribeCostCategoryDefinitionCommandError = async (output, context) =>
513
507
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
514
508
  default:
515
509
  const parsedBody = parsedOutput.body;
516
- (0, smithy_client_1.throwDefaultError)({
510
+ return throwDefaultError({
517
511
  output,
518
512
  parsedBody,
519
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
520
513
  errorCode,
521
514
  });
522
515
  }
@@ -532,7 +525,7 @@ const de_GetAnomaliesCommand = async (output, context) => {
532
525
  $metadata: deserializeMetadata(output),
533
526
  ...contents,
534
527
  };
535
- return Promise.resolve(response);
528
+ return response;
536
529
  };
537
530
  exports.de_GetAnomaliesCommand = de_GetAnomaliesCommand;
538
531
  const de_GetAnomaliesCommandError = async (output, context) => {
@@ -550,10 +543,9 @@ const de_GetAnomaliesCommandError = async (output, context) => {
550
543
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
551
544
  default:
552
545
  const parsedBody = parsedOutput.body;
553
- (0, smithy_client_1.throwDefaultError)({
546
+ return throwDefaultError({
554
547
  output,
555
548
  parsedBody,
556
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
557
549
  errorCode,
558
550
  });
559
551
  }
@@ -569,7 +561,7 @@ const de_GetAnomalyMonitorsCommand = async (output, context) => {
569
561
  $metadata: deserializeMetadata(output),
570
562
  ...contents,
571
563
  };
572
- return Promise.resolve(response);
564
+ return response;
573
565
  };
574
566
  exports.de_GetAnomalyMonitorsCommand = de_GetAnomalyMonitorsCommand;
575
567
  const de_GetAnomalyMonitorsCommandError = async (output, context) => {
@@ -590,10 +582,9 @@ const de_GetAnomalyMonitorsCommandError = async (output, context) => {
590
582
  throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
591
583
  default:
592
584
  const parsedBody = parsedOutput.body;
593
- (0, smithy_client_1.throwDefaultError)({
585
+ return throwDefaultError({
594
586
  output,
595
587
  parsedBody,
596
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
597
588
  errorCode,
598
589
  });
599
590
  }
@@ -609,7 +600,7 @@ const de_GetAnomalySubscriptionsCommand = async (output, context) => {
609
600
  $metadata: deserializeMetadata(output),
610
601
  ...contents,
611
602
  };
612
- return Promise.resolve(response);
603
+ return response;
613
604
  };
614
605
  exports.de_GetAnomalySubscriptionsCommand = de_GetAnomalySubscriptionsCommand;
615
606
  const de_GetAnomalySubscriptionsCommandError = async (output, context) => {
@@ -630,10 +621,9 @@ const de_GetAnomalySubscriptionsCommandError = async (output, context) => {
630
621
  throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
631
622
  default:
632
623
  const parsedBody = parsedOutput.body;
633
- (0, smithy_client_1.throwDefaultError)({
624
+ return throwDefaultError({
634
625
  output,
635
626
  parsedBody,
636
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
637
627
  errorCode,
638
628
  });
639
629
  }
@@ -644,12 +634,12 @@ const de_GetCostAndUsageCommand = async (output, context) => {
644
634
  }
645
635
  const data = await parseBody(output.body, context);
646
636
  let contents = {};
647
- contents = de_GetCostAndUsageResponse(data, context);
637
+ contents = (0, smithy_client_1._json)(data);
648
638
  const response = {
649
639
  $metadata: deserializeMetadata(output),
650
640
  ...contents,
651
641
  };
652
- return Promise.resolve(response);
642
+ return response;
653
643
  };
654
644
  exports.de_GetCostAndUsageCommand = de_GetCostAndUsageCommand;
655
645
  const de_GetCostAndUsageCommandError = async (output, context) => {
@@ -676,10 +666,9 @@ const de_GetCostAndUsageCommandError = async (output, context) => {
676
666
  throw await de_RequestChangedExceptionRes(parsedOutput, context);
677
667
  default:
678
668
  const parsedBody = parsedOutput.body;
679
- (0, smithy_client_1.throwDefaultError)({
669
+ return throwDefaultError({
680
670
  output,
681
671
  parsedBody,
682
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
683
672
  errorCode,
684
673
  });
685
674
  }
@@ -690,12 +679,12 @@ const de_GetCostAndUsageWithResourcesCommand = async (output, context) => {
690
679
  }
691
680
  const data = await parseBody(output.body, context);
692
681
  let contents = {};
693
- contents = de_GetCostAndUsageWithResourcesResponse(data, context);
682
+ contents = (0, smithy_client_1._json)(data);
694
683
  const response = {
695
684
  $metadata: deserializeMetadata(output),
696
685
  ...contents,
697
686
  };
698
- return Promise.resolve(response);
687
+ return response;
699
688
  };
700
689
  exports.de_GetCostAndUsageWithResourcesCommand = de_GetCostAndUsageWithResourcesCommand;
701
690
  const de_GetCostAndUsageWithResourcesCommandError = async (output, context) => {
@@ -722,10 +711,9 @@ const de_GetCostAndUsageWithResourcesCommandError = async (output, context) => {
722
711
  throw await de_RequestChangedExceptionRes(parsedOutput, context);
723
712
  default:
724
713
  const parsedBody = parsedOutput.body;
725
- (0, smithy_client_1.throwDefaultError)({
714
+ return throwDefaultError({
726
715
  output,
727
716
  parsedBody,
728
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
729
717
  errorCode,
730
718
  });
731
719
  }
@@ -736,12 +724,12 @@ const de_GetCostCategoriesCommand = async (output, context) => {
736
724
  }
737
725
  const data = await parseBody(output.body, context);
738
726
  let contents = {};
739
- contents = de_GetCostCategoriesResponse(data, context);
727
+ contents = (0, smithy_client_1._json)(data);
740
728
  const response = {
741
729
  $metadata: deserializeMetadata(output),
742
730
  ...contents,
743
731
  };
744
- return Promise.resolve(response);
732
+ return response;
745
733
  };
746
734
  exports.de_GetCostCategoriesCommand = de_GetCostCategoriesCommand;
747
735
  const de_GetCostCategoriesCommandError = async (output, context) => {
@@ -768,10 +756,9 @@ const de_GetCostCategoriesCommandError = async (output, context) => {
768
756
  throw await de_RequestChangedExceptionRes(parsedOutput, context);
769
757
  default:
770
758
  const parsedBody = parsedOutput.body;
771
- (0, smithy_client_1.throwDefaultError)({
759
+ return throwDefaultError({
772
760
  output,
773
761
  parsedBody,
774
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
775
762
  errorCode,
776
763
  });
777
764
  }
@@ -782,12 +769,12 @@ const de_GetCostForecastCommand = async (output, context) => {
782
769
  }
783
770
  const data = await parseBody(output.body, context);
784
771
  let contents = {};
785
- contents = de_GetCostForecastResponse(data, context);
772
+ contents = (0, smithy_client_1._json)(data);
786
773
  const response = {
787
774
  $metadata: deserializeMetadata(output),
788
775
  ...contents,
789
776
  };
790
- return Promise.resolve(response);
777
+ return response;
791
778
  };
792
779
  exports.de_GetCostForecastCommand = de_GetCostForecastCommand;
793
780
  const de_GetCostForecastCommandError = async (output, context) => {
@@ -805,10 +792,9 @@ const de_GetCostForecastCommandError = async (output, context) => {
805
792
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
806
793
  default:
807
794
  const parsedBody = parsedOutput.body;
808
- (0, smithy_client_1.throwDefaultError)({
795
+ return throwDefaultError({
809
796
  output,
810
797
  parsedBody,
811
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
812
798
  errorCode,
813
799
  });
814
800
  }
@@ -819,12 +805,12 @@ const de_GetDimensionValuesCommand = async (output, context) => {
819
805
  }
820
806
  const data = await parseBody(output.body, context);
821
807
  let contents = {};
822
- contents = de_GetDimensionValuesResponse(data, context);
808
+ contents = (0, smithy_client_1._json)(data);
823
809
  const response = {
824
810
  $metadata: deserializeMetadata(output),
825
811
  ...contents,
826
812
  };
827
- return Promise.resolve(response);
813
+ return response;
828
814
  };
829
815
  exports.de_GetDimensionValuesCommand = de_GetDimensionValuesCommand;
830
816
  const de_GetDimensionValuesCommandError = async (output, context) => {
@@ -851,10 +837,9 @@ const de_GetDimensionValuesCommandError = async (output, context) => {
851
837
  throw await de_RequestChangedExceptionRes(parsedOutput, context);
852
838
  default:
853
839
  const parsedBody = parsedOutput.body;
854
- (0, smithy_client_1.throwDefaultError)({
840
+ return throwDefaultError({
855
841
  output,
856
842
  parsedBody,
857
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
858
843
  errorCode,
859
844
  });
860
845
  }
@@ -865,12 +850,12 @@ const de_GetReservationCoverageCommand = async (output, context) => {
865
850
  }
866
851
  const data = await parseBody(output.body, context);
867
852
  let contents = {};
868
- contents = de_GetReservationCoverageResponse(data, context);
853
+ contents = (0, smithy_client_1._json)(data);
869
854
  const response = {
870
855
  $metadata: deserializeMetadata(output),
871
856
  ...contents,
872
857
  };
873
- return Promise.resolve(response);
858
+ return response;
874
859
  };
875
860
  exports.de_GetReservationCoverageCommand = de_GetReservationCoverageCommand;
876
861
  const de_GetReservationCoverageCommandError = async (output, context) => {
@@ -891,10 +876,9 @@ const de_GetReservationCoverageCommandError = async (output, context) => {
891
876
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
892
877
  default:
893
878
  const parsedBody = parsedOutput.body;
894
- (0, smithy_client_1.throwDefaultError)({
879
+ return throwDefaultError({
895
880
  output,
896
881
  parsedBody,
897
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
898
882
  errorCode,
899
883
  });
900
884
  }
@@ -905,12 +889,12 @@ const de_GetReservationPurchaseRecommendationCommand = async (output, context) =
905
889
  }
906
890
  const data = await parseBody(output.body, context);
907
891
  let contents = {};
908
- contents = de_GetReservationPurchaseRecommendationResponse(data, context);
892
+ contents = (0, smithy_client_1._json)(data);
909
893
  const response = {
910
894
  $metadata: deserializeMetadata(output),
911
895
  ...contents,
912
896
  };
913
- return Promise.resolve(response);
897
+ return response;
914
898
  };
915
899
  exports.de_GetReservationPurchaseRecommendationCommand = de_GetReservationPurchaseRecommendationCommand;
916
900
  const de_GetReservationPurchaseRecommendationCommandError = async (output, context) => {
@@ -931,10 +915,9 @@ const de_GetReservationPurchaseRecommendationCommandError = async (output, conte
931
915
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
932
916
  default:
933
917
  const parsedBody = parsedOutput.body;
934
- (0, smithy_client_1.throwDefaultError)({
918
+ return throwDefaultError({
935
919
  output,
936
920
  parsedBody,
937
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
938
921
  errorCode,
939
922
  });
940
923
  }
@@ -945,12 +928,12 @@ const de_GetReservationUtilizationCommand = async (output, context) => {
945
928
  }
946
929
  const data = await parseBody(output.body, context);
947
930
  let contents = {};
948
- contents = de_GetReservationUtilizationResponse(data, context);
931
+ contents = (0, smithy_client_1._json)(data);
949
932
  const response = {
950
933
  $metadata: deserializeMetadata(output),
951
934
  ...contents,
952
935
  };
953
- return Promise.resolve(response);
936
+ return response;
954
937
  };
955
938
  exports.de_GetReservationUtilizationCommand = de_GetReservationUtilizationCommand;
956
939
  const de_GetReservationUtilizationCommandError = async (output, context) => {
@@ -971,10 +954,9 @@ const de_GetReservationUtilizationCommandError = async (output, context) => {
971
954
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
972
955
  default:
973
956
  const parsedBody = parsedOutput.body;
974
- (0, smithy_client_1.throwDefaultError)({
957
+ return throwDefaultError({
975
958
  output,
976
959
  parsedBody,
977
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
978
960
  errorCode,
979
961
  });
980
962
  }
@@ -985,12 +967,12 @@ const de_GetRightsizingRecommendationCommand = async (output, context) => {
985
967
  }
986
968
  const data = await parseBody(output.body, context);
987
969
  let contents = {};
988
- contents = de_GetRightsizingRecommendationResponse(data, context);
970
+ contents = (0, smithy_client_1._json)(data);
989
971
  const response = {
990
972
  $metadata: deserializeMetadata(output),
991
973
  ...contents,
992
974
  };
993
- return Promise.resolve(response);
975
+ return response;
994
976
  };
995
977
  exports.de_GetRightsizingRecommendationCommand = de_GetRightsizingRecommendationCommand;
996
978
  const de_GetRightsizingRecommendationCommandError = async (output, context) => {
@@ -1008,10 +990,9 @@ const de_GetRightsizingRecommendationCommandError = async (output, context) => {
1008
990
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1009
991
  default:
1010
992
  const parsedBody = parsedOutput.body;
1011
- (0, smithy_client_1.throwDefaultError)({
993
+ return throwDefaultError({
1012
994
  output,
1013
995
  parsedBody,
1014
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1015
996
  errorCode,
1016
997
  });
1017
998
  }
@@ -1022,12 +1003,12 @@ const de_GetSavingsPlansCoverageCommand = async (output, context) => {
1022
1003
  }
1023
1004
  const data = await parseBody(output.body, context);
1024
1005
  let contents = {};
1025
- contents = de_GetSavingsPlansCoverageResponse(data, context);
1006
+ contents = (0, smithy_client_1._json)(data);
1026
1007
  const response = {
1027
1008
  $metadata: deserializeMetadata(output),
1028
1009
  ...contents,
1029
1010
  };
1030
- return Promise.resolve(response);
1011
+ return response;
1031
1012
  };
1032
1013
  exports.de_GetSavingsPlansCoverageCommand = de_GetSavingsPlansCoverageCommand;
1033
1014
  const de_GetSavingsPlansCoverageCommandError = async (output, context) => {
@@ -1048,10 +1029,9 @@ const de_GetSavingsPlansCoverageCommandError = async (output, context) => {
1048
1029
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1049
1030
  default:
1050
1031
  const parsedBody = parsedOutput.body;
1051
- (0, smithy_client_1.throwDefaultError)({
1032
+ return throwDefaultError({
1052
1033
  output,
1053
1034
  parsedBody,
1054
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1055
1035
  errorCode,
1056
1036
  });
1057
1037
  }
@@ -1062,12 +1042,12 @@ const de_GetSavingsPlansPurchaseRecommendationCommand = async (output, context)
1062
1042
  }
1063
1043
  const data = await parseBody(output.body, context);
1064
1044
  let contents = {};
1065
- contents = de_GetSavingsPlansPurchaseRecommendationResponse(data, context);
1045
+ contents = (0, smithy_client_1._json)(data);
1066
1046
  const response = {
1067
1047
  $metadata: deserializeMetadata(output),
1068
1048
  ...contents,
1069
1049
  };
1070
- return Promise.resolve(response);
1050
+ return response;
1071
1051
  };
1072
1052
  exports.de_GetSavingsPlansPurchaseRecommendationCommand = de_GetSavingsPlansPurchaseRecommendationCommand;
1073
1053
  const de_GetSavingsPlansPurchaseRecommendationCommandError = async (output, context) => {
@@ -1085,10 +1065,9 @@ const de_GetSavingsPlansPurchaseRecommendationCommandError = async (output, cont
1085
1065
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1086
1066
  default:
1087
1067
  const parsedBody = parsedOutput.body;
1088
- (0, smithy_client_1.throwDefaultError)({
1068
+ return throwDefaultError({
1089
1069
  output,
1090
1070
  parsedBody,
1091
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1092
1071
  errorCode,
1093
1072
  });
1094
1073
  }
@@ -1099,12 +1078,12 @@ const de_GetSavingsPlansUtilizationCommand = async (output, context) => {
1099
1078
  }
1100
1079
  const data = await parseBody(output.body, context);
1101
1080
  let contents = {};
1102
- contents = de_GetSavingsPlansUtilizationResponse(data, context);
1081
+ contents = (0, smithy_client_1._json)(data);
1103
1082
  const response = {
1104
1083
  $metadata: deserializeMetadata(output),
1105
1084
  ...contents,
1106
1085
  };
1107
- return Promise.resolve(response);
1086
+ return response;
1108
1087
  };
1109
1088
  exports.de_GetSavingsPlansUtilizationCommand = de_GetSavingsPlansUtilizationCommand;
1110
1089
  const de_GetSavingsPlansUtilizationCommandError = async (output, context) => {
@@ -1122,10 +1101,9 @@ const de_GetSavingsPlansUtilizationCommandError = async (output, context) => {
1122
1101
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1123
1102
  default:
1124
1103
  const parsedBody = parsedOutput.body;
1125
- (0, smithy_client_1.throwDefaultError)({
1104
+ return throwDefaultError({
1126
1105
  output,
1127
1106
  parsedBody,
1128
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1129
1107
  errorCode,
1130
1108
  });
1131
1109
  }
@@ -1136,12 +1114,12 @@ const de_GetSavingsPlansUtilizationDetailsCommand = async (output, context) => {
1136
1114
  }
1137
1115
  const data = await parseBody(output.body, context);
1138
1116
  let contents = {};
1139
- contents = de_GetSavingsPlansUtilizationDetailsResponse(data, context);
1117
+ contents = (0, smithy_client_1._json)(data);
1140
1118
  const response = {
1141
1119
  $metadata: deserializeMetadata(output),
1142
1120
  ...contents,
1143
1121
  };
1144
- return Promise.resolve(response);
1122
+ return response;
1145
1123
  };
1146
1124
  exports.de_GetSavingsPlansUtilizationDetailsCommand = de_GetSavingsPlansUtilizationDetailsCommand;
1147
1125
  const de_GetSavingsPlansUtilizationDetailsCommandError = async (output, context) => {
@@ -1162,10 +1140,9 @@ const de_GetSavingsPlansUtilizationDetailsCommandError = async (output, context)
1162
1140
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1163
1141
  default:
1164
1142
  const parsedBody = parsedOutput.body;
1165
- (0, smithy_client_1.throwDefaultError)({
1143
+ return throwDefaultError({
1166
1144
  output,
1167
1145
  parsedBody,
1168
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1169
1146
  errorCode,
1170
1147
  });
1171
1148
  }
@@ -1176,12 +1153,12 @@ const de_GetTagsCommand = async (output, context) => {
1176
1153
  }
1177
1154
  const data = await parseBody(output.body, context);
1178
1155
  let contents = {};
1179
- contents = de_GetTagsResponse(data, context);
1156
+ contents = (0, smithy_client_1._json)(data);
1180
1157
  const response = {
1181
1158
  $metadata: deserializeMetadata(output),
1182
1159
  ...contents,
1183
1160
  };
1184
- return Promise.resolve(response);
1161
+ return response;
1185
1162
  };
1186
1163
  exports.de_GetTagsCommand = de_GetTagsCommand;
1187
1164
  const de_GetTagsCommandError = async (output, context) => {
@@ -1208,10 +1185,9 @@ const de_GetTagsCommandError = async (output, context) => {
1208
1185
  throw await de_RequestChangedExceptionRes(parsedOutput, context);
1209
1186
  default:
1210
1187
  const parsedBody = parsedOutput.body;
1211
- (0, smithy_client_1.throwDefaultError)({
1188
+ return throwDefaultError({
1212
1189
  output,
1213
1190
  parsedBody,
1214
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1215
1191
  errorCode,
1216
1192
  });
1217
1193
  }
@@ -1222,12 +1198,12 @@ const de_GetUsageForecastCommand = async (output, context) => {
1222
1198
  }
1223
1199
  const data = await parseBody(output.body, context);
1224
1200
  let contents = {};
1225
- contents = de_GetUsageForecastResponse(data, context);
1201
+ contents = (0, smithy_client_1._json)(data);
1226
1202
  const response = {
1227
1203
  $metadata: deserializeMetadata(output),
1228
1204
  ...contents,
1229
1205
  };
1230
- return Promise.resolve(response);
1206
+ return response;
1231
1207
  };
1232
1208
  exports.de_GetUsageForecastCommand = de_GetUsageForecastCommand;
1233
1209
  const de_GetUsageForecastCommandError = async (output, context) => {
@@ -1248,10 +1224,9 @@ const de_GetUsageForecastCommandError = async (output, context) => {
1248
1224
  throw await de_UnresolvableUsageUnitExceptionRes(parsedOutput, context);
1249
1225
  default:
1250
1226
  const parsedBody = parsedOutput.body;
1251
- (0, smithy_client_1.throwDefaultError)({
1227
+ return throwDefaultError({
1252
1228
  output,
1253
1229
  parsedBody,
1254
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1255
1230
  errorCode,
1256
1231
  });
1257
1232
  }
@@ -1262,12 +1237,12 @@ const de_ListCostAllocationTagsCommand = async (output, context) => {
1262
1237
  }
1263
1238
  const data = await parseBody(output.body, context);
1264
1239
  let contents = {};
1265
- contents = de_ListCostAllocationTagsResponse(data, context);
1240
+ contents = (0, smithy_client_1._json)(data);
1266
1241
  const response = {
1267
1242
  $metadata: deserializeMetadata(output),
1268
1243
  ...contents,
1269
1244
  };
1270
- return Promise.resolve(response);
1245
+ return response;
1271
1246
  };
1272
1247
  exports.de_ListCostAllocationTagsCommand = de_ListCostAllocationTagsCommand;
1273
1248
  const de_ListCostAllocationTagsCommandError = async (output, context) => {
@@ -1285,10 +1260,9 @@ const de_ListCostAllocationTagsCommandError = async (output, context) => {
1285
1260
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1286
1261
  default:
1287
1262
  const parsedBody = parsedOutput.body;
1288
- (0, smithy_client_1.throwDefaultError)({
1263
+ return throwDefaultError({
1289
1264
  output,
1290
1265
  parsedBody,
1291
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1292
1266
  errorCode,
1293
1267
  });
1294
1268
  }
@@ -1299,12 +1273,12 @@ const de_ListCostCategoryDefinitionsCommand = async (output, context) => {
1299
1273
  }
1300
1274
  const data = await parseBody(output.body, context);
1301
1275
  let contents = {};
1302
- contents = de_ListCostCategoryDefinitionsResponse(data, context);
1276
+ contents = (0, smithy_client_1._json)(data);
1303
1277
  const response = {
1304
1278
  $metadata: deserializeMetadata(output),
1305
1279
  ...contents,
1306
1280
  };
1307
- return Promise.resolve(response);
1281
+ return response;
1308
1282
  };
1309
1283
  exports.de_ListCostCategoryDefinitionsCommand = de_ListCostCategoryDefinitionsCommand;
1310
1284
  const de_ListCostCategoryDefinitionsCommandError = async (output, context) => {
@@ -1319,10 +1293,9 @@ const de_ListCostCategoryDefinitionsCommandError = async (output, context) => {
1319
1293
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1320
1294
  default:
1321
1295
  const parsedBody = parsedOutput.body;
1322
- (0, smithy_client_1.throwDefaultError)({
1296
+ return throwDefaultError({
1323
1297
  output,
1324
1298
  parsedBody,
1325
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1326
1299
  errorCode,
1327
1300
  });
1328
1301
  }
@@ -1333,12 +1306,12 @@ const de_ListSavingsPlansPurchaseRecommendationGenerationCommand = async (output
1333
1306
  }
1334
1307
  const data = await parseBody(output.body, context);
1335
1308
  let contents = {};
1336
- contents = de_ListSavingsPlansPurchaseRecommendationGenerationResponse(data, context);
1309
+ contents = (0, smithy_client_1._json)(data);
1337
1310
  const response = {
1338
1311
  $metadata: deserializeMetadata(output),
1339
1312
  ...contents,
1340
1313
  };
1341
- return Promise.resolve(response);
1314
+ return response;
1342
1315
  };
1343
1316
  exports.de_ListSavingsPlansPurchaseRecommendationGenerationCommand = de_ListSavingsPlansPurchaseRecommendationGenerationCommand;
1344
1317
  const de_ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
@@ -1356,10 +1329,9 @@ const de_ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (o
1356
1329
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1357
1330
  default:
1358
1331
  const parsedBody = parsedOutput.body;
1359
- (0, smithy_client_1.throwDefaultError)({
1332
+ return throwDefaultError({
1360
1333
  output,
1361
1334
  parsedBody,
1362
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1363
1335
  errorCode,
1364
1336
  });
1365
1337
  }
@@ -1370,12 +1342,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1370
1342
  }
1371
1343
  const data = await parseBody(output.body, context);
1372
1344
  let contents = {};
1373
- contents = de_ListTagsForResourceResponse(data, context);
1345
+ contents = (0, smithy_client_1._json)(data);
1374
1346
  const response = {
1375
1347
  $metadata: deserializeMetadata(output),
1376
1348
  ...contents,
1377
1349
  };
1378
- return Promise.resolve(response);
1350
+ return response;
1379
1351
  };
1380
1352
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1381
1353
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1393,10 +1365,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1393
1365
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1394
1366
  default:
1395
1367
  const parsedBody = parsedOutput.body;
1396
- (0, smithy_client_1.throwDefaultError)({
1368
+ return throwDefaultError({
1397
1369
  output,
1398
1370
  parsedBody,
1399
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1400
1371
  errorCode,
1401
1372
  });
1402
1373
  }
@@ -1407,12 +1378,12 @@ const de_ProvideAnomalyFeedbackCommand = async (output, context) => {
1407
1378
  }
1408
1379
  const data = await parseBody(output.body, context);
1409
1380
  let contents = {};
1410
- contents = de_ProvideAnomalyFeedbackResponse(data, context);
1381
+ contents = (0, smithy_client_1._json)(data);
1411
1382
  const response = {
1412
1383
  $metadata: deserializeMetadata(output),
1413
1384
  ...contents,
1414
1385
  };
1415
- return Promise.resolve(response);
1386
+ return response;
1416
1387
  };
1417
1388
  exports.de_ProvideAnomalyFeedbackCommand = de_ProvideAnomalyFeedbackCommand;
1418
1389
  const de_ProvideAnomalyFeedbackCommandError = async (output, context) => {
@@ -1427,10 +1398,9 @@ const de_ProvideAnomalyFeedbackCommandError = async (output, context) => {
1427
1398
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1428
1399
  default:
1429
1400
  const parsedBody = parsedOutput.body;
1430
- (0, smithy_client_1.throwDefaultError)({
1401
+ return throwDefaultError({
1431
1402
  output,
1432
1403
  parsedBody,
1433
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1434
1404
  errorCode,
1435
1405
  });
1436
1406
  }
@@ -1441,12 +1411,12 @@ const de_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (outpu
1441
1411
  }
1442
1412
  const data = await parseBody(output.body, context);
1443
1413
  let contents = {};
1444
- contents = de_StartSavingsPlansPurchaseRecommendationGenerationResponse(data, context);
1414
+ contents = (0, smithy_client_1._json)(data);
1445
1415
  const response = {
1446
1416
  $metadata: deserializeMetadata(output),
1447
1417
  ...contents,
1448
1418
  };
1449
- return Promise.resolve(response);
1419
+ return response;
1450
1420
  };
1451
1421
  exports.de_StartSavingsPlansPurchaseRecommendationGenerationCommand = de_StartSavingsPlansPurchaseRecommendationGenerationCommand;
1452
1422
  const de_StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
@@ -1467,10 +1437,9 @@ const de_StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (
1467
1437
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1468
1438
  default:
1469
1439
  const parsedBody = parsedOutput.body;
1470
- (0, smithy_client_1.throwDefaultError)({
1440
+ return throwDefaultError({
1471
1441
  output,
1472
1442
  parsedBody,
1473
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1474
1443
  errorCode,
1475
1444
  });
1476
1445
  }
@@ -1481,12 +1450,12 @@ const de_TagResourceCommand = async (output, context) => {
1481
1450
  }
1482
1451
  const data = await parseBody(output.body, context);
1483
1452
  let contents = {};
1484
- contents = de_TagResourceResponse(data, context);
1453
+ contents = (0, smithy_client_1._json)(data);
1485
1454
  const response = {
1486
1455
  $metadata: deserializeMetadata(output),
1487
1456
  ...contents,
1488
1457
  };
1489
- return Promise.resolve(response);
1458
+ return response;
1490
1459
  };
1491
1460
  exports.de_TagResourceCommand = de_TagResourceCommand;
1492
1461
  const de_TagResourceCommandError = async (output, context) => {
@@ -1507,10 +1476,9 @@ const de_TagResourceCommandError = async (output, context) => {
1507
1476
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1508
1477
  default:
1509
1478
  const parsedBody = parsedOutput.body;
1510
- (0, smithy_client_1.throwDefaultError)({
1479
+ return throwDefaultError({
1511
1480
  output,
1512
1481
  parsedBody,
1513
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1514
1482
  errorCode,
1515
1483
  });
1516
1484
  }
@@ -1521,12 +1489,12 @@ const de_UntagResourceCommand = async (output, context) => {
1521
1489
  }
1522
1490
  const data = await parseBody(output.body, context);
1523
1491
  let contents = {};
1524
- contents = de_UntagResourceResponse(data, context);
1492
+ contents = (0, smithy_client_1._json)(data);
1525
1493
  const response = {
1526
1494
  $metadata: deserializeMetadata(output),
1527
1495
  ...contents,
1528
1496
  };
1529
- return Promise.resolve(response);
1497
+ return response;
1530
1498
  };
1531
1499
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1532
1500
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1544,10 +1512,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1544
1512
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1545
1513
  default:
1546
1514
  const parsedBody = parsedOutput.body;
1547
- (0, smithy_client_1.throwDefaultError)({
1515
+ return throwDefaultError({
1548
1516
  output,
1549
1517
  parsedBody,
1550
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1551
1518
  errorCode,
1552
1519
  });
1553
1520
  }
@@ -1558,12 +1525,12 @@ const de_UpdateAnomalyMonitorCommand = async (output, context) => {
1558
1525
  }
1559
1526
  const data = await parseBody(output.body, context);
1560
1527
  let contents = {};
1561
- contents = de_UpdateAnomalyMonitorResponse(data, context);
1528
+ contents = (0, smithy_client_1._json)(data);
1562
1529
  const response = {
1563
1530
  $metadata: deserializeMetadata(output),
1564
1531
  ...contents,
1565
1532
  };
1566
- return Promise.resolve(response);
1533
+ return response;
1567
1534
  };
1568
1535
  exports.de_UpdateAnomalyMonitorCommand = de_UpdateAnomalyMonitorCommand;
1569
1536
  const de_UpdateAnomalyMonitorCommandError = async (output, context) => {
@@ -1581,10 +1548,9 @@ const de_UpdateAnomalyMonitorCommandError = async (output, context) => {
1581
1548
  throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
1582
1549
  default:
1583
1550
  const parsedBody = parsedOutput.body;
1584
- (0, smithy_client_1.throwDefaultError)({
1551
+ return throwDefaultError({
1585
1552
  output,
1586
1553
  parsedBody,
1587
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1588
1554
  errorCode,
1589
1555
  });
1590
1556
  }
@@ -1595,12 +1561,12 @@ const de_UpdateAnomalySubscriptionCommand = async (output, context) => {
1595
1561
  }
1596
1562
  const data = await parseBody(output.body, context);
1597
1563
  let contents = {};
1598
- contents = de_UpdateAnomalySubscriptionResponse(data, context);
1564
+ contents = (0, smithy_client_1._json)(data);
1599
1565
  const response = {
1600
1566
  $metadata: deserializeMetadata(output),
1601
1567
  ...contents,
1602
1568
  };
1603
- return Promise.resolve(response);
1569
+ return response;
1604
1570
  };
1605
1571
  exports.de_UpdateAnomalySubscriptionCommand = de_UpdateAnomalySubscriptionCommand;
1606
1572
  const de_UpdateAnomalySubscriptionCommandError = async (output, context) => {
@@ -1621,10 +1587,9 @@ const de_UpdateAnomalySubscriptionCommandError = async (output, context) => {
1621
1587
  throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
1622
1588
  default:
1623
1589
  const parsedBody = parsedOutput.body;
1624
- (0, smithy_client_1.throwDefaultError)({
1590
+ return throwDefaultError({
1625
1591
  output,
1626
1592
  parsedBody,
1627
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1628
1593
  errorCode,
1629
1594
  });
1630
1595
  }
@@ -1635,12 +1600,12 @@ const de_UpdateCostAllocationTagsStatusCommand = async (output, context) => {
1635
1600
  }
1636
1601
  const data = await parseBody(output.body, context);
1637
1602
  let contents = {};
1638
- contents = de_UpdateCostAllocationTagsStatusResponse(data, context);
1603
+ contents = (0, smithy_client_1._json)(data);
1639
1604
  const response = {
1640
1605
  $metadata: deserializeMetadata(output),
1641
1606
  ...contents,
1642
1607
  };
1643
- return Promise.resolve(response);
1608
+ return response;
1644
1609
  };
1645
1610
  exports.de_UpdateCostAllocationTagsStatusCommand = de_UpdateCostAllocationTagsStatusCommand;
1646
1611
  const de_UpdateCostAllocationTagsStatusCommandError = async (output, context) => {
@@ -1655,10 +1620,9 @@ const de_UpdateCostAllocationTagsStatusCommandError = async (output, context) =>
1655
1620
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1656
1621
  default:
1657
1622
  const parsedBody = parsedOutput.body;
1658
- (0, smithy_client_1.throwDefaultError)({
1623
+ return throwDefaultError({
1659
1624
  output,
1660
1625
  parsedBody,
1661
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1662
1626
  errorCode,
1663
1627
  });
1664
1628
  }
@@ -1669,12 +1633,12 @@ const de_UpdateCostCategoryDefinitionCommand = async (output, context) => {
1669
1633
  }
1670
1634
  const data = await parseBody(output.body, context);
1671
1635
  let contents = {};
1672
- contents = de_UpdateCostCategoryDefinitionResponse(data, context);
1636
+ contents = (0, smithy_client_1._json)(data);
1673
1637
  const response = {
1674
1638
  $metadata: deserializeMetadata(output),
1675
1639
  ...contents,
1676
1640
  };
1677
- return Promise.resolve(response);
1641
+ return response;
1678
1642
  };
1679
1643
  exports.de_UpdateCostCategoryDefinitionCommand = de_UpdateCostCategoryDefinitionCommand;
1680
1644
  const de_UpdateCostCategoryDefinitionCommandError = async (output, context) => {
@@ -1695,17 +1659,16 @@ const de_UpdateCostCategoryDefinitionCommandError = async (output, context) => {
1695
1659
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1696
1660
  default:
1697
1661
  const parsedBody = parsedOutput.body;
1698
- (0, smithy_client_1.throwDefaultError)({
1662
+ return throwDefaultError({
1699
1663
  output,
1700
1664
  parsedBody,
1701
- exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
1702
1665
  errorCode,
1703
1666
  });
1704
1667
  }
1705
1668
  };
1706
1669
  const de_BillExpirationExceptionRes = async (parsedOutput, context) => {
1707
1670
  const body = parsedOutput.body;
1708
- const deserialized = de_BillExpirationException(body, context);
1671
+ const deserialized = (0, smithy_client_1._json)(body);
1709
1672
  const exception = new models_0_1.BillExpirationException({
1710
1673
  $metadata: deserializeMetadata(parsedOutput),
1711
1674
  ...deserialized,
@@ -1714,7 +1677,7 @@ const de_BillExpirationExceptionRes = async (parsedOutput, context) => {
1714
1677
  };
1715
1678
  const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
1716
1679
  const body = parsedOutput.body;
1717
- const deserialized = de_DataUnavailableException(body, context);
1680
+ const deserialized = (0, smithy_client_1._json)(body);
1718
1681
  const exception = new models_0_1.DataUnavailableException({
1719
1682
  $metadata: deserializeMetadata(parsedOutput),
1720
1683
  ...deserialized,
@@ -1723,7 +1686,7 @@ const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
1723
1686
  };
1724
1687
  const de_GenerationExistsExceptionRes = async (parsedOutput, context) => {
1725
1688
  const body = parsedOutput.body;
1726
- const deserialized = de_GenerationExistsException(body, context);
1689
+ const deserialized = (0, smithy_client_1._json)(body);
1727
1690
  const exception = new models_0_1.GenerationExistsException({
1728
1691
  $metadata: deserializeMetadata(parsedOutput),
1729
1692
  ...deserialized,
@@ -1732,7 +1695,7 @@ const de_GenerationExistsExceptionRes = async (parsedOutput, context) => {
1732
1695
  };
1733
1696
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1734
1697
  const body = parsedOutput.body;
1735
- const deserialized = de_InvalidNextTokenException(body, context);
1698
+ const deserialized = (0, smithy_client_1._json)(body);
1736
1699
  const exception = new models_0_1.InvalidNextTokenException({
1737
1700
  $metadata: deserializeMetadata(parsedOutput),
1738
1701
  ...deserialized,
@@ -1741,7 +1704,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1741
1704
  };
1742
1705
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1743
1706
  const body = parsedOutput.body;
1744
- const deserialized = de_LimitExceededException(body, context);
1707
+ const deserialized = (0, smithy_client_1._json)(body);
1745
1708
  const exception = new models_0_1.LimitExceededException({
1746
1709
  $metadata: deserializeMetadata(parsedOutput),
1747
1710
  ...deserialized,
@@ -1750,7 +1713,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1750
1713
  };
1751
1714
  const de_RequestChangedExceptionRes = async (parsedOutput, context) => {
1752
1715
  const body = parsedOutput.body;
1753
- const deserialized = de_RequestChangedException(body, context);
1716
+ const deserialized = (0, smithy_client_1._json)(body);
1754
1717
  const exception = new models_0_1.RequestChangedException({
1755
1718
  $metadata: deserializeMetadata(parsedOutput),
1756
1719
  ...deserialized,
@@ -1759,7 +1722,7 @@ const de_RequestChangedExceptionRes = async (parsedOutput, context) => {
1759
1722
  };
1760
1723
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1761
1724
  const body = parsedOutput.body;
1762
- const deserialized = de_ResourceNotFoundException(body, context);
1725
+ const deserialized = (0, smithy_client_1._json)(body);
1763
1726
  const exception = new models_0_1.ResourceNotFoundException({
1764
1727
  $metadata: deserializeMetadata(parsedOutput),
1765
1728
  ...deserialized,
@@ -1768,7 +1731,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1768
1731
  };
1769
1732
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1770
1733
  const body = parsedOutput.body;
1771
- const deserialized = de_ServiceQuotaExceededException(body, context);
1734
+ const deserialized = (0, smithy_client_1._json)(body);
1772
1735
  const exception = new models_0_1.ServiceQuotaExceededException({
1773
1736
  $metadata: deserializeMetadata(parsedOutput),
1774
1737
  ...deserialized,
@@ -1777,7 +1740,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1777
1740
  };
1778
1741
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1779
1742
  const body = parsedOutput.body;
1780
- const deserialized = de_TooManyTagsException(body, context);
1743
+ const deserialized = (0, smithy_client_1._json)(body);
1781
1744
  const exception = new models_0_1.TooManyTagsException({
1782
1745
  $metadata: deserializeMetadata(parsedOutput),
1783
1746
  ...deserialized,
@@ -1786,7 +1749,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1786
1749
  };
1787
1750
  const de_UnknownMonitorExceptionRes = async (parsedOutput, context) => {
1788
1751
  const body = parsedOutput.body;
1789
- const deserialized = de_UnknownMonitorException(body, context);
1752
+ const deserialized = (0, smithy_client_1._json)(body);
1790
1753
  const exception = new models_0_1.UnknownMonitorException({
1791
1754
  $metadata: deserializeMetadata(parsedOutput),
1792
1755
  ...deserialized,
@@ -1795,7 +1758,7 @@ const de_UnknownMonitorExceptionRes = async (parsedOutput, context) => {
1795
1758
  };
1796
1759
  const de_UnknownSubscriptionExceptionRes = async (parsedOutput, context) => {
1797
1760
  const body = parsedOutput.body;
1798
- const deserialized = de_UnknownSubscriptionException(body, context);
1761
+ const deserialized = (0, smithy_client_1._json)(body);
1799
1762
  const exception = new models_0_1.UnknownSubscriptionException({
1800
1763
  $metadata: deserializeMetadata(parsedOutput),
1801
1764
  ...deserialized,
@@ -1804,83 +1767,45 @@ const de_UnknownSubscriptionExceptionRes = async (parsedOutput, context) => {
1804
1767
  };
1805
1768
  const de_UnresolvableUsageUnitExceptionRes = async (parsedOutput, context) => {
1806
1769
  const body = parsedOutput.body;
1807
- const deserialized = de_UnresolvableUsageUnitException(body, context);
1770
+ const deserialized = (0, smithy_client_1._json)(body);
1808
1771
  const exception = new models_0_1.UnresolvableUsageUnitException({
1809
1772
  $metadata: deserializeMetadata(parsedOutput),
1810
1773
  ...deserialized,
1811
1774
  });
1812
1775
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1813
1776
  };
1814
- const se_AnomalyDateInterval = (input, context) => {
1815
- return {
1816
- ...(input.EndDate != null && { EndDate: input.EndDate }),
1817
- ...(input.StartDate != null && { StartDate: input.StartDate }),
1818
- };
1819
- };
1820
1777
  const se_AnomalyMonitor = (input, context) => {
1821
- return {
1822
- ...(input.CreationDate != null && { CreationDate: input.CreationDate }),
1823
- ...(input.DimensionalValueCount != null && { DimensionalValueCount: input.DimensionalValueCount }),
1824
- ...(input.LastEvaluatedDate != null && { LastEvaluatedDate: input.LastEvaluatedDate }),
1825
- ...(input.LastUpdatedDate != null && { LastUpdatedDate: input.LastUpdatedDate }),
1826
- ...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
1827
- ...(input.MonitorDimension != null && { MonitorDimension: input.MonitorDimension }),
1828
- ...(input.MonitorName != null && { MonitorName: input.MonitorName }),
1829
- ...(input.MonitorSpecification != null && {
1830
- MonitorSpecification: se_Expression(input.MonitorSpecification, context),
1831
- }),
1832
- ...(input.MonitorType != null && { MonitorType: input.MonitorType }),
1833
- };
1834
- };
1835
- const se_AnomalySubscription = (input, context) => {
1836
- return {
1837
- ...(input.AccountId != null && { AccountId: input.AccountId }),
1838
- ...(input.Frequency != null && { Frequency: input.Frequency }),
1839
- ...(input.MonitorArnList != null && { MonitorArnList: se_MonitorArnList(input.MonitorArnList, context) }),
1840
- ...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
1841
- ...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
1842
- ...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
1843
- ...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
1844
- ...(input.ThresholdExpression != null && {
1845
- ThresholdExpression: se_Expression(input.ThresholdExpression, context),
1846
- }),
1847
- };
1848
- };
1849
- const se_CostAllocationTagKeyList = (input, context) => {
1850
- return input
1851
- .filter((e) => e != null)
1852
- .map((entry) => {
1853
- return entry;
1778
+ return (0, smithy_client_1.take)(input, {
1779
+ CreationDate: [],
1780
+ DimensionalValueCount: [],
1781
+ LastEvaluatedDate: [],
1782
+ LastUpdatedDate: [],
1783
+ MonitorArn: [],
1784
+ MonitorDimension: [],
1785
+ MonitorName: [],
1786
+ MonitorSpecification: (_) => se_Expression(_, context),
1787
+ MonitorType: [],
1854
1788
  });
1855
1789
  };
1856
- const se_CostAllocationTagStatusEntry = (input, context) => {
1857
- return {
1858
- ...(input.Status != null && { Status: input.Status }),
1859
- ...(input.TagKey != null && { TagKey: input.TagKey }),
1860
- };
1861
- };
1862
- const se_CostAllocationTagStatusList = (input, context) => {
1863
- return input
1864
- .filter((e) => e != null)
1865
- .map((entry) => {
1866
- return se_CostAllocationTagStatusEntry(entry, context);
1790
+ const se_AnomalySubscription = (input, context) => {
1791
+ return (0, smithy_client_1.take)(input, {
1792
+ AccountId: [],
1793
+ Frequency: [],
1794
+ MonitorArnList: smithy_client_1._json,
1795
+ Subscribers: smithy_client_1._json,
1796
+ SubscriptionArn: [],
1797
+ SubscriptionName: [],
1798
+ Threshold: smithy_client_1.serializeFloat,
1799
+ ThresholdExpression: (_) => se_Expression(_, context),
1867
1800
  });
1868
1801
  };
1869
- const se_CostCategoryInheritedValueDimension = (input, context) => {
1870
- return {
1871
- ...(input.DimensionKey != null && { DimensionKey: input.DimensionKey }),
1872
- ...(input.DimensionName != null && { DimensionName: input.DimensionName }),
1873
- };
1874
- };
1875
1802
  const se_CostCategoryRule = (input, context) => {
1876
- return {
1877
- ...(input.InheritedValue != null && {
1878
- InheritedValue: se_CostCategoryInheritedValueDimension(input.InheritedValue, context),
1879
- }),
1880
- ...(input.Rule != null && { Rule: se_Expression(input.Rule, context) }),
1881
- ...(input.Type != null && { Type: input.Type }),
1882
- ...(input.Value != null && { Value: input.Value }),
1883
- };
1803
+ return (0, smithy_client_1.take)(input, {
1804
+ InheritedValue: smithy_client_1._json,
1805
+ Rule: (_) => se_Expression(_, context),
1806
+ Type: [],
1807
+ Value: [],
1808
+ });
1884
1809
  };
1885
1810
  const se_CostCategoryRulesList = (input, context) => {
1886
1811
  return input
@@ -1889,132 +1814,38 @@ const se_CostCategoryRulesList = (input, context) => {
1889
1814
  return se_CostCategoryRule(entry, context);
1890
1815
  });
1891
1816
  };
1892
- const se_CostCategorySplitChargeRule = (input, context) => {
1893
- return {
1894
- ...(input.Method != null && { Method: input.Method }),
1895
- ...(input.Parameters != null && {
1896
- Parameters: se_CostCategorySplitChargeRuleParametersList(input.Parameters, context),
1897
- }),
1898
- ...(input.Source != null && { Source: input.Source }),
1899
- ...(input.Targets != null && { Targets: se_CostCategorySplitChargeRuleTargetsList(input.Targets, context) }),
1900
- };
1901
- };
1902
- const se_CostCategorySplitChargeRuleParameter = (input, context) => {
1903
- return {
1904
- ...(input.Type != null && { Type: input.Type }),
1905
- ...(input.Values != null && { Values: se_CostCategorySplitChargeRuleParameterValuesList(input.Values, context) }),
1906
- };
1907
- };
1908
- const se_CostCategorySplitChargeRuleParametersList = (input, context) => {
1909
- return input
1910
- .filter((e) => e != null)
1911
- .map((entry) => {
1912
- return se_CostCategorySplitChargeRuleParameter(entry, context);
1913
- });
1914
- };
1915
- const se_CostCategorySplitChargeRuleParameterValuesList = (input, context) => {
1916
- return input
1917
- .filter((e) => e != null)
1918
- .map((entry) => {
1919
- return entry;
1920
- });
1921
- };
1922
- const se_CostCategorySplitChargeRulesList = (input, context) => {
1923
- return input
1924
- .filter((e) => e != null)
1925
- .map((entry) => {
1926
- return se_CostCategorySplitChargeRule(entry, context);
1927
- });
1928
- };
1929
- const se_CostCategorySplitChargeRuleTargetsList = (input, context) => {
1930
- return input
1931
- .filter((e) => e != null)
1932
- .map((entry) => {
1933
- return entry;
1934
- });
1935
- };
1936
- const se_CostCategoryValues = (input, context) => {
1937
- return {
1938
- ...(input.Key != null && { Key: input.Key }),
1939
- ...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
1940
- ...(input.Values != null && { Values: se_Values(input.Values, context) }),
1941
- };
1942
- };
1943
1817
  const se_CreateAnomalyMonitorRequest = (input, context) => {
1944
- return {
1945
- ...(input.AnomalyMonitor != null && { AnomalyMonitor: se_AnomalyMonitor(input.AnomalyMonitor, context) }),
1946
- ...(input.ResourceTags != null && { ResourceTags: se_ResourceTagList(input.ResourceTags, context) }),
1947
- };
1818
+ return (0, smithy_client_1.take)(input, {
1819
+ AnomalyMonitor: (_) => se_AnomalyMonitor(_, context),
1820
+ ResourceTags: smithy_client_1._json,
1821
+ });
1948
1822
  };
1949
1823
  const se_CreateAnomalySubscriptionRequest = (input, context) => {
1950
- return {
1951
- ...(input.AnomalySubscription != null && {
1952
- AnomalySubscription: se_AnomalySubscription(input.AnomalySubscription, context),
1953
- }),
1954
- ...(input.ResourceTags != null && { ResourceTags: se_ResourceTagList(input.ResourceTags, context) }),
1955
- };
1824
+ return (0, smithy_client_1.take)(input, {
1825
+ AnomalySubscription: (_) => se_AnomalySubscription(_, context),
1826
+ ResourceTags: smithy_client_1._json,
1827
+ });
1956
1828
  };
1957
1829
  const se_CreateCostCategoryDefinitionRequest = (input, context) => {
1958
- return {
1959
- ...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
1960
- ...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
1961
- ...(input.Name != null && { Name: input.Name }),
1962
- ...(input.ResourceTags != null && { ResourceTags: se_ResourceTagList(input.ResourceTags, context) }),
1963
- ...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
1964
- ...(input.Rules != null && { Rules: se_CostCategoryRulesList(input.Rules, context) }),
1965
- ...(input.SplitChargeRules != null && {
1966
- SplitChargeRules: se_CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
1967
- }),
1968
- };
1969
- };
1970
- const se_DateInterval = (input, context) => {
1971
- return {
1972
- ...(input.End != null && { End: input.End }),
1973
- ...(input.Start != null && { Start: input.Start }),
1974
- };
1975
- };
1976
- const se_DeleteAnomalyMonitorRequest = (input, context) => {
1977
- return {
1978
- ...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
1979
- };
1980
- };
1981
- const se_DeleteAnomalySubscriptionRequest = (input, context) => {
1982
- return {
1983
- ...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
1984
- };
1985
- };
1986
- const se_DeleteCostCategoryDefinitionRequest = (input, context) => {
1987
- return {
1988
- ...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
1989
- };
1990
- };
1991
- const se_DescribeCostCategoryDefinitionRequest = (input, context) => {
1992
- return {
1993
- ...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
1994
- ...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
1995
- };
1996
- };
1997
- const se_DimensionValues = (input, context) => {
1998
- return {
1999
- ...(input.Key != null && { Key: input.Key }),
2000
- ...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
2001
- ...(input.Values != null && { Values: se_Values(input.Values, context) }),
2002
- };
2003
- };
2004
- const se_EC2Specification = (input, context) => {
2005
- return {
2006
- ...(input.OfferingClass != null && { OfferingClass: input.OfferingClass }),
2007
- };
1830
+ return (0, smithy_client_1.take)(input, {
1831
+ DefaultValue: [],
1832
+ EffectiveStart: [],
1833
+ Name: [],
1834
+ ResourceTags: smithy_client_1._json,
1835
+ RuleVersion: [],
1836
+ Rules: (_) => se_CostCategoryRulesList(_, context),
1837
+ SplitChargeRules: smithy_client_1._json,
1838
+ });
2008
1839
  };
2009
1840
  const se_Expression = (input, context) => {
2010
- return {
2011
- ...(input.And != null && { And: se_Expressions(input.And, context) }),
2012
- ...(input.CostCategories != null && { CostCategories: se_CostCategoryValues(input.CostCategories, context) }),
2013
- ...(input.Dimensions != null && { Dimensions: se_DimensionValues(input.Dimensions, context) }),
2014
- ...(input.Not != null && { Not: se_Expression(input.Not, context) }),
2015
- ...(input.Or != null && { Or: se_Expressions(input.Or, context) }),
2016
- ...(input.Tags != null && { Tags: se_TagValues(input.Tags, context) }),
2017
- };
1841
+ return (0, smithy_client_1.take)(input, {
1842
+ And: (_) => se_Expressions(_, context),
1843
+ CostCategories: smithy_client_1._json,
1844
+ Dimensions: smithy_client_1._json,
1845
+ Not: (_) => se_Expression(_, context),
1846
+ Or: (_) => se_Expressions(_, context),
1847
+ Tags: smithy_client_1._json,
1848
+ });
2018
1849
  };
2019
1850
  const se_Expressions = (input, context) => {
2020
1851
  return input
@@ -2024,1943 +1855,349 @@ const se_Expressions = (input, context) => {
2024
1855
  });
2025
1856
  };
2026
1857
  const se_GetAnomaliesRequest = (input, context) => {
2027
- return {
2028
- ...(input.DateInterval != null && { DateInterval: se_AnomalyDateInterval(input.DateInterval, context) }),
2029
- ...(input.Feedback != null && { Feedback: input.Feedback }),
2030
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2031
- ...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
2032
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2033
- ...(input.TotalImpact != null && { TotalImpact: se_TotalImpactFilter(input.TotalImpact, context) }),
2034
- };
2035
- };
2036
- const se_GetAnomalyMonitorsRequest = (input, context) => {
2037
- return {
2038
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2039
- ...(input.MonitorArnList != null && { MonitorArnList: se_Values(input.MonitorArnList, context) }),
2040
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2041
- };
2042
- };
2043
- const se_GetAnomalySubscriptionsRequest = (input, context) => {
2044
- return {
2045
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2046
- ...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
2047
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2048
- ...(input.SubscriptionArnList != null && { SubscriptionArnList: se_Values(input.SubscriptionArnList, context) }),
2049
- };
1858
+ return (0, smithy_client_1.take)(input, {
1859
+ DateInterval: smithy_client_1._json,
1860
+ Feedback: [],
1861
+ MaxResults: [],
1862
+ MonitorArn: [],
1863
+ NextPageToken: [],
1864
+ TotalImpact: (_) => se_TotalImpactFilter(_, context),
1865
+ });
2050
1866
  };
2051
1867
  const se_GetCostAndUsageRequest = (input, context) => {
2052
- return {
2053
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2054
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2055
- ...(input.GroupBy != null && { GroupBy: se_GroupDefinitions(input.GroupBy, context) }),
2056
- ...(input.Metrics != null && { Metrics: se_MetricNames(input.Metrics, context) }),
2057
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2058
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2059
- };
1868
+ return (0, smithy_client_1.take)(input, {
1869
+ Filter: (_) => se_Expression(_, context),
1870
+ Granularity: [],
1871
+ GroupBy: smithy_client_1._json,
1872
+ Metrics: smithy_client_1._json,
1873
+ NextPageToken: [],
1874
+ TimePeriod: smithy_client_1._json,
1875
+ });
2060
1876
  };
2061
1877
  const se_GetCostAndUsageWithResourcesRequest = (input, context) => {
2062
- return {
2063
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2064
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2065
- ...(input.GroupBy != null && { GroupBy: se_GroupDefinitions(input.GroupBy, context) }),
2066
- ...(input.Metrics != null && { Metrics: se_MetricNames(input.Metrics, context) }),
2067
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2068
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2069
- };
1878
+ return (0, smithy_client_1.take)(input, {
1879
+ Filter: (_) => se_Expression(_, context),
1880
+ Granularity: [],
1881
+ GroupBy: smithy_client_1._json,
1882
+ Metrics: smithy_client_1._json,
1883
+ NextPageToken: [],
1884
+ TimePeriod: smithy_client_1._json,
1885
+ });
2070
1886
  };
2071
1887
  const se_GetCostCategoriesRequest = (input, context) => {
2072
- return {
2073
- ...(input.CostCategoryName != null && { CostCategoryName: input.CostCategoryName }),
2074
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2075
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2076
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2077
- ...(input.SearchString != null && { SearchString: input.SearchString }),
2078
- ...(input.SortBy != null && { SortBy: se_SortDefinitions(input.SortBy, context) }),
2079
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2080
- };
1888
+ return (0, smithy_client_1.take)(input, {
1889
+ CostCategoryName: [],
1890
+ Filter: (_) => se_Expression(_, context),
1891
+ MaxResults: [],
1892
+ NextPageToken: [],
1893
+ SearchString: [],
1894
+ SortBy: smithy_client_1._json,
1895
+ TimePeriod: smithy_client_1._json,
1896
+ });
2081
1897
  };
2082
1898
  const se_GetCostForecastRequest = (input, context) => {
2083
- return {
2084
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2085
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2086
- ...(input.Metric != null && { Metric: input.Metric }),
2087
- ...(input.PredictionIntervalLevel != null && { PredictionIntervalLevel: input.PredictionIntervalLevel }),
2088
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2089
- };
1899
+ return (0, smithy_client_1.take)(input, {
1900
+ Filter: (_) => se_Expression(_, context),
1901
+ Granularity: [],
1902
+ Metric: [],
1903
+ PredictionIntervalLevel: [],
1904
+ TimePeriod: smithy_client_1._json,
1905
+ });
2090
1906
  };
2091
1907
  const se_GetDimensionValuesRequest = (input, context) => {
2092
- return {
2093
- ...(input.Context != null && { Context: input.Context }),
2094
- ...(input.Dimension != null && { Dimension: input.Dimension }),
2095
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2096
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2097
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2098
- ...(input.SearchString != null && { SearchString: input.SearchString }),
2099
- ...(input.SortBy != null && { SortBy: se_SortDefinitions(input.SortBy, context) }),
2100
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2101
- };
1908
+ return (0, smithy_client_1.take)(input, {
1909
+ Context: [],
1910
+ Dimension: [],
1911
+ Filter: (_) => se_Expression(_, context),
1912
+ MaxResults: [],
1913
+ NextPageToken: [],
1914
+ SearchString: [],
1915
+ SortBy: smithy_client_1._json,
1916
+ TimePeriod: smithy_client_1._json,
1917
+ });
2102
1918
  };
2103
1919
  const se_GetReservationCoverageRequest = (input, context) => {
2104
- return {
2105
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2106
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2107
- ...(input.GroupBy != null && { GroupBy: se_GroupDefinitions(input.GroupBy, context) }),
2108
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2109
- ...(input.Metrics != null && { Metrics: se_MetricNames(input.Metrics, context) }),
2110
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2111
- ...(input.SortBy != null && { SortBy: se_SortDefinition(input.SortBy, context) }),
2112
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2113
- };
1920
+ return (0, smithy_client_1.take)(input, {
1921
+ Filter: (_) => se_Expression(_, context),
1922
+ Granularity: [],
1923
+ GroupBy: smithy_client_1._json,
1924
+ MaxResults: [],
1925
+ Metrics: smithy_client_1._json,
1926
+ NextPageToken: [],
1927
+ SortBy: smithy_client_1._json,
1928
+ TimePeriod: smithy_client_1._json,
1929
+ });
2114
1930
  };
2115
1931
  const se_GetReservationPurchaseRecommendationRequest = (input, context) => {
2116
- return {
2117
- ...(input.AccountId != null && { AccountId: input.AccountId }),
2118
- ...(input.AccountScope != null && { AccountScope: input.AccountScope }),
2119
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2120
- ...(input.LookbackPeriodInDays != null && { LookbackPeriodInDays: input.LookbackPeriodInDays }),
2121
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2122
- ...(input.PageSize != null && { PageSize: input.PageSize }),
2123
- ...(input.PaymentOption != null && { PaymentOption: input.PaymentOption }),
2124
- ...(input.Service != null && { Service: input.Service }),
2125
- ...(input.ServiceSpecification != null && {
2126
- ServiceSpecification: se_ServiceSpecification(input.ServiceSpecification, context),
2127
- }),
2128
- ...(input.TermInYears != null && { TermInYears: input.TermInYears }),
2129
- };
1932
+ return (0, smithy_client_1.take)(input, {
1933
+ AccountId: [],
1934
+ AccountScope: [],
1935
+ Filter: (_) => se_Expression(_, context),
1936
+ LookbackPeriodInDays: [],
1937
+ NextPageToken: [],
1938
+ PageSize: [],
1939
+ PaymentOption: [],
1940
+ Service: [],
1941
+ ServiceSpecification: smithy_client_1._json,
1942
+ TermInYears: [],
1943
+ });
2130
1944
  };
2131
1945
  const se_GetReservationUtilizationRequest = (input, context) => {
2132
- return {
2133
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2134
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2135
- ...(input.GroupBy != null && { GroupBy: se_GroupDefinitions(input.GroupBy, context) }),
2136
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2137
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2138
- ...(input.SortBy != null && { SortBy: se_SortDefinition(input.SortBy, context) }),
2139
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2140
- };
1946
+ return (0, smithy_client_1.take)(input, {
1947
+ Filter: (_) => se_Expression(_, context),
1948
+ Granularity: [],
1949
+ GroupBy: smithy_client_1._json,
1950
+ MaxResults: [],
1951
+ NextPageToken: [],
1952
+ SortBy: smithy_client_1._json,
1953
+ TimePeriod: smithy_client_1._json,
1954
+ });
2141
1955
  };
2142
1956
  const se_GetRightsizingRecommendationRequest = (input, context) => {
2143
- return {
2144
- ...(input.Configuration != null && {
2145
- Configuration: se_RightsizingRecommendationConfiguration(input.Configuration, context),
2146
- }),
2147
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2148
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2149
- ...(input.PageSize != null && { PageSize: input.PageSize }),
2150
- ...(input.Service != null && { Service: input.Service }),
2151
- };
1957
+ return (0, smithy_client_1.take)(input, {
1958
+ Configuration: smithy_client_1._json,
1959
+ Filter: (_) => se_Expression(_, context),
1960
+ NextPageToken: [],
1961
+ PageSize: [],
1962
+ Service: [],
1963
+ });
2152
1964
  };
2153
1965
  const se_GetSavingsPlansCoverageRequest = (input, context) => {
2154
- return {
2155
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2156
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2157
- ...(input.GroupBy != null && { GroupBy: se_GroupDefinitions(input.GroupBy, context) }),
2158
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2159
- ...(input.Metrics != null && { Metrics: se_MetricNames(input.Metrics, context) }),
2160
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2161
- ...(input.SortBy != null && { SortBy: se_SortDefinition(input.SortBy, context) }),
2162
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2163
- };
1966
+ return (0, smithy_client_1.take)(input, {
1967
+ Filter: (_) => se_Expression(_, context),
1968
+ Granularity: [],
1969
+ GroupBy: smithy_client_1._json,
1970
+ MaxResults: [],
1971
+ Metrics: smithy_client_1._json,
1972
+ NextToken: [],
1973
+ SortBy: smithy_client_1._json,
1974
+ TimePeriod: smithy_client_1._json,
1975
+ });
2164
1976
  };
2165
1977
  const se_GetSavingsPlansPurchaseRecommendationRequest = (input, context) => {
2166
- return {
2167
- ...(input.AccountScope != null && { AccountScope: input.AccountScope }),
2168
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2169
- ...(input.LookbackPeriodInDays != null && { LookbackPeriodInDays: input.LookbackPeriodInDays }),
2170
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2171
- ...(input.PageSize != null && { PageSize: input.PageSize }),
2172
- ...(input.PaymentOption != null && { PaymentOption: input.PaymentOption }),
2173
- ...(input.SavingsPlansType != null && { SavingsPlansType: input.SavingsPlansType }),
2174
- ...(input.TermInYears != null && { TermInYears: input.TermInYears }),
2175
- };
1978
+ return (0, smithy_client_1.take)(input, {
1979
+ AccountScope: [],
1980
+ Filter: (_) => se_Expression(_, context),
1981
+ LookbackPeriodInDays: [],
1982
+ NextPageToken: [],
1983
+ PageSize: [],
1984
+ PaymentOption: [],
1985
+ SavingsPlansType: [],
1986
+ TermInYears: [],
1987
+ });
2176
1988
  };
2177
1989
  const se_GetSavingsPlansUtilizationDetailsRequest = (input, context) => {
2178
- return {
2179
- ...(input.DataType != null && { DataType: se_SavingsPlansDataTypes(input.DataType, context) }),
2180
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2181
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2182
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2183
- ...(input.SortBy != null && { SortBy: se_SortDefinition(input.SortBy, context) }),
2184
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2185
- };
1990
+ return (0, smithy_client_1.take)(input, {
1991
+ DataType: smithy_client_1._json,
1992
+ Filter: (_) => se_Expression(_, context),
1993
+ MaxResults: [],
1994
+ NextToken: [],
1995
+ SortBy: smithy_client_1._json,
1996
+ TimePeriod: smithy_client_1._json,
1997
+ });
2186
1998
  };
2187
1999
  const se_GetSavingsPlansUtilizationRequest = (input, context) => {
2188
- return {
2189
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2190
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2191
- ...(input.SortBy != null && { SortBy: se_SortDefinition(input.SortBy, context) }),
2192
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2193
- };
2000
+ return (0, smithy_client_1.take)(input, {
2001
+ Filter: (_) => se_Expression(_, context),
2002
+ Granularity: [],
2003
+ SortBy: smithy_client_1._json,
2004
+ TimePeriod: smithy_client_1._json,
2005
+ });
2194
2006
  };
2195
2007
  const se_GetTagsRequest = (input, context) => {
2196
- return {
2197
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2198
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2199
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2200
- ...(input.SearchString != null && { SearchString: input.SearchString }),
2201
- ...(input.SortBy != null && { SortBy: se_SortDefinitions(input.SortBy, context) }),
2202
- ...(input.TagKey != null && { TagKey: input.TagKey }),
2203
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2204
- };
2008
+ return (0, smithy_client_1.take)(input, {
2009
+ Filter: (_) => se_Expression(_, context),
2010
+ MaxResults: [],
2011
+ NextPageToken: [],
2012
+ SearchString: [],
2013
+ SortBy: smithy_client_1._json,
2014
+ TagKey: [],
2015
+ TimePeriod: smithy_client_1._json,
2016
+ });
2205
2017
  };
2206
2018
  const se_GetUsageForecastRequest = (input, context) => {
2207
- return {
2208
- ...(input.Filter != null && { Filter: se_Expression(input.Filter, context) }),
2209
- ...(input.Granularity != null && { Granularity: input.Granularity }),
2210
- ...(input.Metric != null && { Metric: input.Metric }),
2211
- ...(input.PredictionIntervalLevel != null && { PredictionIntervalLevel: input.PredictionIntervalLevel }),
2212
- ...(input.TimePeriod != null && { TimePeriod: se_DateInterval(input.TimePeriod, context) }),
2213
- };
2214
- };
2215
- const se_GroupDefinition = (input, context) => {
2216
- return {
2217
- ...(input.Key != null && { Key: input.Key }),
2218
- ...(input.Type != null && { Type: input.Type }),
2219
- };
2220
- };
2221
- const se_GroupDefinitions = (input, context) => {
2222
- return input
2223
- .filter((e) => e != null)
2224
- .map((entry) => {
2225
- return se_GroupDefinition(entry, context);
2019
+ return (0, smithy_client_1.take)(input, {
2020
+ Filter: (_) => se_Expression(_, context),
2021
+ Granularity: [],
2022
+ Metric: [],
2023
+ PredictionIntervalLevel: [],
2024
+ TimePeriod: smithy_client_1._json,
2226
2025
  });
2227
2026
  };
2228
- const se_ListCostAllocationTagsRequest = (input, context) => {
2229
- return {
2230
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2231
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2232
- ...(input.Status != null && { Status: input.Status }),
2233
- ...(input.TagKeys != null && { TagKeys: se_CostAllocationTagKeyList(input.TagKeys, context) }),
2234
- ...(input.Type != null && { Type: input.Type }),
2235
- };
2236
- };
2237
- const se_ListCostCategoryDefinitionsRequest = (input, context) => {
2238
- return {
2239
- ...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
2240
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2241
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2242
- };
2243
- };
2244
- const se_ListSavingsPlansPurchaseRecommendationGenerationRequest = (input, context) => {
2245
- return {
2246
- ...(input.GenerationStatus != null && { GenerationStatus: input.GenerationStatus }),
2247
- ...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
2248
- ...(input.PageSize != null && { PageSize: input.PageSize }),
2249
- ...(input.RecommendationIds != null && {
2250
- RecommendationIds: se_RecommendationIdList(input.RecommendationIds, context),
2251
- }),
2252
- };
2253
- };
2254
- const se_ListTagsForResourceRequest = (input, context) => {
2255
- return {
2256
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2257
- };
2258
- };
2259
- const se_MatchOptions = (input, context) => {
2260
- return input
2261
- .filter((e) => e != null)
2262
- .map((entry) => {
2263
- return entry;
2027
+ const se_TotalImpactFilter = (input, context) => {
2028
+ return (0, smithy_client_1.take)(input, {
2029
+ EndValue: smithy_client_1.serializeFloat,
2030
+ NumericOperator: [],
2031
+ StartValue: smithy_client_1.serializeFloat,
2264
2032
  });
2265
2033
  };
2266
- const se_MetricNames = (input, context) => {
2267
- return input
2268
- .filter((e) => e != null)
2269
- .map((entry) => {
2270
- return entry;
2034
+ const se_UpdateAnomalySubscriptionRequest = (input, context) => {
2035
+ return (0, smithy_client_1.take)(input, {
2036
+ Frequency: [],
2037
+ MonitorArnList: smithy_client_1._json,
2038
+ Subscribers: smithy_client_1._json,
2039
+ SubscriptionArn: [],
2040
+ SubscriptionName: [],
2041
+ Threshold: smithy_client_1.serializeFloat,
2042
+ ThresholdExpression: (_) => se_Expression(_, context),
2271
2043
  });
2272
2044
  };
2273
- const se_MonitorArnList = (input, context) => {
2274
- return input
2275
- .filter((e) => e != null)
2276
- .map((entry) => {
2277
- return entry;
2045
+ const se_UpdateCostCategoryDefinitionRequest = (input, context) => {
2046
+ return (0, smithy_client_1.take)(input, {
2047
+ CostCategoryArn: [],
2048
+ DefaultValue: [],
2049
+ EffectiveStart: [],
2050
+ RuleVersion: [],
2051
+ Rules: (_) => se_CostCategoryRulesList(_, context),
2052
+ SplitChargeRules: smithy_client_1._json,
2278
2053
  });
2279
2054
  };
2280
- const se_ProvideAnomalyFeedbackRequest = (input, context) => {
2281
- return {
2282
- ...(input.AnomalyId != null && { AnomalyId: input.AnomalyId }),
2283
- ...(input.Feedback != null && { Feedback: input.Feedback }),
2284
- };
2285
- };
2286
- const se_RecommendationIdList = (input, context) => {
2287
- return input
2055
+ const de_Anomalies = (output, context) => {
2056
+ const retVal = (output || [])
2288
2057
  .filter((e) => e != null)
2289
2058
  .map((entry) => {
2290
- return entry;
2059
+ return de_Anomaly(entry, context);
2291
2060
  });
2061
+ return retVal;
2292
2062
  };
2293
- const se_ResourceTag = (input, context) => {
2294
- return {
2295
- ...(input.Key != null && { Key: input.Key }),
2296
- ...(input.Value != null && { Value: input.Value }),
2297
- };
2298
- };
2299
- const se_ResourceTagKeyList = (input, context) => {
2300
- return input
2301
- .filter((e) => e != null)
2302
- .map((entry) => {
2303
- return entry;
2063
+ const de_Anomaly = (output, context) => {
2064
+ return (0, smithy_client_1.take)(output, {
2065
+ AnomalyEndDate: smithy_client_1.expectString,
2066
+ AnomalyId: smithy_client_1.expectString,
2067
+ AnomalyScore: (_) => de_AnomalyScore(_, context),
2068
+ AnomalyStartDate: smithy_client_1.expectString,
2069
+ DimensionValue: smithy_client_1.expectString,
2070
+ Feedback: smithy_client_1.expectString,
2071
+ Impact: (_) => de_Impact(_, context),
2072
+ MonitorArn: smithy_client_1.expectString,
2073
+ RootCauses: smithy_client_1._json,
2304
2074
  });
2305
2075
  };
2306
- const se_ResourceTagList = (input, context) => {
2307
- return input
2308
- .filter((e) => e != null)
2309
- .map((entry) => {
2310
- return se_ResourceTag(entry, context);
2076
+ const de_AnomalyMonitor = (output, context) => {
2077
+ return (0, smithy_client_1.take)(output, {
2078
+ CreationDate: smithy_client_1.expectString,
2079
+ DimensionalValueCount: smithy_client_1.expectInt32,
2080
+ LastEvaluatedDate: smithy_client_1.expectString,
2081
+ LastUpdatedDate: smithy_client_1.expectString,
2082
+ MonitorArn: smithy_client_1.expectString,
2083
+ MonitorDimension: smithy_client_1.expectString,
2084
+ MonitorName: smithy_client_1.expectString,
2085
+ MonitorSpecification: (_) => de_Expression(_, context),
2086
+ MonitorType: smithy_client_1.expectString,
2311
2087
  });
2312
2088
  };
2313
- const se_RightsizingRecommendationConfiguration = (input, context) => {
2314
- return {
2315
- ...(input.BenefitsConsidered != null && { BenefitsConsidered: input.BenefitsConsidered }),
2316
- ...(input.RecommendationTarget != null && { RecommendationTarget: input.RecommendationTarget }),
2317
- };
2318
- };
2319
- const se_SavingsPlansDataTypes = (input, context) => {
2320
- return input
2089
+ const de_AnomalyMonitors = (output, context) => {
2090
+ const retVal = (output || [])
2321
2091
  .filter((e) => e != null)
2322
2092
  .map((entry) => {
2323
- return entry;
2093
+ return de_AnomalyMonitor(entry, context);
2324
2094
  });
2095
+ return retVal;
2325
2096
  };
2326
- const se_ServiceSpecification = (input, context) => {
2327
- return {
2328
- ...(input.EC2Specification != null && { EC2Specification: se_EC2Specification(input.EC2Specification, context) }),
2329
- };
2097
+ const de_AnomalyScore = (output, context) => {
2098
+ return (0, smithy_client_1.take)(output, {
2099
+ CurrentScore: smithy_client_1.limitedParseDouble,
2100
+ MaxScore: smithy_client_1.limitedParseDouble,
2101
+ });
2330
2102
  };
2331
- const se_SortDefinition = (input, context) => {
2332
- return {
2333
- ...(input.Key != null && { Key: input.Key }),
2334
- ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
2335
- };
2103
+ const de_AnomalySubscription = (output, context) => {
2104
+ return (0, smithy_client_1.take)(output, {
2105
+ AccountId: smithy_client_1.expectString,
2106
+ Frequency: smithy_client_1.expectString,
2107
+ MonitorArnList: smithy_client_1._json,
2108
+ Subscribers: smithy_client_1._json,
2109
+ SubscriptionArn: smithy_client_1.expectString,
2110
+ SubscriptionName: smithy_client_1.expectString,
2111
+ Threshold: smithy_client_1.limitedParseDouble,
2112
+ ThresholdExpression: (_) => de_Expression(_, context),
2113
+ });
2336
2114
  };
2337
- const se_SortDefinitions = (input, context) => {
2338
- return input
2115
+ const de_AnomalySubscriptions = (output, context) => {
2116
+ const retVal = (output || [])
2339
2117
  .filter((e) => e != null)
2340
2118
  .map((entry) => {
2341
- return se_SortDefinition(entry, context);
2119
+ return de_AnomalySubscription(entry, context);
2342
2120
  });
2121
+ return retVal;
2343
2122
  };
2344
- const se_StartSavingsPlansPurchaseRecommendationGenerationRequest = (input, context) => {
2345
- return {};
2123
+ const de_CostCategory = (output, context) => {
2124
+ return (0, smithy_client_1.take)(output, {
2125
+ CostCategoryArn: smithy_client_1.expectString,
2126
+ DefaultValue: smithy_client_1.expectString,
2127
+ EffectiveEnd: smithy_client_1.expectString,
2128
+ EffectiveStart: smithy_client_1.expectString,
2129
+ Name: smithy_client_1.expectString,
2130
+ ProcessingStatus: smithy_client_1._json,
2131
+ RuleVersion: smithy_client_1.expectString,
2132
+ Rules: (_) => de_CostCategoryRulesList(_, context),
2133
+ SplitChargeRules: smithy_client_1._json,
2134
+ });
2346
2135
  };
2347
- const se_Subscriber = (input, context) => {
2348
- return {
2349
- ...(input.Address != null && { Address: input.Address }),
2350
- ...(input.Status != null && { Status: input.Status }),
2351
- ...(input.Type != null && { Type: input.Type }),
2352
- };
2136
+ const de_CostCategoryRule = (output, context) => {
2137
+ return (0, smithy_client_1.take)(output, {
2138
+ InheritedValue: smithy_client_1._json,
2139
+ Rule: (_) => de_Expression(_, context),
2140
+ Type: smithy_client_1.expectString,
2141
+ Value: smithy_client_1.expectString,
2142
+ });
2353
2143
  };
2354
- const se_Subscribers = (input, context) => {
2355
- return input
2144
+ const de_CostCategoryRulesList = (output, context) => {
2145
+ const retVal = (output || [])
2356
2146
  .filter((e) => e != null)
2357
2147
  .map((entry) => {
2358
- return se_Subscriber(entry, context);
2148
+ return de_CostCategoryRule(entry, context);
2359
2149
  });
2150
+ return retVal;
2360
2151
  };
2361
- const se_TagResourceRequest = (input, context) => {
2362
- return {
2363
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2364
- ...(input.ResourceTags != null && { ResourceTags: se_ResourceTagList(input.ResourceTags, context) }),
2365
- };
2366
- };
2367
- const se_TagValues = (input, context) => {
2368
- return {
2369
- ...(input.Key != null && { Key: input.Key }),
2370
- ...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
2371
- ...(input.Values != null && { Values: se_Values(input.Values, context) }),
2372
- };
2373
- };
2374
- const se_TotalImpactFilter = (input, context) => {
2375
- return {
2376
- ...(input.EndValue != null && { EndValue: (0, smithy_client_1.serializeFloat)(input.EndValue) }),
2377
- ...(input.NumericOperator != null && { NumericOperator: input.NumericOperator }),
2378
- ...(input.StartValue != null && { StartValue: (0, smithy_client_1.serializeFloat)(input.StartValue) }),
2379
- };
2380
- };
2381
- const se_UntagResourceRequest = (input, context) => {
2382
- return {
2383
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2384
- ...(input.ResourceTagKeys != null && { ResourceTagKeys: se_ResourceTagKeyList(input.ResourceTagKeys, context) }),
2385
- };
2386
- };
2387
- const se_UpdateAnomalyMonitorRequest = (input, context) => {
2388
- return {
2389
- ...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
2390
- ...(input.MonitorName != null && { MonitorName: input.MonitorName }),
2391
- };
2392
- };
2393
- const se_UpdateAnomalySubscriptionRequest = (input, context) => {
2394
- return {
2395
- ...(input.Frequency != null && { Frequency: input.Frequency }),
2396
- ...(input.MonitorArnList != null && { MonitorArnList: se_MonitorArnList(input.MonitorArnList, context) }),
2397
- ...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
2398
- ...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
2399
- ...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
2400
- ...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
2401
- ...(input.ThresholdExpression != null && {
2402
- ThresholdExpression: se_Expression(input.ThresholdExpression, context),
2403
- }),
2404
- };
2405
- };
2406
- const se_UpdateCostAllocationTagsStatusRequest = (input, context) => {
2407
- return {
2408
- ...(input.CostAllocationTagsStatus != null && {
2409
- CostAllocationTagsStatus: se_CostAllocationTagStatusList(input.CostAllocationTagsStatus, context),
2410
- }),
2411
- };
2412
- };
2413
- const se_UpdateCostCategoryDefinitionRequest = (input, context) => {
2414
- return {
2415
- ...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
2416
- ...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
2417
- ...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
2418
- ...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
2419
- ...(input.Rules != null && { Rules: se_CostCategoryRulesList(input.Rules, context) }),
2420
- ...(input.SplitChargeRules != null && {
2421
- SplitChargeRules: se_CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
2422
- }),
2423
- };
2152
+ const de_DescribeCostCategoryDefinitionResponse = (output, context) => {
2153
+ return (0, smithy_client_1.take)(output, {
2154
+ CostCategory: (_) => de_CostCategory(_, context),
2155
+ });
2424
2156
  };
2425
- const se_Values = (input, context) => {
2426
- return input
2427
- .filter((e) => e != null)
2428
- .map((entry) => {
2429
- return entry;
2157
+ const de_Expression = (output, context) => {
2158
+ return (0, smithy_client_1.take)(output, {
2159
+ And: (_) => de_Expressions(_, context),
2160
+ CostCategories: smithy_client_1._json,
2161
+ Dimensions: smithy_client_1._json,
2162
+ Not: (_) => de_Expression(_, context),
2163
+ Or: (_) => de_Expressions(_, context),
2164
+ Tags: smithy_client_1._json,
2430
2165
  });
2431
2166
  };
2432
- const de_Anomalies = (output, context) => {
2167
+ const de_Expressions = (output, context) => {
2433
2168
  const retVal = (output || [])
2434
2169
  .filter((e) => e != null)
2435
2170
  .map((entry) => {
2436
- if (entry === null) {
2437
- return null;
2438
- }
2439
- return de_Anomaly(entry, context);
2171
+ return de_Expression(entry, context);
2440
2172
  });
2441
2173
  return retVal;
2442
2174
  };
2443
- const de_Anomaly = (output, context) => {
2444
- return {
2445
- AnomalyEndDate: (0, smithy_client_1.expectString)(output.AnomalyEndDate),
2446
- AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
2447
- AnomalyScore: output.AnomalyScore != null ? de_AnomalyScore(output.AnomalyScore, context) : undefined,
2448
- AnomalyStartDate: (0, smithy_client_1.expectString)(output.AnomalyStartDate),
2449
- DimensionValue: (0, smithy_client_1.expectString)(output.DimensionValue),
2450
- Feedback: (0, smithy_client_1.expectString)(output.Feedback),
2451
- Impact: output.Impact != null ? de_Impact(output.Impact, context) : undefined,
2452
- MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
2453
- RootCauses: output.RootCauses != null ? de_RootCauses(output.RootCauses, context) : undefined,
2454
- };
2455
- };
2456
- const de_AnomalyMonitor = (output, context) => {
2457
- return {
2458
- CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
2459
- DimensionalValueCount: (0, smithy_client_1.expectInt32)(output.DimensionalValueCount),
2460
- LastEvaluatedDate: (0, smithy_client_1.expectString)(output.LastEvaluatedDate),
2461
- LastUpdatedDate: (0, smithy_client_1.expectString)(output.LastUpdatedDate),
2462
- MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
2463
- MonitorDimension: (0, smithy_client_1.expectString)(output.MonitorDimension),
2464
- MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
2465
- MonitorSpecification: output.MonitorSpecification != null ? de_Expression(output.MonitorSpecification, context) : undefined,
2466
- MonitorType: (0, smithy_client_1.expectString)(output.MonitorType),
2467
- };
2468
- };
2469
- const de_AnomalyMonitors = (output, context) => {
2470
- const retVal = (output || [])
2471
- .filter((e) => e != null)
2472
- .map((entry) => {
2473
- if (entry === null) {
2474
- return null;
2475
- }
2476
- return de_AnomalyMonitor(entry, context);
2477
- });
2478
- return retVal;
2479
- };
2480
- const de_AnomalyScore = (output, context) => {
2481
- return {
2482
- CurrentScore: (0, smithy_client_1.limitedParseDouble)(output.CurrentScore),
2483
- MaxScore: (0, smithy_client_1.limitedParseDouble)(output.MaxScore),
2484
- };
2485
- };
2486
- const de_AnomalySubscription = (output, context) => {
2487
- return {
2488
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
2489
- Frequency: (0, smithy_client_1.expectString)(output.Frequency),
2490
- MonitorArnList: output.MonitorArnList != null ? de_MonitorArnList(output.MonitorArnList, context) : undefined,
2491
- Subscribers: output.Subscribers != null ? de_Subscribers(output.Subscribers, context) : undefined,
2492
- SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
2493
- SubscriptionName: (0, smithy_client_1.expectString)(output.SubscriptionName),
2494
- Threshold: (0, smithy_client_1.limitedParseDouble)(output.Threshold),
2495
- ThresholdExpression: output.ThresholdExpression != null ? de_Expression(output.ThresholdExpression, context) : undefined,
2496
- };
2497
- };
2498
- const de_AnomalySubscriptions = (output, context) => {
2499
- const retVal = (output || [])
2500
- .filter((e) => e != null)
2501
- .map((entry) => {
2502
- if (entry === null) {
2503
- return null;
2504
- }
2505
- return de_AnomalySubscription(entry, context);
2506
- });
2507
- return retVal;
2508
- };
2509
- const de_Attributes = (output, context) => {
2510
- return Object.entries(output).reduce((acc, [key, value]) => {
2511
- if (value === null) {
2512
- return acc;
2513
- }
2514
- acc[key] = (0, smithy_client_1.expectString)(value);
2515
- return acc;
2516
- }, {});
2517
- };
2518
- const de_BillExpirationException = (output, context) => {
2519
- return {
2520
- Message: (0, smithy_client_1.expectString)(output.Message),
2521
- };
2522
- };
2523
- const de_CostAllocationTag = (output, context) => {
2524
- return {
2525
- Status: (0, smithy_client_1.expectString)(output.Status),
2526
- TagKey: (0, smithy_client_1.expectString)(output.TagKey),
2527
- Type: (0, smithy_client_1.expectString)(output.Type),
2528
- };
2529
- };
2530
- const de_CostAllocationTagList = (output, context) => {
2531
- const retVal = (output || [])
2532
- .filter((e) => e != null)
2533
- .map((entry) => {
2534
- if (entry === null) {
2535
- return null;
2536
- }
2537
- return de_CostAllocationTag(entry, context);
2538
- });
2539
- return retVal;
2540
- };
2541
- const de_CostCategory = (output, context) => {
2542
- return {
2543
- CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
2544
- DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
2545
- EffectiveEnd: (0, smithy_client_1.expectString)(output.EffectiveEnd),
2546
- EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
2547
- Name: (0, smithy_client_1.expectString)(output.Name),
2548
- ProcessingStatus: output.ProcessingStatus != null
2549
- ? de_CostCategoryProcessingStatusList(output.ProcessingStatus, context)
2550
- : undefined,
2551
- RuleVersion: (0, smithy_client_1.expectString)(output.RuleVersion),
2552
- Rules: output.Rules != null ? de_CostCategoryRulesList(output.Rules, context) : undefined,
2553
- SplitChargeRules: output.SplitChargeRules != null
2554
- ? de_CostCategorySplitChargeRulesList(output.SplitChargeRules, context)
2555
- : undefined,
2556
- };
2557
- };
2558
- const de_CostCategoryInheritedValueDimension = (output, context) => {
2559
- return {
2560
- DimensionKey: (0, smithy_client_1.expectString)(output.DimensionKey),
2561
- DimensionName: (0, smithy_client_1.expectString)(output.DimensionName),
2562
- };
2563
- };
2564
- const de_CostCategoryNamesList = (output, context) => {
2565
- const retVal = (output || [])
2566
- .filter((e) => e != null)
2567
- .map((entry) => {
2568
- if (entry === null) {
2569
- return null;
2570
- }
2571
- return (0, smithy_client_1.expectString)(entry);
2572
- });
2573
- return retVal;
2574
- };
2575
- const de_CostCategoryProcessingStatus = (output, context) => {
2576
- return {
2577
- Component: (0, smithy_client_1.expectString)(output.Component),
2578
- Status: (0, smithy_client_1.expectString)(output.Status),
2579
- };
2580
- };
2581
- const de_CostCategoryProcessingStatusList = (output, context) => {
2582
- const retVal = (output || [])
2583
- .filter((e) => e != null)
2584
- .map((entry) => {
2585
- if (entry === null) {
2586
- return null;
2587
- }
2588
- return de_CostCategoryProcessingStatus(entry, context);
2589
- });
2590
- return retVal;
2591
- };
2592
- const de_CostCategoryReference = (output, context) => {
2593
- return {
2594
- CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
2595
- DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
2596
- EffectiveEnd: (0, smithy_client_1.expectString)(output.EffectiveEnd),
2597
- EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
2598
- Name: (0, smithy_client_1.expectString)(output.Name),
2599
- NumberOfRules: (0, smithy_client_1.expectInt32)(output.NumberOfRules),
2600
- ProcessingStatus: output.ProcessingStatus != null
2601
- ? de_CostCategoryProcessingStatusList(output.ProcessingStatus, context)
2602
- : undefined,
2603
- Values: output.Values != null ? de_CostCategoryValuesList(output.Values, context) : undefined,
2604
- };
2605
- };
2606
- const de_CostCategoryReferencesList = (output, context) => {
2607
- const retVal = (output || [])
2608
- .filter((e) => e != null)
2609
- .map((entry) => {
2610
- if (entry === null) {
2611
- return null;
2612
- }
2613
- return de_CostCategoryReference(entry, context);
2614
- });
2615
- return retVal;
2616
- };
2617
- const de_CostCategoryRule = (output, context) => {
2618
- return {
2619
- InheritedValue: output.InheritedValue != null
2620
- ? de_CostCategoryInheritedValueDimension(output.InheritedValue, context)
2621
- : undefined,
2622
- Rule: output.Rule != null ? de_Expression(output.Rule, context) : undefined,
2623
- Type: (0, smithy_client_1.expectString)(output.Type),
2624
- Value: (0, smithy_client_1.expectString)(output.Value),
2625
- };
2626
- };
2627
- const de_CostCategoryRulesList = (output, context) => {
2628
- const retVal = (output || [])
2629
- .filter((e) => e != null)
2630
- .map((entry) => {
2631
- if (entry === null) {
2632
- return null;
2633
- }
2634
- return de_CostCategoryRule(entry, context);
2635
- });
2636
- return retVal;
2637
- };
2638
- const de_CostCategorySplitChargeRule = (output, context) => {
2639
- return {
2640
- Method: (0, smithy_client_1.expectString)(output.Method),
2641
- Parameters: output.Parameters != null ? de_CostCategorySplitChargeRuleParametersList(output.Parameters, context) : undefined,
2642
- Source: (0, smithy_client_1.expectString)(output.Source),
2643
- Targets: output.Targets != null ? de_CostCategorySplitChargeRuleTargetsList(output.Targets, context) : undefined,
2644
- };
2645
- };
2646
- const de_CostCategorySplitChargeRuleParameter = (output, context) => {
2647
- return {
2648
- Type: (0, smithy_client_1.expectString)(output.Type),
2649
- Values: output.Values != null ? de_CostCategorySplitChargeRuleParameterValuesList(output.Values, context) : undefined,
2650
- };
2651
- };
2652
- const de_CostCategorySplitChargeRuleParametersList = (output, context) => {
2653
- const retVal = (output || [])
2654
- .filter((e) => e != null)
2655
- .map((entry) => {
2656
- if (entry === null) {
2657
- return null;
2658
- }
2659
- return de_CostCategorySplitChargeRuleParameter(entry, context);
2660
- });
2661
- return retVal;
2662
- };
2663
- const de_CostCategorySplitChargeRuleParameterValuesList = (output, context) => {
2664
- const retVal = (output || [])
2665
- .filter((e) => e != null)
2666
- .map((entry) => {
2667
- if (entry === null) {
2668
- return null;
2669
- }
2670
- return (0, smithy_client_1.expectString)(entry);
2671
- });
2672
- return retVal;
2673
- };
2674
- const de_CostCategorySplitChargeRulesList = (output, context) => {
2675
- const retVal = (output || [])
2676
- .filter((e) => e != null)
2677
- .map((entry) => {
2678
- if (entry === null) {
2679
- return null;
2680
- }
2681
- return de_CostCategorySplitChargeRule(entry, context);
2682
- });
2683
- return retVal;
2684
- };
2685
- const de_CostCategorySplitChargeRuleTargetsList = (output, context) => {
2686
- const retVal = (output || [])
2687
- .filter((e) => e != null)
2688
- .map((entry) => {
2689
- if (entry === null) {
2690
- return null;
2691
- }
2692
- return (0, smithy_client_1.expectString)(entry);
2693
- });
2694
- return retVal;
2695
- };
2696
- const de_CostCategoryValues = (output, context) => {
2697
- return {
2698
- Key: (0, smithy_client_1.expectString)(output.Key),
2699
- MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
2700
- Values: output.Values != null ? de_Values(output.Values, context) : undefined,
2701
- };
2702
- };
2703
- const de_CostCategoryValuesList = (output, context) => {
2704
- const retVal = (output || [])
2705
- .filter((e) => e != null)
2706
- .map((entry) => {
2707
- if (entry === null) {
2708
- return null;
2709
- }
2710
- return (0, smithy_client_1.expectString)(entry);
2711
- });
2712
- return retVal;
2713
- };
2714
- const de_Coverage = (output, context) => {
2715
- return {
2716
- CoverageCost: output.CoverageCost != null ? de_CoverageCost(output.CoverageCost, context) : undefined,
2717
- CoverageHours: output.CoverageHours != null ? de_CoverageHours(output.CoverageHours, context) : undefined,
2718
- CoverageNormalizedUnits: output.CoverageNormalizedUnits != null
2719
- ? de_CoverageNormalizedUnits(output.CoverageNormalizedUnits, context)
2720
- : undefined,
2721
- };
2722
- };
2723
- const de_CoverageByTime = (output, context) => {
2724
- return {
2725
- Groups: output.Groups != null ? de_ReservationCoverageGroups(output.Groups, context) : undefined,
2726
- TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
2727
- Total: output.Total != null ? de_Coverage(output.Total, context) : undefined,
2728
- };
2729
- };
2730
- const de_CoverageCost = (output, context) => {
2731
- return {
2732
- OnDemandCost: (0, smithy_client_1.expectString)(output.OnDemandCost),
2733
- };
2734
- };
2735
- const de_CoverageHours = (output, context) => {
2736
- return {
2737
- CoverageHoursPercentage: (0, smithy_client_1.expectString)(output.CoverageHoursPercentage),
2738
- OnDemandHours: (0, smithy_client_1.expectString)(output.OnDemandHours),
2739
- ReservedHours: (0, smithy_client_1.expectString)(output.ReservedHours),
2740
- TotalRunningHours: (0, smithy_client_1.expectString)(output.TotalRunningHours),
2741
- };
2742
- };
2743
- const de_CoverageNormalizedUnits = (output, context) => {
2744
- return {
2745
- CoverageNormalizedUnitsPercentage: (0, smithy_client_1.expectString)(output.CoverageNormalizedUnitsPercentage),
2746
- OnDemandNormalizedUnits: (0, smithy_client_1.expectString)(output.OnDemandNormalizedUnits),
2747
- ReservedNormalizedUnits: (0, smithy_client_1.expectString)(output.ReservedNormalizedUnits),
2748
- TotalRunningNormalizedUnits: (0, smithy_client_1.expectString)(output.TotalRunningNormalizedUnits),
2749
- };
2750
- };
2751
- const de_CoveragesByTime = (output, context) => {
2752
- const retVal = (output || [])
2753
- .filter((e) => e != null)
2754
- .map((entry) => {
2755
- if (entry === null) {
2756
- return null;
2757
- }
2758
- return de_CoverageByTime(entry, context);
2759
- });
2760
- return retVal;
2761
- };
2762
- const de_CreateAnomalyMonitorResponse = (output, context) => {
2763
- return {
2764
- MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
2765
- };
2766
- };
2767
- const de_CreateAnomalySubscriptionResponse = (output, context) => {
2768
- return {
2769
- SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
2770
- };
2771
- };
2772
- const de_CreateCostCategoryDefinitionResponse = (output, context) => {
2773
- return {
2774
- CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
2775
- EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
2776
- };
2777
- };
2778
- const de_CurrentInstance = (output, context) => {
2779
- return {
2780
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
2781
- InstanceName: (0, smithy_client_1.expectString)(output.InstanceName),
2782
- MonthlyCost: (0, smithy_client_1.expectString)(output.MonthlyCost),
2783
- OnDemandHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.OnDemandHoursInLookbackPeriod),
2784
- ReservationCoveredHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.ReservationCoveredHoursInLookbackPeriod),
2785
- ResourceDetails: output.ResourceDetails != null ? de_ResourceDetails(output.ResourceDetails, context) : undefined,
2786
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
2787
- ResourceUtilization: output.ResourceUtilization != null ? de_ResourceUtilization(output.ResourceUtilization, context) : undefined,
2788
- SavingsPlansCoveredHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.SavingsPlansCoveredHoursInLookbackPeriod),
2789
- Tags: output.Tags != null ? de_TagValuesList(output.Tags, context) : undefined,
2790
- TotalRunningHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.TotalRunningHoursInLookbackPeriod),
2791
- };
2792
- };
2793
- const de_DataUnavailableException = (output, context) => {
2794
- return {
2795
- Message: (0, smithy_client_1.expectString)(output.Message),
2796
- };
2797
- };
2798
- const de_DateInterval = (output, context) => {
2799
- return {
2800
- End: (0, smithy_client_1.expectString)(output.End),
2801
- Start: (0, smithy_client_1.expectString)(output.Start),
2802
- };
2803
- };
2804
- const de_DeleteAnomalyMonitorResponse = (output, context) => {
2805
- return {};
2806
- };
2807
- const de_DeleteAnomalySubscriptionResponse = (output, context) => {
2808
- return {};
2809
- };
2810
- const de_DeleteCostCategoryDefinitionResponse = (output, context) => {
2811
- return {
2812
- CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
2813
- EffectiveEnd: (0, smithy_client_1.expectString)(output.EffectiveEnd),
2814
- };
2815
- };
2816
- const de_DescribeCostCategoryDefinitionResponse = (output, context) => {
2817
- return {
2818
- CostCategory: output.CostCategory != null ? de_CostCategory(output.CostCategory, context) : undefined,
2819
- };
2820
- };
2821
- const de_DimensionValues = (output, context) => {
2822
- return {
2823
- Key: (0, smithy_client_1.expectString)(output.Key),
2824
- MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
2825
- Values: output.Values != null ? de_Values(output.Values, context) : undefined,
2826
- };
2827
- };
2828
- const de_DimensionValuesWithAttributes = (output, context) => {
2829
- return {
2830
- Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
2831
- Value: (0, smithy_client_1.expectString)(output.Value),
2832
- };
2833
- };
2834
- const de_DimensionValuesWithAttributesList = (output, context) => {
2835
- const retVal = (output || [])
2836
- .filter((e) => e != null)
2837
- .map((entry) => {
2838
- if (entry === null) {
2839
- return null;
2840
- }
2841
- return de_DimensionValuesWithAttributes(entry, context);
2842
- });
2843
- return retVal;
2844
- };
2845
- const de_DiskResourceUtilization = (output, context) => {
2846
- return {
2847
- DiskReadBytesPerSecond: (0, smithy_client_1.expectString)(output.DiskReadBytesPerSecond),
2848
- DiskReadOpsPerSecond: (0, smithy_client_1.expectString)(output.DiskReadOpsPerSecond),
2849
- DiskWriteBytesPerSecond: (0, smithy_client_1.expectString)(output.DiskWriteBytesPerSecond),
2850
- DiskWriteOpsPerSecond: (0, smithy_client_1.expectString)(output.DiskWriteOpsPerSecond),
2851
- };
2852
- };
2853
- const de_EBSResourceUtilization = (output, context) => {
2854
- return {
2855
- EbsReadBytesPerSecond: (0, smithy_client_1.expectString)(output.EbsReadBytesPerSecond),
2856
- EbsReadOpsPerSecond: (0, smithy_client_1.expectString)(output.EbsReadOpsPerSecond),
2857
- EbsWriteBytesPerSecond: (0, smithy_client_1.expectString)(output.EbsWriteBytesPerSecond),
2858
- EbsWriteOpsPerSecond: (0, smithy_client_1.expectString)(output.EbsWriteOpsPerSecond),
2859
- };
2860
- };
2861
- const de_EC2InstanceDetails = (output, context) => {
2862
- return {
2863
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
2864
- CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
2865
- Family: (0, smithy_client_1.expectString)(output.Family),
2866
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
2867
- Platform: (0, smithy_client_1.expectString)(output.Platform),
2868
- Region: (0, smithy_client_1.expectString)(output.Region),
2869
- SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
2870
- Tenancy: (0, smithy_client_1.expectString)(output.Tenancy),
2871
- };
2872
- };
2873
- const de_EC2ResourceDetails = (output, context) => {
2874
- return {
2875
- HourlyOnDemandRate: (0, smithy_client_1.expectString)(output.HourlyOnDemandRate),
2876
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
2877
- Memory: (0, smithy_client_1.expectString)(output.Memory),
2878
- NetworkPerformance: (0, smithy_client_1.expectString)(output.NetworkPerformance),
2879
- Platform: (0, smithy_client_1.expectString)(output.Platform),
2880
- Region: (0, smithy_client_1.expectString)(output.Region),
2881
- Sku: (0, smithy_client_1.expectString)(output.Sku),
2882
- Storage: (0, smithy_client_1.expectString)(output.Storage),
2883
- Vcpu: (0, smithy_client_1.expectString)(output.Vcpu),
2884
- };
2885
- };
2886
- const de_EC2ResourceUtilization = (output, context) => {
2887
- return {
2888
- DiskResourceUtilization: output.DiskResourceUtilization != null
2889
- ? de_DiskResourceUtilization(output.DiskResourceUtilization, context)
2890
- : undefined,
2891
- EBSResourceUtilization: output.EBSResourceUtilization != null
2892
- ? de_EBSResourceUtilization(output.EBSResourceUtilization, context)
2893
- : undefined,
2894
- MaxCpuUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxCpuUtilizationPercentage),
2895
- MaxMemoryUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxMemoryUtilizationPercentage),
2896
- MaxStorageUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxStorageUtilizationPercentage),
2897
- NetworkResourceUtilization: output.NetworkResourceUtilization != null
2898
- ? de_NetworkResourceUtilization(output.NetworkResourceUtilization, context)
2899
- : undefined,
2900
- };
2901
- };
2902
- const de_EC2Specification = (output, context) => {
2903
- return {
2904
- OfferingClass: (0, smithy_client_1.expectString)(output.OfferingClass),
2905
- };
2906
- };
2907
- const de_ElastiCacheInstanceDetails = (output, context) => {
2908
- return {
2909
- CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
2910
- Family: (0, smithy_client_1.expectString)(output.Family),
2911
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
2912
- ProductDescription: (0, smithy_client_1.expectString)(output.ProductDescription),
2913
- Region: (0, smithy_client_1.expectString)(output.Region),
2914
- SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
2915
- };
2916
- };
2917
- const de_ESInstanceDetails = (output, context) => {
2918
- return {
2919
- CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
2920
- InstanceClass: (0, smithy_client_1.expectString)(output.InstanceClass),
2921
- InstanceSize: (0, smithy_client_1.expectString)(output.InstanceSize),
2922
- Region: (0, smithy_client_1.expectString)(output.Region),
2923
- SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
2924
- };
2925
- };
2926
- const de_Expression = (output, context) => {
2927
- return {
2928
- And: output.And != null ? de_Expressions(output.And, context) : undefined,
2929
- CostCategories: output.CostCategories != null ? de_CostCategoryValues(output.CostCategories, context) : undefined,
2930
- Dimensions: output.Dimensions != null ? de_DimensionValues(output.Dimensions, context) : undefined,
2931
- Not: output.Not != null ? de_Expression(output.Not, context) : undefined,
2932
- Or: output.Or != null ? de_Expressions(output.Or, context) : undefined,
2933
- Tags: output.Tags != null ? de_TagValues(output.Tags, context) : undefined,
2934
- };
2935
- };
2936
- const de_Expressions = (output, context) => {
2937
- const retVal = (output || [])
2938
- .filter((e) => e != null)
2939
- .map((entry) => {
2940
- if (entry === null) {
2941
- return null;
2942
- }
2943
- return de_Expression(entry, context);
2944
- });
2945
- return retVal;
2946
- };
2947
- const de_FindingReasonCodes = (output, context) => {
2948
- const retVal = (output || [])
2949
- .filter((e) => e != null)
2950
- .map((entry) => {
2951
- if (entry === null) {
2952
- return null;
2953
- }
2954
- return (0, smithy_client_1.expectString)(entry);
2955
- });
2956
- return retVal;
2957
- };
2958
- const de_ForecastResult = (output, context) => {
2959
- return {
2960
- MeanValue: (0, smithy_client_1.expectString)(output.MeanValue),
2961
- PredictionIntervalLowerBound: (0, smithy_client_1.expectString)(output.PredictionIntervalLowerBound),
2962
- PredictionIntervalUpperBound: (0, smithy_client_1.expectString)(output.PredictionIntervalUpperBound),
2963
- TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
2964
- };
2965
- };
2966
- const de_ForecastResultsByTime = (output, context) => {
2967
- const retVal = (output || [])
2968
- .filter((e) => e != null)
2969
- .map((entry) => {
2970
- if (entry === null) {
2971
- return null;
2972
- }
2973
- return de_ForecastResult(entry, context);
2974
- });
2975
- return retVal;
2976
- };
2977
- const de_GenerationExistsException = (output, context) => {
2978
- return {
2979
- Message: (0, smithy_client_1.expectString)(output.Message),
2980
- };
2981
- };
2982
- const de_GenerationSummary = (output, context) => {
2983
- return {
2984
- EstimatedCompletionTime: (0, smithy_client_1.expectString)(output.EstimatedCompletionTime),
2985
- GenerationCompletionTime: (0, smithy_client_1.expectString)(output.GenerationCompletionTime),
2986
- GenerationStartedTime: (0, smithy_client_1.expectString)(output.GenerationStartedTime),
2987
- GenerationStatus: (0, smithy_client_1.expectString)(output.GenerationStatus),
2988
- RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
2989
- };
2990
- };
2991
- const de_GenerationSummaryList = (output, context) => {
2992
- const retVal = (output || [])
2993
- .filter((e) => e != null)
2994
- .map((entry) => {
2995
- if (entry === null) {
2996
- return null;
2997
- }
2998
- return de_GenerationSummary(entry, context);
2999
- });
3000
- return retVal;
3001
- };
3002
- const de_GetAnomaliesResponse = (output, context) => {
3003
- return {
3004
- Anomalies: output.Anomalies != null ? de_Anomalies(output.Anomalies, context) : undefined,
3005
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3006
- };
3007
- };
3008
- const de_GetAnomalyMonitorsResponse = (output, context) => {
3009
- return {
3010
- AnomalyMonitors: output.AnomalyMonitors != null ? de_AnomalyMonitors(output.AnomalyMonitors, context) : undefined,
3011
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3012
- };
3013
- };
3014
- const de_GetAnomalySubscriptionsResponse = (output, context) => {
3015
- return {
3016
- AnomalySubscriptions: output.AnomalySubscriptions != null ? de_AnomalySubscriptions(output.AnomalySubscriptions, context) : undefined,
3017
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3018
- };
3019
- };
3020
- const de_GetCostAndUsageResponse = (output, context) => {
3021
- return {
3022
- DimensionValueAttributes: output.DimensionValueAttributes != null
3023
- ? de_DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
3024
- : undefined,
3025
- GroupDefinitions: output.GroupDefinitions != null ? de_GroupDefinitions(output.GroupDefinitions, context) : undefined,
3026
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3027
- ResultsByTime: output.ResultsByTime != null ? de_ResultsByTime(output.ResultsByTime, context) : undefined,
3028
- };
3029
- };
3030
- const de_GetCostAndUsageWithResourcesResponse = (output, context) => {
3031
- return {
3032
- DimensionValueAttributes: output.DimensionValueAttributes != null
3033
- ? de_DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
3034
- : undefined,
3035
- GroupDefinitions: output.GroupDefinitions != null ? de_GroupDefinitions(output.GroupDefinitions, context) : undefined,
3036
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3037
- ResultsByTime: output.ResultsByTime != null ? de_ResultsByTime(output.ResultsByTime, context) : undefined,
3038
- };
3039
- };
3040
- const de_GetCostCategoriesResponse = (output, context) => {
3041
- return {
3042
- CostCategoryNames: output.CostCategoryNames != null ? de_CostCategoryNamesList(output.CostCategoryNames, context) : undefined,
3043
- CostCategoryValues: output.CostCategoryValues != null ? de_CostCategoryValuesList(output.CostCategoryValues, context) : undefined,
3044
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3045
- ReturnSize: (0, smithy_client_1.expectInt32)(output.ReturnSize),
3046
- TotalSize: (0, smithy_client_1.expectInt32)(output.TotalSize),
3047
- };
3048
- };
3049
- const de_GetCostForecastResponse = (output, context) => {
3050
- return {
3051
- ForecastResultsByTime: output.ForecastResultsByTime != null
3052
- ? de_ForecastResultsByTime(output.ForecastResultsByTime, context)
3053
- : undefined,
3054
- Total: output.Total != null ? de_MetricValue(output.Total, context) : undefined,
3055
- };
3056
- };
3057
- const de_GetDimensionValuesResponse = (output, context) => {
3058
- return {
3059
- DimensionValues: output.DimensionValues != null
3060
- ? de_DimensionValuesWithAttributesList(output.DimensionValues, context)
3061
- : undefined,
3062
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3063
- ReturnSize: (0, smithy_client_1.expectInt32)(output.ReturnSize),
3064
- TotalSize: (0, smithy_client_1.expectInt32)(output.TotalSize),
3065
- };
3066
- };
3067
- const de_GetReservationCoverageResponse = (output, context) => {
3068
- return {
3069
- CoveragesByTime: output.CoveragesByTime != null ? de_CoveragesByTime(output.CoveragesByTime, context) : undefined,
3070
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3071
- Total: output.Total != null ? de_Coverage(output.Total, context) : undefined,
3072
- };
3073
- };
3074
- const de_GetReservationPurchaseRecommendationResponse = (output, context) => {
3075
- return {
3076
- Metadata: output.Metadata != null ? de_ReservationPurchaseRecommendationMetadata(output.Metadata, context) : undefined,
3077
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3078
- Recommendations: output.Recommendations != null
3079
- ? de_ReservationPurchaseRecommendations(output.Recommendations, context)
3080
- : undefined,
3081
- };
3082
- };
3083
- const de_GetReservationUtilizationResponse = (output, context) => {
3084
- return {
3085
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3086
- Total: output.Total != null ? de_ReservationAggregates(output.Total, context) : undefined,
3087
- UtilizationsByTime: output.UtilizationsByTime != null ? de_UtilizationsByTime(output.UtilizationsByTime, context) : undefined,
3088
- };
3089
- };
3090
- const de_GetRightsizingRecommendationResponse = (output, context) => {
3091
- return {
3092
- Configuration: output.Configuration != null
3093
- ? de_RightsizingRecommendationConfiguration(output.Configuration, context)
3094
- : undefined,
3095
- Metadata: output.Metadata != null ? de_RightsizingRecommendationMetadata(output.Metadata, context) : undefined,
3096
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3097
- RightsizingRecommendations: output.RightsizingRecommendations != null
3098
- ? de_RightsizingRecommendationList(output.RightsizingRecommendations, context)
3099
- : undefined,
3100
- Summary: output.Summary != null ? de_RightsizingRecommendationSummary(output.Summary, context) : undefined,
3101
- };
3102
- };
3103
- const de_GetSavingsPlansCoverageResponse = (output, context) => {
3104
- return {
3105
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3106
- SavingsPlansCoverages: output.SavingsPlansCoverages != null
3107
- ? de_SavingsPlansCoverages(output.SavingsPlansCoverages, context)
3108
- : undefined,
3109
- };
3110
- };
3111
- const de_GetSavingsPlansPurchaseRecommendationResponse = (output, context) => {
3112
- return {
3113
- Metadata: output.Metadata != null ? de_SavingsPlansPurchaseRecommendationMetadata(output.Metadata, context) : undefined,
3114
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3115
- SavingsPlansPurchaseRecommendation: output.SavingsPlansPurchaseRecommendation != null
3116
- ? de_SavingsPlansPurchaseRecommendation(output.SavingsPlansPurchaseRecommendation, context)
3117
- : undefined,
3118
- };
3119
- };
3120
- const de_GetSavingsPlansUtilizationDetailsResponse = (output, context) => {
3121
- return {
3122
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3123
- SavingsPlansUtilizationDetails: output.SavingsPlansUtilizationDetails != null
3124
- ? de_SavingsPlansUtilizationDetails(output.SavingsPlansUtilizationDetails, context)
3125
- : undefined,
3126
- TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
3127
- Total: output.Total != null ? de_SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
3128
- };
3129
- };
3130
- const de_GetSavingsPlansUtilizationResponse = (output, context) => {
3131
- return {
3132
- SavingsPlansUtilizationsByTime: output.SavingsPlansUtilizationsByTime != null
3133
- ? de_SavingsPlansUtilizationsByTime(output.SavingsPlansUtilizationsByTime, context)
3134
- : undefined,
3135
- Total: output.Total != null ? de_SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
3136
- };
3137
- };
3138
- const de_GetTagsResponse = (output, context) => {
3139
- return {
3140
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3141
- ReturnSize: (0, smithy_client_1.expectInt32)(output.ReturnSize),
3142
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
3143
- TotalSize: (0, smithy_client_1.expectInt32)(output.TotalSize),
3144
- };
3145
- };
3146
- const de_GetUsageForecastResponse = (output, context) => {
3147
- return {
3148
- ForecastResultsByTime: output.ForecastResultsByTime != null
3149
- ? de_ForecastResultsByTime(output.ForecastResultsByTime, context)
3150
- : undefined,
3151
- Total: output.Total != null ? de_MetricValue(output.Total, context) : undefined,
3152
- };
3153
- };
3154
- const de_Group = (output, context) => {
3155
- return {
3156
- Keys: output.Keys != null ? de_Keys(output.Keys, context) : undefined,
3157
- Metrics: output.Metrics != null ? de_Metrics(output.Metrics, context) : undefined,
3158
- };
3159
- };
3160
- const de_GroupDefinition = (output, context) => {
3161
- return {
3162
- Key: (0, smithy_client_1.expectString)(output.Key),
3163
- Type: (0, smithy_client_1.expectString)(output.Type),
3164
- };
3165
- };
3166
- const de_GroupDefinitions = (output, context) => {
3167
- const retVal = (output || [])
3168
- .filter((e) => e != null)
3169
- .map((entry) => {
3170
- if (entry === null) {
3171
- return null;
3172
- }
3173
- return de_GroupDefinition(entry, context);
3174
- });
3175
- return retVal;
3176
- };
3177
- const de_Groups = (output, context) => {
3178
- const retVal = (output || [])
3179
- .filter((e) => e != null)
3180
- .map((entry) => {
3181
- if (entry === null) {
3182
- return null;
3183
- }
3184
- return de_Group(entry, context);
3185
- });
3186
- return retVal;
3187
- };
3188
- const de_Impact = (output, context) => {
3189
- return {
3190
- MaxImpact: (0, smithy_client_1.limitedParseDouble)(output.MaxImpact),
3191
- TotalActualSpend: (0, smithy_client_1.limitedParseDouble)(output.TotalActualSpend),
3192
- TotalExpectedSpend: (0, smithy_client_1.limitedParseDouble)(output.TotalExpectedSpend),
3193
- TotalImpact: (0, smithy_client_1.limitedParseDouble)(output.TotalImpact),
3194
- TotalImpactPercentage: (0, smithy_client_1.limitedParseDouble)(output.TotalImpactPercentage),
3195
- };
3196
- };
3197
- const de_InstanceDetails = (output, context) => {
3198
- return {
3199
- EC2InstanceDetails: output.EC2InstanceDetails != null ? de_EC2InstanceDetails(output.EC2InstanceDetails, context) : undefined,
3200
- ESInstanceDetails: output.ESInstanceDetails != null ? de_ESInstanceDetails(output.ESInstanceDetails, context) : undefined,
3201
- ElastiCacheInstanceDetails: output.ElastiCacheInstanceDetails != null
3202
- ? de_ElastiCacheInstanceDetails(output.ElastiCacheInstanceDetails, context)
3203
- : undefined,
3204
- RDSInstanceDetails: output.RDSInstanceDetails != null ? de_RDSInstanceDetails(output.RDSInstanceDetails, context) : undefined,
3205
- RedshiftInstanceDetails: output.RedshiftInstanceDetails != null
3206
- ? de_RedshiftInstanceDetails(output.RedshiftInstanceDetails, context)
3207
- : undefined,
3208
- };
3209
- };
3210
- const de_InvalidNextTokenException = (output, context) => {
3211
- return {
3212
- Message: (0, smithy_client_1.expectString)(output.Message),
3213
- };
3214
- };
3215
- const de_Keys = (output, context) => {
3216
- const retVal = (output || [])
3217
- .filter((e) => e != null)
3218
- .map((entry) => {
3219
- if (entry === null) {
3220
- return null;
3221
- }
3222
- return (0, smithy_client_1.expectString)(entry);
3223
- });
3224
- return retVal;
3225
- };
3226
- const de_LimitExceededException = (output, context) => {
3227
- return {
3228
- Message: (0, smithy_client_1.expectString)(output.Message),
3229
- };
3230
- };
3231
- const de_ListCostAllocationTagsResponse = (output, context) => {
3232
- return {
3233
- CostAllocationTags: output.CostAllocationTags != null ? de_CostAllocationTagList(output.CostAllocationTags, context) : undefined,
3234
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3235
- };
3236
- };
3237
- const de_ListCostCategoryDefinitionsResponse = (output, context) => {
3238
- return {
3239
- CostCategoryReferences: output.CostCategoryReferences != null
3240
- ? de_CostCategoryReferencesList(output.CostCategoryReferences, context)
3241
- : undefined,
3242
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3243
- };
3244
- };
3245
- const de_ListSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
3246
- return {
3247
- GenerationSummaryList: output.GenerationSummaryList != null
3248
- ? de_GenerationSummaryList(output.GenerationSummaryList, context)
3249
- : undefined,
3250
- NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
3251
- };
3252
- };
3253
- const de_ListTagsForResourceResponse = (output, context) => {
3254
- return {
3255
- ResourceTags: output.ResourceTags != null ? de_ResourceTagList(output.ResourceTags, context) : undefined,
3256
- };
3257
- };
3258
- const de_MatchOptions = (output, context) => {
3259
- const retVal = (output || [])
3260
- .filter((e) => e != null)
3261
- .map((entry) => {
3262
- if (entry === null) {
3263
- return null;
3264
- }
3265
- return (0, smithy_client_1.expectString)(entry);
3266
- });
3267
- return retVal;
3268
- };
3269
- const de_Metrics = (output, context) => {
3270
- return Object.entries(output).reduce((acc, [key, value]) => {
3271
- if (value === null) {
3272
- return acc;
3273
- }
3274
- acc[key] = de_MetricValue(value, context);
3275
- return acc;
3276
- }, {});
3277
- };
3278
- const de_MetricValue = (output, context) => {
3279
- return {
3280
- Amount: (0, smithy_client_1.expectString)(output.Amount),
3281
- Unit: (0, smithy_client_1.expectString)(output.Unit),
3282
- };
3283
- };
3284
- const de_ModifyRecommendationDetail = (output, context) => {
3285
- return {
3286
- TargetInstances: output.TargetInstances != null ? de_TargetInstancesList(output.TargetInstances, context) : undefined,
3287
- };
3288
- };
3289
- const de_MonitorArnList = (output, context) => {
3290
- const retVal = (output || [])
3291
- .filter((e) => e != null)
3292
- .map((entry) => {
3293
- if (entry === null) {
3294
- return null;
3295
- }
3296
- return (0, smithy_client_1.expectString)(entry);
3297
- });
3298
- return retVal;
3299
- };
3300
- const de_NetworkResourceUtilization = (output, context) => {
3301
- return {
3302
- NetworkInBytesPerSecond: (0, smithy_client_1.expectString)(output.NetworkInBytesPerSecond),
3303
- NetworkOutBytesPerSecond: (0, smithy_client_1.expectString)(output.NetworkOutBytesPerSecond),
3304
- NetworkPacketsInPerSecond: (0, smithy_client_1.expectString)(output.NetworkPacketsInPerSecond),
3305
- NetworkPacketsOutPerSecond: (0, smithy_client_1.expectString)(output.NetworkPacketsOutPerSecond),
3306
- };
3307
- };
3308
- const de_PlatformDifferences = (output, context) => {
3309
- const retVal = (output || [])
3310
- .filter((e) => e != null)
3311
- .map((entry) => {
3312
- if (entry === null) {
3313
- return null;
3314
- }
3315
- return (0, smithy_client_1.expectString)(entry);
3316
- });
3317
- return retVal;
3318
- };
3319
- const de_ProvideAnomalyFeedbackResponse = (output, context) => {
3320
- return {
3321
- AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
3322
- };
3323
- };
3324
- const de_RDSInstanceDetails = (output, context) => {
3325
- return {
3326
- CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
3327
- DatabaseEdition: (0, smithy_client_1.expectString)(output.DatabaseEdition),
3328
- DatabaseEngine: (0, smithy_client_1.expectString)(output.DatabaseEngine),
3329
- DeploymentOption: (0, smithy_client_1.expectString)(output.DeploymentOption),
3330
- Family: (0, smithy_client_1.expectString)(output.Family),
3331
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
3332
- LicenseModel: (0, smithy_client_1.expectString)(output.LicenseModel),
3333
- Region: (0, smithy_client_1.expectString)(output.Region),
3334
- SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
3335
- };
3336
- };
3337
- const de_RedshiftInstanceDetails = (output, context) => {
3338
- return {
3339
- CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
3340
- Family: (0, smithy_client_1.expectString)(output.Family),
3341
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
3342
- Region: (0, smithy_client_1.expectString)(output.Region),
3343
- SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
3344
- };
3345
- };
3346
- const de_RequestChangedException = (output, context) => {
3347
- return {
3348
- Message: (0, smithy_client_1.expectString)(output.Message),
3349
- };
3350
- };
3351
- const de_ReservationAggregates = (output, context) => {
3352
- return {
3353
- AmortizedRecurringFee: (0, smithy_client_1.expectString)(output.AmortizedRecurringFee),
3354
- AmortizedUpfrontFee: (0, smithy_client_1.expectString)(output.AmortizedUpfrontFee),
3355
- NetRISavings: (0, smithy_client_1.expectString)(output.NetRISavings),
3356
- OnDemandCostOfRIHoursUsed: (0, smithy_client_1.expectString)(output.OnDemandCostOfRIHoursUsed),
3357
- PurchasedHours: (0, smithy_client_1.expectString)(output.PurchasedHours),
3358
- PurchasedUnits: (0, smithy_client_1.expectString)(output.PurchasedUnits),
3359
- RICostForUnusedHours: (0, smithy_client_1.expectString)(output.RICostForUnusedHours),
3360
- RealizedSavings: (0, smithy_client_1.expectString)(output.RealizedSavings),
3361
- TotalActualHours: (0, smithy_client_1.expectString)(output.TotalActualHours),
3362
- TotalActualUnits: (0, smithy_client_1.expectString)(output.TotalActualUnits),
3363
- TotalAmortizedFee: (0, smithy_client_1.expectString)(output.TotalAmortizedFee),
3364
- TotalPotentialRISavings: (0, smithy_client_1.expectString)(output.TotalPotentialRISavings),
3365
- UnrealizedSavings: (0, smithy_client_1.expectString)(output.UnrealizedSavings),
3366
- UnusedHours: (0, smithy_client_1.expectString)(output.UnusedHours),
3367
- UnusedUnits: (0, smithy_client_1.expectString)(output.UnusedUnits),
3368
- UtilizationPercentage: (0, smithy_client_1.expectString)(output.UtilizationPercentage),
3369
- UtilizationPercentageInUnits: (0, smithy_client_1.expectString)(output.UtilizationPercentageInUnits),
3370
- };
3371
- };
3372
- const de_ReservationCoverageGroup = (output, context) => {
3373
- return {
3374
- Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
3375
- Coverage: output.Coverage != null ? de_Coverage(output.Coverage, context) : undefined,
3376
- };
3377
- };
3378
- const de_ReservationCoverageGroups = (output, context) => {
3379
- const retVal = (output || [])
3380
- .filter((e) => e != null)
3381
- .map((entry) => {
3382
- if (entry === null) {
3383
- return null;
3384
- }
3385
- return de_ReservationCoverageGroup(entry, context);
3386
- });
3387
- return retVal;
3388
- };
3389
- const de_ReservationPurchaseRecommendation = (output, context) => {
3390
- return {
3391
- AccountScope: (0, smithy_client_1.expectString)(output.AccountScope),
3392
- LookbackPeriodInDays: (0, smithy_client_1.expectString)(output.LookbackPeriodInDays),
3393
- PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
3394
- RecommendationDetails: output.RecommendationDetails != null
3395
- ? de_ReservationPurchaseRecommendationDetails(output.RecommendationDetails, context)
3396
- : undefined,
3397
- RecommendationSummary: output.RecommendationSummary != null
3398
- ? de_ReservationPurchaseRecommendationSummary(output.RecommendationSummary, context)
3399
- : undefined,
3400
- ServiceSpecification: output.ServiceSpecification != null ? de_ServiceSpecification(output.ServiceSpecification, context) : undefined,
3401
- TermInYears: (0, smithy_client_1.expectString)(output.TermInYears),
3402
- };
3403
- };
3404
- const de_ReservationPurchaseRecommendationDetail = (output, context) => {
3405
- return {
3406
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3407
- AverageNormalizedUnitsUsedPerHour: (0, smithy_client_1.expectString)(output.AverageNormalizedUnitsUsedPerHour),
3408
- AverageNumberOfInstancesUsedPerHour: (0, smithy_client_1.expectString)(output.AverageNumberOfInstancesUsedPerHour),
3409
- AverageUtilization: (0, smithy_client_1.expectString)(output.AverageUtilization),
3410
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
3411
- EstimatedBreakEvenInMonths: (0, smithy_client_1.expectString)(output.EstimatedBreakEvenInMonths),
3412
- EstimatedMonthlyOnDemandCost: (0, smithy_client_1.expectString)(output.EstimatedMonthlyOnDemandCost),
3413
- EstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsAmount),
3414
- EstimatedMonthlySavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsPercentage),
3415
- EstimatedReservationCostForLookbackPeriod: (0, smithy_client_1.expectString)(output.EstimatedReservationCostForLookbackPeriod),
3416
- InstanceDetails: output.InstanceDetails != null ? de_InstanceDetails(output.InstanceDetails, context) : undefined,
3417
- MaximumNormalizedUnitsUsedPerHour: (0, smithy_client_1.expectString)(output.MaximumNormalizedUnitsUsedPerHour),
3418
- MaximumNumberOfInstancesUsedPerHour: (0, smithy_client_1.expectString)(output.MaximumNumberOfInstancesUsedPerHour),
3419
- MinimumNormalizedUnitsUsedPerHour: (0, smithy_client_1.expectString)(output.MinimumNormalizedUnitsUsedPerHour),
3420
- MinimumNumberOfInstancesUsedPerHour: (0, smithy_client_1.expectString)(output.MinimumNumberOfInstancesUsedPerHour),
3421
- RecommendedNormalizedUnitsToPurchase: (0, smithy_client_1.expectString)(output.RecommendedNormalizedUnitsToPurchase),
3422
- RecommendedNumberOfInstancesToPurchase: (0, smithy_client_1.expectString)(output.RecommendedNumberOfInstancesToPurchase),
3423
- RecurringStandardMonthlyCost: (0, smithy_client_1.expectString)(output.RecurringStandardMonthlyCost),
3424
- UpfrontCost: (0, smithy_client_1.expectString)(output.UpfrontCost),
3425
- };
3426
- };
3427
- const de_ReservationPurchaseRecommendationDetails = (output, context) => {
3428
- const retVal = (output || [])
3429
- .filter((e) => e != null)
3430
- .map((entry) => {
3431
- if (entry === null) {
3432
- return null;
3433
- }
3434
- return de_ReservationPurchaseRecommendationDetail(entry, context);
3435
- });
3436
- return retVal;
3437
- };
3438
- const de_ReservationPurchaseRecommendationMetadata = (output, context) => {
3439
- return {
3440
- GenerationTimestamp: (0, smithy_client_1.expectString)(output.GenerationTimestamp),
3441
- RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
3442
- };
3443
- };
3444
- const de_ReservationPurchaseRecommendations = (output, context) => {
3445
- const retVal = (output || [])
3446
- .filter((e) => e != null)
3447
- .map((entry) => {
3448
- if (entry === null) {
3449
- return null;
3450
- }
3451
- return de_ReservationPurchaseRecommendation(entry, context);
3452
- });
3453
- return retVal;
3454
- };
3455
- const de_ReservationPurchaseRecommendationSummary = (output, context) => {
3456
- return {
3457
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
3458
- TotalEstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.TotalEstimatedMonthlySavingsAmount),
3459
- TotalEstimatedMonthlySavingsPercentage: (0, smithy_client_1.expectString)(output.TotalEstimatedMonthlySavingsPercentage),
3460
- };
3461
- };
3462
- const de_ReservationUtilizationGroup = (output, context) => {
3463
- return {
3464
- Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
3465
- Key: (0, smithy_client_1.expectString)(output.Key),
3466
- Utilization: output.Utilization != null ? de_ReservationAggregates(output.Utilization, context) : undefined,
3467
- Value: (0, smithy_client_1.expectString)(output.Value),
3468
- };
3469
- };
3470
- const de_ReservationUtilizationGroups = (output, context) => {
3471
- const retVal = (output || [])
3472
- .filter((e) => e != null)
3473
- .map((entry) => {
3474
- if (entry === null) {
3475
- return null;
3476
- }
3477
- return de_ReservationUtilizationGroup(entry, context);
3478
- });
3479
- return retVal;
3480
- };
3481
- const de_ResourceDetails = (output, context) => {
3482
- return {
3483
- EC2ResourceDetails: output.EC2ResourceDetails != null ? de_EC2ResourceDetails(output.EC2ResourceDetails, context) : undefined,
3484
- };
3485
- };
3486
- const de_ResourceNotFoundException = (output, context) => {
3487
- return {
3488
- Message: (0, smithy_client_1.expectString)(output.Message),
3489
- ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
3490
- };
3491
- };
3492
- const de_ResourceTag = (output, context) => {
3493
- return {
3494
- Key: (0, smithy_client_1.expectString)(output.Key),
3495
- Value: (0, smithy_client_1.expectString)(output.Value),
3496
- };
3497
- };
3498
- const de_ResourceTagList = (output, context) => {
3499
- const retVal = (output || [])
3500
- .filter((e) => e != null)
3501
- .map((entry) => {
3502
- if (entry === null) {
3503
- return null;
3504
- }
3505
- return de_ResourceTag(entry, context);
3506
- });
3507
- return retVal;
3508
- };
3509
- const de_ResourceUtilization = (output, context) => {
3510
- return {
3511
- EC2ResourceUtilization: output.EC2ResourceUtilization != null
3512
- ? de_EC2ResourceUtilization(output.EC2ResourceUtilization, context)
3513
- : undefined,
3514
- };
3515
- };
3516
- const de_ResultByTime = (output, context) => {
3517
- return {
3518
- Estimated: (0, smithy_client_1.expectBoolean)(output.Estimated),
3519
- Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
3520
- TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
3521
- Total: output.Total != null ? de_Metrics(output.Total, context) : undefined,
3522
- };
3523
- };
3524
- const de_ResultsByTime = (output, context) => {
3525
- const retVal = (output || [])
3526
- .filter((e) => e != null)
3527
- .map((entry) => {
3528
- if (entry === null) {
3529
- return null;
3530
- }
3531
- return de_ResultByTime(entry, context);
3532
- });
3533
- return retVal;
3534
- };
3535
- const de_RightsizingRecommendation = (output, context) => {
3536
- return {
3537
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3538
- CurrentInstance: output.CurrentInstance != null ? de_CurrentInstance(output.CurrentInstance, context) : undefined,
3539
- FindingReasonCodes: output.FindingReasonCodes != null ? de_FindingReasonCodes(output.FindingReasonCodes, context) : undefined,
3540
- ModifyRecommendationDetail: output.ModifyRecommendationDetail != null
3541
- ? de_ModifyRecommendationDetail(output.ModifyRecommendationDetail, context)
3542
- : undefined,
3543
- RightsizingType: (0, smithy_client_1.expectString)(output.RightsizingType),
3544
- TerminateRecommendationDetail: output.TerminateRecommendationDetail != null
3545
- ? de_TerminateRecommendationDetail(output.TerminateRecommendationDetail, context)
3546
- : undefined,
3547
- };
3548
- };
3549
- const de_RightsizingRecommendationConfiguration = (output, context) => {
3550
- return {
3551
- BenefitsConsidered: (0, smithy_client_1.expectBoolean)(output.BenefitsConsidered),
3552
- RecommendationTarget: (0, smithy_client_1.expectString)(output.RecommendationTarget),
3553
- };
3554
- };
3555
- const de_RightsizingRecommendationList = (output, context) => {
3556
- const retVal = (output || [])
3557
- .filter((e) => e != null)
3558
- .map((entry) => {
3559
- if (entry === null) {
3560
- return null;
3561
- }
3562
- return de_RightsizingRecommendation(entry, context);
3563
- });
3564
- return retVal;
3565
- };
3566
- const de_RightsizingRecommendationMetadata = (output, context) => {
3567
- return {
3568
- AdditionalMetadata: (0, smithy_client_1.expectString)(output.AdditionalMetadata),
3569
- GenerationTimestamp: (0, smithy_client_1.expectString)(output.GenerationTimestamp),
3570
- LookbackPeriodInDays: (0, smithy_client_1.expectString)(output.LookbackPeriodInDays),
3571
- RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
3572
- };
3573
- };
3574
- const de_RightsizingRecommendationSummary = (output, context) => {
3575
- return {
3576
- EstimatedTotalMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedTotalMonthlySavingsAmount),
3577
- SavingsCurrencyCode: (0, smithy_client_1.expectString)(output.SavingsCurrencyCode),
3578
- SavingsPercentage: (0, smithy_client_1.expectString)(output.SavingsPercentage),
3579
- TotalRecommendationCount: (0, smithy_client_1.expectString)(output.TotalRecommendationCount),
3580
- };
3581
- };
3582
- const de_RootCause = (output, context) => {
3583
- return {
3584
- LinkedAccount: (0, smithy_client_1.expectString)(output.LinkedAccount),
3585
- LinkedAccountName: (0, smithy_client_1.expectString)(output.LinkedAccountName),
3586
- Region: (0, smithy_client_1.expectString)(output.Region),
3587
- Service: (0, smithy_client_1.expectString)(output.Service),
3588
- UsageType: (0, smithy_client_1.expectString)(output.UsageType),
3589
- };
3590
- };
3591
- const de_RootCauses = (output, context) => {
3592
- const retVal = (output || [])
3593
- .filter((e) => e != null)
3594
- .map((entry) => {
3595
- if (entry === null) {
3596
- return null;
3597
- }
3598
- return de_RootCause(entry, context);
3599
- });
3600
- return retVal;
3601
- };
3602
- const de_SavingsPlansAmortizedCommitment = (output, context) => {
3603
- return {
3604
- AmortizedRecurringCommitment: (0, smithy_client_1.expectString)(output.AmortizedRecurringCommitment),
3605
- AmortizedUpfrontCommitment: (0, smithy_client_1.expectString)(output.AmortizedUpfrontCommitment),
3606
- TotalAmortizedCommitment: (0, smithy_client_1.expectString)(output.TotalAmortizedCommitment),
3607
- };
3608
- };
3609
- const de_SavingsPlansCoverage = (output, context) => {
3610
- return {
3611
- Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
3612
- Coverage: output.Coverage != null ? de_SavingsPlansCoverageData(output.Coverage, context) : undefined,
3613
- TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
3614
- };
3615
- };
3616
- const de_SavingsPlansCoverageData = (output, context) => {
3617
- return {
3618
- CoveragePercentage: (0, smithy_client_1.expectString)(output.CoveragePercentage),
3619
- OnDemandCost: (0, smithy_client_1.expectString)(output.OnDemandCost),
3620
- SpendCoveredBySavingsPlans: (0, smithy_client_1.expectString)(output.SpendCoveredBySavingsPlans),
3621
- TotalCost: (0, smithy_client_1.expectString)(output.TotalCost),
3622
- };
3623
- };
3624
- const de_SavingsPlansCoverages = (output, context) => {
3625
- const retVal = (output || [])
3626
- .filter((e) => e != null)
3627
- .map((entry) => {
3628
- if (entry === null) {
3629
- return null;
3630
- }
3631
- return de_SavingsPlansCoverage(entry, context);
3632
- });
3633
- return retVal;
3634
- };
3635
- const de_SavingsPlansDetails = (output, context) => {
3636
- return {
3637
- InstanceFamily: (0, smithy_client_1.expectString)(output.InstanceFamily),
3638
- OfferingId: (0, smithy_client_1.expectString)(output.OfferingId),
3639
- Region: (0, smithy_client_1.expectString)(output.Region),
3640
- };
3641
- };
3642
- const de_SavingsPlansPurchaseRecommendation = (output, context) => {
3643
- return {
3644
- AccountScope: (0, smithy_client_1.expectString)(output.AccountScope),
3645
- LookbackPeriodInDays: (0, smithy_client_1.expectString)(output.LookbackPeriodInDays),
3646
- PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
3647
- SavingsPlansPurchaseRecommendationDetails: output.SavingsPlansPurchaseRecommendationDetails != null
3648
- ? de_SavingsPlansPurchaseRecommendationDetailList(output.SavingsPlansPurchaseRecommendationDetails, context)
3649
- : undefined,
3650
- SavingsPlansPurchaseRecommendationSummary: output.SavingsPlansPurchaseRecommendationSummary != null
3651
- ? de_SavingsPlansPurchaseRecommendationSummary(output.SavingsPlansPurchaseRecommendationSummary, context)
3652
- : undefined,
3653
- SavingsPlansType: (0, smithy_client_1.expectString)(output.SavingsPlansType),
3654
- TermInYears: (0, smithy_client_1.expectString)(output.TermInYears),
3655
- };
3656
- };
3657
- const de_SavingsPlansPurchaseRecommendationDetail = (output, context) => {
3658
- return {
3659
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3660
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
3661
- CurrentAverageHourlyOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentAverageHourlyOnDemandSpend),
3662
- CurrentMaximumHourlyOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentMaximumHourlyOnDemandSpend),
3663
- CurrentMinimumHourlyOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentMinimumHourlyOnDemandSpend),
3664
- EstimatedAverageUtilization: (0, smithy_client_1.expectString)(output.EstimatedAverageUtilization),
3665
- EstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsAmount),
3666
- EstimatedOnDemandCost: (0, smithy_client_1.expectString)(output.EstimatedOnDemandCost),
3667
- EstimatedOnDemandCostWithCurrentCommitment: (0, smithy_client_1.expectString)(output.EstimatedOnDemandCostWithCurrentCommitment),
3668
- EstimatedROI: (0, smithy_client_1.expectString)(output.EstimatedROI),
3669
- EstimatedSPCost: (0, smithy_client_1.expectString)(output.EstimatedSPCost),
3670
- EstimatedSavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedSavingsAmount),
3671
- EstimatedSavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedSavingsPercentage),
3672
- HourlyCommitmentToPurchase: (0, smithy_client_1.expectString)(output.HourlyCommitmentToPurchase),
3673
- SavingsPlansDetails: output.SavingsPlansDetails != null ? de_SavingsPlansDetails(output.SavingsPlansDetails, context) : undefined,
3674
- UpfrontCost: (0, smithy_client_1.expectString)(output.UpfrontCost),
3675
- };
3676
- };
3677
- const de_SavingsPlansPurchaseRecommendationDetailList = (output, context) => {
3678
- const retVal = (output || [])
3679
- .filter((e) => e != null)
3680
- .map((entry) => {
3681
- if (entry === null) {
3682
- return null;
3683
- }
3684
- return de_SavingsPlansPurchaseRecommendationDetail(entry, context);
3685
- });
3686
- return retVal;
3687
- };
3688
- const de_SavingsPlansPurchaseRecommendationMetadata = (output, context) => {
3689
- return {
3690
- AdditionalMetadata: (0, smithy_client_1.expectString)(output.AdditionalMetadata),
3691
- GenerationTimestamp: (0, smithy_client_1.expectString)(output.GenerationTimestamp),
3692
- RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
3693
- };
3694
- };
3695
- const de_SavingsPlansPurchaseRecommendationSummary = (output, context) => {
3696
- return {
3697
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
3698
- CurrentOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentOnDemandSpend),
3699
- DailyCommitmentToPurchase: (0, smithy_client_1.expectString)(output.DailyCommitmentToPurchase),
3700
- EstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsAmount),
3701
- EstimatedOnDemandCostWithCurrentCommitment: (0, smithy_client_1.expectString)(output.EstimatedOnDemandCostWithCurrentCommitment),
3702
- EstimatedROI: (0, smithy_client_1.expectString)(output.EstimatedROI),
3703
- EstimatedSavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedSavingsAmount),
3704
- EstimatedSavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedSavingsPercentage),
3705
- EstimatedTotalCost: (0, smithy_client_1.expectString)(output.EstimatedTotalCost),
3706
- HourlyCommitmentToPurchase: (0, smithy_client_1.expectString)(output.HourlyCommitmentToPurchase),
3707
- TotalRecommendationCount: (0, smithy_client_1.expectString)(output.TotalRecommendationCount),
3708
- };
3709
- };
3710
- const de_SavingsPlansSavings = (output, context) => {
3711
- return {
3712
- NetSavings: (0, smithy_client_1.expectString)(output.NetSavings),
3713
- OnDemandCostEquivalent: (0, smithy_client_1.expectString)(output.OnDemandCostEquivalent),
3714
- };
3715
- };
3716
- const de_SavingsPlansUtilization = (output, context) => {
3717
- return {
3718
- TotalCommitment: (0, smithy_client_1.expectString)(output.TotalCommitment),
3719
- UnusedCommitment: (0, smithy_client_1.expectString)(output.UnusedCommitment),
3720
- UsedCommitment: (0, smithy_client_1.expectString)(output.UsedCommitment),
3721
- UtilizationPercentage: (0, smithy_client_1.expectString)(output.UtilizationPercentage),
3722
- };
3723
- };
3724
- const de_SavingsPlansUtilizationAggregates = (output, context) => {
3725
- return {
3726
- AmortizedCommitment: output.AmortizedCommitment != null
3727
- ? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
3728
- : undefined,
3729
- Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
3730
- Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
3731
- };
3732
- };
3733
- const de_SavingsPlansUtilizationByTime = (output, context) => {
3734
- return {
3735
- AmortizedCommitment: output.AmortizedCommitment != null
3736
- ? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
3737
- : undefined,
3738
- Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
3739
- TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
3740
- Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
3741
- };
3742
- };
3743
- const de_SavingsPlansUtilizationDetail = (output, context) => {
3744
- return {
3745
- AmortizedCommitment: output.AmortizedCommitment != null
3746
- ? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
3747
- : undefined,
3748
- Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
3749
- Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
3750
- SavingsPlanArn: (0, smithy_client_1.expectString)(output.SavingsPlanArn),
3751
- Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
3752
- };
3753
- };
3754
- const de_SavingsPlansUtilizationDetails = (output, context) => {
3755
- const retVal = (output || [])
3756
- .filter((e) => e != null)
3757
- .map((entry) => {
3758
- if (entry === null) {
3759
- return null;
3760
- }
3761
- return de_SavingsPlansUtilizationDetail(entry, context);
3762
- });
3763
- return retVal;
3764
- };
3765
- const de_SavingsPlansUtilizationsByTime = (output, context) => {
3766
- const retVal = (output || [])
3767
- .filter((e) => e != null)
3768
- .map((entry) => {
3769
- if (entry === null) {
3770
- return null;
3771
- }
3772
- return de_SavingsPlansUtilizationByTime(entry, context);
3773
- });
3774
- return retVal;
3775
- };
3776
- const de_ServiceQuotaExceededException = (output, context) => {
3777
- return {
3778
- Message: (0, smithy_client_1.expectString)(output.Message),
3779
- };
3780
- };
3781
- const de_ServiceSpecification = (output, context) => {
3782
- return {
3783
- EC2Specification: output.EC2Specification != null ? de_EC2Specification(output.EC2Specification, context) : undefined,
3784
- };
3785
- };
3786
- const de_StartSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
3787
- return {
3788
- EstimatedCompletionTime: (0, smithy_client_1.expectString)(output.EstimatedCompletionTime),
3789
- GenerationStartedTime: (0, smithy_client_1.expectString)(output.GenerationStartedTime),
3790
- RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
3791
- };
3792
- };
3793
- const de_Subscriber = (output, context) => {
3794
- return {
3795
- Address: (0, smithy_client_1.expectString)(output.Address),
3796
- Status: (0, smithy_client_1.expectString)(output.Status),
3797
- Type: (0, smithy_client_1.expectString)(output.Type),
3798
- };
3799
- };
3800
- const de_Subscribers = (output, context) => {
3801
- const retVal = (output || [])
3802
- .filter((e) => e != null)
3803
- .map((entry) => {
3804
- if (entry === null) {
3805
- return null;
3806
- }
3807
- return de_Subscriber(entry, context);
3808
- });
3809
- return retVal;
3810
- };
3811
- const de_TagList = (output, context) => {
3812
- const retVal = (output || [])
3813
- .filter((e) => e != null)
3814
- .map((entry) => {
3815
- if (entry === null) {
3816
- return null;
3817
- }
3818
- return (0, smithy_client_1.expectString)(entry);
3819
- });
3820
- return retVal;
3821
- };
3822
- const de_TagResourceResponse = (output, context) => {
3823
- return {};
3824
- };
3825
- const de_TagValues = (output, context) => {
3826
- return {
3827
- Key: (0, smithy_client_1.expectString)(output.Key),
3828
- MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
3829
- Values: output.Values != null ? de_Values(output.Values, context) : undefined,
3830
- };
3831
- };
3832
- const de_TagValuesList = (output, context) => {
3833
- const retVal = (output || [])
3834
- .filter((e) => e != null)
3835
- .map((entry) => {
3836
- if (entry === null) {
3837
- return null;
3838
- }
3839
- return de_TagValues(entry, context);
3840
- });
3841
- return retVal;
3842
- };
3843
- const de_TargetInstance = (output, context) => {
3844
- return {
3845
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
3846
- DefaultTargetInstance: (0, smithy_client_1.expectBoolean)(output.DefaultTargetInstance),
3847
- EstimatedMonthlyCost: (0, smithy_client_1.expectString)(output.EstimatedMonthlyCost),
3848
- EstimatedMonthlySavings: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavings),
3849
- ExpectedResourceUtilization: output.ExpectedResourceUtilization != null
3850
- ? de_ResourceUtilization(output.ExpectedResourceUtilization, context)
3851
- : undefined,
3852
- PlatformDifferences: output.PlatformDifferences != null ? de_PlatformDifferences(output.PlatformDifferences, context) : undefined,
3853
- ResourceDetails: output.ResourceDetails != null ? de_ResourceDetails(output.ResourceDetails, context) : undefined,
3854
- };
3855
- };
3856
- const de_TargetInstancesList = (output, context) => {
3857
- const retVal = (output || [])
3858
- .filter((e) => e != null)
3859
- .map((entry) => {
3860
- if (entry === null) {
3861
- return null;
3862
- }
3863
- return de_TargetInstance(entry, context);
2175
+ const de_GetAnomaliesResponse = (output, context) => {
2176
+ return (0, smithy_client_1.take)(output, {
2177
+ Anomalies: (_) => de_Anomalies(_, context),
2178
+ NextPageToken: smithy_client_1.expectString,
3864
2179
  });
3865
- return retVal;
3866
- };
3867
- const de_TerminateRecommendationDetail = (output, context) => {
3868
- return {
3869
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
3870
- EstimatedMonthlySavings: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavings),
3871
- };
3872
- };
3873
- const de_TooManyTagsException = (output, context) => {
3874
- return {
3875
- Message: (0, smithy_client_1.expectString)(output.Message),
3876
- ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
3877
- };
3878
- };
3879
- const de_UnknownMonitorException = (output, context) => {
3880
- return {
3881
- Message: (0, smithy_client_1.expectString)(output.Message),
3882
- };
3883
- };
3884
- const de_UnknownSubscriptionException = (output, context) => {
3885
- return {
3886
- Message: (0, smithy_client_1.expectString)(output.Message),
3887
- };
3888
- };
3889
- const de_UnresolvableUsageUnitException = (output, context) => {
3890
- return {
3891
- Message: (0, smithy_client_1.expectString)(output.Message),
3892
- };
3893
- };
3894
- const de_UntagResourceResponse = (output, context) => {
3895
- return {};
3896
- };
3897
- const de_UpdateAnomalyMonitorResponse = (output, context) => {
3898
- return {
3899
- MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
3900
- };
3901
- };
3902
- const de_UpdateAnomalySubscriptionResponse = (output, context) => {
3903
- return {
3904
- SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
3905
- };
3906
- };
3907
- const de_UpdateCostAllocationTagsStatusError = (output, context) => {
3908
- return {
3909
- Code: (0, smithy_client_1.expectString)(output.Code),
3910
- Message: (0, smithy_client_1.expectString)(output.Message),
3911
- TagKey: (0, smithy_client_1.expectString)(output.TagKey),
3912
- };
3913
2180
  };
3914
- const de_UpdateCostAllocationTagsStatusErrors = (output, context) => {
3915
- const retVal = (output || [])
3916
- .filter((e) => e != null)
3917
- .map((entry) => {
3918
- if (entry === null) {
3919
- return null;
3920
- }
3921
- return de_UpdateCostAllocationTagsStatusError(entry, context);
2181
+ const de_GetAnomalyMonitorsResponse = (output, context) => {
2182
+ return (0, smithy_client_1.take)(output, {
2183
+ AnomalyMonitors: (_) => de_AnomalyMonitors(_, context),
2184
+ NextPageToken: smithy_client_1.expectString,
3922
2185
  });
3923
- return retVal;
3924
- };
3925
- const de_UpdateCostAllocationTagsStatusResponse = (output, context) => {
3926
- return {
3927
- Errors: output.Errors != null ? de_UpdateCostAllocationTagsStatusErrors(output.Errors, context) : undefined,
3928
- };
3929
- };
3930
- const de_UpdateCostCategoryDefinitionResponse = (output, context) => {
3931
- return {
3932
- CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
3933
- EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
3934
- };
3935
- };
3936
- const de_UtilizationByTime = (output, context) => {
3937
- return {
3938
- Groups: output.Groups != null ? de_ReservationUtilizationGroups(output.Groups, context) : undefined,
3939
- TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
3940
- Total: output.Total != null ? de_ReservationAggregates(output.Total, context) : undefined,
3941
- };
3942
2186
  };
3943
- const de_UtilizationsByTime = (output, context) => {
3944
- const retVal = (output || [])
3945
- .filter((e) => e != null)
3946
- .map((entry) => {
3947
- if (entry === null) {
3948
- return null;
3949
- }
3950
- return de_UtilizationByTime(entry, context);
2187
+ const de_GetAnomalySubscriptionsResponse = (output, context) => {
2188
+ return (0, smithy_client_1.take)(output, {
2189
+ AnomalySubscriptions: (_) => de_AnomalySubscriptions(_, context),
2190
+ NextPageToken: smithy_client_1.expectString,
3951
2191
  });
3952
- return retVal;
3953
2192
  };
3954
- const de_Values = (output, context) => {
3955
- const retVal = (output || [])
3956
- .filter((e) => e != null)
3957
- .map((entry) => {
3958
- if (entry === null) {
3959
- return null;
3960
- }
3961
- return (0, smithy_client_1.expectString)(entry);
2193
+ const de_Impact = (output, context) => {
2194
+ return (0, smithy_client_1.take)(output, {
2195
+ MaxImpact: smithy_client_1.limitedParseDouble,
2196
+ TotalActualSpend: smithy_client_1.limitedParseDouble,
2197
+ TotalExpectedSpend: smithy_client_1.limitedParseDouble,
2198
+ TotalImpact: smithy_client_1.limitedParseDouble,
2199
+ TotalImpactPercentage: smithy_client_1.limitedParseDouble,
3962
2200
  });
3963
- return retVal;
3964
2201
  };
3965
2202
  const deserializeMetadata = (output) => ({
3966
2203
  httpStatusCode: output.statusCode,
@@ -3975,6 +2212,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3975
2212
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3976
2213
  };
3977
2214
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2215
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CostExplorerServiceException_1.CostExplorerServiceException);
3978
2216
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3979
2217
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3980
2218
  const contents = {