@aws-sdk/client-cost-optimization-hub 3.927.0 → 3.929.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.
Files changed (28) hide show
  1. package/dist-cjs/index.js +913 -730
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CostOptimizationHubClient.js +2 -0
  4. package/dist-es/commands/GetPreferencesCommand.js +3 -9
  5. package/dist-es/commands/GetRecommendationCommand.js +3 -9
  6. package/dist-es/commands/ListEnrollmentStatusesCommand.js +3 -9
  7. package/dist-es/commands/ListRecommendationSummariesCommand.js +3 -9
  8. package/dist-es/commands/ListRecommendationsCommand.js +3 -9
  9. package/dist-es/commands/UpdateEnrollmentStatusCommand.js +3 -9
  10. package/dist-es/commands/UpdatePreferencesCommand.js +3 -9
  11. package/dist-es/runtimeConfig.shared.js +7 -0
  12. package/dist-es/schemas/schemas_0.js +892 -0
  13. package/dist-types/CostOptimizationHubClient.d.ts +10 -1
  14. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  15. package/dist-types/runtimeConfig.d.ts +1 -0
  16. package/dist-types/runtimeConfig.native.d.ts +1 -0
  17. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  18. package/dist-types/schemas/schemas_0.d.ts +105 -0
  19. package/dist-types/ts3.4/CostOptimizationHubClient.d.ts +4 -0
  20. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  21. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  24. package/dist-types/ts3.4/schemas/schemas_0.d.ts +110 -0
  25. package/package.json +5 -5
  26. package/dist-es/protocols/Aws_json1_0.js +0 -670
  27. package/dist-types/protocols/Aws_json1_0.d.ts +0 -65
  28. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -89
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class CostOptimizationHubClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class CostOptimizationHubClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class CostOptimizationHubServiceException extends smithyClient.ServiceException {
113
+ let CostOptimizationHubServiceException$1 = class CostOptimizationHubServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, CostOptimizationHubServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends CostOptimizationHubServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends CostOptimizationHubServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,7 +128,7 @@ class AccessDeniedException extends CostOptimizationHubServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
- }
131
+ };
132
132
  const EnrollmentStatus = {
133
133
  ACTIVE: "Active",
134
134
  INACTIVE: "Inactive",
@@ -164,7 +164,7 @@ const SavingsEstimationMode = {
164
164
  AFTER_DISCOUNTS: "AfterDiscounts",
165
165
  BEFORE_DISCOUNTS: "BeforeDiscounts",
166
166
  };
167
- class InternalServerException extends CostOptimizationHubServiceException {
167
+ let InternalServerException$1 = class InternalServerException extends CostOptimizationHubServiceException$1 {
168
168
  name = "InternalServerException";
169
169
  $fault = "server";
170
170
  constructor(opts) {
@@ -175,8 +175,8 @@ class InternalServerException extends CostOptimizationHubServiceException {
175
175
  });
176
176
  Object.setPrototypeOf(this, InternalServerException.prototype);
177
177
  }
178
- }
179
- class ThrottlingException extends CostOptimizationHubServiceException {
178
+ };
179
+ let ThrottlingException$1 = class ThrottlingException extends CostOptimizationHubServiceException$1 {
180
180
  name = "ThrottlingException";
181
181
  $fault = "client";
182
182
  constructor(opts) {
@@ -187,12 +187,12 @@ class ThrottlingException extends CostOptimizationHubServiceException {
187
187
  });
188
188
  Object.setPrototypeOf(this, ThrottlingException.prototype);
189
189
  }
190
- }
190
+ };
191
191
  const ValidationExceptionReason = {
192
192
  FIELD_VALIDATION_FAILED: "FieldValidationFailed",
193
193
  OTHER: "Other",
194
194
  };
195
- class ValidationException extends CostOptimizationHubServiceException {
195
+ let ValidationException$1 = class ValidationException extends CostOptimizationHubServiceException$1 {
196
196
  name = "ValidationException";
197
197
  $fault = "client";
198
198
  reason;
@@ -207,7 +207,7 @@ class ValidationException extends CostOptimizationHubServiceException {
207
207
  this.reason = opts.reason;
208
208
  this.fields = opts.fields;
209
209
  }
210
- }
210
+ };
211
211
  const Ec2AutoScalingGroupType = {
212
212
  MIXED_INSTANCE_TYPES: "MixedInstanceTypes",
213
213
  SINGLE_INSTANCE_TYPE: "SingleInstanceType",
@@ -285,7 +285,7 @@ const Source = {
285
285
  COMPUTE_OPTIMIZER: "ComputeOptimizer",
286
286
  COST_EXPLORER: "CostExplorer",
287
287
  };
288
- class ResourceNotFoundException extends CostOptimizationHubServiceException {
288
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends CostOptimizationHubServiceException$1 {
289
289
  name = "ResourceNotFoundException";
290
290
  $fault = "client";
291
291
  resourceId;
@@ -298,7 +298,7 @@ class ResourceNotFoundException extends CostOptimizationHubServiceException {
298
298
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
299
299
  this.resourceId = opts.resourceId;
300
300
  }
301
- }
301
+ };
302
302
  const Order = {
303
303
  ASC: "Asc",
304
304
  DESC: "Desc",
@@ -307,682 +307,895 @@ const SummaryMetrics = {
307
307
  SAVINGS_PERCENTAGE: "SavingsPercentage",
308
308
  };
309
309
 
310
- const se_GetPreferencesCommand = async (input, context) => {
311
- const headers = sharedHeaders("GetPreferences");
312
- let body;
313
- body = JSON.stringify(smithyClient._json(input));
314
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
- };
316
- const se_GetRecommendationCommand = async (input, context) => {
317
- const headers = sharedHeaders("GetRecommendation");
318
- let body;
319
- body = JSON.stringify(smithyClient._json(input));
320
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
321
- };
322
- const se_ListEnrollmentStatusesCommand = async (input, context) => {
323
- const headers = sharedHeaders("ListEnrollmentStatuses");
324
- let body;
325
- body = JSON.stringify(smithyClient._json(input));
326
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
- };
328
- const se_ListRecommendationsCommand = async (input, context) => {
329
- const headers = sharedHeaders("ListRecommendations");
330
- let body;
331
- body = JSON.stringify(smithyClient._json(input));
332
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
333
- };
334
- const se_ListRecommendationSummariesCommand = async (input, context) => {
335
- const headers = sharedHeaders("ListRecommendationSummaries");
336
- let body;
337
- body = JSON.stringify(smithyClient._json(input));
338
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
339
- };
340
- const se_UpdateEnrollmentStatusCommand = async (input, context) => {
341
- const headers = sharedHeaders("UpdateEnrollmentStatus");
342
- let body;
343
- body = JSON.stringify(smithyClient._json(input));
344
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
345
- };
346
- const se_UpdatePreferencesCommand = async (input, context) => {
347
- const headers = sharedHeaders("UpdatePreferences");
348
- let body;
349
- body = JSON.stringify(smithyClient._json(input));
350
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
- };
352
- const de_GetPreferencesCommand = async (output, context) => {
353
- if (output.statusCode >= 300) {
354
- return de_CommandError(output, context);
355
- }
356
- const data = await core$1.parseJsonBody(output.body, context);
357
- let contents = {};
358
- contents = smithyClient._json(data);
359
- const response = {
360
- $metadata: deserializeMetadata(output),
361
- ...contents,
362
- };
363
- return response;
364
- };
365
- const de_GetRecommendationCommand = async (output, context) => {
366
- if (output.statusCode >= 300) {
367
- return de_CommandError(output, context);
368
- }
369
- const data = await core$1.parseJsonBody(output.body, context);
370
- let contents = {};
371
- contents = de_GetRecommendationResponse(data);
372
- const response = {
373
- $metadata: deserializeMetadata(output),
374
- ...contents,
375
- };
376
- return response;
377
- };
378
- const de_ListEnrollmentStatusesCommand = async (output, context) => {
379
- if (output.statusCode >= 300) {
380
- return de_CommandError(output, context);
381
- }
382
- const data = await core$1.parseJsonBody(output.body, context);
383
- let contents = {};
384
- contents = de_ListEnrollmentStatusesResponse(data);
385
- const response = {
386
- $metadata: deserializeMetadata(output),
387
- ...contents,
388
- };
389
- return response;
390
- };
391
- const de_ListRecommendationsCommand = async (output, context) => {
392
- if (output.statusCode >= 300) {
393
- return de_CommandError(output, context);
394
- }
395
- const data = await core$1.parseJsonBody(output.body, context);
396
- let contents = {};
397
- contents = de_ListRecommendationsResponse(data);
398
- const response = {
399
- $metadata: deserializeMetadata(output),
400
- ...contents,
401
- };
402
- return response;
403
- };
404
- const de_ListRecommendationSummariesCommand = async (output, context) => {
405
- if (output.statusCode >= 300) {
406
- return de_CommandError(output, context);
407
- }
408
- const data = await core$1.parseJsonBody(output.body, context);
409
- let contents = {};
410
- contents = de_ListRecommendationSummariesResponse(data);
411
- const response = {
412
- $metadata: deserializeMetadata(output),
413
- ...contents,
414
- };
415
- return response;
416
- };
417
- const de_UpdateEnrollmentStatusCommand = async (output, context) => {
418
- if (output.statusCode >= 300) {
419
- return de_CommandError(output, context);
420
- }
421
- const data = await core$1.parseJsonBody(output.body, context);
422
- let contents = {};
423
- contents = smithyClient._json(data);
424
- const response = {
425
- $metadata: deserializeMetadata(output),
426
- ...contents,
427
- };
428
- return response;
429
- };
430
- const de_UpdatePreferencesCommand = async (output, context) => {
431
- if (output.statusCode >= 300) {
432
- return de_CommandError(output, context);
433
- }
434
- const data = await core$1.parseJsonBody(output.body, context);
435
- let contents = {};
436
- contents = smithyClient._json(data);
437
- const response = {
438
- $metadata: deserializeMetadata(output),
439
- ...contents,
440
- };
441
- return response;
442
- };
443
- const de_CommandError = async (output, context) => {
444
- const parsedOutput = {
445
- ...output,
446
- body: await core$1.parseJsonErrorBody(output.body, context),
447
- };
448
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
449
- switch (errorCode) {
450
- case "AccessDeniedException":
451
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
452
- throw await de_AccessDeniedExceptionRes(parsedOutput);
453
- case "InternalServerException":
454
- case "com.amazonaws.costoptimizationhub#InternalServerException":
455
- throw await de_InternalServerExceptionRes(parsedOutput);
456
- case "ThrottlingException":
457
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
458
- throw await de_ThrottlingExceptionRes(parsedOutput);
459
- case "ValidationException":
460
- case "com.amazonaws.costoptimizationhub#ValidationException":
461
- throw await de_ValidationExceptionRes(parsedOutput);
462
- case "ResourceNotFoundException":
463
- case "com.amazonaws.costoptimizationhub#ResourceNotFoundException":
464
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
465
- default:
466
- const parsedBody = parsedOutput.body;
467
- return throwDefaultError({
468
- output,
469
- parsedBody,
470
- errorCode,
471
- });
472
- }
473
- };
474
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
475
- const body = parsedOutput.body;
476
- const deserialized = smithyClient._json(body);
477
- const exception = new AccessDeniedException({
478
- $metadata: deserializeMetadata(parsedOutput),
479
- ...deserialized,
480
- });
481
- return smithyClient.decorateServiceException(exception, body);
482
- };
483
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
484
- const body = parsedOutput.body;
485
- const deserialized = smithyClient._json(body);
486
- const exception = new InternalServerException({
487
- $metadata: deserializeMetadata(parsedOutput),
488
- ...deserialized,
489
- });
490
- return smithyClient.decorateServiceException(exception, body);
491
- };
492
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
493
- const body = parsedOutput.body;
494
- const deserialized = smithyClient._json(body);
495
- const exception = new ResourceNotFoundException({
496
- $metadata: deserializeMetadata(parsedOutput),
497
- ...deserialized,
498
- });
499
- return smithyClient.decorateServiceException(exception, body);
500
- };
501
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
502
- const body = parsedOutput.body;
503
- const deserialized = smithyClient._json(body);
504
- const exception = new ThrottlingException({
505
- $metadata: deserializeMetadata(parsedOutput),
506
- ...deserialized,
507
- });
508
- return smithyClient.decorateServiceException(exception, body);
509
- };
510
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
511
- const body = parsedOutput.body;
512
- const deserialized = smithyClient._json(body);
513
- const exception = new ValidationException({
514
- $metadata: deserializeMetadata(parsedOutput),
515
- ...deserialized,
516
- });
517
- return smithyClient.decorateServiceException(exception, body);
518
- };
519
- const de_AccountEnrollmentStatus = (output, context) => {
520
- return smithyClient.take(output, {
521
- accountId: smithyClient.expectString,
522
- createdTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
523
- lastUpdatedTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
524
- status: smithyClient.expectString,
525
- });
526
- };
527
- const de_AccountEnrollmentStatuses = (output, context) => {
528
- const retVal = (output || [])
529
- .filter((e) => e != null)
530
- .map((entry) => {
531
- return de_AccountEnrollmentStatus(entry);
532
- });
533
- return retVal;
534
- };
535
- const de_AuroraDbClusterStorage = (output, context) => {
536
- return smithyClient.take(output, {
537
- configuration: smithyClient._json,
538
- costCalculation: (_) => de_ResourceCostCalculation(_),
539
- });
540
- };
541
- const de_BlockStoragePerformanceConfiguration = (output, context) => {
542
- return smithyClient.take(output, {
543
- iops: smithyClient.limitedParseDouble,
544
- throughput: smithyClient.limitedParseDouble,
545
- });
546
- };
547
- const de_ComputeConfiguration = (output, context) => {
548
- return smithyClient.take(output, {
549
- architecture: smithyClient.expectString,
550
- memorySizeInMB: smithyClient.expectInt32,
551
- platform: smithyClient.expectString,
552
- vCpu: smithyClient.limitedParseDouble,
553
- });
554
- };
555
- const de_ComputeSavingsPlans = (output, context) => {
556
- return smithyClient.take(output, {
557
- configuration: smithyClient._json,
558
- costCalculation: (_) => de_SavingsPlansCostCalculation(_),
559
- });
560
- };
561
- const de_DynamoDbReservedCapacity = (output, context) => {
562
- return smithyClient.take(output, {
563
- configuration: smithyClient._json,
564
- costCalculation: (_) => de_ReservedInstancesCostCalculation(_),
565
- });
566
- };
567
- const de_EbsVolume = (output, context) => {
568
- return smithyClient.take(output, {
569
- configuration: (_) => de_EbsVolumeConfiguration(_),
570
- costCalculation: (_) => de_ResourceCostCalculation(_),
571
- });
572
- };
573
- const de_EbsVolumeConfiguration = (output, context) => {
574
- return smithyClient.take(output, {
575
- attachmentState: smithyClient.expectString,
576
- performance: (_) => de_BlockStoragePerformanceConfiguration(_),
577
- storage: (_) => de_StorageConfiguration(_),
578
- });
579
- };
580
- const de_Ec2AutoScalingGroup = (output, context) => {
581
- return smithyClient.take(output, {
582
- configuration: smithyClient._json,
583
- costCalculation: (_) => de_ResourceCostCalculation(_),
584
- });
585
- };
586
- const de_Ec2Instance = (output, context) => {
587
- return smithyClient.take(output, {
588
- configuration: smithyClient._json,
589
- costCalculation: (_) => de_ResourceCostCalculation(_),
590
- });
591
- };
592
- const de_Ec2InstanceSavingsPlans = (output, context) => {
593
- return smithyClient.take(output, {
594
- configuration: smithyClient._json,
595
- costCalculation: (_) => de_SavingsPlansCostCalculation(_),
596
- });
597
- };
598
- const de_Ec2ReservedInstances = (output, context) => {
599
- return smithyClient.take(output, {
600
- configuration: smithyClient._json,
601
- costCalculation: (_) => de_ReservedInstancesCostCalculation(_),
602
- });
603
- };
604
- const de_EcsService = (output, context) => {
605
- return smithyClient.take(output, {
606
- configuration: (_) => de_EcsServiceConfiguration(_),
607
- costCalculation: (_) => de_ResourceCostCalculation(_),
608
- });
609
- };
610
- const de_EcsServiceConfiguration = (output, context) => {
611
- return smithyClient.take(output, {
612
- compute: (_) => de_ComputeConfiguration(_),
613
- });
614
- };
615
- const de_ElastiCacheReservedInstances = (output, context) => {
616
- return smithyClient.take(output, {
617
- configuration: smithyClient._json,
618
- costCalculation: (_) => de_ReservedInstancesCostCalculation(_),
619
- });
620
- };
621
- const de_EstimatedDiscounts = (output, context) => {
622
- return smithyClient.take(output, {
623
- otherDiscount: smithyClient.limitedParseDouble,
624
- reservedInstancesDiscount: smithyClient.limitedParseDouble,
625
- savingsPlansDiscount: smithyClient.limitedParseDouble,
626
- });
627
- };
628
- const de_GetRecommendationResponse = (output, context) => {
629
- return smithyClient.take(output, {
630
- accountId: smithyClient.expectString,
631
- actionType: smithyClient.expectString,
632
- costCalculationLookbackPeriodInDays: smithyClient.expectInt32,
633
- currencyCode: smithyClient.expectString,
634
- currentResourceDetails: (_) => de_ResourceDetails(core$1.awsExpectUnion(_)),
635
- currentResourceType: smithyClient.expectString,
636
- estimatedMonthlyCost: smithyClient.limitedParseDouble,
637
- estimatedMonthlySavings: smithyClient.limitedParseDouble,
638
- estimatedSavingsOverCostCalculationLookbackPeriod: smithyClient.limitedParseDouble,
639
- estimatedSavingsPercentage: smithyClient.limitedParseDouble,
640
- implementationEffort: smithyClient.expectString,
641
- lastRefreshTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
642
- recommendationId: smithyClient.expectString,
643
- recommendationLookbackPeriodInDays: smithyClient.expectInt32,
644
- recommendedResourceDetails: (_) => de_ResourceDetails(core$1.awsExpectUnion(_)),
645
- recommendedResourceType: smithyClient.expectString,
646
- region: smithyClient.expectString,
647
- resourceArn: smithyClient.expectString,
648
- resourceId: smithyClient.expectString,
649
- restartNeeded: smithyClient.expectBoolean,
650
- rollbackPossible: smithyClient.expectBoolean,
651
- source: smithyClient.expectString,
652
- tags: smithyClient._json,
653
- });
654
- };
655
- const de_LambdaFunction = (output, context) => {
656
- return smithyClient.take(output, {
657
- configuration: (_) => de_LambdaFunctionConfiguration(_),
658
- costCalculation: (_) => de_ResourceCostCalculation(_),
659
- });
660
- };
661
- const de_LambdaFunctionConfiguration = (output, context) => {
662
- return smithyClient.take(output, {
663
- compute: (_) => de_ComputeConfiguration(_),
664
- });
665
- };
666
- const de_ListEnrollmentStatusesResponse = (output, context) => {
667
- return smithyClient.take(output, {
668
- includeMemberAccounts: smithyClient.expectBoolean,
669
- items: (_) => de_AccountEnrollmentStatuses(_),
670
- nextToken: smithyClient.expectString,
671
- });
672
- };
673
- const de_ListRecommendationsResponse = (output, context) => {
674
- return smithyClient.take(output, {
675
- items: (_) => de_RecommendationList(_),
676
- nextToken: smithyClient.expectString,
677
- });
678
- };
679
- const de_ListRecommendationSummariesResponse = (output, context) => {
680
- return smithyClient.take(output, {
681
- currencyCode: smithyClient.expectString,
682
- estimatedTotalDedupedSavings: smithyClient.limitedParseDouble,
683
- groupBy: smithyClient.expectString,
684
- items: (_) => de_RecommendationSummariesList(_),
685
- metrics: smithyClient._json,
686
- nextToken: smithyClient.expectString,
687
- });
688
- };
689
- const de_MemoryDbReservedInstances = (output, context) => {
690
- return smithyClient.take(output, {
691
- configuration: smithyClient._json,
692
- costCalculation: (_) => de_ReservedInstancesCostCalculation(_),
693
- });
694
- };
695
- const de_OpenSearchReservedInstances = (output, context) => {
696
- return smithyClient.take(output, {
697
- configuration: smithyClient._json,
698
- costCalculation: (_) => de_ReservedInstancesCostCalculation(_),
699
- });
700
- };
701
- const de_RdsDbInstance = (output, context) => {
702
- return smithyClient.take(output, {
703
- configuration: smithyClient._json,
704
- costCalculation: (_) => de_ResourceCostCalculation(_),
705
- });
706
- };
707
- const de_RdsDbInstanceStorage = (output, context) => {
708
- return smithyClient.take(output, {
709
- configuration: (_) => de_RdsDbInstanceStorageConfiguration(_),
710
- costCalculation: (_) => de_ResourceCostCalculation(_),
711
- });
712
- };
713
- const de_RdsDbInstanceStorageConfiguration = (output, context) => {
714
- return smithyClient.take(output, {
715
- allocatedStorageInGb: smithyClient.limitedParseDouble,
716
- iops: smithyClient.limitedParseDouble,
717
- storageThroughput: smithyClient.limitedParseDouble,
718
- storageType: smithyClient.expectString,
719
- });
720
- };
721
- const de_RdsReservedInstances = (output, context) => {
722
- return smithyClient.take(output, {
723
- configuration: smithyClient._json,
724
- costCalculation: (_) => de_ReservedInstancesCostCalculation(_),
725
- });
726
- };
727
- const de_Recommendation = (output, context) => {
728
- return smithyClient.take(output, {
729
- accountId: smithyClient.expectString,
730
- actionType: smithyClient.expectString,
731
- currencyCode: smithyClient.expectString,
732
- currentResourceSummary: smithyClient.expectString,
733
- currentResourceType: smithyClient.expectString,
734
- estimatedMonthlyCost: smithyClient.limitedParseDouble,
735
- estimatedMonthlySavings: smithyClient.limitedParseDouble,
736
- estimatedSavingsPercentage: smithyClient.limitedParseDouble,
737
- implementationEffort: smithyClient.expectString,
738
- lastRefreshTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
739
- recommendationId: smithyClient.expectString,
740
- recommendationLookbackPeriodInDays: smithyClient.expectInt32,
741
- recommendedResourceSummary: smithyClient.expectString,
742
- recommendedResourceType: smithyClient.expectString,
743
- region: smithyClient.expectString,
744
- resourceArn: smithyClient.expectString,
745
- resourceId: smithyClient.expectString,
746
- restartNeeded: smithyClient.expectBoolean,
747
- rollbackPossible: smithyClient.expectBoolean,
748
- source: smithyClient.expectString,
749
- tags: smithyClient._json,
750
- });
751
- };
752
- const de_RecommendationList = (output, context) => {
753
- const retVal = (output || [])
754
- .filter((e) => e != null)
755
- .map((entry) => {
756
- return de_Recommendation(entry);
757
- });
758
- return retVal;
759
- };
760
- const de_RecommendationSummariesList = (output, context) => {
761
- const retVal = (output || [])
762
- .filter((e) => e != null)
763
- .map((entry) => {
764
- return de_RecommendationSummary(entry);
765
- });
766
- return retVal;
767
- };
768
- const de_RecommendationSummary = (output, context) => {
769
- return smithyClient.take(output, {
770
- estimatedMonthlySavings: smithyClient.limitedParseDouble,
771
- group: smithyClient.expectString,
772
- recommendationCount: smithyClient.expectInt32,
773
- });
774
- };
775
- const de_RedshiftReservedInstances = (output, context) => {
776
- return smithyClient.take(output, {
777
- configuration: smithyClient._json,
778
- costCalculation: (_) => de_ReservedInstancesCostCalculation(_),
779
- });
780
- };
781
- const de_ReservedInstancesCostCalculation = (output, context) => {
782
- return smithyClient.take(output, {
783
- pricing: (_) => de_ReservedInstancesPricing(_),
784
- });
785
- };
786
- const de_ReservedInstancesPricing = (output, context) => {
787
- return smithyClient.take(output, {
788
- estimatedMonthlyAmortizedReservationCost: smithyClient.limitedParseDouble,
789
- estimatedOnDemandCost: smithyClient.limitedParseDouble,
790
- monthlyReservationEligibleCost: smithyClient.limitedParseDouble,
791
- savingsPercentage: smithyClient.limitedParseDouble,
792
- });
793
- };
794
- const de_ResourceCostCalculation = (output, context) => {
795
- return smithyClient.take(output, {
796
- pricing: (_) => de_ResourcePricing(_),
797
- usages: (_) => de_UsageList(_),
798
- });
799
- };
800
- const de_ResourceDetails = (output, context) => {
801
- if (output.auroraDbClusterStorage != null) {
802
- return {
803
- auroraDbClusterStorage: de_AuroraDbClusterStorage(output.auroraDbClusterStorage),
804
- };
805
- }
806
- if (output.computeSavingsPlans != null) {
807
- return {
808
- computeSavingsPlans: de_ComputeSavingsPlans(output.computeSavingsPlans),
809
- };
810
- }
811
- if (output.dynamoDbReservedCapacity != null) {
812
- return {
813
- dynamoDbReservedCapacity: de_DynamoDbReservedCapacity(output.dynamoDbReservedCapacity),
814
- };
815
- }
816
- if (output.ebsVolume != null) {
817
- return {
818
- ebsVolume: de_EbsVolume(output.ebsVolume),
819
- };
820
- }
821
- if (output.ec2AutoScalingGroup != null) {
822
- return {
823
- ec2AutoScalingGroup: de_Ec2AutoScalingGroup(output.ec2AutoScalingGroup),
824
- };
825
- }
826
- if (output.ec2Instance != null) {
827
- return {
828
- ec2Instance: de_Ec2Instance(output.ec2Instance),
829
- };
830
- }
831
- if (output.ec2InstanceSavingsPlans != null) {
832
- return {
833
- ec2InstanceSavingsPlans: de_Ec2InstanceSavingsPlans(output.ec2InstanceSavingsPlans),
834
- };
835
- }
836
- if (output.ec2ReservedInstances != null) {
837
- return {
838
- ec2ReservedInstances: de_Ec2ReservedInstances(output.ec2ReservedInstances),
839
- };
840
- }
841
- if (output.ecsService != null) {
842
- return {
843
- ecsService: de_EcsService(output.ecsService),
844
- };
845
- }
846
- if (output.elastiCacheReservedInstances != null) {
847
- return {
848
- elastiCacheReservedInstances: de_ElastiCacheReservedInstances(output.elastiCacheReservedInstances),
849
- };
850
- }
851
- if (output.lambdaFunction != null) {
852
- return {
853
- lambdaFunction: de_LambdaFunction(output.lambdaFunction),
854
- };
855
- }
856
- if (output.memoryDbReservedInstances != null) {
857
- return {
858
- memoryDbReservedInstances: de_MemoryDbReservedInstances(output.memoryDbReservedInstances),
859
- };
860
- }
861
- if (output.openSearchReservedInstances != null) {
862
- return {
863
- openSearchReservedInstances: de_OpenSearchReservedInstances(output.openSearchReservedInstances),
864
- };
865
- }
866
- if (output.rdsDbInstance != null) {
867
- return {
868
- rdsDbInstance: de_RdsDbInstance(output.rdsDbInstance),
869
- };
870
- }
871
- if (output.rdsDbInstanceStorage != null) {
872
- return {
873
- rdsDbInstanceStorage: de_RdsDbInstanceStorage(output.rdsDbInstanceStorage),
874
- };
875
- }
876
- if (output.rdsReservedInstances != null) {
877
- return {
878
- rdsReservedInstances: de_RdsReservedInstances(output.rdsReservedInstances),
879
- };
880
- }
881
- if (output.redshiftReservedInstances != null) {
882
- return {
883
- redshiftReservedInstances: de_RedshiftReservedInstances(output.redshiftReservedInstances),
884
- };
885
- }
886
- if (output.sageMakerSavingsPlans != null) {
887
- return {
888
- sageMakerSavingsPlans: de_SageMakerSavingsPlans(output.sageMakerSavingsPlans),
889
- };
890
- }
891
- return { $unknown: Object.entries(output)[0] };
892
- };
893
- const de_ResourcePricing = (output, context) => {
894
- return smithyClient.take(output, {
895
- estimatedCostAfterDiscounts: smithyClient.limitedParseDouble,
896
- estimatedCostBeforeDiscounts: smithyClient.limitedParseDouble,
897
- estimatedDiscounts: (_) => de_EstimatedDiscounts(_),
898
- estimatedNetUnusedAmortizedCommitments: smithyClient.limitedParseDouble,
899
- });
900
- };
901
- const de_SageMakerSavingsPlans = (output, context) => {
902
- return smithyClient.take(output, {
903
- configuration: smithyClient._json,
904
- costCalculation: (_) => de_SavingsPlansCostCalculation(_),
905
- });
906
- };
907
- const de_SavingsPlansCostCalculation = (output, context) => {
908
- return smithyClient.take(output, {
909
- pricing: (_) => de_SavingsPlansPricing(_),
910
- });
911
- };
912
- const de_SavingsPlansPricing = (output, context) => {
913
- return smithyClient.take(output, {
914
- estimatedMonthlyCommitment: smithyClient.limitedParseDouble,
915
- estimatedOnDemandCost: smithyClient.limitedParseDouble,
916
- monthlySavingsPlansEligibleCost: smithyClient.limitedParseDouble,
917
- savingsPercentage: smithyClient.limitedParseDouble,
918
- });
919
- };
920
- const de_StorageConfiguration = (output, context) => {
921
- return smithyClient.take(output, {
922
- sizeInGb: smithyClient.limitedParseDouble,
923
- type: smithyClient.expectString,
924
- });
925
- };
926
- const de_Usage = (output, context) => {
927
- return smithyClient.take(output, {
928
- operation: smithyClient.expectString,
929
- productCode: smithyClient.expectString,
930
- unit: smithyClient.expectString,
931
- usageAmount: smithyClient.limitedParseDouble,
932
- usageType: smithyClient.expectString,
933
- });
934
- };
935
- const de_UsageList = (output, context) => {
936
- const retVal = (output || [])
937
- .filter((e) => e != null)
938
- .map((entry) => {
939
- return de_Usage(entry);
940
- });
941
- return retVal;
942
- };
943
- const deserializeMetadata = (output) => ({
944
- httpStatusCode: output.statusCode,
945
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
946
- extendedRequestId: output.headers["x-amz-id-2"],
947
- cfId: output.headers["x-amz-cf-id"],
948
- });
949
- const throwDefaultError = smithyClient.withBaseException(CostOptimizationHubServiceException);
950
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
951
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
952
- const contents = {
953
- protocol,
954
- hostname,
955
- port,
956
- method: "POST",
957
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
958
- headers,
959
- };
960
- if (body !== undefined) {
961
- contents.body = body;
962
- }
963
- return new protocolHttp.HttpRequest(contents);
964
- };
965
- function sharedHeaders(operation) {
966
- return {
967
- "content-type": "application/x-amz-json-1.0",
968
- "x-amz-target": `CostOptimizationHubService.${operation}`,
969
- };
970
- }
310
+ const _ADCS = "AuroraDbClusterStorage";
311
+ const _ADCSC = "AuroraDbClusterStorageConfiguration";
312
+ const _ADE = "AccessDeniedException";
313
+ const _AES = "AccountEnrollmentStatus";
314
+ const _AESc = "AccountEnrollmentStatuses";
315
+ const _BSPC = "BlockStoragePerformanceConfiguration";
316
+ const _CC = "ComputeConfiguration";
317
+ const _CSP = "ComputeSavingsPlans";
318
+ const _CSPC = "ComputeSavingsPlansConfiguration";
319
+ const _DDRC = "DynamoDbReservedCapacity";
320
+ const _DDRCC = "DynamoDbReservedCapacityConfiguration";
321
+ const _DIC = "DbInstanceConfiguration";
322
+ const _EASG = "Ec2AutoScalingGroup";
323
+ const _EASGC = "Ec2AutoScalingGroupConfiguration";
324
+ const _ECRI = "ElastiCacheReservedInstances";
325
+ const _ECRIC = "ElastiCacheReservedInstancesConfiguration";
326
+ const _ED = "EstimatedDiscounts";
327
+ const _EI = "Ec2Instance";
328
+ const _EIC = "Ec2InstanceConfiguration";
329
+ const _EISP = "Ec2InstanceSavingsPlans";
330
+ const _EISPC = "Ec2InstanceSavingsPlansConfiguration";
331
+ const _ERI = "Ec2ReservedInstances";
332
+ const _ERIC = "Ec2ReservedInstancesConfiguration";
333
+ const _ES = "EcsService";
334
+ const _ESC = "EcsServiceConfiguration";
335
+ const _EV = "EbsVolume";
336
+ const _EVC = "EbsVolumeConfiguration";
337
+ const _F = "Filter";
338
+ const _GP = "GetPreferences";
339
+ const _GPR = "GetPreferencesRequest";
340
+ const _GPRe = "GetPreferencesResponse";
341
+ const _GR = "GetRecommendation";
342
+ const _GRR = "GetRecommendationRequest";
343
+ const _GRRe = "GetRecommendationResponse";
344
+ const _IC = "InstanceConfiguration";
345
+ const _ISE = "InternalServerException";
346
+ const _LES = "ListEnrollmentStatuses";
347
+ const _LESR = "ListEnrollmentStatusesRequest";
348
+ const _LESRi = "ListEnrollmentStatusesResponse";
349
+ const _LF = "LambdaFunction";
350
+ const _LFC = "LambdaFunctionConfiguration";
351
+ const _LR = "ListRecommendations";
352
+ const _LRR = "ListRecommendationsRequest";
353
+ const _LRRi = "ListRecommendationsResponse";
354
+ const _LRS = "ListRecommendationSummaries";
355
+ const _LRSR = "ListRecommendationSummariesRequest";
356
+ const _LRSRi = "ListRecommendationSummariesResponse";
357
+ const _MDRI = "MemoryDbReservedInstances";
358
+ const _MDRIC = "MemoryDbReservedInstancesConfiguration";
359
+ const _MIC = "MixedInstanceConfiguration";
360
+ const _MICL = "MixedInstanceConfigurationList";
361
+ const _OB = "OrderBy";
362
+ const _OSRI = "OpenSearchReservedInstances";
363
+ const _OSRIC = "OpenSearchReservedInstancesConfiguration";
364
+ const _PC = "PreferredCommitment";
365
+ const _R = "Recommendation";
366
+ const _RCC = "ResourceCostCalculation";
367
+ const _RD = "ResourceDetails";
368
+ const _RDI = "RdsDbInstance";
369
+ const _RDIC = "RdsDbInstanceConfiguration";
370
+ const _RDIS = "RdsDbInstanceStorage";
371
+ const _RDISC = "RdsDbInstanceStorageConfiguration";
372
+ const _RICC = "ReservedInstancesCostCalculation";
373
+ const _RIP = "ReservedInstancesPricing";
374
+ const _RL = "RecommendationList";
375
+ const _RNFE = "ResourceNotFoundException";
376
+ const _RP = "ResourcePricing";
377
+ const _RRI = "RdsReservedInstances";
378
+ const _RRIC = "RdsReservedInstancesConfiguration";
379
+ const _RRICe = "RedshiftReservedInstancesConfiguration";
380
+ const _RRIe = "RedshiftReservedInstances";
381
+ const _RS = "RecommendationSummary";
382
+ const _RSL = "RecommendationSummariesList";
383
+ const _SC = "StorageConfiguration";
384
+ const _SMR = "SummaryMetricsResult";
385
+ const _SMSP = "SageMakerSavingsPlans";
386
+ const _SMSPC = "SageMakerSavingsPlansConfiguration";
387
+ const _SPCC = "SavingsPlansCostCalculation";
388
+ const _SPP = "SavingsPlansPricing";
389
+ const _T = "Tag";
390
+ const _TE = "ThrottlingException";
391
+ const _TL = "TagList";
392
+ const _U = "Usage";
393
+ const _UES = "UpdateEnrollmentStatus";
394
+ const _UESR = "UpdateEnrollmentStatusRequest";
395
+ const _UESRp = "UpdateEnrollmentStatusResponse";
396
+ const _UL = "UsageList";
397
+ const _UP = "UpdatePreferences";
398
+ const _UPR = "UpdatePreferencesRequest";
399
+ const _UPRp = "UpdatePreferencesResponse";
400
+ const _VE = "ValidationException";
401
+ const _VED = "ValidationExceptionDetail";
402
+ const _VEDa = "ValidationExceptionDetails";
403
+ const _a = "architecture";
404
+ const _aDCS = "auroraDbClusterStorage";
405
+ const _aI = "accountId";
406
+ const _aIc = "accountIds";
407
+ const _aS = "accountScope";
408
+ const _aSIG = "allocatedStorageInGb";
409
+ const _aSl = "allocationStrategy";
410
+ const _aSt = "attachmentState";
411
+ const _aT = "actionTypes";
412
+ const _aTc = "actionType";
413
+ const _c = "client";
414
+ const _cC = "costCalculation";
415
+ const _cCLPID = "costCalculationLookbackPeriodInDays";
416
+ const _cCu = "currencyCode";
417
+ const _cG = "currentGeneration";
418
+ const _cRD = "currentResourceDetails";
419
+ const _cRS = "currentResourceSummary";
420
+ const _cRT = "currentResourceType";
421
+ const _cSP = "computeSavingsPlans";
422
+ const _cT = "createdTimestamp";
423
+ const _cU = "capacityUnits";
424
+ const _co = "configuration";
425
+ const _com = "compute";
426
+ const _d = "dimension";
427
+ const _dDRC = "dynamoDbReservedCapacity";
428
+ const _dE = "databaseEdition";
429
+ const _dEa = "databaseEngine";
430
+ const _dIC = "dbInstanceClass";
431
+ const _dO = "deploymentOption";
432
+ const _e = "error";
433
+ const _eASG = "ec2AutoScalingGroup";
434
+ const _eCAD = "estimatedCostAfterDiscounts";
435
+ const _eCBD = "estimatedCostBeforeDiscounts";
436
+ const _eCRI = "elastiCacheReservedInstances";
437
+ const _eD = "estimatedDiscounts";
438
+ const _eI = "ec2Instance";
439
+ const _eISP = "ec2InstanceSavingsPlans";
440
+ const _eMARC = "estimatedMonthlyAmortizedReservationCost";
441
+ const _eMC = "estimatedMonthlyCost";
442
+ const _eMCs = "estimatedMonthlyCommitment";
443
+ const _eMS = "estimatedMonthlySavings";
444
+ const _eNUAC = "estimatedNetUnusedAmortizedCommitments";
445
+ const _eODC = "estimatedOnDemandCost";
446
+ const _eRI = "ec2ReservedInstances";
447
+ const _eS = "ecsService";
448
+ const _eSOCCLP = "estimatedSavingsOverCostCalculationLookbackPeriod";
449
+ const _eSP = "estimatedSavingsPercentage";
450
+ const _eTDS = "estimatedTotalDedupedSavings";
451
+ const _eV = "ebsVolume";
452
+ const _f = "filter";
453
+ const _fN = "fieldName";
454
+ const _fi = "fields";
455
+ const _g = "group";
456
+ const _gB = "groupBy";
457
+ const _hC = "hourlyCommitment";
458
+ const _hE = "httpError";
459
+ const _i = "iops";
460
+ const _iAR = "includeAllRecommendations";
461
+ const _iE = "implementationEfforts";
462
+ const _iEm = "implementationEffort";
463
+ const _iF = "instanceFamily";
464
+ const _iMA = "includeMemberAccounts";
465
+ const _iOI = "includeOrganizationInfo";
466
+ const _iT = "instanceType";
467
+ const _in = "instance";
468
+ const _it = "items";
469
+ const _k = "key";
470
+ const _lF = "lambdaFunction";
471
+ const _lM = "licenseModel";
472
+ const _lRT = "lastRefreshTimestamp";
473
+ const _lUT = "lastUpdatedTimestamp";
474
+ const _m = "message";
475
+ const _mADV = "memberAccountDiscountVisibility";
476
+ const _mDRI = "memoryDbReservedInstances";
477
+ const _mI = "mixedInstances";
478
+ const _mR = "maxResults";
479
+ const _mRC = "monthlyRecurringCost";
480
+ const _mREC = "monthlyReservationEligibleCost";
481
+ const _mSIMB = "memorySizeInMB";
482
+ const _mSPEC = "monthlySavingsPlansEligibleCost";
483
+ const _me = "metrics";
484
+ const _nOCUTP = "numberOfCapacityUnitsToPurchase";
485
+ const _nOITP = "numberOfInstancesToPurchase";
486
+ const _nT = "nextToken";
487
+ const _nUTP = "normalizedUnitsToPurchase";
488
+ const _o = "order";
489
+ const _oB = "orderBy";
490
+ const _oC = "offeringClass";
491
+ const _oD = "otherDiscount";
492
+ const _oSRI = "openSearchReservedInstances";
493
+ const _op = "operation";
494
+ const _p = "platform";
495
+ const _pC = "preferredCommitment";
496
+ const _pCr = "productCode";
497
+ const _pO = "paymentOption";
498
+ const _pe = "performance";
499
+ const _pr = "pricing";
500
+ const _r = "regions";
501
+ const _rA = "resourceArns";
502
+ const _rAe = "resourceArn";
503
+ const _rC = "recommendationCount";
504
+ const _rDI = "rdsDbInstance";
505
+ const _rDIS = "rdsDbInstanceStorage";
506
+ const _rI = "resourceIds";
507
+ const _rID = "reservedInstancesDiscount";
508
+ const _rIR = "reservedInstancesRegion";
509
+ const _rIe = "recommendationIds";
510
+ const _rIec = "recommendationId";
511
+ const _rIes = "resourceId";
512
+ const _rLPID = "recommendationLookbackPeriodInDays";
513
+ const _rN = "restartNeeded";
514
+ const _rP = "rollbackPossible";
515
+ const _rRD = "recommendedResourceDetails";
516
+ const _rRI = "rdsReservedInstances";
517
+ const _rRIe = "redshiftReservedInstances";
518
+ const _rRS = "recommendedResourceSummary";
519
+ const _rRT = "recommendedResourceType";
520
+ const _rT = "resourceTypes";
521
+ const _re = "region";
522
+ const _rea = "reason";
523
+ const _s = "status";
524
+ const _sEM = "savingsEstimationMode";
525
+ const _sFE = "sizeFlexEligible";
526
+ const _sIG = "sizeInGb";
527
+ const _sMSP = "sageMakerSavingsPlans";
528
+ const _sP = "savingsPercentage";
529
+ const _sPD = "savingsPlansDiscount";
530
+ const _sPR = "savingsPlansRegion";
531
+ const _sT = "storageType";
532
+ const _sTt = "storageThroughput";
533
+ const _se = "service";
534
+ const _ser = "server";
535
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.costoptimizationhub";
536
+ const _so = "source";
537
+ const _st = "storage";
538
+ const _t = "throughput";
539
+ const _ta = "tags";
540
+ const _te = "term";
541
+ const _ten = "tenancy";
542
+ const _ty = "type";
543
+ const _u = "usages";
544
+ const _uA = "usageAmount";
545
+ const _uC = "upfrontCost";
546
+ const _uT = "usageType";
547
+ const _un = "unit";
548
+ const _v = "value";
549
+ const _vC = "vCpu";
550
+ const n0 = "com.amazonaws.costoptimizationhub";
551
+ var AccessDeniedException = [
552
+ -3,
553
+ n0,
554
+ _ADE,
555
+ {
556
+ [_e]: _c,
557
+ [_hE]: 403,
558
+ },
559
+ [_m],
560
+ [0],
561
+ ];
562
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
563
+ var AccountEnrollmentStatus = [3, n0, _AES, 0, [_aI, _s, _lUT, _cT], [0, 0, 4, 4]];
564
+ var AuroraDbClusterStorage = [
565
+ 3,
566
+ n0,
567
+ _ADCS,
568
+ 0,
569
+ [_co, _cC],
570
+ [() => AuroraDbClusterStorageConfiguration, () => ResourceCostCalculation],
571
+ ];
572
+ var AuroraDbClusterStorageConfiguration = [3, n0, _ADCSC, 0, [_sT], [0]];
573
+ var BlockStoragePerformanceConfiguration = [3, n0, _BSPC, 0, [_i, _t], [1, 1]];
574
+ var ComputeConfiguration = [3, n0, _CC, 0, [_vC, _mSIMB, _a, _p], [1, 1, 0, 0]];
575
+ var ComputeSavingsPlans = [
576
+ 3,
577
+ n0,
578
+ _CSP,
579
+ 0,
580
+ [_co, _cC],
581
+ [() => ComputeSavingsPlansConfiguration, () => SavingsPlansCostCalculation],
582
+ ];
583
+ var ComputeSavingsPlansConfiguration = [
584
+ 3,
585
+ n0,
586
+ _CSPC,
587
+ 0,
588
+ [_aS, _te, _pO, _hC],
589
+ [0, 0, 0, 0],
590
+ ];
591
+ var DbInstanceConfiguration = [3, n0, _DIC, 0, [_dIC], [0]];
592
+ var DynamoDbReservedCapacity = [
593
+ 3,
594
+ n0,
595
+ _DDRC,
596
+ 0,
597
+ [_co, _cC],
598
+ [() => DynamoDbReservedCapacityConfiguration, () => ReservedInstancesCostCalculation],
599
+ ];
600
+ var DynamoDbReservedCapacityConfiguration = [
601
+ 3,
602
+ n0,
603
+ _DDRCC,
604
+ 0,
605
+ [_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nOCUTP, _cU],
606
+ [0, 0, 0, 0, 0, 0, 0, 0, 0],
607
+ ];
608
+ var EbsVolume = [
609
+ 3,
610
+ n0,
611
+ _EV,
612
+ 0,
613
+ [_co, _cC],
614
+ [() => EbsVolumeConfiguration, () => ResourceCostCalculation],
615
+ ];
616
+ var EbsVolumeConfiguration = [
617
+ 3,
618
+ n0,
619
+ _EVC,
620
+ 0,
621
+ [_st, _pe, _aSt],
622
+ [() => StorageConfiguration, () => BlockStoragePerformanceConfiguration, 0],
623
+ ];
624
+ var Ec2AutoScalingGroup = [
625
+ 3,
626
+ n0,
627
+ _EASG,
628
+ 0,
629
+ [_co, _cC],
630
+ [() => Ec2AutoScalingGroupConfiguration, () => ResourceCostCalculation],
631
+ ];
632
+ var Ec2AutoScalingGroupConfiguration = [
633
+ 3,
634
+ n0,
635
+ _EASGC,
636
+ 0,
637
+ [_in, _mI, _ty, _aSl],
638
+ [() => InstanceConfiguration, () => MixedInstanceConfigurationList, 0, 0],
639
+ ];
640
+ var Ec2Instance = [
641
+ 3,
642
+ n0,
643
+ _EI,
644
+ 0,
645
+ [_co, _cC],
646
+ [() => Ec2InstanceConfiguration, () => ResourceCostCalculation],
647
+ ];
648
+ var Ec2InstanceConfiguration = [3, n0, _EIC, 0, [_in], [() => InstanceConfiguration]];
649
+ var Ec2InstanceSavingsPlans = [
650
+ 3,
651
+ n0,
652
+ _EISP,
653
+ 0,
654
+ [_co, _cC],
655
+ [() => Ec2InstanceSavingsPlansConfiguration, () => SavingsPlansCostCalculation],
656
+ ];
657
+ var Ec2InstanceSavingsPlansConfiguration = [
658
+ 3,
659
+ n0,
660
+ _EISPC,
661
+ 0,
662
+ [_aS, _te, _pO, _hC, _iF, _sPR],
663
+ [0, 0, 0, 0, 0, 0],
664
+ ];
665
+ var Ec2ReservedInstances = [
666
+ 3,
667
+ n0,
668
+ _ERI,
669
+ 0,
670
+ [_co, _cC],
671
+ [() => Ec2ReservedInstancesConfiguration, () => ReservedInstancesCostCalculation],
672
+ ];
673
+ var Ec2ReservedInstancesConfiguration = [
674
+ 3,
675
+ n0,
676
+ _ERIC,
677
+ 0,
678
+ [_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nUTP, _nOITP, _oC, _iF, _iT, _cG, _p, _ten, _sFE],
679
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2],
680
+ ];
681
+ var EcsService = [
682
+ 3,
683
+ n0,
684
+ _ES,
685
+ 0,
686
+ [_co, _cC],
687
+ [() => EcsServiceConfiguration, () => ResourceCostCalculation],
688
+ ];
689
+ var EcsServiceConfiguration = [3, n0, _ESC, 0, [_com], [() => ComputeConfiguration]];
690
+ var ElastiCacheReservedInstances = [
691
+ 3,
692
+ n0,
693
+ _ECRI,
694
+ 0,
695
+ [_co, _cC],
696
+ [() => ElastiCacheReservedInstancesConfiguration, () => ReservedInstancesCostCalculation],
697
+ ];
698
+ var ElastiCacheReservedInstancesConfiguration = [
699
+ 3,
700
+ n0,
701
+ _ECRIC,
702
+ 0,
703
+ [_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nUTP, _nOITP, _iF, _iT, _cG, _sFE],
704
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2],
705
+ ];
706
+ var EstimatedDiscounts = [3, n0, _ED, 0, [_sPD, _rID, _oD], [1, 1, 1]];
707
+ var Filter = [
708
+ 3,
709
+ n0,
710
+ _F,
711
+ 0,
712
+ [_rN, _rP, _iE, _aIc, _r, _rT, _aT, _ta, _rI, _rA, _rIe],
713
+ [2, 2, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, () => TagList, 64 | 0, 64 | 0, 64 | 0],
714
+ ];
715
+ var GetPreferencesRequest = [3, n0, _GPR, 0, [], []];
716
+ var GetPreferencesResponse = [
717
+ 3,
718
+ n0,
719
+ _GPRe,
720
+ 0,
721
+ [_sEM, _mADV, _pC],
722
+ [0, 0, () => PreferredCommitment],
723
+ ];
724
+ var GetRecommendationRequest = [3, n0, _GRR, 0, [_rIec], [0]];
725
+ var GetRecommendationResponse = [
726
+ 3,
727
+ n0,
728
+ _GRRe,
729
+ 0,
730
+ [
731
+ _rIec,
732
+ _rIes,
733
+ _rAe,
734
+ _aI,
735
+ _cCu,
736
+ _rLPID,
737
+ _cCLPID,
738
+ _eSP,
739
+ _eSOCCLP,
740
+ _cRT,
741
+ _rRT,
742
+ _re,
743
+ _so,
744
+ _lRT,
745
+ _eMS,
746
+ _eMC,
747
+ _iEm,
748
+ _rN,
749
+ _aTc,
750
+ _rP,
751
+ _cRD,
752
+ _rRD,
753
+ _ta,
754
+ ],
755
+ [
756
+ 0,
757
+ 0,
758
+ 0,
759
+ 0,
760
+ 0,
761
+ 1,
762
+ 1,
763
+ 1,
764
+ 1,
765
+ 0,
766
+ 0,
767
+ 0,
768
+ 0,
769
+ 4,
770
+ 1,
771
+ 1,
772
+ 0,
773
+ 2,
774
+ 0,
775
+ 2,
776
+ () => ResourceDetails,
777
+ () => ResourceDetails,
778
+ () => TagList,
779
+ ],
780
+ ];
781
+ var InstanceConfiguration = [3, n0, _IC, 0, [_ty], [0]];
782
+ var InternalServerException = [
783
+ -3,
784
+ n0,
785
+ _ISE,
786
+ {
787
+ [_e]: _ser,
788
+ [_hE]: 500,
789
+ },
790
+ [_m],
791
+ [0],
792
+ ];
793
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
794
+ var LambdaFunction = [
795
+ 3,
796
+ n0,
797
+ _LF,
798
+ 0,
799
+ [_co, _cC],
800
+ [() => LambdaFunctionConfiguration, () => ResourceCostCalculation],
801
+ ];
802
+ var LambdaFunctionConfiguration = [3, n0, _LFC, 0, [_com], [() => ComputeConfiguration]];
803
+ var ListEnrollmentStatusesRequest = [
804
+ 3,
805
+ n0,
806
+ _LESR,
807
+ 0,
808
+ [_iOI, _aI, _nT, _mR],
809
+ [2, 0, 0, 1],
810
+ ];
811
+ var ListEnrollmentStatusesResponse = [
812
+ 3,
813
+ n0,
814
+ _LESRi,
815
+ 0,
816
+ [_it, _iMA, _nT],
817
+ [() => AccountEnrollmentStatuses, 2, 0],
818
+ ];
819
+ var ListRecommendationsRequest = [
820
+ 3,
821
+ n0,
822
+ _LRR,
823
+ 0,
824
+ [_f, _oB, _iAR, _mR, _nT],
825
+ [() => Filter, () => OrderBy, 2, 1, 0],
826
+ ];
827
+ var ListRecommendationsResponse = [
828
+ 3,
829
+ n0,
830
+ _LRRi,
831
+ 0,
832
+ [_it, _nT],
833
+ [() => RecommendationList, 0],
834
+ ];
835
+ var ListRecommendationSummariesRequest = [
836
+ 3,
837
+ n0,
838
+ _LRSR,
839
+ 0,
840
+ [_f, _gB, _mR, _me, _nT],
841
+ [() => Filter, 0, 1, 64 | 0, 0],
842
+ ];
843
+ var ListRecommendationSummariesResponse = [
844
+ 3,
845
+ n0,
846
+ _LRSRi,
847
+ 0,
848
+ [_eTDS, _it, _gB, _cCu, _me, _nT],
849
+ [1, () => RecommendationSummariesList, 0, 0, () => SummaryMetricsResult, 0],
850
+ ];
851
+ var MemoryDbReservedInstances = [
852
+ 3,
853
+ n0,
854
+ _MDRI,
855
+ 0,
856
+ [_co, _cC],
857
+ [() => MemoryDbReservedInstancesConfiguration, () => ReservedInstancesCostCalculation],
858
+ ];
859
+ var MemoryDbReservedInstancesConfiguration = [
860
+ 3,
861
+ n0,
862
+ _MDRIC,
863
+ 0,
864
+ [_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nUTP, _nOITP, _iT, _iF, _sFE, _cG],
865
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0],
866
+ ];
867
+ var MixedInstanceConfiguration = [3, n0, _MIC, 0, [_ty], [0]];
868
+ var OpenSearchReservedInstances = [
869
+ 3,
870
+ n0,
871
+ _OSRI,
872
+ 0,
873
+ [_co, _cC],
874
+ [() => OpenSearchReservedInstancesConfiguration, () => ReservedInstancesCostCalculation],
875
+ ];
876
+ var OpenSearchReservedInstancesConfiguration = [
877
+ 3,
878
+ n0,
879
+ _OSRIC,
880
+ 0,
881
+ [_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nUTP, _nOITP, _iT, _cG, _sFE],
882
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2],
883
+ ];
884
+ var OrderBy = [3, n0, _OB, 0, [_d, _o], [0, 0]];
885
+ var PreferredCommitment = [3, n0, _PC, 0, [_te, _pO], [0, 0]];
886
+ var RdsDbInstance = [
887
+ 3,
888
+ n0,
889
+ _RDI,
890
+ 0,
891
+ [_co, _cC],
892
+ [() => RdsDbInstanceConfiguration, () => ResourceCostCalculation],
893
+ ];
894
+ var RdsDbInstanceConfiguration = [
895
+ 3,
896
+ n0,
897
+ _RDIC,
898
+ 0,
899
+ [_in],
900
+ [() => DbInstanceConfiguration],
901
+ ];
902
+ var RdsDbInstanceStorage = [
903
+ 3,
904
+ n0,
905
+ _RDIS,
906
+ 0,
907
+ [_co, _cC],
908
+ [() => RdsDbInstanceStorageConfiguration, () => ResourceCostCalculation],
909
+ ];
910
+ var RdsDbInstanceStorageConfiguration = [
911
+ 3,
912
+ n0,
913
+ _RDISC,
914
+ 0,
915
+ [_sT, _aSIG, _i, _sTt],
916
+ [0, 1, 1, 1],
917
+ ];
918
+ var RdsReservedInstances = [
919
+ 3,
920
+ n0,
921
+ _RRI,
922
+ 0,
923
+ [_co, _cC],
924
+ [() => RdsReservedInstancesConfiguration, () => ReservedInstancesCostCalculation],
925
+ ];
926
+ var RdsReservedInstancesConfiguration = [
927
+ 3,
928
+ n0,
929
+ _RRIC,
930
+ 0,
931
+ [_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nUTP, _nOITP, _iF, _iT, _sFE, _cG, _lM, _dE, _dEa, _dO],
932
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0],
933
+ ];
934
+ var Recommendation = [
935
+ 3,
936
+ n0,
937
+ _R,
938
+ 0,
939
+ [
940
+ _rIec,
941
+ _aI,
942
+ _re,
943
+ _rIes,
944
+ _rAe,
945
+ _cRT,
946
+ _rRT,
947
+ _eMS,
948
+ _eSP,
949
+ _eMC,
950
+ _cCu,
951
+ _iEm,
952
+ _rN,
953
+ _aTc,
954
+ _rP,
955
+ _cRS,
956
+ _rRS,
957
+ _lRT,
958
+ _rLPID,
959
+ _so,
960
+ _ta,
961
+ ],
962
+ [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 2, 0, 2, 0, 0, 4, 1, 0, () => TagList],
963
+ ];
964
+ var RecommendationSummary = [3, n0, _RS, 0, [_g, _eMS, _rC], [0, 1, 1]];
965
+ var RedshiftReservedInstances = [
966
+ 3,
967
+ n0,
968
+ _RRIe,
969
+ 0,
970
+ [_co, _cC],
971
+ [() => RedshiftReservedInstancesConfiguration, () => ReservedInstancesCostCalculation],
972
+ ];
973
+ var RedshiftReservedInstancesConfiguration = [
974
+ 3,
975
+ n0,
976
+ _RRICe,
977
+ 0,
978
+ [_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nUTP, _nOITP, _iF, _iT, _sFE, _cG],
979
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0],
980
+ ];
981
+ var ReservedInstancesCostCalculation = [
982
+ 3,
983
+ n0,
984
+ _RICC,
985
+ 0,
986
+ [_pr],
987
+ [() => ReservedInstancesPricing],
988
+ ];
989
+ var ReservedInstancesPricing = [
990
+ 3,
991
+ n0,
992
+ _RIP,
993
+ 0,
994
+ [_eODC, _mREC, _sP, _eMARC],
995
+ [1, 1, 1, 1],
996
+ ];
997
+ var ResourceCostCalculation = [
998
+ 3,
999
+ n0,
1000
+ _RCC,
1001
+ 0,
1002
+ [_u, _pr],
1003
+ [() => UsageList, () => ResourcePricing],
1004
+ ];
1005
+ var ResourceNotFoundException = [
1006
+ -3,
1007
+ n0,
1008
+ _RNFE,
1009
+ {
1010
+ [_e]: _c,
1011
+ [_hE]: 404,
1012
+ },
1013
+ [_m, _rIes],
1014
+ [0, 0],
1015
+ ];
1016
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
1017
+ var ResourcePricing = [
1018
+ 3,
1019
+ n0,
1020
+ _RP,
1021
+ 0,
1022
+ [_eCBD, _eNUAC, _eD, _eCAD],
1023
+ [1, 1, () => EstimatedDiscounts, 1],
1024
+ ];
1025
+ var SageMakerSavingsPlans = [
1026
+ 3,
1027
+ n0,
1028
+ _SMSP,
1029
+ 0,
1030
+ [_co, _cC],
1031
+ [() => SageMakerSavingsPlansConfiguration, () => SavingsPlansCostCalculation],
1032
+ ];
1033
+ var SageMakerSavingsPlansConfiguration = [
1034
+ 3,
1035
+ n0,
1036
+ _SMSPC,
1037
+ 0,
1038
+ [_aS, _te, _pO, _hC],
1039
+ [0, 0, 0, 0],
1040
+ ];
1041
+ var SavingsPlansCostCalculation = [3, n0, _SPCC, 0, [_pr], [() => SavingsPlansPricing]];
1042
+ var SavingsPlansPricing = [3, n0, _SPP, 0, [_mSPEC, _eMCs, _sP, _eODC], [1, 1, 1, 1]];
1043
+ var StorageConfiguration = [3, n0, _SC, 0, [_ty, _sIG], [0, 1]];
1044
+ var SummaryMetricsResult = [3, n0, _SMR, 0, [_sP], [0]];
1045
+ var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
1046
+ var ThrottlingException = [
1047
+ -3,
1048
+ n0,
1049
+ _TE,
1050
+ {
1051
+ [_e]: _c,
1052
+ [_hE]: 429,
1053
+ },
1054
+ [_m],
1055
+ [0],
1056
+ ];
1057
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
1058
+ var UpdateEnrollmentStatusRequest = [3, n0, _UESR, 0, [_s, _iMA], [0, 2]];
1059
+ var UpdateEnrollmentStatusResponse = [3, n0, _UESRp, 0, [_s], [0]];
1060
+ var UpdatePreferencesRequest = [
1061
+ 3,
1062
+ n0,
1063
+ _UPR,
1064
+ 0,
1065
+ [_sEM, _mADV, _pC],
1066
+ [0, 0, () => PreferredCommitment],
1067
+ ];
1068
+ var UpdatePreferencesResponse = [
1069
+ 3,
1070
+ n0,
1071
+ _UPRp,
1072
+ 0,
1073
+ [_sEM, _mADV, _pC],
1074
+ [0, 0, () => PreferredCommitment],
1075
+ ];
1076
+ var Usage = [3, n0, _U, 0, [_uT, _uA, _op, _pCr, _un], [0, 1, 0, 0, 0]];
1077
+ var ValidationException = [
1078
+ -3,
1079
+ n0,
1080
+ _VE,
1081
+ {
1082
+ [_e]: _c,
1083
+ [_hE]: 400,
1084
+ },
1085
+ [_m, _rea, _fi],
1086
+ [0, 0, () => ValidationExceptionDetails],
1087
+ ];
1088
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
1089
+ var ValidationExceptionDetail = [3, n0, _VED, 0, [_fN, _m], [0, 0]];
1090
+ var CostOptimizationHubServiceException = [
1091
+ -3,
1092
+ _sm,
1093
+ "CostOptimizationHubServiceException",
1094
+ 0,
1095
+ [],
1096
+ [],
1097
+ ];
1098
+ schema.TypeRegistry.for(_sm).registerError(CostOptimizationHubServiceException, CostOptimizationHubServiceException$1);
1099
+ var AccountEnrollmentStatuses = [1, n0, _AESc, 0, () => AccountEnrollmentStatus];
1100
+ var MixedInstanceConfigurationList = [1, n0, _MICL, 0, () => MixedInstanceConfiguration];
1101
+ var RecommendationList = [1, n0, _RL, 0, () => Recommendation];
1102
+ var RecommendationSummariesList = [1, n0, _RSL, 0, () => RecommendationSummary];
1103
+ var TagList = [1, n0, _TL, 0, () => Tag];
1104
+ var UsageList = [1, n0, _UL, 0, () => Usage];
1105
+ var ValidationExceptionDetails = [1, n0, _VEDa, 0, () => ValidationExceptionDetail];
1106
+ var ResourceDetails = [
1107
+ 3,
1108
+ n0,
1109
+ _RD,
1110
+ 0,
1111
+ [_lF, _eS, _eI, _eV, _eASG, _eRI, _rRI, _eCRI, _oSRI, _rRIe, _eISP, _cSP, _sMSP, _rDI, _rDIS, _aDCS, _dDRC, _mDRI],
1112
+ [
1113
+ () => LambdaFunction,
1114
+ () => EcsService,
1115
+ () => Ec2Instance,
1116
+ () => EbsVolume,
1117
+ () => Ec2AutoScalingGroup,
1118
+ () => Ec2ReservedInstances,
1119
+ () => RdsReservedInstances,
1120
+ () => ElastiCacheReservedInstances,
1121
+ () => OpenSearchReservedInstances,
1122
+ () => RedshiftReservedInstances,
1123
+ () => Ec2InstanceSavingsPlans,
1124
+ () => ComputeSavingsPlans,
1125
+ () => SageMakerSavingsPlans,
1126
+ () => RdsDbInstance,
1127
+ () => RdsDbInstanceStorage,
1128
+ () => AuroraDbClusterStorage,
1129
+ () => DynamoDbReservedCapacity,
1130
+ () => MemoryDbReservedInstances,
1131
+ ],
1132
+ ];
1133
+ var GetPreferences = [
1134
+ 9,
1135
+ n0,
1136
+ _GP,
1137
+ 0,
1138
+ () => GetPreferencesRequest,
1139
+ () => GetPreferencesResponse,
1140
+ ];
1141
+ var GetRecommendation = [
1142
+ 9,
1143
+ n0,
1144
+ _GR,
1145
+ 0,
1146
+ () => GetRecommendationRequest,
1147
+ () => GetRecommendationResponse,
1148
+ ];
1149
+ var ListEnrollmentStatuses = [
1150
+ 9,
1151
+ n0,
1152
+ _LES,
1153
+ 0,
1154
+ () => ListEnrollmentStatusesRequest,
1155
+ () => ListEnrollmentStatusesResponse,
1156
+ ];
1157
+ var ListRecommendations = [
1158
+ 9,
1159
+ n0,
1160
+ _LR,
1161
+ 0,
1162
+ () => ListRecommendationsRequest,
1163
+ () => ListRecommendationsResponse,
1164
+ ];
1165
+ var ListRecommendationSummaries = [
1166
+ 9,
1167
+ n0,
1168
+ _LRS,
1169
+ 0,
1170
+ () => ListRecommendationSummariesRequest,
1171
+ () => ListRecommendationSummariesResponse,
1172
+ ];
1173
+ var UpdateEnrollmentStatus = [
1174
+ 9,
1175
+ n0,
1176
+ _UES,
1177
+ 0,
1178
+ () => UpdateEnrollmentStatusRequest,
1179
+ () => UpdateEnrollmentStatusResponse,
1180
+ ];
1181
+ var UpdatePreferences = [
1182
+ 9,
1183
+ n0,
1184
+ _UP,
1185
+ 0,
1186
+ () => UpdatePreferencesRequest,
1187
+ () => UpdatePreferencesResponse,
1188
+ ];
971
1189
 
972
1190
  class GetPreferencesCommand extends smithyClient.Command
973
1191
  .classBuilder()
974
1192
  .ep(commonParams)
975
1193
  .m(function (Command, cs, config, o) {
976
- return [
977
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
978
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
979
- ];
1194
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
980
1195
  })
981
1196
  .s("CostOptimizationHubService", "GetPreferences", {})
982
1197
  .n("CostOptimizationHubClient", "GetPreferencesCommand")
983
- .f(void 0, void 0)
984
- .ser(se_GetPreferencesCommand)
985
- .de(de_GetPreferencesCommand)
1198
+ .sc(GetPreferences)
986
1199
  .build() {
987
1200
  }
988
1201
 
@@ -990,16 +1203,11 @@ class GetRecommendationCommand extends smithyClient.Command
990
1203
  .classBuilder()
991
1204
  .ep(commonParams)
992
1205
  .m(function (Command, cs, config, o) {
993
- return [
994
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
995
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
996
- ];
1206
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
997
1207
  })
998
1208
  .s("CostOptimizationHubService", "GetRecommendation", {})
999
1209
  .n("CostOptimizationHubClient", "GetRecommendationCommand")
1000
- .f(void 0, void 0)
1001
- .ser(se_GetRecommendationCommand)
1002
- .de(de_GetRecommendationCommand)
1210
+ .sc(GetRecommendation)
1003
1211
  .build() {
1004
1212
  }
1005
1213
 
@@ -1007,16 +1215,11 @@ class ListEnrollmentStatusesCommand extends smithyClient.Command
1007
1215
  .classBuilder()
1008
1216
  .ep(commonParams)
1009
1217
  .m(function (Command, cs, config, o) {
1010
- return [
1011
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1012
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1013
- ];
1218
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1014
1219
  })
1015
1220
  .s("CostOptimizationHubService", "ListEnrollmentStatuses", {})
1016
1221
  .n("CostOptimizationHubClient", "ListEnrollmentStatusesCommand")
1017
- .f(void 0, void 0)
1018
- .ser(se_ListEnrollmentStatusesCommand)
1019
- .de(de_ListEnrollmentStatusesCommand)
1222
+ .sc(ListEnrollmentStatuses)
1020
1223
  .build() {
1021
1224
  }
1022
1225
 
@@ -1024,16 +1227,11 @@ class ListRecommendationsCommand extends smithyClient.Command
1024
1227
  .classBuilder()
1025
1228
  .ep(commonParams)
1026
1229
  .m(function (Command, cs, config, o) {
1027
- return [
1028
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1029
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1030
- ];
1230
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1031
1231
  })
1032
1232
  .s("CostOptimizationHubService", "ListRecommendations", {})
1033
1233
  .n("CostOptimizationHubClient", "ListRecommendationsCommand")
1034
- .f(void 0, void 0)
1035
- .ser(se_ListRecommendationsCommand)
1036
- .de(de_ListRecommendationsCommand)
1234
+ .sc(ListRecommendations)
1037
1235
  .build() {
1038
1236
  }
1039
1237
 
@@ -1041,16 +1239,11 @@ class ListRecommendationSummariesCommand extends smithyClient.Command
1041
1239
  .classBuilder()
1042
1240
  .ep(commonParams)
1043
1241
  .m(function (Command, cs, config, o) {
1044
- return [
1045
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1046
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1047
- ];
1242
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1048
1243
  })
1049
1244
  .s("CostOptimizationHubService", "ListRecommendationSummaries", {})
1050
1245
  .n("CostOptimizationHubClient", "ListRecommendationSummariesCommand")
1051
- .f(void 0, void 0)
1052
- .ser(se_ListRecommendationSummariesCommand)
1053
- .de(de_ListRecommendationSummariesCommand)
1246
+ .sc(ListRecommendationSummaries)
1054
1247
  .build() {
1055
1248
  }
1056
1249
 
@@ -1058,16 +1251,11 @@ class UpdateEnrollmentStatusCommand extends smithyClient.Command
1058
1251
  .classBuilder()
1059
1252
  .ep(commonParams)
1060
1253
  .m(function (Command, cs, config, o) {
1061
- return [
1062
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1063
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1064
- ];
1254
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1065
1255
  })
1066
1256
  .s("CostOptimizationHubService", "UpdateEnrollmentStatus", {})
1067
1257
  .n("CostOptimizationHubClient", "UpdateEnrollmentStatusCommand")
1068
- .f(void 0, void 0)
1069
- .ser(se_UpdateEnrollmentStatusCommand)
1070
- .de(de_UpdateEnrollmentStatusCommand)
1258
+ .sc(UpdateEnrollmentStatus)
1071
1259
  .build() {
1072
1260
  }
1073
1261
 
@@ -1075,16 +1263,11 @@ class UpdatePreferencesCommand extends smithyClient.Command
1075
1263
  .classBuilder()
1076
1264
  .ep(commonParams)
1077
1265
  .m(function (Command, cs, config, o) {
1078
- return [
1079
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1080
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1081
- ];
1266
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1082
1267
  })
1083
1268
  .s("CostOptimizationHubService", "UpdatePreferences", {})
1084
1269
  .n("CostOptimizationHubClient", "UpdatePreferencesCommand")
1085
- .f(void 0, void 0)
1086
- .ser(se_UpdatePreferencesCommand)
1087
- .de(de_UpdatePreferencesCommand)
1270
+ .sc(UpdatePreferences)
1088
1271
  .build() {
1089
1272
  }
1090
1273
 
@@ -1115,34 +1298,34 @@ Object.defineProperty(exports, "__Client", {
1115
1298
  enumerable: true,
1116
1299
  get: function () { return smithyClient.Client; }
1117
1300
  });
1118
- exports.AccessDeniedException = AccessDeniedException;
1301
+ exports.AccessDeniedException = AccessDeniedException$1;
1119
1302
  exports.ActionType = ActionType;
1120
1303
  exports.AllocationStrategy = AllocationStrategy;
1121
1304
  exports.CostOptimizationHub = CostOptimizationHub;
1122
1305
  exports.CostOptimizationHubClient = CostOptimizationHubClient;
1123
- exports.CostOptimizationHubServiceException = CostOptimizationHubServiceException;
1306
+ exports.CostOptimizationHubServiceException = CostOptimizationHubServiceException$1;
1124
1307
  exports.Ec2AutoScalingGroupType = Ec2AutoScalingGroupType;
1125
1308
  exports.EnrollmentStatus = EnrollmentStatus;
1126
1309
  exports.GetPreferencesCommand = GetPreferencesCommand;
1127
1310
  exports.GetRecommendationCommand = GetRecommendationCommand;
1128
1311
  exports.ImplementationEffort = ImplementationEffort;
1129
- exports.InternalServerException = InternalServerException;
1312
+ exports.InternalServerException = InternalServerException$1;
1130
1313
  exports.ListEnrollmentStatusesCommand = ListEnrollmentStatusesCommand;
1131
1314
  exports.ListRecommendationSummariesCommand = ListRecommendationSummariesCommand;
1132
1315
  exports.ListRecommendationsCommand = ListRecommendationsCommand;
1133
1316
  exports.MemberAccountDiscountVisibility = MemberAccountDiscountVisibility;
1134
1317
  exports.Order = Order;
1135
1318
  exports.PaymentOption = PaymentOption;
1136
- exports.ResourceNotFoundException = ResourceNotFoundException;
1319
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1137
1320
  exports.ResourceType = ResourceType;
1138
1321
  exports.SavingsEstimationMode = SavingsEstimationMode;
1139
1322
  exports.Source = Source;
1140
1323
  exports.SummaryMetrics = SummaryMetrics;
1141
1324
  exports.Term = Term;
1142
- exports.ThrottlingException = ThrottlingException;
1325
+ exports.ThrottlingException = ThrottlingException$1;
1143
1326
  exports.UpdateEnrollmentStatusCommand = UpdateEnrollmentStatusCommand;
1144
1327
  exports.UpdatePreferencesCommand = UpdatePreferencesCommand;
1145
- exports.ValidationException = ValidationException;
1328
+ exports.ValidationException = ValidationException$1;
1146
1329
  exports.ValidationExceptionReason = ValidationExceptionReason;
1147
1330
  exports.paginateListEnrollmentStatuses = paginateListEnrollmentStatuses;
1148
1331
  exports.paginateListRecommendationSummaries = paginateListRecommendationSummaries;